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 Details

    • create

      @Stability(Stable) public static ServicePrincipal.Builder create(String service)
      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

      @Stability(Deprecated) @Deprecated public ServicePrincipal.Builder region(String 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

      @Stability(Stable) public ServicePrincipal build()
      Specified by:
      build in interface software.amazon.jsii.Builder<ServicePrincipal>
      Returns:
      a newly built instance of ServicePrincipal.