# CfnMaintenanceWindowTargetProps

Properties for defining a `CfnMaintenanceWindowTarget`.

Used as props by: [CfnMaintenanceWindowTarget](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ssm.CfnMaintenanceWindowTarget.html)

- Source: Generated at build time

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ssm as ssm } from 'aws-cdk-lib';
const cfnMaintenanceWindowTargetProps: ssm.CfnMaintenanceWindowTargetProps = {
  resourceType: 'resourceType',
  targets: [{
    key: 'key',
    values: ['values'],
  }],
  windowId: 'windowId',

  // the properties below are optional
  description: 'description',
  name: 'name',
  ownerInformation: 'ownerInformation',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ssm as ssm

cfn_maintenance_window_target_props = ssm.CfnMaintenanceWindowTargetProps(
    resource_type="resourceType",
    targets=[ssm.CfnMaintenanceWindowTarget.TargetsProperty(
        key="key",
        values=["values"]
    )],
    window_id="windowId",

    # the properties below are optional
    description="description",
    name="name",
    owner_information="ownerInformation"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ssm.*;

CfnMaintenanceWindowTargetProps cfnMaintenanceWindowTargetProps = CfnMaintenanceWindowTargetProps.builder()
        .resourceType("resourceType")
        .targets(List.of(TargetsProperty.builder()
                .key("key")
                .values(List.of("values"))
                .build()))
        .windowId("windowId")

        // the properties below are optional
        .description("description")
        .name("name")
        .ownerInformation("ownerInformation")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.SSM;

var cfnMaintenanceWindowTargetProps = new CfnMaintenanceWindowTargetProps {
    ResourceType = "resourceType",
    Targets = new [] { new TargetsProperty {
        Key = "key",
        Values = new [] { "values" }
    } },
    WindowId = "windowId",

    // the properties below are optional
    Description = "description",
    Name = "name",
    OwnerInformation = "ownerInformation"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnMaintenanceWindowTargetProps := &CfnMaintenanceWindowTargetProps{
	ResourceType: jsii.String("resourceType"),
	Targets: []interface{}{
		&TargetsProperty{
			Key: jsii.String("key"),
			Values: []*string{
				jsii.String("values"),
			},
		},
	},
	WindowId: jsii.String("windowId"),

	// the properties below are optional
	Description: jsii.String("description"),
	Name: jsii.String("name"),
	OwnerInformation: jsii.String("ownerInformation"),
}
```

## Properties

- `description`: string — A description for the target.

- `name`: string — The name for the maintenance window target.

- `ownerInformation`: string — A user-provided value that will be included in any Amazon CloudWatch Events events that are raised while running tasks for these targets in this maintenance window.

- `resourceType`: string (required) — The type of target that is being registered with the maintenance window.

- `targets`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnMaintenanceWindowTarget.TargetsProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ssm.CfnMaintenanceWindowTarget.TargetsProperty.html)[] (required) — The targets to register with the maintenance window.

  In other words, the instances to run commands on when the maintenance window runs.

  You must specify targets by using the `WindowTargetIds` parameter.

- `windowId`: string (required) — The ID of the maintenance window to register the target with.
