Class LifecyclePolicyState.Builder

  • Enclosing class:
    LifecyclePolicyState

    public static final class LifecyclePolicyState.Builder
    extends java.lang.Object
    • Method Detail

      • policy

        public LifecyclePolicyState.Builder policy​(@Nullable
                                                   com.pulumi.core.Output<com.pulumi.core.Either<java.lang.String,​LifecyclePolicyDocumentArgs>> policy)
        Parameters:
        policy - 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.
        Returns:
        builder
      • policy

        public LifecyclePolicyState.Builder policy​(com.pulumi.core.Either<java.lang.String,​LifecyclePolicyDocumentArgs> policy)
        Parameters:
        policy - 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.
        Returns:
        builder
      • policy

        public LifecyclePolicyState.Builder policy​(java.lang.String policy)
        Parameters:
        policy - 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.
        Returns:
        builder
      • policy

        public LifecyclePolicyState.Builder policy​(LifecyclePolicyDocumentArgs policy)
        Parameters:
        policy - 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.
        Returns:
        builder
      • region

        public LifecyclePolicyState.Builder region​(@Nullable
                                                   com.pulumi.core.Output<java.lang.String> region)
        Parameters:
        region - 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.
        Returns:
        builder
      • region

        public LifecyclePolicyState.Builder region​(java.lang.String region)
        Parameters:
        region - 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.
        Returns:
        builder
      • registryId

        public LifecyclePolicyState.Builder registryId​(@Nullable
                                                       com.pulumi.core.Output<java.lang.String> registryId)
        Parameters:
        registryId - The registry ID where the repository was created.
        Returns:
        builder
      • registryId

        public LifecyclePolicyState.Builder registryId​(java.lang.String registryId)
        Parameters:
        registryId - The registry ID where the repository was created.
        Returns:
        builder
      • repository

        public LifecyclePolicyState.Builder repository​(@Nullable
                                                       com.pulumi.core.Output<java.lang.String> repository)
        Parameters:
        repository - Name of the repository to apply the policy.
        Returns:
        builder
      • repository

        public LifecyclePolicyState.Builder repository​(java.lang.String repository)
        Parameters:
        repository - Name of the repository to apply the policy.
        Returns:
        builder