Class ServicePrincipalOpts.Builder
java.lang.Object
software.amazon.awscdk.services.iam.ServicePrincipalOpts.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ServicePrincipalOpts>
- Enclosing interface:
- ServicePrincipalOpts
@Stability(Stable)
public static final class ServicePrincipalOpts.Builder
extends Object
implements software.amazon.jsii.Builder<ServicePrincipalOpts>
A builder for
ServicePrincipalOpts
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.conditions
(Map<String, ? extends Object> conditions) Sets the value ofServicePrincipalOpts.getConditions()
Deprecated.You should not need to set this.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
conditions
@Stability(Stable) public ServicePrincipalOpts.Builder conditions(Map<String, ? extends Object> conditions) Sets the value ofServicePrincipalOpts.getConditions()
- Parameters:
conditions
- Additional conditions to add to the Service Principal.- Returns:
this
-
region
Deprecated.You should not need to set this. The stack's region is always correct.Sets the value ofServicePrincipalOpts.getRegion()
- Parameters:
region
- The region in which the service is operating.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ServicePrincipalOpts>
- Returns:
- a new instance of
ServicePrincipalOpts
- Throws:
NullPointerException
- if any required attribute was not provided
-