Class: AWSCDK::IAM::AddToResourcePolicyResult
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IAM::AddToResourcePolicyResult
- Defined in:
- iam/add_to_resource_policy_result.rb
Overview
Result of calling addToResourcePolicy.
Instance Attribute Summary collapse
-
#policy_dependable ⇒ Constructs::IDependable?
readonly
Dependable which allows depending on the policy change being applied.
-
#statement_added ⇒ Boolean
readonly
Whether the statement was added.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(statement_added:, policy_dependable: nil) ⇒ AddToResourcePolicyResult
constructor
A new instance of AddToResourcePolicyResult.
- #to_jsii ⇒ Object
Constructor Details
#initialize(statement_added:, policy_dependable: nil) ⇒ AddToResourcePolicyResult
Returns a new instance of AddToResourcePolicyResult.
9 10 11 12 13 14 |
# File 'iam/add_to_resource_policy_result.rb', line 9 def initialize(statement_added:, policy_dependable: nil) @statement_added = statement_added Jsii::Type.check_type(@statement_added, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "statementAdded") @policy_dependable = policy_dependable Jsii::Type.check_type(@policy_dependable, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLklEZXBlbmRhYmxlIn0=")), "policyDependable") unless @policy_dependable.nil? end |
Instance Attribute Details
#policy_dependable ⇒ Constructs::IDependable? (readonly)
Note:
Default: - If statementAdded is true, the resource object itself. Otherwise, no dependable.
Dependable which allows depending on the policy change being applied.
24 25 26 |
# File 'iam/add_to_resource_policy_result.rb', line 24 def policy_dependable @policy_dependable end |
#statement_added ⇒ Boolean (readonly)
Whether the statement was added.
19 20 21 |
# File 'iam/add_to_resource_policy_result.rb', line 19 def statement_added @statement_added end |
Class Method Details
.jsii_properties ⇒ Object
26 27 28 29 30 31 |
# File 'iam/add_to_resource_policy_result.rb', line 26 def self.jsii_properties { :statement_added => "statementAdded", :policy_dependable => "policyDependable", } end |
Instance Method Details
#to_jsii ⇒ Object
33 34 35 36 37 38 39 40 |
# File 'iam/add_to_resource_policy_result.rb', line 33 def to_jsii result = {} result.merge!({ "statementAdded" => @statement_added, "policyDependable" => @policy_dependable, }) result.compact end |