Class: AWSCDK::FIS::CfnTargetAccountConfigurationProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
fis/cfn_target_account_configuration_props.rb

Overview

Properties for defining a CfnTargetAccountConfiguration.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(account_id:, experiment_template_id:, role_arn:, description: nil) ⇒ CfnTargetAccountConfigurationProps

Returns a new instance of CfnTargetAccountConfigurationProps.

Parameters:

  • account_id (String)

    The AWS account ID of the target account.

  • experiment_template_id (String)

    The ID of the experiment template.

  • role_arn (String)

    The Amazon Resource Name (ARN) of an IAM role for the target account.

  • description (String, nil) (defaults to: nil)

    The description of the target account.



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 = 
  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_idString (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
end

#descriptionString? (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_idString (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_arnString (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_propertiesObject



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_jsiiObject



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