| 1 | # Generated by default/object.tt | ||
| 2 | package Paws::CodeBuild::ProjectSourceVersion; | ||
| 3 | use Moose; | ||
| 4 | has SourceIdentifier => (is => 'ro', isa => 'Str', request_name => 'sourceIdentifier', traits => ['NameInRequest'], required => 1); | ||
| 5 | has SourceVersion => (is => 'ro', isa => 'Str', request_name => 'sourceVersion', traits => ['NameInRequest'], required => 1); | ||
| 6 | |||
| 7 | 1; | ||
| 8 | |||
| 9 | ### main pod documentation begin ### | ||
| 10 | |||
| 11 | =head1 NAME | ||
| 12 | |||
| 13 | Paws::CodeBuild::ProjectSourceVersion | ||
| 14 | |||
| 15 | =head1 USAGE | ||
| 16 | |||
| 17 | This class represents one of two things: | ||
| 18 | |||
| 19 | =head3 Arguments in a call to a service | ||
| 20 | |||
| 21 | Use the attributes of this class as arguments to methods. You shouldn't make instances of this class. | ||
| 22 | Each attribute should be used as a named argument in the calls that expect this type of object. | ||
| 23 | |||
| 24 | As an example, if Att1 is expected to be a Paws::CodeBuild::ProjectSourceVersion object: | ||
| 25 | |||
| 26 | $service_obj->Method(Att1 => { SourceIdentifier => $value, ..., SourceVersion => $value }); | ||
| 27 | |||
| 28 | =head3 Results returned from an API call | ||
| 29 | |||
| 30 | Use accessors for each attribute. If Att1 is expected to be an Paws::CodeBuild::ProjectSourceVersion object: | ||
| 31 | |||
| 32 | $result = $service_obj->Method(...); | ||
| 33 | $result->Att1->SourceIdentifier | ||
| 34 | |||
| 35 | =head1 DESCRIPTION | ||
| 36 | |||
| 37 | A source identifier and its corresponding version. | ||
| 38 | |||
| 39 | =head1 ATTRIBUTES | ||
| 40 | |||
| 41 | |||
| 42 | =head2 B<REQUIRED> SourceIdentifier => Str | ||
| 43 | |||
| 44 | An identifier for a source in the build project. The identifier can | ||
| 45 | only contain alphanumeric characters and underscores, and must be less | ||
| 46 | than 128 characters in length. | ||
| 47 | |||
| 48 | |||
| 49 | =head2 B<REQUIRED> SourceVersion => Str | ||
| 50 | |||
| 51 | The source version for the corresponding source identifier. If | ||
| 52 | specified, must be one of: | ||
| 53 | |||
| 54 | =over | ||
| 55 | |||
| 56 | =item * | ||
| 57 | |||
| 58 | For CodeCommit: the commit ID, branch, or Git tag to use. | ||
| 59 | |||
| 60 | =item * | ||
| 61 | |||
| 62 | For GitHub: the commit ID, pull request ID, branch name, or tag name | ||
| 63 | that corresponds to the version of the source code you want to build. | ||
| 64 | If a pull request ID is specified, it must use the format | ||
| 65 | C<pr/pull-request-ID> (for example, C<pr/25>). If a branch name is | ||
| 66 | specified, the branch's HEAD commit ID is used. If not specified, the | ||
| 67 | default branch's HEAD commit ID is used. | ||
| 68 | |||
| 69 | =item * | ||
| 70 | |||
| 71 | For Bitbucket: the commit ID, branch name, or tag name that corresponds | ||
| 72 | to the version of the source code you want to build. If a branch name | ||
| 73 | is specified, the branch's HEAD commit ID is used. If not specified, | ||
| 74 | the default branch's HEAD commit ID is used. | ||
| 75 | |||
| 76 | =item * | ||
| 77 | |||
| 78 | For Amazon S3: the version ID of the object that represents the build | ||
| 79 | input ZIP file to use. | ||
| 80 | |||
| 81 | =back | ||
| 82 | |||
| 83 | For more information, see Source Version Sample with CodeBuild | ||
| 84 | (https://docs.aws.amazon.com/codebuild/latest/userguide/sample-source-version.html) | ||
| 85 | in the I<CodeBuild User Guide>. | ||
| 86 | |||
| 87 | |||
| 88 | |||
| 89 | =head1 SEE ALSO | ||
| 90 | |||
| 91 | This class forms part of L<Paws>, describing an object used in L<Paws::CodeBuild> | ||
| 92 | |||
| 93 | =head1 BUGS and CONTRIBUTIONS | ||
| 94 | |||
| 95 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 96 | |||
| 97 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 98 | |||
| 99 | =cut | ||
| 100 |