AWS code-library documentation change
Summary
Added PowerShell V5 example for retrieving Lambda function configuration details
Security assessment
Routine documentation update showing how to retrieve existing configuration, not related to security controls or vulnerabilities
Diff
diff --git a/code-library/latest/ug/lambda_example_lambda_GetFunctionConfiguration_section.md b/code-library/latest/ug/lambda_example_lambda_GetFunctionConfiguration_section.md index 69a240a93..eee556374 100644 --- a//code-library/latest/ug/lambda_example_lambda_GetFunctionConfiguration_section.md +++ b//code-library/latest/ug/lambda_example_lambda_GetFunctionConfiguration_section.md @@ -107,0 +108,45 @@ PowerShell +**Tools for PowerShell V5** + + +**Example 1: This example returns the version specific configuration of a Lambda Function.** + + + Get-LMFunctionConfiguration -FunctionName "MylambdaFunction123" -Qualifier "PowershellAlias" + + +**Output:** + + + CodeSha256 : uWOW0R7z+f0VyLuUg7+/D08hkMFsq0SF4seuyUZJ/R8= + CodeSize : 1426 + DeadLetterConfig : Amazon.Lambda.Model.DeadLetterConfig + Description : Verson 3 to test Aliases + Environment : Amazon.Lambda.Model.EnvironmentResponse + FunctionArn : arn:aws:lambda:us-east-1:123456789012:function:MylambdaFunction123 + :PowershellAlias + FunctionName : MylambdaFunction123 + Handler : lambda_function.launch_instance + KMSKeyArn : + LastModified : 2019-12-25T09:52:59.872+0000 + LastUpdateStatus : Successful + LastUpdateStatusReason : + LastUpdateStatusReasonCode : + Layers : {} + MasterArn : + MemorySize : 128 + RevisionId : 5d7de38b-87f2-4260-8f8a-e87280e10c33 + Role : arn:aws:iam::123456789012:role/service-role/lambda + Runtime : python3.8 + State : Active + StateReason : + StateReasonCode : + Timeout : 600 + TracingConfig : Amazon.Lambda.Model.TracingConfigResponse + Version : 4 + VpcConfig : Amazon.Lambda.Model.VpcConfigDetail + + * For API details, see [GetFunctionConfiguration](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. + + + +