Class: Aws::ECRPublic::Types::SetRepositoryPolicyRequest

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-ecrpublic/types.rb

Overview

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#forceBoolean

If the policy that you want to set on a repository policy would prevent you from setting another policy in the future, you must force the SetRepositoryPolicy operation. This prevents accidental repository lockouts.

Returns:

  • (Boolean)


1778
1779
1780
1781
1782
1783
1784
1785
# File 'lib/aws-sdk-ecrpublic/types.rb', line 1778

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*.

[1]: docs.aws.amazon.com/AmazonECR/latest/userguide/repository-policy-examples.html

Returns:

  • (String)


1778
1779
1780
1781
1782
1783
1784
1785
# File 'lib/aws-sdk-ecrpublic/types.rb', line 1778

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

#registry_idString

The Amazon Web Services account ID that’s associated with the registry that contains the repository. If you do not specify a registry, the default public registry is assumed.

Returns:

  • (String)


1778
1779
1780
1781
1782
1783
1784
1785
# File 'lib/aws-sdk-ecrpublic/types.rb', line 1778

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)


1778
1779
1780
1781
1782
1783
1784
1785
# File 'lib/aws-sdk-ecrpublic/types.rb', line 1778

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