Class CustomizeRolesOptions.Jsii$Proxy

All Implemented Interfaces:
Enclosing interface:

@Stability(Stable) @Internal public static final class CustomizeRolesOptions.Jsii$Proxy extends implements CustomizeRolesOptions
An implementation for CustomizeRolesOptions
  • Constructor Details

    • Jsii$Proxy

      protected Jsii$Proxy( objRef)
      Constructor that initializes the object based on values retrieved from the JsiiObject.
      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`


       App app;
       Stack stack = new Stack(app, "MyStack");
       Role.Builder.create(stack, "MyRole")
               .assumedBy(new AccountPrincipal("1111111111"))
       Role.customizeRoles(stack, CustomizeRolesOptions.builder()
                       // absolute path
                       "MyStack/MyRole", "my-precreated-role-name",
                       // or relative path from `stack`
                       "MyRole", "my-precreated-role"))
      Specified by:
      getUsePrecreatedRoles in interface CustomizeRolesOptions
    • $jsii$toJson

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

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

      public final int hashCode()
      hashCode in class Object