« blib/lib/Paws/CodeCommit/CreatePullRequestOutput.pm
↑ Summary
blib/lib/Paws/CodeCommit/CreateRepositoryOutput.pm »
| 1 | |||
| 2 | package Paws::CodeCommit::CreateRepository; | ||
| 3 | use Moose; | ||
| 4 | has RepositoryDescription => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'repositoryDescription' ); | ||
| 5 | has RepositoryName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'repositoryName' , required => 1); | ||
| 6 | has Tags => (is => 'ro', isa => 'Paws::CodeCommit::TagsMap', traits => ['NameInRequest'], request_name => 'tags' ); | ||
| 7 | |||
| 8 | use MooseX::ClassAttribute; | ||
| 9 | |||
| 10 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateRepository'); | ||
| 11 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::CodeCommit::CreateRepositoryOutput'); | ||
| 12 | class_has _result_key => (isa => 'Str', is => 'ro'); | ||
| 13 | 1; | ||
| 14 | |||
| 15 | ### main pod documentation begin ### | ||
| 16 | |||
| 17 | =head1 NAME | ||
| 18 | |||
| 19 | Paws::CodeCommit::CreateRepository - Arguments for method CreateRepository on L<Paws::CodeCommit> | ||
| 20 | |||
| 21 | =head1 DESCRIPTION | ||
| 22 | |||
| 23 | This class represents the parameters used for calling the method CreateRepository on the | ||
| 24 | L<AWS CodeCommit|Paws::CodeCommit> service. Use the attributes of this class | ||
| 25 | as arguments to method CreateRepository. | ||
| 26 | |||
| 27 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateRepository. | ||
| 28 | |||
| 29 | =head1 SYNOPSIS | ||
| 30 | |||
| 31 | my $codecommit = Paws->service('CodeCommit'); | ||
| 32 | my $CreateRepositoryOutput = $codecommit->CreateRepository( | ||
| 33 | RepositoryName => 'MyRepositoryName', | ||
| 34 | RepositoryDescription => 'MyRepositoryDescription', # OPTIONAL | ||
| 35 | Tags => { | ||
| 36 | 'MyTagKey' => 'MyTagValue', # key: min: 1, max: 128, value: max: 256 | ||
| 37 | }, # OPTIONAL | ||
| 38 | ); | ||
| 39 | |||
| 40 | # Results: | ||
| 41 | my $RepositoryMetadata = $CreateRepositoryOutput->RepositoryMetadata; | ||
| 42 | |||
| 43 | # Returns a L<Paws::CodeCommit::CreateRepositoryOutput> 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/codecommit/CreateRepository> | ||
| 47 | |||
| 48 | =head1 ATTRIBUTES | ||
| 49 | |||
| 50 | |||
| 51 | =head2 RepositoryDescription => Str | ||
| 52 | |||
| 53 | A comment or description about the new repository. | ||
| 54 | |||
| 55 | The description field for a repository accepts all HTML characters and | ||
| 56 | all valid Unicode characters. Applications that do not HTML-encode the | ||
| 57 | description and display it in a webpage can expose users to potentially | ||
| 58 | malicious code. Make sure that you HTML-encode the description field in | ||
| 59 | any application that uses this API to display the repository | ||
| 60 | description on a webpage. | ||
| 61 | |||
| 62 | |||
| 63 | |||
| 64 | =head2 B<REQUIRED> RepositoryName => Str | ||
| 65 | |||
| 66 | The name of the new repository to be created. | ||
| 67 | |||
| 68 | The repository name must be unique across the calling AWS account. | ||
| 69 | Repository names are limited to 100 alphanumeric, dash, and underscore | ||
| 70 | characters, and cannot include certain characters. For more information | ||
| 71 | about the limits on repository names, see Limits | ||
| 72 | (https://docs.aws.amazon.com/codecommit/latest/userguide/limits.html) | ||
| 73 | in the I<AWS CodeCommit User Guide>. The suffix .git is prohibited. | ||
| 74 | |||
| 75 | |||
| 76 | |||
| 77 | =head2 Tags => L<Paws::CodeCommit::TagsMap> | ||
| 78 | |||
| 79 | One or more tag key-value pairs to use when tagging this repository. | ||
| 80 | |||
| 81 | |||
| 82 | |||
| 83 | |||
| 84 | =head1 SEE ALSO | ||
| 85 | |||
| 86 | This class forms part of L<Paws>, documenting arguments for method CreateRepository in L<Paws::CodeCommit> | ||
| 87 | |||
| 88 | =head1 BUGS and CONTRIBUTIONS | ||
| 89 | |||
| 90 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 91 | |||
| 92 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 93 | |||
| 94 | =cut | ||
| 95 |