Skip to content
v2.277.0

CfnResourceCollectionProps Struct ​

Properties for defining a CfnResourceCollection.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_devopsguru as devopsguru } from 'aws-cdk-lib';
const cfnResourceCollectionProps: devopsguru.CfnResourceCollectionProps = {
  resourceCollectionFilter: {
    cloudFormation: {
      stackNames: ['stackNames'],
    },
    tags: [{
      appBoundaryKey: 'appBoundaryKey',
      tagValues: ['tagValues'],
    }],
  },
};
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_devopsguru as devopsguru

cfn_resource_collection_props = devopsguru.CfnResourceCollectionProps(
    resource_collection_filter=devopsguru.CfnResourceCollection.ResourceCollectionFilterProperty(
        cloud_formation=devopsguru.CfnResourceCollection.CloudFormationCollectionFilterProperty(
            stack_names=["stackNames"]
        ),
        tags=[devopsguru.CfnResourceCollection.TagCollectionProperty(
            app_boundary_key="appBoundaryKey",
            tag_values=["tagValues"]
        )]
    )
)
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.devopsguru.*;

CfnResourceCollectionProps cfnResourceCollectionProps = CfnResourceCollectionProps.builder()
        .resourceCollectionFilter(ResourceCollectionFilterProperty.builder()
                .cloudFormation(CloudFormationCollectionFilterProperty.builder()
                        .stackNames(List.of("stackNames"))
                        .build())
                .tags(List.of(TagCollectionProperty.builder()
                        .appBoundaryKey("appBoundaryKey")
                        .tagValues(List.of("tagValues"))
                        .build()))
                .build())
        .build();
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.DevOpsGuru;

var cfnResourceCollectionProps = new CfnResourceCollectionProps {
    ResourceCollectionFilter = new ResourceCollectionFilterProperty {
        CloudFormation = new CloudFormationCollectionFilterProperty {
            StackNames = new [] { "stackNames" }
        },
        Tags = new [] { new TagCollectionProperty {
            AppBoundaryKey = "appBoundaryKey",
            TagValues = new [] { "tagValues" }
        } }
    }
};
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"

cfnResourceCollectionProps := &CfnResourceCollectionProps{
	ResourceCollectionFilter: &ResourceCollectionFilterProperty{
		CloudFormation: &CloudFormationCollectionFilterProperty{
			StackNames: []*string{
				jsii.String("stackNames"),
			},
		},
		Tags: []TagCollectionProperty{
			&TagCollectionProperty{
				AppBoundaryKey: jsii.String("appBoundaryKey"),
				TagValues: []*string{
					jsii.String("tagValues"),
				},
			},
		},
	},
}

Properties ​

resourceCollectionFilterIResolvable | CfnResourceCollection.ResourceCollectionFilterPropertyresource_collection_filtertyping.Union[IResolvable, ResourceCollectionFilterProperty]resourceCollectionFilterIResolvableResourceCollectionFilterIResolvableResourceCollectionFilterinterface{} required #
Information about a filter used to specify which AWS resources are analyzed for anomalous behavior by DevOps Guru.