Class: AWSCDK::IoT::CfnRoleAliasProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoT::CfnRoleAliasProps
- Defined in:
- io_t/cfn_role_alias_props.rb
Overview
Properties for defining a CfnRoleAlias.
Instance Attribute Summary collapse
-
#credential_duration_seconds ⇒ Numeric?
readonly
The number of seconds for which the credential is valid.
-
#role_alias ⇒ String?
readonly
The role alias.
-
#role_arn ⇒ String, AWSCDK::Interfaces::AWSIAM::IRoleRef
readonly
The role ARN.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
An array of key-value pairs to apply to this resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(role_arn:, credential_duration_seconds: nil, role_alias: nil, tags: nil) ⇒ CfnRoleAliasProps
constructor
A new instance of CfnRoleAliasProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(role_arn:, credential_duration_seconds: nil, role_alias: nil, tags: nil) ⇒ CfnRoleAliasProps
Returns a new instance of CfnRoleAliasProps.
13 14 15 16 17 18 19 20 21 22 |
# File 'io_t/cfn_role_alias_props.rb', line 13 def initialize(role_arn:, credential_duration_seconds: nil, role_alias: nil, tags: nil) @role_arn = role_arn Jsii::Type.check_type(@role_arn, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoic3RyaW5nIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19pYW0uSVJvbGVSZWYifV19fQ==")), "roleArn") @credential_duration_seconds = credential_duration_seconds Jsii::Type.check_type(@credential_duration_seconds, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "credentialDurationSeconds") unless @credential_duration_seconds.nil? @role_alias = role_alias Jsii::Type.check_type(@role_alias, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "roleAlias") unless @role_alias.nil? @tags = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? end |
Instance Attribute Details
#credential_duration_seconds ⇒ Numeric? (readonly)
Note:
Default: - 3600
The number of seconds for which the credential is valid.
34 35 36 |
# File 'io_t/cfn_role_alias_props.rb', line 34 def credential_duration_seconds @credential_duration_seconds end |
#role_alias ⇒ String? (readonly)
The role alias.
39 40 41 |
# File 'io_t/cfn_role_alias_props.rb', line 39 def role_alias @role_alias end |
#role_arn ⇒ String, AWSCDK::Interfaces::AWSIAM::IRoleRef (readonly)
The role ARN.
28 29 30 |
# File 'io_t/cfn_role_alias_props.rb', line 28 def role_arn @role_arn end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
An array of key-value pairs to apply to this resource.
For more information, see Tag .
46 47 48 |
# File 'io_t/cfn_role_alias_props.rb', line 46 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
48 49 50 51 52 53 54 55 |
# File 'io_t/cfn_role_alias_props.rb', line 48 def self.jsii_properties { :role_arn => "roleArn", :credential_duration_seconds => "credentialDurationSeconds", :role_alias => "roleAlias", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
57 58 59 60 61 62 63 64 65 66 |
# File 'io_t/cfn_role_alias_props.rb', line 57 def to_jsii result = {} result.merge!({ "roleArn" => @role_arn, "credentialDurationSeconds" => @credential_duration_seconds, "roleAlias" => @role_alias, "tags" => @tags, }) result.compact end |