Class: AWSCDK::IAM::WithoutPolicyUpdatesOptions

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

Overview

Options for the withoutPolicyUpdates() modifier of a Role.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(add_grants_to_resources: nil) ⇒ WithoutPolicyUpdatesOptions

Returns a new instance of WithoutPolicyUpdatesOptions.

Parameters:

  • add_grants_to_resources (Boolean, nil) (defaults to: nil)

    Add grants to resources instead of dropping them.



8
9
10
11
# File 'iam/without_policy_updates_options.rb', line 8

def initialize(add_grants_to_resources: nil)
  @add_grants_to_resources = add_grants_to_resources
  Jsii::Type.check_type(@add_grants_to_resources, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "addGrantsToResources") unless @add_grants_to_resources.nil?
end

Instance Attribute Details

#add_grants_to_resourcesBoolean? (readonly)

Note:

Default: false

Add grants to resources instead of dropping them.

If this is false or not specified, grant permissions added to this role are ignored. It is your own responsibility to make sure the role has the required permissions.

If this is true, any grant permissions will be added to the resource instead.

Returns:

  • (Boolean, nil)


22
23
24
# File 'iam/without_policy_updates_options.rb', line 22

def add_grants_to_resources
  @add_grants_to_resources
end

Class Method Details

.jsii_propertiesObject



24
25
26
27
28
# File 'iam/without_policy_updates_options.rb', line 24

def self.jsii_properties
  {
    :add_grants_to_resources => "addGrantsToResources",
  }
end

Instance Method Details

#to_jsiiObject



30
31
32
33
34
35
36
# File 'iam/without_policy_updates_options.rb', line 30

def to_jsii
  result = {}
  result.merge!({
    "addGrantsToResources" => @add_grants_to_resources,
  })
  result.compact
end