Class: AWSCDK::FIS::CfnTargetAccountConfigurationProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::FIS::CfnTargetAccountConfigurationProps
- Defined in:
- fis/cfn_target_account_configuration_props.rb
Overview
Properties for defining a CfnTargetAccountConfiguration.
Instance Attribute Summary collapse
-
#account_id ⇒ String
readonly
The AWS account ID of the target account.
-
#description ⇒ String?
readonly
The description of the target account.
-
#experiment_template_id ⇒ String
readonly
The ID of the experiment template.
-
#role_arn ⇒ String
readonly
The Amazon Resource Name (ARN) of an IAM role for the target account.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(account_id:, experiment_template_id:, role_arn:, description: nil) ⇒ CfnTargetAccountConfigurationProps
constructor
A new instance of CfnTargetAccountConfigurationProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(account_id:, experiment_template_id:, role_arn:, description: nil) ⇒ CfnTargetAccountConfigurationProps
Returns a new instance of CfnTargetAccountConfigurationProps.
13 14 15 16 17 18 19 20 21 22 |
# File 'fis/cfn_target_account_configuration_props.rb', line 13 def initialize(account_id:, experiment_template_id:, role_arn:, description: nil) @account_id = account_id Jsii::Type.check_type(@account_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "accountId") @experiment_template_id = experiment_template_id Jsii::Type.check_type(@experiment_template_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "experimentTemplateId") @role_arn = role_arn Jsii::Type.check_type(@role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "roleArn") @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil? end |
Instance Attribute Details
#account_id ⇒ String (readonly)
The AWS account ID of the target account.
28 29 30 |
# File 'fis/cfn_target_account_configuration_props.rb', line 28 def account_id @account_id end |
#description ⇒ String? (readonly)
The description of the target account.
43 44 45 |
# File 'fis/cfn_target_account_configuration_props.rb', line 43 def description @description end |
#experiment_template_id ⇒ String (readonly)
The ID of the experiment template.
33 34 35 |
# File 'fis/cfn_target_account_configuration_props.rb', line 33 def experiment_template_id @experiment_template_id end |
#role_arn ⇒ String (readonly)
The Amazon Resource Name (ARN) of an IAM role for the target account.
38 39 40 |
# File 'fis/cfn_target_account_configuration_props.rb', line 38 def role_arn @role_arn end |
Class Method Details
.jsii_properties ⇒ Object
45 46 47 48 49 50 51 52 |
# File 'fis/cfn_target_account_configuration_props.rb', line 45 def self.jsii_properties { :account_id => "accountId", :experiment_template_id => "experimentTemplateId", :role_arn => "roleArn", :description => "description", } end |
Instance Method Details
#to_jsii ⇒ Object
54 55 56 57 58 59 60 61 62 63 |
# File 'fis/cfn_target_account_configuration_props.rb', line 54 def to_jsii result = {} result.merge!({ "accountId" => @account_id, "experimentTemplateId" => @experiment_template_id, "roleArn" => @role_arn, "description" => @description, }) result.compact end |