class Aws::ECR::Types::SetRepositoryPolicyRequest
@note When making an API call, you may pass SetRepositoryPolicyRequest
data as a hash: { registry_id: "RegistryId", repository_name: "RepositoryName", # required policy_text: "RepositoryPolicyText", # required force: false, }
@!attribute [rw] registry_id
The Amazon Web Services account ID associated with the registry that contains the repository. If you do not specify a registry, the default registry is assumed. @return [String]
@!attribute [rw] repository_name
The name of the repository to receive the policy. @return [String]
@!attribute [rw] policy_text
The JSON repository policy text to apply to the repository. For more information, see [Amazon ECR repository policies][1] in the *Amazon Elastic Container Registry User Guide*. [1]: https://docs.aws.amazon.com/AmazonECR/latest/userguide/repository-policy-examples.html @return [String]
@!attribute [rw] force
If the policy you are attempting to set on a repository policy would prevent you from setting another policy in the future, you must force the SetRepositoryPolicy operation. This is intended to prevent accidental repository lock outs. @return [Boolean]
@see docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/SetRepositoryPolicyRequest AWS API Documentation
Constants
- SENSITIVE