| 1 | |||
| 2 | package Paws::Lambda::CreateAlias; | ||
| 3 | use Moose; | ||
| 4 | has Description => (is => 'ro', isa => 'Str'); | ||
| 5 | has FunctionName => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'FunctionName', required => 1); | ||
| 6 | has FunctionVersion => (is => 'ro', isa => 'Str', required => 1); | ||
| 7 | has Name => (is => 'ro', isa => 'Str', required => 1); | ||
| 8 | has RoutingConfig => (is => 'ro', isa => 'Paws::Lambda::AliasRoutingConfiguration'); | ||
| 9 | |||
| 10 | use MooseX::ClassAttribute; | ||
| 11 | |||
| 12 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateAlias'); | ||
| 13 | class_has _api_uri => (isa => 'Str', is => 'ro', default => '/2015-03-31/functions/{FunctionName}/aliases'); | ||
| 14 | class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST'); | ||
| 15 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Lambda::AliasConfiguration'); | ||
| 16 | 1; | ||
| 17 | |||
| 18 | ### main pod documentation begin ### | ||
| 19 | |||
| 20 | =head1 NAME | ||
| 21 | |||
| 22 | Paws::Lambda::CreateAlias - Arguments for method CreateAlias on L<Paws::Lambda> | ||
| 23 | |||
| 24 | =head1 DESCRIPTION | ||
| 25 | |||
| 26 | This class represents the parameters used for calling the method CreateAlias on the | ||
| 27 | L<AWS Lambda|Paws::Lambda> service. Use the attributes of this class | ||
| 28 | as arguments to method CreateAlias. | ||
| 29 | |||
| 30 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateAlias. | ||
| 31 | |||
| 32 | =head1 SYNOPSIS | ||
| 33 | |||
| 34 | my $lambda = Paws->service('Lambda'); | ||
| 35 | # To create an alias for a Lambda function | ||
| 36 | # The following example creates an alias named LIVE that points to version 1 of | ||
| 37 | # the my-function Lambda function. | ||
| 38 | my $AliasConfiguration = $lambda->CreateAlias( | ||
| 39 | 'Description' => 'alias for live version of function', | ||
| 40 | 'FunctionName' => 'my-function', | ||
| 41 | 'FunctionVersion' => 1, | ||
| 42 | 'Name' => 'LIVE' | ||
| 43 | ); | ||
| 44 | |||
| 45 | # Results: | ||
| 46 | my $AliasArn = $AliasConfiguration->AliasArn; | ||
| 47 | my $Description = $AliasConfiguration->Description; | ||
| 48 | my $FunctionVersion = $AliasConfiguration->FunctionVersion; | ||
| 49 | my $Name = $AliasConfiguration->Name; | ||
| 50 | my $RevisionId = $AliasConfiguration->RevisionId; | ||
| 51 | |||
| 52 | # Returns a L<Paws::Lambda::AliasConfiguration> object. | ||
| 53 | |||
| 54 | 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. | ||
| 55 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/lambda/CreateAlias> | ||
| 56 | |||
| 57 | =head1 ATTRIBUTES | ||
| 58 | |||
| 59 | |||
| 60 | =head2 Description => Str | ||
| 61 | |||
| 62 | A description of the alias. | ||
| 63 | |||
| 64 | |||
| 65 | |||
| 66 | =head2 B<REQUIRED> FunctionName => Str | ||
| 67 | |||
| 68 | The name of the Lambda function. | ||
| 69 | |||
| 70 | B<Name formats> | ||
| 71 | |||
| 72 | =over | ||
| 73 | |||
| 74 | =item * | ||
| 75 | |||
| 76 | B<Function name> - C<MyFunction>. | ||
| 77 | |||
| 78 | =item * | ||
| 79 | |||
| 80 | B<Function ARN> - | ||
| 81 | C<arn:aws:lambda:us-west-2:123456789012:function:MyFunction>. | ||
| 82 | |||
| 83 | =item * | ||
| 84 | |||
| 85 | B<Partial ARN> - C<123456789012:function:MyFunction>. | ||
| 86 | |||
| 87 | =back | ||
| 88 | |||
| 89 | The length constraint applies only to the full ARN. If you specify only | ||
| 90 | the function name, it is limited to 64 characters in length. | ||
| 91 | |||
| 92 | |||
| 93 | |||
| 94 | =head2 B<REQUIRED> FunctionVersion => Str | ||
| 95 | |||
| 96 | The function version that the alias invokes. | ||
| 97 | |||
| 98 | |||
| 99 | |||
| 100 | =head2 B<REQUIRED> Name => Str | ||
| 101 | |||
| 102 | The name of the alias. | ||
| 103 | |||
| 104 | |||
| 105 | |||
| 106 | =head2 RoutingConfig => L<Paws::Lambda::AliasRoutingConfiguration> | ||
| 107 | |||
| 108 | The routing configuration | ||
| 109 | (https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html#configuring-alias-routing) | ||
| 110 | of the alias. | ||
| 111 | |||
| 112 | |||
| 113 | |||
| 114 | |||
| 115 | =head1 SEE ALSO | ||
| 116 | |||
| 117 | This class forms part of L<Paws>, documenting arguments for method CreateAlias in L<Paws::Lambda> | ||
| 118 | |||
| 119 | =head1 BUGS and CONTRIBUTIONS | ||
| 120 | |||
| 121 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 122 | |||
| 123 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 124 | |||
| 125 | =cut | ||
| 126 |