Interface ServicePrincipalOpts

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
ServicePrincipalOpts.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:29:57.376Z") @Stability(Stable) public interface ServicePrincipalOpts extends software.amazon.jsii.JsiiSerializable
Options for a service principal.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.iam.*;
 Object conditions;
 ServicePrincipalOpts servicePrincipalOpts = ServicePrincipalOpts.builder()
         .conditions(Map.of(
                 "conditionsKey", conditions))
         .region("region")
         .build();
 
  • Method Details

    • getConditions

      @Stability(Stable) @Nullable default Map<String,Object> getConditions()
      Additional conditions to add to the Service Principal.

      Default: - No conditions

    • getRegion

      @Stability(Deprecated) @Deprecated @Nullable default String getRegion()
      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.

    • builder

      @Stability(Stable) static ServicePrincipalOpts.Builder builder()
      Returns:
      a ServicePrincipalOpts.Builder of ServicePrincipalOpts