Class: Aws::ECR::Types::CreateRepositoryRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::ECR::Types::CreateRepositoryRequest
- Defined in:
- gems/aws-sdk-ecr/lib/aws-sdk-ecr/types.rb
Overview
When making an API call, you may pass CreateRepositoryRequest data as a hash:
{
registry_id: "RegistryId",
repository_name: "RepositoryName", # required
tags: [
{
key: "TagKey",
value: "TagValue",
},
],
image_tag_mutability: "MUTABLE", # accepts MUTABLE, IMMUTABLE
image_scanning_configuration: {
scan_on_push: false,
},
encryption_configuration: {
encryption_type: "AES256", # required, accepts AES256, KMS
kms_key: "KmsKey",
},
}
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#encryption_configuration ⇒ Types::EncryptionConfiguration
The encryption configuration for the repository.
-
#image_scanning_configuration ⇒ Types::ImageScanningConfiguration
The image scanning configuration for the repository.
-
#image_tag_mutability ⇒ String
The tag mutability setting for the repository.
-
#registry_id ⇒ String
The Amazon Web Services account ID associated with the registry to create the repository.
-
#repository_name ⇒ String
The name to use for the repository.
-
#tags ⇒ Array<Types::Tag>
The metadata that you apply to the repository to help you categorize and organize them.
Instance Attribute Details
#encryption_configuration ⇒ Types::EncryptionConfiguration
The encryption configuration for the repository. This determines how the contents of your repository are encrypted at rest.
525 526 527 528 529 530 531 532 533 534 |
# File 'gems/aws-sdk-ecr/lib/aws-sdk-ecr/types.rb', line 525 class CreateRepositoryRequest < Struct.new( :registry_id, :repository_name, :tags, :image_tag_mutability, :image_scanning_configuration, :encryption_configuration) SENSITIVE = [] include Aws::Structure end |
#image_scanning_configuration ⇒ Types::ImageScanningConfiguration
The image scanning configuration for the repository. This determines whether images are scanned for known vulnerabilities after being pushed to the repository.
525 526 527 528 529 530 531 532 533 534 |
# File 'gems/aws-sdk-ecr/lib/aws-sdk-ecr/types.rb', line 525 class CreateRepositoryRequest < Struct.new( :registry_id, :repository_name, :tags, :image_tag_mutability, :image_scanning_configuration, :encryption_configuration) SENSITIVE = [] include Aws::Structure end |
#image_tag_mutability ⇒ String
The tag mutability setting for the repository. If this parameter is
omitted, the default setting of MUTABLE
will be used which will
allow image tags to be overwritten. If IMMUTABLE
is specified, all
image tags within the repository will be immutable which will
prevent them from being overwritten.
525 526 527 528 529 530 531 532 533 534 |
# File 'gems/aws-sdk-ecr/lib/aws-sdk-ecr/types.rb', line 525 class CreateRepositoryRequest < Struct.new( :registry_id, :repository_name, :tags, :image_tag_mutability, :image_scanning_configuration, :encryption_configuration) SENSITIVE = [] include Aws::Structure end |
#registry_id ⇒ String
The Amazon Web Services account ID associated with the registry to create the repository. If you do not specify a registry, the default registry is assumed.
525 526 527 528 529 530 531 532 533 534 |
# File 'gems/aws-sdk-ecr/lib/aws-sdk-ecr/types.rb', line 525 class CreateRepositoryRequest < Struct.new( :registry_id, :repository_name, :tags, :image_tag_mutability, :image_scanning_configuration, :encryption_configuration) SENSITIVE = [] include Aws::Structure end |
#repository_name ⇒ String
The name to use for the repository. The repository name may be
specified on its own (such as nginx-web-app
) or it can be
prepended with a namespace to group the repository into a category
(such as project-a/nginx-web-app
).
525 526 527 528 529 530 531 532 533 534 |
# File 'gems/aws-sdk-ecr/lib/aws-sdk-ecr/types.rb', line 525 class CreateRepositoryRequest < Struct.new( :registry_id, :repository_name, :tags, :image_tag_mutability, :image_scanning_configuration, :encryption_configuration) SENSITIVE = [] include Aws::Structure end |
#tags ⇒ Array<Types::Tag>
The metadata that you apply to the repository to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.
525 526 527 528 529 530 531 532 533 534 |
# File 'gems/aws-sdk-ecr/lib/aws-sdk-ecr/types.rb', line 525 class CreateRepositoryRequest < Struct.new( :registry_id, :repository_name, :tags, :image_tag_mutability, :image_scanning_configuration, :encryption_configuration) SENSITIVE = [] include Aws::Structure end |