public void LambdaAddLayerVersionPermission()
        {
            #region to-add-permissions-to-a-layer-version-1586479797163

            var response = client.AddLayerVersionPermission(new AddLayerVersionPermissionRequest
            {
                Action        = "lambda:GetLayerVersion",
                LayerName     = "my-layer",
                Principal     = "223456789012",
                StatementId   = "xaccount",
                VersionNumber = 1
            });

            string revisionId = response.RevisionId;
            string statement  = response.Statement;

            #endregion
        }
 private Amazon.Lambda.Model.AddLayerVersionPermissionResponse CallAWSServiceOperation(IAmazonLambda client, Amazon.Lambda.Model.AddLayerVersionPermissionRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS Lambda", "AddLayerVersionPermission");
     try
     {
         #if DESKTOP
         return(client.AddLayerVersionPermission(request));
         #elif CORECLR
         return(client.AddLayerVersionPermissionAsync(request).GetAwaiter().GetResult());
         #else
                 #error "Unknown build edition"
         #endif
     }
     catch (AmazonServiceException exc)
     {
         var webException = exc.InnerException as System.Net.WebException;
         if (webException != null)
         {
             throw new Exception(Utils.Common.FormatNameResolutionFailureMessage(client.Config, webException.Message), webException);
         }
         throw;
     }
 }