« blib/lib/Paws/Lambda/UpdateEventSourceMapping.pm
↑ Summary
blib/lib/Paws/Lambda/UpdateFunctionConfiguration.pm »
| 1 | |||
| 2 | package Paws::Lambda::UpdateFunctionCode; | ||
| 3 | use Moose; | ||
| 4 | has DryRun => (is => 'ro', isa => 'Bool'); | ||
| 5 | has FunctionName => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'FunctionName', required => 1); | ||
| 6 | has ImageUri => (is => 'ro', isa => 'Str'); | ||
| 7 | has Publish => (is => 'ro', isa => 'Bool'); | ||
| 8 | has RevisionId => (is => 'ro', isa => 'Str'); | ||
| 9 | has S3Bucket => (is => 'ro', isa => 'Str'); | ||
| 10 | has S3Key => (is => 'ro', isa => 'Str'); | ||
| 11 | has S3ObjectVersion => (is => 'ro', isa => 'Str'); | ||
| 12 | has ZipFile => (is => 'ro', isa => 'Str'); | ||
| 13 | |||
| 14 | use MooseX::ClassAttribute; | ||
| 15 | |||
| 16 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateFunctionCode'); | ||
| 17 | class_has _api_uri => (isa => 'Str', is => 'ro', default => '/2015-03-31/functions/{FunctionName}/code'); | ||
| 18 | class_has _api_method => (isa => 'Str', is => 'ro', default => 'PUT'); | ||
| 19 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Lambda::FunctionConfiguration'); | ||
| 20 | 1; | ||
| 21 | |||
| 22 | ### main pod documentation begin ### | ||
| 23 | |||
| 24 | =head1 NAME | ||
| 25 | |||
| 26 | Paws::Lambda::UpdateFunctionCode - Arguments for method UpdateFunctionCode on L<Paws::Lambda> | ||
| 27 | |||
| 28 | =head1 DESCRIPTION | ||
| 29 | |||
| 30 | This class represents the parameters used for calling the method UpdateFunctionCode on the | ||
| 31 | L<AWS Lambda|Paws::Lambda> service. Use the attributes of this class | ||
| 32 | as arguments to method UpdateFunctionCode. | ||
| 33 | |||
| 34 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateFunctionCode. | ||
| 35 | |||
| 36 | =head1 SYNOPSIS | ||
| 37 | |||
| 38 | my $lambda = Paws->service('Lambda'); | ||
| 39 | # To update a Lambda function's code | ||
| 40 | # The following example replaces the code of the unpublished ($LATEST) version | ||
| 41 | # of a function named my-function with the contents of the specified zip file in | ||
| 42 | # Amazon S3. | ||
| 43 | my $FunctionConfiguration = $lambda->UpdateFunctionCode( | ||
| 44 | 'FunctionName' => 'my-function', | ||
| 45 | 'S3Bucket' => 'my-bucket-1xpuxmplzrlbh', | ||
| 46 | 'S3Key' => 'function.zip' | ||
| 47 | ); | ||
| 48 | |||
| 49 | # Results: | ||
| 50 | my $CodeSha256 = $FunctionConfiguration->CodeSha256; | ||
| 51 | my $CodeSize = $FunctionConfiguration->CodeSize; | ||
| 52 | my $Description = $FunctionConfiguration->Description; | ||
| 53 | my $FunctionArn = $FunctionConfiguration->FunctionArn; | ||
| 54 | my $FunctionName = $FunctionConfiguration->FunctionName; | ||
| 55 | my $Handler = $FunctionConfiguration->Handler; | ||
| 56 | my $LastModified = $FunctionConfiguration->LastModified; | ||
| 57 | my $MemorySize = $FunctionConfiguration->MemorySize; | ||
| 58 | my $RevisionId = $FunctionConfiguration->RevisionId; | ||
| 59 | my $Role = $FunctionConfiguration->Role; | ||
| 60 | my $Runtime = $FunctionConfiguration->Runtime; | ||
| 61 | my $Timeout = $FunctionConfiguration->Timeout; | ||
| 62 | my $TracingConfig = $FunctionConfiguration->TracingConfig; | ||
| 63 | my $Version = $FunctionConfiguration->Version; | ||
| 64 | |||
| 65 | # Returns a L<Paws::Lambda::FunctionConfiguration> object. | ||
| 66 | |||
| 67 | 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. | ||
| 68 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/lambda/UpdateFunctionCode> | ||
| 69 | |||
| 70 | =head1 ATTRIBUTES | ||
| 71 | |||
| 72 | |||
| 73 | =head2 DryRun => Bool | ||
| 74 | |||
| 75 | Set to true to validate the request parameters and access permissions | ||
| 76 | without modifying the function code. | ||
| 77 | |||
| 78 | |||
| 79 | |||
| 80 | =head2 B<REQUIRED> FunctionName => Str | ||
| 81 | |||
| 82 | The name of the Lambda function. | ||
| 83 | |||
| 84 | B<Name formats> | ||
| 85 | |||
| 86 | =over | ||
| 87 | |||
| 88 | =item * | ||
| 89 | |||
| 90 | B<Function name> - C<my-function>. | ||
| 91 | |||
| 92 | =item * | ||
| 93 | |||
| 94 | B<Function ARN> - | ||
| 95 | C<arn:aws:lambda:us-west-2:123456789012:function:my-function>. | ||
| 96 | |||
| 97 | =item * | ||
| 98 | |||
| 99 | B<Partial ARN> - C<123456789012:function:my-function>. | ||
| 100 | |||
| 101 | =back | ||
| 102 | |||
| 103 | The length constraint applies only to the full ARN. If you specify only | ||
| 104 | the function name, it is limited to 64 characters in length. | ||
| 105 | |||
| 106 | |||
| 107 | |||
| 108 | =head2 ImageUri => Str | ||
| 109 | |||
| 110 | URI of a container image in the Amazon ECR registry. | ||
| 111 | |||
| 112 | |||
| 113 | |||
| 114 | =head2 Publish => Bool | ||
| 115 | |||
| 116 | Set to true to publish a new version of the function after updating the | ||
| 117 | code. This has the same effect as calling PublishVersion separately. | ||
| 118 | |||
| 119 | |||
| 120 | |||
| 121 | =head2 RevisionId => Str | ||
| 122 | |||
| 123 | Only update the function if the revision ID matches the ID that's | ||
| 124 | specified. Use this option to avoid modifying a function that has | ||
| 125 | changed since you last read it. | ||
| 126 | |||
| 127 | |||
| 128 | |||
| 129 | =head2 S3Bucket => Str | ||
| 130 | |||
| 131 | An Amazon S3 bucket in the same Amazon Web Services Region as your | ||
| 132 | function. The bucket can be in a different Amazon Web Services account. | ||
| 133 | |||
| 134 | |||
| 135 | |||
| 136 | =head2 S3Key => Str | ||
| 137 | |||
| 138 | The Amazon S3 key of the deployment package. | ||
| 139 | |||
| 140 | |||
| 141 | |||
| 142 | =head2 S3ObjectVersion => Str | ||
| 143 | |||
| 144 | For versioned objects, the version of the deployment package object to | ||
| 145 | use. | ||
| 146 | |||
| 147 | |||
| 148 | |||
| 149 | =head2 ZipFile => Str | ||
| 150 | |||
| 151 | The base64-encoded contents of the deployment package. Amazon Web | ||
| 152 | Services SDK and Amazon Web Services CLI clients handle the encoding | ||
| 153 | for you. | ||
| 154 | |||
| 155 | |||
| 156 | |||
| 157 | |||
| 158 | =head1 SEE ALSO | ||
| 159 | |||
| 160 | This class forms part of L<Paws>, documenting arguments for method UpdateFunctionCode in L<Paws::Lambda> | ||
| 161 | |||
| 162 | =head1 BUGS and CONTRIBUTIONS | ||
| 163 | |||
| 164 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 165 | |||
| 166 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 167 | |||
| 168 | =cut | ||
| 169 |