Class: AWSCDK::DevOpsGuru::CfnResourceCollection::ResourceCollectionFilterProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cloud_formation: nil, tags: nil) ⇒ ResourceCollectionFilterProperty

Returns a new instance of ResourceCollectionFilterProperty.

Parameters:



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 = tags.is_a?(Array) ? tags.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::DevOpsGuru::CfnResourceCollection::TagCollectionProperty.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLmF3c19kZXZvcHNndXJ1LkNmblJlc291cmNlQ29sbGVjdGlvbi5UYWdDb2xsZWN0aW9uUHJvcGVydHkifSwia2luZCI6ImFycmF5In19")), "tags") unless @tags.nil?
end

Instance Attribute Details

#cloud_formationAWSCDK::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

#tagsArray<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 , or Secret ). 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 be DevOps-Guru-deployment-application or devops-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 named devops-guru-rds and a key named DevOps-Guru-RDS , and these act as two different keys . Possible key / value pairs in your application might be Devops-Guru-production-application/RDS or Devops-Guru-production-application/containers .



570
571
572
# File 'dev_ops_guru/cfn_resource_collection.rb', line 570

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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