Class CustomizeRolesOptions.Builder
java.lang.Object
software.amazon.awscdk.services.iam.CustomizeRolesOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CustomizeRolesOptions>
- Enclosing interface:
CustomizeRolesOptions
@Stability(Stable)
public static final class CustomizeRolesOptions.Builder
extends Object
implements software.amazon.jsii.Builder<CustomizeRolesOptions>
A builder for
CustomizeRolesOptions-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.preventSynthesis(Boolean preventSynthesis) Sets the value ofCustomizeRolesOptions.getPreventSynthesis()usePrecreatedRoles(Map<String, String> usePrecreatedRoles) Sets the value ofCustomizeRolesOptions.getUsePrecreatedRoles()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
preventSynthesis
Sets the value ofCustomizeRolesOptions.getPreventSynthesis()- Parameters:
preventSynthesis- Whether or not to synthesize the resource into the CFN template. Set this tofalseif you still want to create the resources and you also want to create the policy report.- Returns:
this
-
usePrecreatedRoles
@Stability(Stable) public CustomizeRolesOptions.Builder usePrecreatedRoles(Map<String, String> usePrecreatedRoles) Sets the value ofCustomizeRolesOptions.getUsePrecreatedRoles()- Parameters:
usePrecreatedRoles- A list of precreated IAM roles to substitute for roles that CDK is creating. The constructPath can be either a relative or absolute path from the scope thatcustomizeRolesis used on to the role being created.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CustomizeRolesOptions>- Returns:
- a new instance of
CustomizeRolesOptions - Throws:
NullPointerException- if any required attribute was not provided
-