Class ServicePrincipal.Builder
java.lang.Object
software.amazon.awscdk.services.iam.ServicePrincipal.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ServicePrincipal>
- Enclosing class:
ServicePrincipal
@Stability(Stable)
public static final class ServicePrincipal.Builder
extends Object
implements software.amazon.jsii.Builder<ServicePrincipal>
A fluent builder for
ServicePrincipal
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
conditions
(Map<String, ? extends Object> conditions) Additional conditions to add to the Service Principal.static ServicePrincipal.Builder
Deprecated.You should not need to set this.
-
Method Details
-
create
- Parameters:
service
- AWS service (i.e. sqs.amazonaws.com). This parameter is required.- Returns:
- a new instance of
ServicePrincipal.Builder
.
-
conditions
@Stability(Stable) public ServicePrincipal.Builder conditions(Map<String, ? extends Object> conditions) Additional conditions to add to the Service Principal.Default: - No conditions
- Parameters:
conditions
- Additional conditions to add to the Service Principal. This parameter is required.- Returns:
this
-
region
Deprecated.You should not need to set this. The stack's region is always correct.(deprecated) The region in which the service is operating.Default: - the current Stack's region.
- Parameters:
region
- The region in which the service is operating. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ServicePrincipal>
- Returns:
- a newly built instance of
ServicePrincipal
.
-