Class: AWSCDK::IAM::WithoutPolicyUpdatesOptions
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IAM::WithoutPolicyUpdatesOptions
- Defined in:
- iam/without_policy_updates_options.rb
Overview
Options for the withoutPolicyUpdates() modifier of a Role.
Instance Attribute Summary collapse
-
#add_grants_to_resources ⇒ Boolean?
readonly
Add grants to resources instead of dropping them.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(add_grants_to_resources: nil) ⇒ WithoutPolicyUpdatesOptions
constructor
A new instance of WithoutPolicyUpdatesOptions.
- #to_jsii ⇒ Object
Constructor Details
#initialize(add_grants_to_resources: nil) ⇒ WithoutPolicyUpdatesOptions
Returns a new instance of WithoutPolicyUpdatesOptions.
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_resources ⇒ Boolean? (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.
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_properties ⇒ Object
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_jsii ⇒ Object
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 |