public void LambdaUpdateFunctionConfiguration()
        {
            #region to-update-a-lambda-functions-configuration-1481651096447

            var response = client.UpdateFunctionConfiguration(new UpdateFunctionConfigurationRequest
            {
                FunctionName = "my-function",
                MemorySize   = 256
            });

            string codeSha256   = response.CodeSha256;
            long   codeSize     = response.CodeSize;
            string description  = response.Description;
            string functionArn  = response.FunctionArn;
            string functionName = response.FunctionName;
            string handler      = response.Handler;
            string lastModified = response.LastModified;
            int    memorySize   = response.MemorySize;
            string revisionId   = response.RevisionId;
            string role         = response.Role;
            string runtime      = response.Runtime;
            int    timeout      = response.Timeout;
            TracingConfigResponse tracingConfig = response.TracingConfig;
            string version = response.Version;

            #endregion
        }
        public void LambdaUpdateFunctionCode()
        {
            #region to-update-a-lambda-functions-code-1481650992672

            var response = client.UpdateFunctionCode(new UpdateFunctionCodeRequest
            {
                FunctionName = "my-function",
                S3Bucket     = "my-bucket-1xpuxmplzrlbh",
                S3Key        = "function.zip"
            });

            string codeSha256   = response.CodeSha256;
            long   codeSize     = response.CodeSize;
            string description  = response.Description;
            string functionArn  = response.FunctionArn;
            string functionName = response.FunctionName;
            string handler      = response.Handler;
            string lastModified = response.LastModified;
            int    memorySize   = response.MemorySize;
            string revisionId   = response.RevisionId;
            string role         = response.Role;
            string runtime      = response.Runtime;
            int    timeout      = response.Timeout;
            TracingConfigResponse tracingConfig = response.TracingConfig;
            string version = response.Version;

            #endregion
        }
        public void LambdaGetFunctionConfiguration()
        {
            #region to-get-a-lambda-functions-event-source-mapping-1481661622799

            var response = client.GetFunctionConfiguration(new GetFunctionConfigurationRequest
            {
                FunctionName = "my-function",
                Qualifier    = "1"
            });

            string codeSha256  = response.CodeSha256;
            long   codeSize    = response.CodeSize;
            string description = response.Description;
            EnvironmentResponse environment = response.Environment;
            string functionArn                  = response.FunctionArn;
            string functionName                 = response.FunctionName;
            string handler                      = response.Handler;
            string kmsKeyArn                    = response.KMSKeyArn;
            string lastModified                 = response.LastModified;
            string lastUpdateStatus             = response.LastUpdateStatus;
            int    memorySize                   = response.MemorySize;
            string revisionId                   = response.RevisionId;
            string role                         = response.Role;
            string runtime                      = response.Runtime;
            string state                        = response.State;
            int    timeout                      = response.Timeout;
            TracingConfigResponse tracingConfig = response.TracingConfig;
            string version                      = response.Version;

            #endregion
        }
        public void LambdaPublishVersion()
        {
            #region to-publish-a-version-of-a-lambda-function-1481650704986

            var response = client.PublishVersion(new PublishVersionRequest
            {
                CodeSha256   = "",
                Description  = "",
                FunctionName = "myFunction"
            });

            string codeSha256  = response.CodeSha256;
            long   codeSize    = response.CodeSize;
            string description = response.Description;
            EnvironmentResponse environment = response.Environment;
            string functionArn                  = response.FunctionArn;
            string functionName                 = response.FunctionName;
            string handler                      = response.Handler;
            string kmsKeyArn                    = response.KMSKeyArn;
            string lastModified                 = response.LastModified;
            string lastUpdateStatus             = response.LastUpdateStatus;
            int    memorySize                   = response.MemorySize;
            string revisionId                   = response.RevisionId;
            string role                         = response.Role;
            string runtime                      = response.Runtime;
            string state                        = response.State;
            int    timeout                      = response.Timeout;
            TracingConfigResponse tracingConfig = response.TracingConfig;
            string version                      = response.Version;

            #endregion
        }
        public void LambdaCreateFunction()
        {
            #region to-create-a-function-1586492061186

            var response = client.CreateFunction(new CreateFunctionRequest
            {
                Code = new FunctionCode {
                    S3Bucket = "my-bucket-1xpuxmplzrlbh",
                    S3Key    = "function.zip"
                },
                Description = "Process image objects from Amazon S3.",
                Environment = new Environment {
                    Variables = new Dictionary <string, string> {
                        { "BUCKET", "my-bucket-1xpuxmplzrlbh" },
                        { "PREFIX", "inbound" }
                    }
                },
                FunctionName = "my-function",
                Handler      = "index.handler",
                KMSKeyArn    = "arn:aws:kms:us-west-2:123456789012:key/b0844d6c-xmpl-4463-97a4-d49f50839966",
                MemorySize   = 256,
                Publish      = true,
                Role         = "arn:aws:iam::123456789012:role/lambda-role",
                Runtime      = "nodejs12.x",
                Tags         = new Dictionary <string, string> {
                    { "DEPARTMENT", "Assets" }
                },
                Timeout       = 15,
                TracingConfig = new TracingConfig {
                    Mode = "Active"
                }
            });

            string codeSha256  = response.CodeSha256;
            long   codeSize    = response.CodeSize;
            string description = response.Description;
            EnvironmentResponse environment = response.Environment;
            string functionArn                  = response.FunctionArn;
            string functionName                 = response.FunctionName;
            string handler                      = response.Handler;
            string kmsKeyArn                    = response.KMSKeyArn;
            string lastModified                 = response.LastModified;
            string lastUpdateStatus             = response.LastUpdateStatus;
            int    memorySize                   = response.MemorySize;
            string revisionId                   = response.RevisionId;
            string role                         = response.Role;
            string runtime                      = response.Runtime;
            string state                        = response.State;
            int    timeout                      = response.Timeout;
            TracingConfigResponse tracingConfig = response.TracingConfig;
            string version                      = response.Version;

            #endregion
        }