« blib/lib/Paws/CodeArtifact/CreateDomainResult.pm
↑ Summary
blib/lib/Paws/CodeArtifact/CreateRepositoryResult.pm »
| 1 | |||
| 2 | package Paws::CodeArtifact::CreateRepository; | ||
| 3 | use Moose; | ||
| 4 | has Description => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'description'); | ||
| 5 | has Domain => (is => 'ro', isa => 'Str', traits => ['ParamInQuery'], query_name => 'domain', required => 1); | ||
| 6 | has DomainOwner => (is => 'ro', isa => 'Str', traits => ['ParamInQuery'], query_name => 'domain-owner'); | ||
| 7 | has Repository => (is => 'ro', isa => 'Str', traits => ['ParamInQuery'], query_name => 'repository', required => 1); | ||
| 8 | has Tags => (is => 'ro', isa => 'ArrayRef[Paws::CodeArtifact::Tag]', traits => ['NameInRequest'], request_name => 'tags'); | ||
| 9 | has Upstreams => (is => 'ro', isa => 'ArrayRef[Paws::CodeArtifact::UpstreamRepository]', traits => ['NameInRequest'], request_name => 'upstreams'); | ||
| 10 | |||
| 11 | use MooseX::ClassAttribute; | ||
| 12 | |||
| 13 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateRepository'); | ||
| 14 | class_has _api_uri => (isa => 'Str', is => 'ro', default => '/v1/repository'); | ||
| 15 | class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST'); | ||
| 16 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::CodeArtifact::CreateRepositoryResult'); | ||
| 17 | 1; | ||
| 18 | |||
| 19 | ### main pod documentation begin ### | ||
| 20 | |||
| 21 | =head1 NAME | ||
| 22 | |||
| 23 | Paws::CodeArtifact::CreateRepository - Arguments for method CreateRepository on L<Paws::CodeArtifact> | ||
| 24 | |||
| 25 | =head1 DESCRIPTION | ||
| 26 | |||
| 27 | This class represents the parameters used for calling the method CreateRepository on the | ||
| 28 | L<CodeArtifact|Paws::CodeArtifact> service. Use the attributes of this class | ||
| 29 | as arguments to method CreateRepository. | ||
| 30 | |||
| 31 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateRepository. | ||
| 32 | |||
| 33 | =head1 SYNOPSIS | ||
| 34 | |||
| 35 | my $codeartifact = Paws->service('CodeArtifact'); | ||
| 36 | my $CreateRepositoryResult = $codeartifact->CreateRepository( | ||
| 37 | Domain => 'MyDomainName', | ||
| 38 | Repository => 'MyRepositoryName', | ||
| 39 | Description => 'MyDescription', # OPTIONAL | ||
| 40 | DomainOwner => 'MyAccountId', # OPTIONAL | ||
| 41 | Tags => [ | ||
| 42 | { | ||
| 43 | Key => 'MyTagKey', # min: 1, max: 128 | ||
| 44 | Value => 'MyTagValue', # max: 256 | ||
| 45 | |||
| 46 | }, | ||
| 47 | ... | ||
| 48 | ], # OPTIONAL | ||
| 49 | Upstreams => [ | ||
| 50 | { | ||
| 51 | RepositoryName => 'MyRepositoryName', # min: 2, max: 100 | ||
| 52 | |||
| 53 | }, | ||
| 54 | ... | ||
| 55 | ], # OPTIONAL | ||
| 56 | ); | ||
| 57 | |||
| 58 | # Results: | ||
| 59 | my $Repository = $CreateRepositoryResult->Repository; | ||
| 60 | |||
| 61 | # Returns a L<Paws::CodeArtifact::CreateRepositoryResult> object. | ||
| 62 | |||
| 63 | 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. | ||
| 64 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/codeartifact/CreateRepository> | ||
| 65 | |||
| 66 | =head1 ATTRIBUTES | ||
| 67 | |||
| 68 | |||
| 69 | =head2 Description => Str | ||
| 70 | |||
| 71 | A description of the created repository. | ||
| 72 | |||
| 73 | |||
| 74 | |||
| 75 | =head2 B<REQUIRED> Domain => Str | ||
| 76 | |||
| 77 | The name of the domain that contains the created repository. | ||
| 78 | |||
| 79 | |||
| 80 | |||
| 81 | =head2 DomainOwner => Str | ||
| 82 | |||
| 83 | The 12-digit account number of the AWS account that owns the domain. It | ||
| 84 | does not include dashes or spaces. | ||
| 85 | |||
| 86 | |||
| 87 | |||
| 88 | =head2 B<REQUIRED> Repository => Str | ||
| 89 | |||
| 90 | The name of the repository to create. | ||
| 91 | |||
| 92 | |||
| 93 | |||
| 94 | =head2 Tags => ArrayRef[L<Paws::CodeArtifact::Tag>] | ||
| 95 | |||
| 96 | One or more tag key-value pairs for the repository. | ||
| 97 | |||
| 98 | |||
| 99 | |||
| 100 | =head2 Upstreams => ArrayRef[L<Paws::CodeArtifact::UpstreamRepository>] | ||
| 101 | |||
| 102 | A list of upstream repositories to associate with the repository. The | ||
| 103 | order of the upstream repositories in the list determines their | ||
| 104 | priority order when AWS CodeArtifact looks for a requested package | ||
| 105 | version. For more information, see Working with upstream repositories | ||
| 106 | (https://docs.aws.amazon.com/codeartifact/latest/ug/repos-upstream.html). | ||
| 107 | |||
| 108 | |||
| 109 | |||
| 110 | |||
| 111 | =head1 SEE ALSO | ||
| 112 | |||
| 113 | This class forms part of L<Paws>, documenting arguments for method CreateRepository in L<Paws::CodeArtifact> | ||
| 114 | |||
| 115 | =head1 BUGS and CONTRIBUTIONS | ||
| 116 | |||
| 117 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 118 | |||
| 119 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 120 | |||
| 121 | =cut | ||
| 122 |