Class CustomizeRolesOptions.Jsii$Proxy

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

@Stability(Stable) @Internal public static final class CustomizeRolesOptions.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CustomizeRolesOptions
An implementation for CustomizeRolesOptions
  • 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(CustomizeRolesOptions.Builder builder)
      Constructor that initializes the object based on literal property values passed by the CustomizeRolesOptions.Builder.
  • Method Details

    • getPreventSynthesis

      public final Boolean getPreventSynthesis()
      Description copied from interface: CustomizeRolesOptions
      Whether or not to synthesize the resource into the CFN template.

      Set this to false if you still want to create the resources and you also want to create the policy report.

      Default: true

      Specified by:
      getPreventSynthesis in interface CustomizeRolesOptions
    • getUsePrecreatedRoles

      public final Map<String,String> getUsePrecreatedRoles()
      Description copied from interface: CustomizeRolesOptions
      A list of precreated IAM roles to substitute for roles that CDK is creating.

      The constructPath can be either a relative or absolute path from the scope that customizeRoles is used on to the role being created.

      Default: - there are no precreated roles. Synthesis will fail if `preventSynthesis=true`

      Example:

       App app;
       Stack stack = new Stack(app, "MyStack");
       Role.Builder.create(stack, "MyRole")
               .assumedBy(new AccountPrincipal("1111111111"))
               .build();
       Role.customizeRoles(stack, CustomizeRolesOptions.builder()
               .usePrecreatedRoles(Map.of(
                       // absolute path
                       "MyStack/MyRole", "my-precreated-role-name",
                       // or relative path from `stack`
                       "MyRole", "my-precreated-role"))
               .build());
       
      Specified by:
      getUsePrecreatedRoles in interface CustomizeRolesOptions
    • $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