Class RepositoryProps.Jsii$Proxy

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

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

    • getAutoDeleteImages

      public final Boolean getAutoDeleteImages()
      Description copied from interface: RepositoryProps
      (deprecated) Whether all images should be automatically deleted when the repository is removed from the stack or when the stack is deleted.

      Requires the removalPolicy to be set to RemovalPolicy.DESTROY.

      Default: false

      Specified by:
      getAutoDeleteImages in interface RepositoryProps
    • getEmptyOnDelete

      public final Boolean getEmptyOnDelete()
      Description copied from interface: RepositoryProps
      If true, deleting the repository force deletes the contents of the repository.

      If false, the repository must be empty before attempting to delete it.

      Default: false

      Specified by:
      getEmptyOnDelete in interface RepositoryProps
    • getEncryption

      public final RepositoryEncryption getEncryption()
      Description copied from interface: RepositoryProps
      The kind of server-side encryption to apply to this repository.

      If you choose KMS, you can specify a KMS key via encryptionKey. If encryptionKey is not specified, an AWS managed KMS key is used.

      Default: - `KMS` if `encryptionKey` is specified, or `AES256` otherwise.

      Specified by:
      getEncryption in interface RepositoryProps
    • getEncryptionKey

      public final IKey getEncryptionKey()
      Description copied from interface: RepositoryProps
      External KMS key to use for repository encryption.

      The 'encryption' property must be either not specified or set to "KMS". An error will be emitted if encryption is set to "AES256".

      Default: - If encryption is set to `KMS` and this property is undefined, an AWS managed KMS key is used.

      Specified by:
      getEncryptionKey in interface RepositoryProps
    • getImageScanOnPush

      public final Boolean getImageScanOnPush()
      Description copied from interface: RepositoryProps
      Enable the scan on push when creating the repository.

      Default: false

      Specified by:
      getImageScanOnPush in interface RepositoryProps
    • getImageTagMutability

      public final TagMutability getImageTagMutability()
      Description copied from interface: RepositoryProps
      The tag mutability setting for the repository.

      If this parameter is omitted, the default setting of MUTABLE will be used which will allow image tags to be overwritten.

      Default: TagMutability.MUTABLE

      Specified by:
      getImageTagMutability in interface RepositoryProps
    • getLifecycleRegistryId

      public final String getLifecycleRegistryId()
      Description copied from interface: RepositoryProps
      The AWS account ID associated with the registry that contains the repository.

      Default: The default registry is assumed.

      Specified by:
      getLifecycleRegistryId in interface RepositoryProps
      See Also:
    • getLifecycleRules

      public final List<LifecycleRule> getLifecycleRules()
      Description copied from interface: RepositoryProps
      Life cycle rules to apply to this registry.

      Default: No life cycle rules

      Specified by:
      getLifecycleRules in interface RepositoryProps
    • getRemovalPolicy

      public final RemovalPolicy getRemovalPolicy()
      Description copied from interface: RepositoryProps
      Determine what happens to the repository when the resource/stack is deleted.

      Default: RemovalPolicy.Retain

      Specified by:
      getRemovalPolicy in interface RepositoryProps
    • getRepositoryName

      public final String getRepositoryName()
      Description copied from interface: RepositoryProps
      Name for this repository.

      The repository name must start with a letter and can only contain lowercase letters, numbers, hyphens, underscores, and forward slashes.

      If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.

      Default: Automatically generated name.

      Specified by:
      getRepositoryName in interface RepositoryProps
    • $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