Data Source: ssmMaintenanceWindows
Use this data source to get the window IDs of SSM maintenance windows.
Example Usage
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.dataAwsSsmMaintenanceWindows.DataAwsSsmMaintenanceWindows(
this,
"example",
{
filter: [
{
name: "Enabled",
values: ["true"],
},
],
}
);
Argument Reference
filter
- (Optional) Configuration block(s) for filtering. Detailed below.
filter Configuration Block
The following arguments are supported by the filter
configuration block:
name
- (Required) Name of the filter field. Valid values can be found in the SSM DescribeMaintenanceWindows API Reference.values
- (Required) Set of values that are accepted for the given filter field. Results will be selected if any given value matches.
Attributes Reference
ids
- List of window IDs of the matched SSM maintenance windows.