« blib/lib/Paws/ECR/ListTagsForResourceResponse.pm
↑ Summary
blib/lib/Paws/ECR/PutImageResponse.pm »
| 1 | |||
| 2 | package Paws::ECR::PutImage; | ||
| 3 | use Moose; | ||
| 4 | has ImageDigest => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'imageDigest' ); | ||
| 5 | has ImageManifest => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'imageManifest' , required => 1); | ||
| 6 | has ImageManifestMediaType => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'imageManifestMediaType' ); | ||
| 7 | has ImageTag => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'imageTag' ); | ||
| 8 | has RegistryId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'registryId' ); | ||
| 9 | has RepositoryName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'repositoryName' , required => 1); | ||
| 10 | |||
| 11 | use MooseX::ClassAttribute; | ||
| 12 | |||
| 13 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'PutImage'); | ||
| 14 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::ECR::PutImageResponse'); | ||
| 15 | class_has _result_key => (isa => 'Str', is => 'ro'); | ||
| 16 | 1; | ||
| 17 | |||
| 18 | ### main pod documentation begin ### | ||
| 19 | |||
| 20 | =head1 NAME | ||
| 21 | |||
| 22 | Paws::ECR::PutImage - Arguments for method PutImage on L<Paws::ECR> | ||
| 23 | |||
| 24 | =head1 DESCRIPTION | ||
| 25 | |||
| 26 | This class represents the parameters used for calling the method PutImage on the | ||
| 27 | L<Amazon EC2 Container Registry|Paws::ECR> service. Use the attributes of this class | ||
| 28 | as arguments to method PutImage. | ||
| 29 | |||
| 30 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to PutImage. | ||
| 31 | |||
| 32 | =head1 SYNOPSIS | ||
| 33 | |||
| 34 | my $api.ecr = Paws->service('ECR'); | ||
| 35 | my $PutImageResponse = $api . ecr->PutImage( | ||
| 36 | ImageManifest => 'MyImageManifest', | ||
| 37 | RepositoryName => 'MyRepositoryName', | ||
| 38 | ImageDigest => 'MyImageDigest', # OPTIONAL | ||
| 39 | ImageManifestMediaType => 'MyMediaType', # OPTIONAL | ||
| 40 | ImageTag => 'MyImageTag', # OPTIONAL | ||
| 41 | RegistryId => 'MyRegistryId', # OPTIONAL | ||
| 42 | ); | ||
| 43 | |||
| 44 | # Results: | ||
| 45 | my $Image = $PutImageResponse->Image; | ||
| 46 | |||
| 47 | # Returns a L<Paws::ECR::PutImageResponse> object. | ||
| 48 | |||
| 49 | 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. | ||
| 50 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/api.ecr/PutImage> | ||
| 51 | |||
| 52 | =head1 ATTRIBUTES | ||
| 53 | |||
| 54 | |||
| 55 | =head2 ImageDigest => Str | ||
| 56 | |||
| 57 | The image digest of the image manifest corresponding to the image. | ||
| 58 | |||
| 59 | |||
| 60 | |||
| 61 | =head2 B<REQUIRED> ImageManifest => Str | ||
| 62 | |||
| 63 | The image manifest corresponding to the image to be uploaded. | ||
| 64 | |||
| 65 | |||
| 66 | |||
| 67 | =head2 ImageManifestMediaType => Str | ||
| 68 | |||
| 69 | The media type of the image manifest. If you push an image manifest | ||
| 70 | that does not contain the C<mediaType> field, you must specify the | ||
| 71 | C<imageManifestMediaType> in the request. | ||
| 72 | |||
| 73 | |||
| 74 | |||
| 75 | =head2 ImageTag => Str | ||
| 76 | |||
| 77 | The tag to associate with the image. This parameter is required for | ||
| 78 | images that use the Docker Image Manifest V2 Schema 2 or Open Container | ||
| 79 | Initiative (OCI) formats. | ||
| 80 | |||
| 81 | |||
| 82 | |||
| 83 | =head2 RegistryId => Str | ||
| 84 | |||
| 85 | The AWS account ID associated with the registry that contains the | ||
| 86 | repository in which to put the image. If you do not specify a registry, | ||
| 87 | the default registry is assumed. | ||
| 88 | |||
| 89 | |||
| 90 | |||
| 91 | =head2 B<REQUIRED> RepositoryName => Str | ||
| 92 | |||
| 93 | The name of the repository in which to put the image. | ||
| 94 | |||
| 95 | |||
| 96 | |||
| 97 | |||
| 98 | =head1 SEE ALSO | ||
| 99 | |||
| 100 | This class forms part of L<Paws>, documenting arguments for method PutImage in L<Paws::ECR> | ||
| 101 | |||
| 102 | =head1 BUGS and CONTRIBUTIONS | ||
| 103 | |||
| 104 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 105 | |||
| 106 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 107 | |||
| 108 | =cut | ||
| 109 |