Class ServicePrincipalOpts.Jsii$Proxy

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.iam.ServicePrincipalOpts.Jsii$Proxy
All Implemented Interfaces:
ServicePrincipalOpts, software.amazon.jsii.JsiiSerializable
Enclosing interface:
ServicePrincipalOpts

@Stability(Stable) @Internal public static final class ServicePrincipalOpts.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ServicePrincipalOpts
An implementation for ServicePrincipalOpts
  • Constructor Details

    • Jsii$Proxy

      protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
      Constructor that initializes the object based on values retrieved from the JsiiObject.
      Parameters:
      objRef - Reference to the JSII managed object.
    • Jsii$Proxy

      protected Jsii$Proxy(ServicePrincipalOpts.Builder builder)
      Constructor that initializes the object based on literal property values passed by the ServicePrincipalOpts.Builder.
  • Method Details

    • getConditions

      public final Map<String,Object> getConditions()
      Description copied from interface: ServicePrincipalOpts
      Additional conditions to add to the Service Principal.

      Default: - No conditions

      Specified by:
      getConditions in interface ServicePrincipalOpts
    • getRegion

      public final String getRegion()
      Description copied from interface: ServicePrincipalOpts
      The region in which you want to reference the service.

      This is only necessary for cross-region references to opt-in regions. In those cases, the region name needs to be included to reference the correct service principal. In all other cases, the global service principal name is sufficient.

      This field behaves differently depending on whether the @aws-cdk/aws-iam:standardizedServicePrincipals flag is set or not:

      • If the flag is set, the input service principal is assumed to be of the form SERVICE.amazonaws.com. That value will always be returned, unless the given region is an opt-in region and the service principal is rendered in a stack in a different region, in which case SERVICE.REGION.amazonaws.com will be rendered. Under this regime, there is no downside to always specifying the region property: it will be rendered only if necessary.
      • If the flag is not set, the service principal will resolve to a single principal whose name comes from the @aws-cdk/region-info package, using the region to override the stack region. If there is no entry for this service principal in the database,, the input service name is returned literally. This is legacy behavior and is not recommended.

      Default: - the resolving Stack's region.

      Specified by:
      getRegion in interface ServicePrincipalOpts
    • $jsii$toJson

      @Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
      Specified by:
      $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
    • equals

      public final boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object