Class: AWSCDK::AccessAnalyzer::CfnAnalyzer::AnalysisRuleCriteriaProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AccessAnalyzer::CfnAnalyzer::AnalysisRuleCriteriaProperty
- 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
-
#account_ids ⇒ Array<String>?
readonly
A list of AWS account IDs to apply to the analysis rule criteria.
-
#resource_tags ⇒ AWSCDK::IResolvable, ...
readonly
An array of key-value pairs to match for your resources.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(account_ids: nil, resource_tags: nil) ⇒ AnalysisRuleCriteriaProperty
constructor
A new instance of AnalysisRuleCriteriaProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(account_ids: nil, resource_tags: nil) ⇒ AnalysisRuleCriteriaProperty
Returns a new instance of AnalysisRuleCriteriaProperty.
575 576 577 578 579 580 |
# File 'access_analyzer/cfn_analyzer.rb', line 575 def initialize(account_ids: nil, resource_tags: nil) @account_ids = account_ids Jsii::Type.check_type(@account_ids, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "accountIds") unless @account_ids.nil? @resource_tags = Jsii::Type.check_type(@resource_tags, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InVuaW9uIjp7InR5cGVzIjpbeyJmcW4iOiJhd3MtY2RrLWxpYi5JUmVzb2x2YWJsZSJ9LHsiZnFuIjoiYXdzLWNkay1saWIuQ2ZuVGFnIn1dfX0sImtpbmQiOiJhcnJheSJ9fV19fSwia2luZCI6ImFycmF5In19XX19")), "resourceTags") unless @resource_tags.nil? end |
Instance Attribute Details
#account_ids ⇒ Array<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 @account_ids end |
#resource_tags ⇒ AWSCDK::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 end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |