# CfnResourceSetProps

Properties for defining a `CfnResourceSet`.

Used as props by: [CfnResourceSet](/cdk/api/v2/docs/aws-cdk-lib.aws_fms.CfnResourceSet.html)

- Source: Generated at build time
- Type last changed: v2.70.0 · 22 Mar 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_fms as fms } from 'aws-cdk-lib';
const cfnResourceSetProps: fms.CfnResourceSetProps = {
  name: 'name',
  resourceTypeList: ['resourceTypeList'],

  // the properties below are optional
  description: 'description',
  resources: ['resources'],
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
```

Python:

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

cfn_resource_set_props = fms.CfnResourceSetProps(
    name="name",
    resource_type_list=["resourceTypeList"],

    # the properties below are optional
    description="description",
    resources=["resources"],
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
```

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.fms.*;

CfnResourceSetProps cfnResourceSetProps = CfnResourceSetProps.builder()
        .name("name")
        .resourceTypeList(List.of("resourceTypeList"))

        // the properties below are optional
        .description("description")
        .resources(List.of("resources"))
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .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.FMS;

var cfnResourceSetProps = new CfnResourceSetProps {
    Name = "name",
    ResourceTypeList = new [] { "resourceTypeList" },

    // the properties below are optional
    Description = "description",
    Resources = new [] { "resources" },
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
```

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"

cfnResourceSetProps := &CfnResourceSetProps{
	Name: jsii.String("name"),
	ResourceTypeList: []*string{
		jsii.String("resourceTypeList"),
	},

	// the properties below are optional
	Description: jsii.String("description"),
	Resources: []*string{
		jsii.String("resources"),
	},
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}
```

## Properties

- `description`: string — A description of the resource set.

- `name`: string (required) — The descriptive name of the resource set.

  You can't change the name of a resource set after you create it.

- `resources`: string[]

- `resourceTypeList`: string[] (required) — Determines the resources that can be associated to the resource set.

  Depending on your setting for max results and the number of resource sets, a single call might not return the full list.

- `tags`: [CfnTag](/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[]
