« blib/lib/Paws/CodeCommit/ConflictResolution.pm
↑ Summary
blib/lib/Paws/CodeCommit/CreateApprovalRuleTemplateOutput.pm »
| 1 | |||
| 2 | package Paws::CodeCommit::CreateApprovalRuleTemplate; | ||
| 3 | use Moose; | ||
| 4 | has ApprovalRuleTemplateContent => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'approvalRuleTemplateContent' , required => 1); | ||
| 5 | has ApprovalRuleTemplateDescription => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'approvalRuleTemplateDescription' ); | ||
| 6 | has ApprovalRuleTemplateName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'approvalRuleTemplateName' , required => 1); | ||
| 7 | |||
| 8 | use MooseX::ClassAttribute; | ||
| 9 | |||
| 10 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateApprovalRuleTemplate'); | ||
| 11 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::CodeCommit::CreateApprovalRuleTemplateOutput'); | ||
| 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::CreateApprovalRuleTemplate - Arguments for method CreateApprovalRuleTemplate on L<Paws::CodeCommit> | ||
| 20 | |||
| 21 | =head1 DESCRIPTION | ||
| 22 | |||
| 23 | This class represents the parameters used for calling the method CreateApprovalRuleTemplate on the | ||
| 24 | L<AWS CodeCommit|Paws::CodeCommit> service. Use the attributes of this class | ||
| 25 | as arguments to method CreateApprovalRuleTemplate. | ||
| 26 | |||
| 27 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateApprovalRuleTemplate. | ||
| 28 | |||
| 29 | =head1 SYNOPSIS | ||
| 30 | |||
| 31 | my $codecommit = Paws->service('CodeCommit'); | ||
| 32 | my $CreateApprovalRuleTemplateOutput = | ||
| 33 | $codecommit->CreateApprovalRuleTemplate( | ||
| 34 | ApprovalRuleTemplateContent => 'MyApprovalRuleTemplateContent', | ||
| 35 | ApprovalRuleTemplateName => 'MyApprovalRuleTemplateName', | ||
| 36 | ApprovalRuleTemplateDescription => | ||
| 37 | 'MyApprovalRuleTemplateDescription', # OPTIONAL | ||
| 38 | ); | ||
| 39 | |||
| 40 | # Results: | ||
| 41 | my $ApprovalRuleTemplate = | ||
| 42 | $CreateApprovalRuleTemplateOutput->ApprovalRuleTemplate; | ||
| 43 | |||
| 44 | # Returns a L<Paws::CodeCommit::CreateApprovalRuleTemplateOutput> object. | ||
| 45 | |||
| 46 | 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. | ||
| 47 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/codecommit/CreateApprovalRuleTemplate> | ||
| 48 | |||
| 49 | =head1 ATTRIBUTES | ||
| 50 | |||
| 51 | |||
| 52 | =head2 B<REQUIRED> ApprovalRuleTemplateContent => Str | ||
| 53 | |||
| 54 | The content of the approval rule that is created on pull requests in | ||
| 55 | associated repositories. If you specify one or more destination | ||
| 56 | references (branches), approval rules are created in an associated | ||
| 57 | repository only if their destination references (branches) match those | ||
| 58 | specified in the template. | ||
| 59 | |||
| 60 | When you create the content of the approval rule template, you can | ||
| 61 | specify approvers in an approval pool in one of two ways: | ||
| 62 | |||
| 63 | =over | ||
| 64 | |||
| 65 | =item * | ||
| 66 | |||
| 67 | B<CodeCommitApprovers>: This option only requires an AWS account and a | ||
| 68 | resource. It can be used for both IAM users and federated access users | ||
| 69 | whose name matches the provided resource name. This is a very powerful | ||
| 70 | option that offers a great deal of flexibility. For example, if you | ||
| 71 | specify the AWS account I<123456789012> and I<Mary_Major>, all of the | ||
| 72 | following are counted as approvals coming from that user: | ||
| 73 | |||
| 74 | =over | ||
| 75 | |||
| 76 | =item * | ||
| 77 | |||
| 78 | An IAM user in the account | ||
| 79 | (arn:aws:iam::I<123456789012>:user/I<Mary_Major>) | ||
| 80 | |||
| 81 | =item * | ||
| 82 | |||
| 83 | A federated user identified in IAM as Mary_Major | ||
| 84 | (arn:aws:sts::I<123456789012>:federated-user/I<Mary_Major>) | ||
| 85 | |||
| 86 | =back | ||
| 87 | |||
| 88 | This option does not recognize an active session of someone assuming | ||
| 89 | the role of CodeCommitReview with a role session name of I<Mary_Major> | ||
| 90 | (arn:aws:sts::I<123456789012>:assumed-role/CodeCommitReview/I<Mary_Major>) | ||
| 91 | unless you include a wildcard (*Mary_Major). | ||
| 92 | |||
| 93 | =item * | ||
| 94 | |||
| 95 | B<Fully qualified ARN>: This option allows you to specify the fully | ||
| 96 | qualified Amazon Resource Name (ARN) of the IAM user or role. | ||
| 97 | |||
| 98 | =back | ||
| 99 | |||
| 100 | For more information about IAM ARNs, wildcards, and formats, see IAM | ||
| 101 | Identifiers | ||
| 102 | (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html) | ||
| 103 | in the I<IAM User Guide>. | ||
| 104 | |||
| 105 | |||
| 106 | |||
| 107 | =head2 ApprovalRuleTemplateDescription => Str | ||
| 108 | |||
| 109 | The description of the approval rule template. Consider providing a | ||
| 110 | description that explains what this template does and when it might be | ||
| 111 | appropriate to associate it with repositories. | ||
| 112 | |||
| 113 | |||
| 114 | |||
| 115 | =head2 B<REQUIRED> ApprovalRuleTemplateName => Str | ||
| 116 | |||
| 117 | The name of the approval rule template. Provide descriptive names, | ||
| 118 | because this name is applied to the approval rules created | ||
| 119 | automatically in associated repositories. | ||
| 120 | |||
| 121 | |||
| 122 | |||
| 123 | |||
| 124 | =head1 SEE ALSO | ||
| 125 | |||
| 126 | This class forms part of L<Paws>, documenting arguments for method CreateApprovalRuleTemplate in L<Paws::CodeCommit> | ||
| 127 | |||
| 128 | =head1 BUGS and CONTRIBUTIONS | ||
| 129 | |||
| 130 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 131 | |||
| 132 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 133 | |||
| 134 | =cut | ||
| 135 |