AWS::DevOpsGuru::ResourceCollection - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

AWS::DevOpsGuru::ResourceCollection

A collection of Amazon resources supported by DevOps Guru. The one type of Amazon resource collection supported is Amazon CloudFormation stacks. DevOps Guru can be configured to analyze only the Amazon resources that are defined in the stacks.

Syntax

To declare this entity in your Amazon CloudFormation template, use the following syntax:

JSON

{ "Type" : "AWS::DevOpsGuru::ResourceCollection", "Properties" : { "ResourceCollectionFilter" : ResourceCollectionFilter } }

YAML

Type: AWS::DevOpsGuru::ResourceCollection Properties: ResourceCollectionFilter: ResourceCollectionFilter

Properties

ResourceCollectionFilter

Information about a filter used to specify which Amazon resources are analyzed for anomalous behavior by DevOps Guru.

Required: Yes

Type: ResourceCollectionFilter

Update requires: No interruption

Return values

Ref

When the logical ID of this resource is provided to the Ref intrinsic function, Ref returns Amazon Resource Name (ARN) of the ResourceCollection. For more information about using the Ref function, see Ref.

Fn::GetAtt

Fn::GetAtt returns a value for a specified attribute of this type. The following are the available attributes and sample return values. For more information about using Fn::GetAtt, see Fn::GetAtt.

ResourceCollectionType

The type of Amazon resource collections to return. The one valid value is CLOUD_FORMATION for Amazon CloudFormation stacks.

Examples

Create a resource collection using two CloudFormation stacks

JSON

{ "Resources": { "MyResourceCollection": { "Type": "AWS::DevOpsGuru::ResourceCollection", "Properties": { "ResourceCollectionFilter": { "CloudFormation": { "StackNames": [ "StackA", "StackB" ] } } } } } }

YAML

Resources: MyResourceCollection: Type: AWS::DevOpsGuru::ResourceCollection Properties: ResourceCollectionFilter: CloudFormation: StackNames: - StackA - StackB

Create a resource collection with all CloudFormation stacks in your account

JSON

{ "Resources": { "MyResourceCollection": { "Type": "AWS::DevOpsGuru::ResourceCollection", "Properties": { "ResourceCollectionFilter": { "CloudFormation": { "StackNames": [ "*" ] } } } } } }

YAML

Resources: MyResourceCollection: Type: AWS::DevOpsGuru::ResourceCollection Properties: ResourceCollectionFilter: CloudFormation: StackNames: - "*"

Monitor DevOps Guru resources using tags

JSON

{ "DevOpsGuruResourceCollection": { "Type": "AWS::DevOpsGuru::ResourceCollection", "Condition": "DevOpsGuruEnable", "Properties": { "ResourceCollectionFilter": { "Tags": [{ "AppBoundaryKey": "devops-guru-workshop", "TagValues": [ "devops-guru-serverless", "devops-guru-aurora" ] }] } } } }

YAML

DevOpsGuruResourceCollection: Type: AWS::DevOpsGuru::ResourceCollection Condition: DevOpsGuruEnable Properties: ResourceCollectionFilter: Tags: - AppBoundaryKey: devops-guru-workshop TagValues: - devops-guru-serverless - devops-guru-aurora

JSON

{ "DevOpsGuruResourceCollection": { "Type": "AWS::DevOpsGuru::ResourceCollection", "Condition": "DevOpsGuruEnable", "Properties": { "ResourceCollectionFilter": { "Tags": [ { "AppBoundaryKey": "devops-guru-workshop", "TagValues": [ "*" ] } ] } } } }

YAML

DevOpsGuruResourceCollection: Type: AWS::DevOpsGuru::ResourceCollection Condition: DevOpsGuruEnable Properties: ResourceCollectionFilter: Tags: - AppBoundaryKey: devops-guru-workshop TagValues: - "*"