AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
FromMemoryStream (Default)
Update-LMFunctionCode-FunctionName <String>-Publish <SwitchParameter>-Architecture <String[]>-DryRun <Boolean>-PublishVersion <Boolean>-RevisionId <String>-SourceKMSKeyArn <String>-ZipFile <Byte[]>-Select <String>-Force <SwitchParameter>-ClientConfig <AmazonLambdaConfig>FromZipFile
Update-LMFunctionCode-FunctionName <String>-ZipFilename <String>-Publish <SwitchParameter>-Architecture <String[]>-DryRun <Boolean>-PublishVersion <Boolean>-RevisionId <String>-SourceKMSKeyArn <String>-Select <String>-Force <SwitchParameter>-ClientConfig <AmazonLambdaConfig>FromImage
Update-LMFunctionCode-FunctionName <String>-Publish <SwitchParameter>-Architecture <String[]>-DryRun <Boolean>-ImageUri <String>-PublishVersion <Boolean>-RevisionId <String>-SourceKMSKeyArn <String>-Select <String>-Force <SwitchParameter>-ClientConfig <AmazonLambdaConfig>FromS3Object
Update-LMFunctionCode-FunctionName <String>-Publish <SwitchParameter>-Architecture <String[]>-DryRun <Boolean>-PublishVersion <Boolean>-RevisionId <String>-S3Bucket <String>-S3Key <String>-S3ObjectVersion <String>-SourceKMSKeyArn <String>-Select <String>-Force <SwitchParameter>-ClientConfig <AmazonLambdaConfig>
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | Architectures |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | 1 |
Accept pipeline input? | True (ByValue, ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | False |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | BucketName, FunctionCode_S3Bucket |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | FunctionCode_S3Key, Key |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | FunctionCode_S3ObjectVersion, VersionId |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | ZipContent, ZipFileContent |
Required? | True |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | FunctionZip, Filename |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | AK |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByValue, ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByValue, ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | AWSProfilesLocation, ProfilesLocation |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | StoredCredentials, AWSProfileName |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | RegionToCall |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | SK, SecretAccessKey |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | ST |
Update-LMFunctionCode -FunctionName MyFunction -ZipFilename .\UpdatedCode.zipUpdates the function named 'MyFunction' with new content contained in the specified zip file. For a C# .NET Core Lambda function the zip file should contain the compiled assembly.
Update-LMFunctionCode -FunctionName MyFunction -BucketName amzn-s3-demo-bucket -Key UpdatedCode.zipThis example is similar to the previous one but uses an Amazon S3 object containing the updated code to update the function.
AWS Tools for PowerShell: 2.x.y.z