Class: Aws::ECR::Types::SetRepositoryPolicyRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::ECR::Types::SetRepositoryPolicyRequest
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-ecr/types.rb
Overview
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,
}
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.
1174 1175 1176 1177 1178 1179 1180 |
# File 'lib/aws-sdk-ecr/types.rb', line 1174 class SetRepositoryPolicyRequest < Struct.new( :registry_id, :repository_name, :policy_text, :force) include Aws::Structure end |
#policy_text ⇒ String
The JSON repository policy text to apply to the repository.
1174 1175 1176 1177 1178 1179 1180 |
# File 'lib/aws-sdk-ecr/types.rb', line 1174 class SetRepositoryPolicyRequest < Struct.new( :registry_id, :repository_name, :policy_text, :force) include Aws::Structure end |
#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.
1174 1175 1176 1177 1178 1179 1180 |
# File 'lib/aws-sdk-ecr/types.rb', line 1174 class SetRepositoryPolicyRequest < Struct.new( :registry_id, :repository_name, :policy_text, :force) include Aws::Structure end |
#repository_name ⇒ String
The name of the repository to receive the policy.
1174 1175 1176 1177 1178 1179 1180 |
# File 'lib/aws-sdk-ecr/types.rb', line 1174 class SetRepositoryPolicyRequest < Struct.new( :registry_id, :repository_name, :policy_text, :force) include Aws::Structure end |