Class: AWSCDK::AccessAnalyzer::CfnAnalyzer::AnalysisRuleCriteriaProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
access_analyzer/cfn_analyzer.rb

Overview

The criteria for an analysis rule for an analyzer.

The criteria determine which entities will generate findings.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(account_ids: nil, resource_tags: nil) ⇒ AnalysisRuleCriteriaProperty

Returns a new instance of AnalysisRuleCriteriaProperty.

Parameters:



575
576
577
578
579
580
# File 'access_analyzer/cfn_analyzer.rb', line 575

def initialize(account_ids: nil, resource_tags: nil)
  @account_ids = 
  Jsii::Type.check_type(@account_ids, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "accountIds") unless @account_ids.nil?
  @resource_tags = resource_tags
  Jsii::Type.check_type(@resource_tags, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InVuaW9uIjp7InR5cGVzIjpbeyJmcW4iOiJhd3MtY2RrLWxpYi5JUmVzb2x2YWJsZSJ9LHsiZnFuIjoiYXdzLWNkay1saWIuQ2ZuVGFnIn1dfX0sImtpbmQiOiJhcnJheSJ9fV19fSwia2luZCI6ImFycmF5In19XX19")), "resourceTags") unless @resource_tags.nil?
end

Instance Attribute Details

#account_idsArray<String>? (readonly)

A list of AWS account IDs to apply to the analysis rule criteria.

The accounts cannot include the organization analyzer owner account. Account IDs can only be applied to the analysis rule criteria for organization-level analyzers. The list cannot include more than 2,000 account IDs.



588
589
590
# File 'access_analyzer/cfn_analyzer.rb', line 588

def 
  @account_ids
end

#resource_tagsAWSCDK::IResolvable, ... (readonly)

An array of key-value pairs to match for your resources.

You can use the set of Unicode letters, digits, whitespace, _ , . , / , = , + , and - .

For the tag key, you can specify a value that is 1 to 128 characters in length and cannot be prefixed with aws: .

For the tag value, you can specify a value that is 0 to 256 characters in length. If the specified tag value is 0 characters, the rule is applied to all principals with the specified tag key.



599
600
601
# File 'access_analyzer/cfn_analyzer.rb', line 599

def resource_tags
  @resource_tags
end

Class Method Details

.jsii_propertiesObject



601
602
603
604
605
606
# File 'access_analyzer/cfn_analyzer.rb', line 601

def self.jsii_properties
  {
    :account_ids => "accountIds",
    :resource_tags => "resourceTags",
  }
end

Instance Method Details

#to_jsiiObject



608
609
610
611
612
613
614
615
# File 'access_analyzer/cfn_analyzer.rb', line 608

def to_jsii
  result = {}
  result.merge!({
    "accountIds" => @account_ids,
    "resourceTags" => @resource_tags,
  })
  result.compact
end