Class WithoutPolicyUpdatesOptions.Builder
java.lang.Object
software.amazon.awscdk.services.iam.WithoutPolicyUpdatesOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<WithoutPolicyUpdatesOptions>
- Enclosing interface:
WithoutPolicyUpdatesOptions
@Stability(Stable)
public static final class WithoutPolicyUpdatesOptions.Builder
extends Object
implements software.amazon.jsii.Builder<WithoutPolicyUpdatesOptions>
A builder for
WithoutPolicyUpdatesOptions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddGrantsToResources
(Boolean addGrantsToResources) Sets the value ofWithoutPolicyUpdatesOptions.getAddGrantsToResources()
build()
Builds the configured instance.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
addGrantsToResources
@Stability(Stable) public WithoutPolicyUpdatesOptions.Builder addGrantsToResources(Boolean addGrantsToResources) Sets the value ofWithoutPolicyUpdatesOptions.getAddGrantsToResources()
- Parameters:
addGrantsToResources
- Add grants to resources instead of dropping them. If this isfalse
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:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<WithoutPolicyUpdatesOptions>
- Returns:
- a new instance of
WithoutPolicyUpdatesOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-