You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::ECR::Types::SetRepositoryPolicyRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::ECR::Types::SetRepositoryPolicyRequest
- Defined in:
- (unknown)
Overview
When passing SetRepositoryPolicyRequest as input to an Aws::Client method, you can use a vanilla Hash:
{
registry_id: "RegistryId",
repository_name: "RepositoryName", # required
policy_text: "RepositoryPolicyText", # required
force: false,
}
Instance Attribute Summary collapse
-
#force ⇒ Boolean
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.
-
#policy_text ⇒ String
The JSON repository policy text to apply to the repository.
-
#registry_id ⇒ String
The AWS account ID associated with the registry that contains the repository.
-
#repository_name ⇒ String
The name of the repository to receive the policy.
Instance Attribute Details
#force ⇒ Boolean
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.
#policy_text ⇒ String
The JSON repository policy text to apply to the repository. For more information, see Amazon ECR Repository Policies in the Amazon Elastic Container Registry User Guide.
#registry_id ⇒ String
The AWS account ID associated with the registry that contains the repository. If you do not specify a registry, the default registry is assumed.
#repository_name ⇒ String
The name of the repository to receive the policy.