Class: Aws::ECR::Types::PutLifecyclePolicyRequest

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

Overview

Note:

When making an API call, you may pass PutLifecyclePolicyRequest data as a hash:

{
  registry_id: "RegistryId",
  repository_name: "RepositoryName", # required
  lifecycle_policy_text: "LifecyclePolicyText", # required
}

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#lifecycle_policy_textString

The JSON repository policy text to apply to the repository.

Returns:

  • (String)


2512
2513
2514
2515
2516
2517
2518
# File 'gems/aws-sdk-ecr/lib/aws-sdk-ecr/types.rb', line 2512

class PutLifecyclePolicyRequest < Struct.new(
  :registry_id,
  :repository_name,
  :lifecycle_policy_text)
  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)


2512
2513
2514
2515
2516
2517
2518
# File 'gems/aws-sdk-ecr/lib/aws-sdk-ecr/types.rb', line 2512

class PutLifecyclePolicyRequest < Struct.new(
  :registry_id,
  :repository_name,
  :lifecycle_policy_text)
  SENSITIVE = []
  include Aws::Structure
end

#repository_nameString

The name of the repository to receive the policy.

Returns:

  • (String)


2512
2513
2514
2515
2516
2517
2518
# File 'gems/aws-sdk-ecr/lib/aws-sdk-ecr/types.rb', line 2512

class PutLifecyclePolicyRequest < Struct.new(
  :registry_id,
  :repository_name,
  :lifecycle_policy_text)
  SENSITIVE = []
  include Aws::Structure
end