Class PolicyProps.Jsii$Proxy

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

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

    • getPolicyEngine

      public final IPolicyEngine getPolicyEngine()
      Description copied from interface: PolicyProps
      The policy engine this policy belongs to.

      [disable-awslint:prefer-ref-interface]

      Specified by:
      getPolicyEngine in interface PolicyProps
    • getStatement

      public final PolicyStatement getStatement()
      Description copied from interface: PolicyProps
      The Cedar policy statement for this policy.

      Build a type-safe statement with the PolicyStatement factories, which validate at synthesis time and reject values that cannot be represented safely in Cedar.

      For raw Cedar (features this API does not model, or migrating an existing policy), use PolicyStatement.fromCedar('...'). That string is used exactly as given: the module does not escape, quote, or validate it, so it is treated as trusted input and you own its correctness and safety. Do not assemble it from values that come from outside your application, such as a request body or a database record.

      Specified by:
      getStatement in interface PolicyProps
    • getDescription

      public final String getDescription()
      Description copied from interface: PolicyProps
      Optional description for the policy.

      Maximum length of 4096.

      Default: - No description

      Specified by:
      getDescription in interface PolicyProps
    • getPolicyName

      public final String getPolicyName()
      Description copied from interface: PolicyProps
      The name of the policy.

      Valid characters: a-z, A-Z, 0-9, _ (underscore) Must start with a letter, 1-48 characters Pattern: ^[A-Za-z][A-Za-z0-9_]*$

      Default: - Auto-generated unique name

      Specified by:
      getPolicyName in interface PolicyProps
    • getValidationMode

      public final PolicyValidationMode getValidationMode()
      Description copied from interface: PolicyProps
      Validation mode for the policy.

      Controls how Cedar analyzer validation findings are handled.

      Default: PolicyValidationMode.FAIL_ON_ANY_FINDINGS

      Specified by:
      getValidationMode in interface PolicyProps
    • $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