Class LifecyclePolicyState


  • public final class LifecyclePolicyState
    extends com.pulumi.resources.ResourceArgs
    • Method Detail

      • policy

        public java.util.Optional<com.pulumi.core.Output<com.pulumi.core.Either<java.lang.String,​LifecyclePolicyDocumentArgs>>> policy()
        Returns:
        The policy document. This is a JSON formatted string. See more details about [Policy Parameters](http://docs.aws.amazon.com/AmazonECR/latest/userguide/LifecyclePolicies.html#lifecycle_policy_parameters) in the official AWS docs. Consider using the `aws.ecr.getLifecyclePolicyDocument` dataSource to generate/manage the JSON document used for the `policy` argument.
      • region

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> region()
        Returns:
        Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
      • registryId

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> registryId()
        Returns:
        The registry ID where the repository was created.
      • repository

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> repository()
        Returns:
        Name of the repository to apply the policy.