« blib/lib/Paws/ECR/CompleteLayerUploadResponse.pm
↑ Summary
blib/lib/Paws/ECR/CreateRepositoryResponse.pm »
| 1 | |||
| 2 | package Paws::ECR::CreateRepository; | ||
| 3 | use Moose; | ||
| 4 | has EncryptionConfiguration => (is => 'ro', isa => 'Paws::ECR::EncryptionConfiguration', traits => ['NameInRequest'], request_name => 'encryptionConfiguration' ); | ||
| 5 | has ImageScanningConfiguration => (is => 'ro', isa => 'Paws::ECR::ImageScanningConfiguration', traits => ['NameInRequest'], request_name => 'imageScanningConfiguration' ); | ||
| 6 | has ImageTagMutability => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'imageTagMutability' ); | ||
| 7 | has RepositoryName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'repositoryName' , required => 1); | ||
| 8 | has Tags => (is => 'ro', isa => 'ArrayRef[Paws::ECR::Tag]', traits => ['NameInRequest'], request_name => 'tags' ); | ||
| 9 | |||
| 10 | use MooseX::ClassAttribute; | ||
| 11 | |||
| 12 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateRepository'); | ||
| 13 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::ECR::CreateRepositoryResponse'); | ||
| 14 | class_has _result_key => (isa => 'Str', is => 'ro'); | ||
| 15 | 1; | ||
| 16 | |||
| 17 | ### main pod documentation begin ### | ||
| 18 | |||
| 19 | =head1 NAME | ||
| 20 | |||
| 21 | Paws::ECR::CreateRepository - Arguments for method CreateRepository on L<Paws::ECR> | ||
| 22 | |||
| 23 | =head1 DESCRIPTION | ||
| 24 | |||
| 25 | This class represents the parameters used for calling the method CreateRepository on the | ||
| 26 | L<Amazon EC2 Container Registry|Paws::ECR> service. Use the attributes of this class | ||
| 27 | as arguments to method CreateRepository. | ||
| 28 | |||
| 29 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateRepository. | ||
| 30 | |||
| 31 | =head1 SYNOPSIS | ||
| 32 | |||
| 33 | my $api.ecr = Paws->service('ECR'); | ||
| 34 | # To create a new repository | ||
| 35 | # This example creates a repository called nginx-web-app inside the project-a | ||
| 36 | # namespace in the default registry for an account. | ||
| 37 | my $CreateRepositoryResponse = $api | ||
| 38 | . ecr->CreateRepository( 'RepositoryName' => 'project-a/nginx-web-app' ); | ||
| 39 | |||
| 40 | # Results: | ||
| 41 | my $repository = $CreateRepositoryResponse->repository; | ||
| 42 | |||
| 43 | # Returns a L<Paws::ECR::CreateRepositoryResponse> object. | ||
| 44 | |||
| 45 | Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. | ||
| 46 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/api.ecr/CreateRepository> | ||
| 47 | |||
| 48 | =head1 ATTRIBUTES | ||
| 49 | |||
| 50 | |||
| 51 | =head2 EncryptionConfiguration => L<Paws::ECR::EncryptionConfiguration> | ||
| 52 | |||
| 53 | The encryption configuration for the repository. This determines how | ||
| 54 | the contents of your repository are encrypted at rest. | ||
| 55 | |||
| 56 | |||
| 57 | |||
| 58 | =head2 ImageScanningConfiguration => L<Paws::ECR::ImageScanningConfiguration> | ||
| 59 | |||
| 60 | The image scanning configuration for the repository. This determines | ||
| 61 | whether images are scanned for known vulnerabilities after being pushed | ||
| 62 | to the repository. | ||
| 63 | |||
| 64 | |||
| 65 | |||
| 66 | =head2 ImageTagMutability => Str | ||
| 67 | |||
| 68 | The tag mutability setting for the repository. If this parameter is | ||
| 69 | omitted, the default setting of C<MUTABLE> will be used which will | ||
| 70 | allow image tags to be overwritten. If C<IMMUTABLE> is specified, all | ||
| 71 | image tags within the repository will be immutable which will prevent | ||
| 72 | them from being overwritten. | ||
| 73 | |||
| 74 | Valid values are: C<"MUTABLE">, C<"IMMUTABLE"> | ||
| 75 | |||
| 76 | =head2 B<REQUIRED> RepositoryName => Str | ||
| 77 | |||
| 78 | The name to use for the repository. The repository name may be | ||
| 79 | specified on its own (such as C<nginx-web-app>) or it can be prepended | ||
| 80 | with a namespace to group the repository into a category (such as | ||
| 81 | C<project-a/nginx-web-app>). | ||
| 82 | |||
| 83 | |||
| 84 | |||
| 85 | =head2 Tags => ArrayRef[L<Paws::ECR::Tag>] | ||
| 86 | |||
| 87 | The metadata that you apply to the repository to help you categorize | ||
| 88 | and organize them. Each tag consists of a key and an optional value, | ||
| 89 | both of which you define. Tag keys can have a maximum character length | ||
| 90 | of 128 characters, and tag values can have a maximum length of 256 | ||
| 91 | characters. | ||
| 92 | |||
| 93 | |||
| 94 | |||
| 95 | |||
| 96 | =head1 SEE ALSO | ||
| 97 | |||
| 98 | This class forms part of L<Paws>, documenting arguments for method CreateRepository in L<Paws::ECR> | ||
| 99 | |||
| 100 | =head1 BUGS and CONTRIBUTIONS | ||
| 101 | |||
| 102 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 103 | |||
| 104 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 105 | |||
| 106 | =cut | ||
| 107 |