Class: AWSCDK::IAM::AddToResourcePolicyResult

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
iam/add_to_resource_policy_result.rb

Overview

Result of calling addToResourcePolicy.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(statement_added:, policy_dependable: nil) ⇒ AddToResourcePolicyResult

Returns a new instance of AddToResourcePolicyResult.

Parameters:

  • statement_added (Boolean)

    Whether the statement was added.

  • policy_dependable (Constructs::IDependable, nil) (defaults to: nil)

    Dependable which allows depending on the policy change being applied.



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_dependableConstructs::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.

Returns:

  • (Constructs::IDependable, nil)


24
25
26
# File 'iam/add_to_resource_policy_result.rb', line 24

def policy_dependable
  @policy_dependable
end

#statement_addedBoolean (readonly)

Whether the statement was added.

Returns:

  • (Boolean)


19
20
21
# File 'iam/add_to_resource_policy_result.rb', line 19

def statement_added
  @statement_added
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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