@Stability(value=Stable) public static final class FromRoleNameOptions.Builder extends Object implements software.amazon.jsii.Builder<FromRoleNameOptions>
FromRoleNameOptions| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
FromRoleNameOptions.Builder |
addGrantsToResources(Boolean addGrantsToResources)
Sets the value of
FromRoleArnOptions.getAddGrantsToResources() |
FromRoleNameOptions |
build()
Builds the configured instance.
|
FromRoleNameOptions.Builder |
defaultPolicyName(String defaultPolicyName)
Sets the value of
FromRoleArnOptions.getDefaultPolicyName() |
FromRoleNameOptions.Builder |
mutable(Boolean mutable)
Sets the value of
FromRoleArnOptions.getMutable() |
@Stability(value=Stable) public FromRoleNameOptions.Builder addGrantsToResources(Boolean addGrantsToResources)
FromRoleArnOptions.getAddGrantsToResources()addGrantsToResources - For immutable roles: 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.
this@Stability(value=Stable) public FromRoleNameOptions.Builder defaultPolicyName(String defaultPolicyName)
FromRoleArnOptions.getDefaultPolicyName()defaultPolicyName - Any policies created by this role will use this value as their ID, if specified.
Specify this if importing the same role in multiple stacks, and granting it
different permissions in at least two stacks. If this is not specified
(or if the same name is specified in more than one stack),
a CloudFormation issue will result in the policy created in whichever stack
is deployed last overwriting the policies created by the others.this@Stability(value=Stable) public FromRoleNameOptions.Builder mutable(Boolean mutable)
FromRoleArnOptions.getMutable()mutable - Whether the imported role can be modified by attaching policy resources to it.this@Stability(value=Stable) public FromRoleNameOptions build()
build in interface software.amazon.jsii.Builder<FromRoleNameOptions>FromRoleNameOptionsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.