Class: AWSCDK::DevOpsGuru::CfnResourceCollection::ResourceCollectionFilterProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::DevOpsGuru::CfnResourceCollection::ResourceCollectionFilterProperty
- Defined in:
- dev_ops_guru/cfn_resource_collection.rb
Overview
Information about a filter used to specify which AWS resources are analyzed for anomalous behavior by DevOps Guru.
Instance Attribute Summary collapse
-
#cloud_formation ⇒ AWSCDK::IResolvable, ...
readonly
Information about AWS CloudFormation stacks.
-
#tags ⇒ Array<AWSCDK::DevOpsGuru::CfnResourceCollection::TagCollectionProperty>?
readonly
The AWS tags used to filter the resources in the resource collection.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(cloud_formation: nil, tags: nil) ⇒ ResourceCollectionFilterProperty
constructor
A new instance of ResourceCollectionFilterProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(cloud_formation: nil, tags: nil) ⇒ ResourceCollectionFilterProperty
Returns a new instance of ResourceCollectionFilterProperty.
541 542 543 544 545 546 |
# File 'dev_ops_guru/cfn_resource_collection.rb', line 541 def initialize(cloud_formation: nil, tags: nil) @cloud_formation = cloud_formation.is_a?(Hash) ? ::AWSCDK::DevOpsGuru::CfnResourceCollection::CloudFormationCollectionFilterProperty.new(**cloud_formation.transform_keys(&:to_sym)) : cloud_formation Jsii::Type.check_type(@cloud_formation, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19kZXZvcHNndXJ1LkNmblJlc291cmNlQ29sbGVjdGlvbi5DbG91ZEZvcm1hdGlvbkNvbGxlY3Rpb25GaWx0ZXJQcm9wZXJ0eSJ9XX19")), "cloudFormation") unless @cloud_formation.nil? @tags = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::DevOpsGuru::CfnResourceCollection::TagCollectionProperty.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLmF3c19kZXZvcHNndXJ1LkNmblJlc291cmNlQ29sbGVjdGlvbi5UYWdDb2xsZWN0aW9uUHJvcGVydHkifSwia2luZCI6ImFycmF5In19")), "tags") unless @tags.nil? end |
Instance Attribute Details
#cloud_formation ⇒ AWSCDK::IResolvable, ... (readonly)
Information about AWS CloudFormation stacks.
You can use up to 1000 stacks to specify which AWS resources in your account to analyze. For more information, see Stacks in the AWS CloudFormation User Guide .
554 555 556 |
# File 'dev_ops_guru/cfn_resource_collection.rb', line 554 def cloud_formation @cloud_formation end |
#tags ⇒ Array<AWSCDK::DevOpsGuru::CfnResourceCollection::TagCollectionProperty>? (readonly)
The AWS tags used to filter the resources in the resource collection.
Tags help you identify and organize your AWS resources. Many AWS services support tagging, so you can assign the same tag to resources from different services to indicate that the resources are related. For example, you can assign the same tag to an Amazon DynamoDB table resource that you assign to an AWS Lambda function. For more information about using tags, see the Tagging best practices whitepaper.
Each AWS tag has two parts.
- A tag key (for example,
CostCenter,Environment,Project, orSecret). Tag keys are case-sensitive. - A field known as a tag value (for example,
111122223333,Production, or a team name). Omitting the tag value is the same as using an empty string. Like tag keys , tag values are case-sensitive. The tag value is a required property when AppBoundaryKey is specified.
Together these are known as key - value pairs.
The string used for a key in a tag that you use to define your resource coverage must begin with the prefix
Devops-guru-. The tag key might beDevOps-Guru-deployment-applicationordevops-guru-rds-application. When you create a key , the case of characters in the key can be whatever you choose. After you create a key , it is case-sensitive. For example, DevOps Guru works with a key nameddevops-guru-rdsand a key namedDevOps-Guru-RDS, and these act as two different keys . Possible key / value pairs in your application might beDevops-Guru-production-application/RDSorDevops-Guru-production-application/containers.
570 571 572 |
# File 'dev_ops_guru/cfn_resource_collection.rb', line 570 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
572 573 574 575 576 577 |
# File 'dev_ops_guru/cfn_resource_collection.rb', line 572 def self.jsii_properties { :cloud_formation => "cloudFormation", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
579 580 581 582 583 584 585 586 |
# File 'dev_ops_guru/cfn_resource_collection.rb', line 579 def to_jsii result = {} result.merge!({ "cloudFormation" => @cloud_formation, "tags" => @tags, }) result.compact end |