Class: AWSCDK::StepFunctions::StateMachineGrantsProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::StepFunctions::StateMachineGrantsProps
- Defined in:
- step_functions/state_machine_grants_props.rb
Overview
Properties for StateMachineGrants.
Instance Attribute Summary collapse
-
#resource ⇒ AWSCDK::Interfaces::AWSStepfunctions::IStateMachineRef
readonly
The resource on which actions will be allowed.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(resource:) ⇒ StateMachineGrantsProps
constructor
A new instance of StateMachineGrantsProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(resource:) ⇒ StateMachineGrantsProps
Returns a new instance of StateMachineGrantsProps.
8 9 10 11 |
# File 'step_functions/state_machine_grants_props.rb', line 8 def initialize(resource:) @resource = resource Jsii::Type.check_type(@resource, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19zdGVwZnVuY3Rpb25zLklTdGF0ZU1hY2hpbmVSZWYifQ==")), "resource") end |
Instance Attribute Details
#resource ⇒ AWSCDK::Interfaces::AWSStepfunctions::IStateMachineRef (readonly)
The resource on which actions will be allowed.
16 17 18 |
# File 'step_functions/state_machine_grants_props.rb', line 16 def resource @resource end |
Class Method Details
.jsii_properties ⇒ Object
18 19 20 21 22 |
# File 'step_functions/state_machine_grants_props.rb', line 18 def self.jsii_properties { :resource => "resource", } end |
Instance Method Details
#to_jsii ⇒ Object
24 25 26 27 28 29 30 |
# File 'step_functions/state_machine_grants_props.rb', line 24 def to_jsii result = {} result.merge!({ "resource" => @resource, }) result.compact end |