Class: AWSCDK::StepFunctions::Credentials
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::StepFunctions::Credentials
- Defined in:
- step_functions/credentials.rb
Overview
Specifies a target role assumed by the State Machine's execution role for invoking the task's resource.
Instance Attribute Summary collapse
-
#role ⇒ AWSCDK::StepFunctions::TaskRole
readonly
The role to be assumed for executing the Task.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(role:) ⇒ Credentials
constructor
A new instance of Credentials.
- #to_jsii ⇒ Object
Constructor Details
#initialize(role:) ⇒ Credentials
Returns a new instance of Credentials.
10 11 12 13 |
# File 'step_functions/credentials.rb', line 10 def initialize(role:) @role = role Jsii::Type.check_type(@role, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc3RlcGZ1bmN0aW9ucy5UYXNrUm9sZSJ9")), "role") end |
Instance Attribute Details
#role ⇒ AWSCDK::StepFunctions::TaskRole (readonly)
The role to be assumed for executing the Task.
18 19 20 |
# File 'step_functions/credentials.rb', line 18 def role @role end |
Class Method Details
.jsii_properties ⇒ Object
20 21 22 23 24 |
# File 'step_functions/credentials.rb', line 20 def self.jsii_properties { :role => "role", } end |
Instance Method Details
#to_jsii ⇒ Object
26 27 28 29 30 31 32 |
# File 'step_functions/credentials.rb', line 26 def to_jsii result = {} result.merge!({ "role" => @role, }) result.compact end |