Class: AWSCDK::DevOpsAgent::CfnAssociation::SourceAWSConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::DevOpsAgent::CfnAssociation::SourceAWSConfigurationProperty
- Defined in:
- dev_ops_agent/cfn_association.rb
Overview
Configuration for AWS source account integration.
Specifies the account ID, assumable role ARN, and resources to be monitored in the source account.
Instance Attribute Summary collapse
-
#account_id ⇒ String
readonly
Account ID corresponding to the provided resources.
-
#account_type ⇒ String
readonly
Account Type 'source' for AWS DevOps Agent monitoring.
-
#assumable_role_arn ⇒ String
readonly
Role ARN to be assumed by AWS DevOps Agent to operate on behalf of customer.
-
#resources ⇒ AWSCDK::IResolvable, ...
readonly
List of resources to monitor.
-
#tags ⇒ Array<AWSCDK::DevOpsAgent::CfnAssociation::KeyValuePairProperty>?
readonly
List of tags as key-value pairs, used to identify resources for topology crawl.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(account_id:, account_type:, assumable_role_arn:, resources: nil, tags: nil) ⇒ SourceAWSConfigurationProperty
constructor
A new instance of SourceAWSConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(account_id:, account_type:, assumable_role_arn:, resources: nil, tags: nil) ⇒ SourceAWSConfigurationProperty
Returns a new instance of SourceAWSConfigurationProperty.
1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 |
# File 'dev_ops_agent/cfn_association.rb', line 1762 def initialize(account_id:, account_type:, assumable_role_arn:, resources: nil, tags: nil) @account_id = account_id Jsii::Type.check_type(@account_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "accountId") @account_type = account_type Jsii::Type.check_type(@account_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "accountType") @assumable_role_arn = assumable_role_arn Jsii::Type.check_type(@assumable_role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "assumableRoleArn") @resources = resources Jsii::Type.check_type(@resources, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZGV2b3BzYWdlbnQuQ2ZuQXNzb2NpYXRpb24uQVdTUmVzb3VyY2VQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "resources") unless @resources.nil? @tags = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::DevOpsAgent::CfnAssociation::KeyValuePairProperty.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLmF3c19kZXZvcHNhZ2VudC5DZm5Bc3NvY2lhdGlvbi5LZXlWYWx1ZVBhaXJQcm9wZXJ0eSJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? end |
Instance Attribute Details
#account_id ⇒ String (readonly)
Account ID corresponding to the provided resources.
1779 1780 1781 |
# File 'dev_ops_agent/cfn_association.rb', line 1779 def account_id @account_id end |
#account_type ⇒ String (readonly)
Account Type 'source' for AWS DevOps Agent monitoring.
1784 1785 1786 |
# File 'dev_ops_agent/cfn_association.rb', line 1784 def account_type @account_type end |
#assumable_role_arn ⇒ String (readonly)
Role ARN to be assumed by AWS DevOps Agent to operate on behalf of customer.
1789 1790 1791 |
# File 'dev_ops_agent/cfn_association.rb', line 1789 def assumable_role_arn @assumable_role_arn end |
#resources ⇒ AWSCDK::IResolvable, ... (readonly)
List of resources to monitor.
1794 1795 1796 |
# File 'dev_ops_agent/cfn_association.rb', line 1794 def resources @resources end |
#tags ⇒ Array<AWSCDK::DevOpsAgent::CfnAssociation::KeyValuePairProperty>? (readonly)
List of tags as key-value pairs, used to identify resources for topology crawl.
1799 1800 1801 |
# File 'dev_ops_agent/cfn_association.rb', line 1799 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
1801 1802 1803 1804 1805 1806 1807 1808 1809 |
# File 'dev_ops_agent/cfn_association.rb', line 1801 def self.jsii_properties { :account_id => "accountId", :account_type => "accountType", :assumable_role_arn => "assumableRoleArn", :resources => "resources", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 |
# File 'dev_ops_agent/cfn_association.rb', line 1811 def to_jsii result = {} result.merge!({ "accountId" => @account_id, "accountType" => @account_type, "assumableRoleArn" => @assumable_role_arn, "resources" => @resources, "tags" => @tags, }) result.compact end |