Class: Aws::ECR::Types::SetRepositoryPolicyRequest

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-ecr/lib/aws-sdk-ecr/types.rb

Overview

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#forceBoolean

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.

Returns:

  • (Boolean)


3514
3515
3516
3517
3518
3519
3520
3521
# File 'gems/aws-sdk-ecr/lib/aws-sdk-ecr/types.rb', line 3514

class SetRepositoryPolicyRequest < Struct.new(
  :registry_id,
  :repository_name,
  :policy_text,
  :force)
  SENSITIVE = []
  include Aws::Structure
end

#policy_textString

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.

Returns:

  • (String)


3514
3515
3516
3517
3518
3519
3520
3521
# File 'gems/aws-sdk-ecr/lib/aws-sdk-ecr/types.rb', line 3514

class SetRepositoryPolicyRequest < Struct.new(
  :registry_id,
  :repository_name,
  :policy_text,
  :force)
  SENSITIVE = []
  include Aws::Structure
end

#registry_idString

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.

Returns:

  • (String)


3514
3515
3516
3517
3518
3519
3520
3521
# File 'gems/aws-sdk-ecr/lib/aws-sdk-ecr/types.rb', line 3514

class SetRepositoryPolicyRequest < Struct.new(
  :registry_id,
  :repository_name,
  :policy_text,
  :force)
  SENSITIVE = []
  include Aws::Structure
end

#repository_nameString

The name of the repository to receive the policy.

Returns:

  • (String)


3514
3515
3516
3517
3518
3519
3520
3521
# File 'gems/aws-sdk-ecr/lib/aws-sdk-ecr/types.rb', line 3514

class SetRepositoryPolicyRequest < Struct.new(
  :registry_id,
  :repository_name,
  :policy_text,
  :force)
  SENSITIVE = []
  include Aws::Structure
end