/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the lambda-2015-03-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Net; using Amazon.Lambda.Model; using Amazon.Lambda.Model.Internal.MarshallTransformations; using Amazon.Lambda.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.Lambda { /// /// Implementation for accessing Lambda /// /// Lambda /// /// Overview /// /// /// /// Lambda is a compute service that lets you run code without provisioning or managing /// servers. Lambda runs your code on a high-availability compute infrastructure and performs /// all of the administration of the compute resources, including server and operating /// system maintenance, capacity provisioning and automatic scaling, code monitoring and /// logging. With Lambda, you can run code for virtually any type of application or backend /// service. For more information about the Lambda service, see What /// is Lambda in the Lambda Developer Guide. /// /// /// /// The Lambda API Reference provides information about each of the API methods, /// including details about the parameters in each API request and response. /// /// /// /// You can use Software Development Kits (SDKs), Integrated Development Environment (IDE) /// Toolkits, and command line tools to access the API. For installation instructions, /// see Tools for Amazon Web Services. /// /// /// /// For a list of Region-specific endpoints that Lambda supports, see Lambda /// endpoints and quotas in the Amazon Web Services General Reference.. /// /// /// /// When making the API calls, you will need to authenticate your request by providing /// a signature. Lambda supports signature version 4. For more information, see Signature /// Version 4 signing process in the Amazon Web Services General Reference.. /// /// /// /// /// CA certificates /// /// /// /// Because Amazon Web Services SDKs use the CA certificates from your computer, changes /// to the certificates on the Amazon Web Services servers can cause connection failures /// when you attempt to use an SDK. You can prevent these failures by keeping your computer's /// CA certificates and operating system up-to-date. If you encounter this issue in a /// corporate environment and do not manage your own computer, you might need to ask an /// administrator to assist with the update process. The following list shows minimum /// operating system and Java versions: /// /// /// /// When accessing the Lambda management console or Lambda API endpoints, whether through /// browsers or programmatically, you will need to ensure your client machines support /// any of the following CAs: /// /// /// /// Root certificates from the first two authorities are available from Amazon /// trust services, but keeping your computer up-to-date is the more straightforward /// solution. To learn more about ACM-provided certificates, see Amazon /// Web Services Certificate Manager FAQs. /// /// public partial class AmazonLambdaClient : AmazonServiceClient, IAmazonLambda { private static IServiceMetadata serviceMetadata = new AmazonLambdaMetadata(); #if BCL45 || AWS_ASYNC_ENUMERABLES_API private ILambdaPaginatorFactory _paginators; /// /// Paginators for the service /// public ILambdaPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new LambdaPaginatorFactory(this); } return this._paginators; } } #endif #region Constructors /// /// Constructs AmazonLambdaClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// /// <?xml version="1.0" encoding="utf-8" ?> /// <configuration> /// <appSettings> /// <add key="AWSProfileName" value="AWS Default"/> /// </appSettings> /// </configuration> /// /// /// public AmazonLambdaClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonLambdaConfig()) { } /// /// Constructs AmazonLambdaClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// /// <?xml version="1.0" encoding="utf-8" ?> /// <configuration> /// <appSettings> /// <add key="AWSProfileName" value="AWS Default"/> /// </appSettings> /// </configuration> /// /// /// /// The region to connect. public AmazonLambdaClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonLambdaConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonLambdaClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// /// <?xml version="1.0" encoding="utf-8" ?> /// <configuration> /// <appSettings> /// <add key="AWSProfileName" value="AWS Default"/> /// </appSettings> /// </configuration> /// /// /// /// The AmazonLambdaClient Configuration Object public AmazonLambdaClient(AmazonLambdaConfig config) : base(FallbackCredentialsFactory.GetCredentials(config), config){} /// /// Constructs AmazonLambdaClient with AWS Credentials /// /// AWS Credentials public AmazonLambdaClient(AWSCredentials credentials) : this(credentials, new AmazonLambdaConfig()) { } /// /// Constructs AmazonLambdaClient with AWS Credentials /// /// AWS Credentials /// The region to connect. public AmazonLambdaClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonLambdaConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonLambdaClient with AWS Credentials and an /// AmazonLambdaClient Configuration object. /// /// AWS Credentials /// The AmazonLambdaClient Configuration Object public AmazonLambdaClient(AWSCredentials credentials, AmazonLambdaConfig clientConfig) : base(credentials, clientConfig) { } /// /// Constructs AmazonLambdaClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key public AmazonLambdaClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonLambdaConfig()) { } /// /// Constructs AmazonLambdaClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// The region to connect. public AmazonLambdaClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonLambdaConfig() {RegionEndpoint=region}) { } /// /// Constructs AmazonLambdaClient with AWS Access Key ID, AWS Secret Key and an /// AmazonLambdaClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// The AmazonLambdaClient Configuration Object public AmazonLambdaClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonLambdaConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// /// Constructs AmazonLambdaClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token public AmazonLambdaClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonLambdaConfig()) { } /// /// Constructs AmazonLambdaClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token /// The region to connect. public AmazonLambdaClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonLambdaConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonLambdaClient with AWS Access Key ID, AWS Secret Key and an /// AmazonLambdaClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token /// The AmazonLambdaClient Configuration Object public AmazonLambdaClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonLambdaConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #region Overrides /// /// Creates the signer for the service. /// protected override AbstractAWSSigner CreateSigner() { return new AWS4Signer(); } /// /// Customize the pipeline /// /// protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) { pipeline.RemoveHandler(); pipeline.AddHandlerAfter(new AmazonLambdaEndpointResolver()); } /// /// Capture metadata for the service. /// protected override IServiceMetadata ServiceMetadata { get { return serviceMetadata; } } #endregion #region Dispose /// /// Disposes the service client. /// protected override void Dispose(bool disposing) { base.Dispose(disposing); } #endregion #region AddLayerVersionPermission /// /// Adds permissions to the resource-based policy of a version of an Lambda /// layer. Use this action to grant layer usage permission to other accounts. You /// can grant permission to a single account, all accounts in an organization, or all /// Amazon Web Services accounts. /// /// /// /// To revoke permission, call RemoveLayerVersionPermission with the statement /// ID that you specified when you added it. /// /// /// Container for the necessary parameters to execute the AddLayerVersionPermission service method. /// /// The response from the AddLayerVersionPermission service method, as returned by Lambda. /// /// One of the parameters in the request is not valid. /// /// /// The permissions policy for the resource is too large. For more information, see Lambda /// quotas. /// /// /// The RevisionId provided does not match the latest RevisionId for the Lambda function /// or alias. Call the GetFunction or the GetAlias API operation /// to retrieve the latest RevisionId for your resource. /// /// /// The resource already exists, or another operation is in progress. /// /// /// The resource specified in the request does not exist. /// /// /// The Lambda service encountered an internal error. /// /// /// The request throughput limit was exceeded. For more information, see Lambda /// quotas. /// /// REST API Reference for AddLayerVersionPermission Operation public virtual AddLayerVersionPermissionResponse AddLayerVersionPermission(AddLayerVersionPermissionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = AddLayerVersionPermissionRequestMarshaller.Instance; options.ResponseUnmarshaller = AddLayerVersionPermissionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the AddLayerVersionPermission operation. /// /// /// Container for the necessary parameters to execute the AddLayerVersionPermission operation on AmazonLambdaClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndAddLayerVersionPermission /// operation. /// REST API Reference for AddLayerVersionPermission Operation public virtual IAsyncResult BeginAddLayerVersionPermission(AddLayerVersionPermissionRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = AddLayerVersionPermissionRequestMarshaller.Instance; options.ResponseUnmarshaller = AddLayerVersionPermissionResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the AddLayerVersionPermission operation. /// /// /// The IAsyncResult returned by the call to BeginAddLayerVersionPermission. /// /// Returns a AddLayerVersionPermissionResult from Lambda. /// REST API Reference for AddLayerVersionPermission Operation public virtual AddLayerVersionPermissionResponse EndAddLayerVersionPermission(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region AddPermission /// /// Grants an Amazon Web Service, Amazon Web Services account, or Amazon Web Services /// organization permission to use a function. You can apply the policy at the function /// level, or specify a qualifier to restrict access to a single version or alias. If /// you use a qualifier, the invoker must use the full Amazon Resource Name (ARN) of that /// version or alias to invoke the function. Note: Lambda does not support adding policies /// to version $LATEST. /// /// /// /// To grant permission to another account, specify the account ID as the Principal. /// To grant permission to an organization defined in Organizations, specify the organization /// ID as the PrincipalOrgID. For Amazon Web Services, the principal is a /// domain-style identifier that the service defines, such as s3.amazonaws.com /// or sns.amazonaws.com. For Amazon Web Services, you can also specify the /// ARN of the associated resource as the SourceArn. If you grant permission /// to a service principal without specifying the source, other accounts could potentially /// configure resources in their account to invoke your Lambda function. /// /// /// /// This operation adds a statement to a resource-based permissions policy for the function. /// For more information about function policies, see Using /// resource-based policies for Lambda. /// /// /// Container for the necessary parameters to execute the AddPermission service method. /// /// The response from the AddPermission service method, as returned by Lambda. /// /// One of the parameters in the request is not valid. /// /// /// The permissions policy for the resource is too large. For more information, see Lambda /// quotas. /// /// /// The RevisionId provided does not match the latest RevisionId for the Lambda function /// or alias. Call the GetFunction or the GetAlias API operation /// to retrieve the latest RevisionId for your resource. /// /// /// The resource already exists, or another operation is in progress. /// /// /// The resource specified in the request does not exist. /// /// /// The Lambda service encountered an internal error. /// /// /// The request throughput limit was exceeded. For more information, see Lambda /// quotas. /// /// REST API Reference for AddPermission Operation public virtual AddPermissionResponse AddPermission(AddPermissionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = AddPermissionRequestMarshaller.Instance; options.ResponseUnmarshaller = AddPermissionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the AddPermission operation. /// /// /// Container for the necessary parameters to execute the AddPermission operation on AmazonLambdaClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndAddPermission /// operation. /// REST API Reference for AddPermission Operation public virtual IAsyncResult BeginAddPermission(AddPermissionRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = AddPermissionRequestMarshaller.Instance; options.ResponseUnmarshaller = AddPermissionResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the AddPermission operation. /// /// /// The IAsyncResult returned by the call to BeginAddPermission. /// /// Returns a AddPermissionResult from Lambda. /// REST API Reference for AddPermission Operation public virtual AddPermissionResponse EndAddPermission(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region CreateAlias /// /// Creates an alias /// for a Lambda function version. Use aliases to provide clients with a function identifier /// that you can update to invoke a different version. /// /// /// /// You can also map an alias to split invocation requests between two versions. Use the /// RoutingConfig parameter to specify a second version and the percentage /// of invocation requests that it receives. /// /// /// Container for the necessary parameters to execute the CreateAlias service method. /// /// The response from the CreateAlias service method, as returned by Lambda. /// /// One of the parameters in the request is not valid. /// /// /// The resource already exists, or another operation is in progress. /// /// /// The resource specified in the request does not exist. /// /// /// The Lambda service encountered an internal error. /// /// /// The request throughput limit was exceeded. For more information, see Lambda /// quotas. /// /// REST API Reference for CreateAlias Operation public virtual CreateAliasResponse CreateAlias(CreateAliasRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateAliasRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateAliasResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the CreateAlias operation. /// /// /// Container for the necessary parameters to execute the CreateAlias operation on AmazonLambdaClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateAlias /// operation. /// REST API Reference for CreateAlias Operation public virtual IAsyncResult BeginCreateAlias(CreateAliasRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateAliasRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateAliasResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the CreateAlias operation. /// /// /// The IAsyncResult returned by the call to BeginCreateAlias. /// /// Returns a CreateAliasResult from Lambda. /// REST API Reference for CreateAlias Operation public virtual CreateAliasResponse EndCreateAlias(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region CreateCodeSigningConfig /// /// Creates a code signing configuration. A code /// signing configuration defines a list of allowed signing profiles and defines the /// code-signing validation policy (action to be taken if deployment validation checks /// fail). /// /// Container for the necessary parameters to execute the CreateCodeSigningConfig service method. /// /// The response from the CreateCodeSigningConfig service method, as returned by Lambda. /// /// One of the parameters in the request is not valid. /// /// /// The Lambda service encountered an internal error. /// /// REST API Reference for CreateCodeSigningConfig Operation public virtual CreateCodeSigningConfigResponse CreateCodeSigningConfig(CreateCodeSigningConfigRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateCodeSigningConfigRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateCodeSigningConfigResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the CreateCodeSigningConfig operation. /// /// /// Container for the necessary parameters to execute the CreateCodeSigningConfig operation on AmazonLambdaClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateCodeSigningConfig /// operation. /// REST API Reference for CreateCodeSigningConfig Operation public virtual IAsyncResult BeginCreateCodeSigningConfig(CreateCodeSigningConfigRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateCodeSigningConfigRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateCodeSigningConfigResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the CreateCodeSigningConfig operation. /// /// /// The IAsyncResult returned by the call to BeginCreateCodeSigningConfig. /// /// Returns a CreateCodeSigningConfigResult from Lambda. /// REST API Reference for CreateCodeSigningConfig Operation public virtual CreateCodeSigningConfigResponse EndCreateCodeSigningConfig(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region CreateEventSourceMapping /// /// Creates a mapping between an event source and an Lambda function. Lambda reads items /// from the event source and invokes the function. /// /// /// /// For details about how to configure different event sources, see the following topics. /// /// /// /// /// The following error handling options are available only for stream sources (DynamoDB /// and Kinesis): /// ///
  • /// /// BisectBatchOnFunctionError – If the function returns an error, split /// the batch in two and retry. /// ///
  • /// /// DestinationConfig – Send discarded records to an Amazon SQS queue or /// Amazon SNS topic. /// ///
  • /// /// MaximumRecordAgeInSeconds – Discard records older than the specified /// age. The default value is infinite (-1). When set to infinite (-1), failed records /// are retried until the record expires /// ///
  • /// /// MaximumRetryAttempts – Discard records after the specified number of /// retries. The default value is infinite (-1). When set to infinite (-1), failed records /// are retried until the record expires. /// ///
  • /// /// ParallelizationFactor – Process multiple batches from each shard concurrently. /// ///
/// /// For information about which configuration parameters apply to each event source, see /// the following topics. /// /// ///
/// Container for the necessary parameters to execute the CreateEventSourceMapping service method. /// /// The response from the CreateEventSourceMapping service method, as returned by Lambda. /// /// One of the parameters in the request is not valid. /// /// /// The resource already exists, or another operation is in progress. /// /// /// The resource specified in the request does not exist. /// /// /// The Lambda service encountered an internal error. /// /// /// The request throughput limit was exceeded. For more information, see Lambda /// quotas. /// /// REST API Reference for CreateEventSourceMapping Operation public virtual CreateEventSourceMappingResponse CreateEventSourceMapping(CreateEventSourceMappingRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateEventSourceMappingRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateEventSourceMappingResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the CreateEventSourceMapping operation. /// /// /// Container for the necessary parameters to execute the CreateEventSourceMapping operation on AmazonLambdaClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateEventSourceMapping /// operation. /// REST API Reference for CreateEventSourceMapping Operation public virtual IAsyncResult BeginCreateEventSourceMapping(CreateEventSourceMappingRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateEventSourceMappingRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateEventSourceMappingResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the CreateEventSourceMapping operation. /// /// /// The IAsyncResult returned by the call to BeginCreateEventSourceMapping. /// /// Returns a CreateEventSourceMappingResult from Lambda. /// REST API Reference for CreateEventSourceMapping Operation public virtual CreateEventSourceMappingResponse EndCreateEventSourceMapping(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region CreateFunction /// /// Creates a Lambda function. To create a function, you need a deployment /// package and an execution /// role. The deployment package is a .zip file archive or container image that contains /// your function code. The execution role grants the function permission to use Amazon /// Web Services, such as Amazon CloudWatch Logs for log streaming and X-Ray for request /// tracing. /// /// /// /// If the deployment package is a container /// image, then you set the package type to Image. For a container image, /// the code property must include the URI of a container image in the Amazon ECR registry. /// You do not need to specify the handler and runtime properties. /// /// /// /// If the deployment package is a .zip /// file archive, then you set the package type to Zip. For a .zip file /// archive, the code property specifies the location of the .zip file. You must also /// specify the handler and runtime properties. The code in the deployment package must /// be compatible with the target instruction set architecture of the function (x86-64 /// or arm64). If you do not specify the architecture, then the default value /// is x86-64. /// /// /// /// When you create a function, Lambda provisions an instance of the function and its /// supporting resources. If your function connects to a VPC, this process can take a /// minute or so. During this time, you can't invoke or modify the function. The State, /// StateReason, and StateReasonCode fields in the response /// from GetFunctionConfiguration indicate when the function is ready to invoke. /// For more information, see Lambda /// function states. /// /// /// /// A function has an unpublished version, and can have published versions and aliases. /// The unpublished version changes when you update your function's code and configuration. /// A published version is a snapshot of your function code and configuration that can't /// be changed. An alias is a named resource that maps to a version, and can be changed /// to map to a different version. Use the Publish parameter to create version /// 1 of your function from its initial configuration. /// /// /// /// The other parameters let you configure version-specific and function-level settings. /// You can modify version-specific settings later with UpdateFunctionConfiguration. /// Function-level settings apply to both the unpublished and published versions of the /// function, and include tags (TagResource) and per-function concurrency limits /// (PutFunctionConcurrency). /// /// /// /// You can use code signing if your deployment package is a .zip file archive. To enable /// code signing for this function, specify the ARN of a code-signing configuration. When /// a user attempts to deploy a code package with UpdateFunctionCode, Lambda checks /// that the code package has a valid signature from a trusted publisher. The code-signing /// configuration includes set of signing profiles, which define the trusted publishers /// for this function. /// /// /// /// If another Amazon Web Services account or an Amazon Web Service invokes your function, /// use AddPermission to grant permission by creating a resource-based Identity /// and Access Management (IAM) policy. You can grant permissions at the function level, /// on a version, or on an alias. /// /// /// /// To invoke your function directly, use Invoke. To invoke your function in response /// to events in other Amazon Web Services, create an event source mapping (CreateEventSourceMapping), /// or configure a function trigger in the other service. For more information, see Invoking /// Lambda functions. /// /// /// Container for the necessary parameters to execute the CreateFunction service method. /// /// The response from the CreateFunction service method, as returned by Lambda. /// /// The specified code signing configuration does not exist. /// /// /// Your Amazon Web Services account has exceeded its maximum total code size. For more /// information, see Lambda /// quotas. /// /// /// The code signature failed one or more of the validation checks for signature mismatch /// or expiry, and the code signing policy is set to ENFORCE. Lambda blocks the deployment. /// /// /// The code signature failed the integrity check. If the integrity check fails, then /// Lambda blocks deployment, even if the code signing policy is set to WARN. /// /// /// One of the parameters in the request is not valid. /// /// /// The resource already exists, or another operation is in progress. /// /// /// The resource specified in the request does not exist. /// /// /// The Lambda service encountered an internal error. /// /// /// The request throughput limit was exceeded. For more information, see Lambda /// quotas. /// /// REST API Reference for CreateFunction Operation public virtual CreateFunctionResponse CreateFunction(CreateFunctionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateFunctionRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateFunctionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the CreateFunction operation. /// /// /// Container for the necessary parameters to execute the CreateFunction operation on AmazonLambdaClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateFunction /// operation. /// REST API Reference for CreateFunction Operation public virtual IAsyncResult BeginCreateFunction(CreateFunctionRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateFunctionRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateFunctionResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the CreateFunction operation. /// /// /// The IAsyncResult returned by the call to BeginCreateFunction. /// /// Returns a CreateFunctionResult from Lambda. /// REST API Reference for CreateFunction Operation public virtual CreateFunctionResponse EndCreateFunction(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region CreateFunctionUrlConfig /// /// Creates a Lambda function URL with the specified configuration parameters. A function /// URL is a dedicated HTTP(S) endpoint that you can use to invoke your function. /// /// Container for the necessary parameters to execute the CreateFunctionUrlConfig service method. /// /// The response from the CreateFunctionUrlConfig service method, as returned by Lambda. /// /// One of the parameters in the request is not valid. /// /// /// The resource already exists, or another operation is in progress. /// /// /// The resource specified in the request does not exist. /// /// /// The Lambda service encountered an internal error. /// /// /// The request throughput limit was exceeded. For more information, see Lambda /// quotas. /// /// REST API Reference for CreateFunctionUrlConfig Operation public virtual CreateFunctionUrlConfigResponse CreateFunctionUrlConfig(CreateFunctionUrlConfigRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateFunctionUrlConfigRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateFunctionUrlConfigResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the CreateFunctionUrlConfig operation. /// /// /// Container for the necessary parameters to execute the CreateFunctionUrlConfig operation on AmazonLambdaClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateFunctionUrlConfig /// operation. /// REST API Reference for CreateFunctionUrlConfig Operation public virtual IAsyncResult BeginCreateFunctionUrlConfig(CreateFunctionUrlConfigRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateFunctionUrlConfigRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateFunctionUrlConfigResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the CreateFunctionUrlConfig operation. /// /// /// The IAsyncResult returned by the call to BeginCreateFunctionUrlConfig. /// /// Returns a CreateFunctionUrlConfigResult from Lambda. /// REST API Reference for CreateFunctionUrlConfig Operation public virtual CreateFunctionUrlConfigResponse EndCreateFunctionUrlConfig(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DeleteAlias /// /// Deletes a Lambda function alias. /// /// Container for the necessary parameters to execute the DeleteAlias service method. /// /// The response from the DeleteAlias service method, as returned by Lambda. /// /// One of the parameters in the request is not valid. /// /// /// The resource already exists, or another operation is in progress. /// /// /// The Lambda service encountered an internal error. /// /// /// The request throughput limit was exceeded. For more information, see Lambda /// quotas. /// /// REST API Reference for DeleteAlias Operation public virtual DeleteAliasResponse DeleteAlias(DeleteAliasRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAliasRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAliasResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DeleteAlias operation. /// /// /// Container for the necessary parameters to execute the DeleteAlias operation on AmazonLambdaClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteAlias /// operation. /// REST API Reference for DeleteAlias Operation public virtual IAsyncResult BeginDeleteAlias(DeleteAliasRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAliasRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAliasResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DeleteAlias operation. /// /// /// The IAsyncResult returned by the call to BeginDeleteAlias. /// /// Returns a DeleteAliasResult from Lambda. /// REST API Reference for DeleteAlias Operation public virtual DeleteAliasResponse EndDeleteAlias(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DeleteCodeSigningConfig /// /// Deletes the code signing configuration. You can delete the code signing configuration /// only if no function is using it. /// /// Container for the necessary parameters to execute the DeleteCodeSigningConfig service method. /// /// The response from the DeleteCodeSigningConfig service method, as returned by Lambda. /// /// One of the parameters in the request is not valid. /// /// /// The resource already exists, or another operation is in progress. /// /// /// The resource specified in the request does not exist. /// /// /// The Lambda service encountered an internal error. /// /// REST API Reference for DeleteCodeSigningConfig Operation public virtual DeleteCodeSigningConfigResponse DeleteCodeSigningConfig(DeleteCodeSigningConfigRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteCodeSigningConfigRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteCodeSigningConfigResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DeleteCodeSigningConfig operation. /// /// /// Container for the necessary parameters to execute the DeleteCodeSigningConfig operation on AmazonLambdaClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteCodeSigningConfig /// operation. /// REST API Reference for DeleteCodeSigningConfig Operation public virtual IAsyncResult BeginDeleteCodeSigningConfig(DeleteCodeSigningConfigRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteCodeSigningConfigRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteCodeSigningConfigResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DeleteCodeSigningConfig operation. /// /// /// The IAsyncResult returned by the call to BeginDeleteCodeSigningConfig. /// /// Returns a DeleteCodeSigningConfigResult from Lambda. /// REST API Reference for DeleteCodeSigningConfig Operation public virtual DeleteCodeSigningConfigResponse EndDeleteCodeSigningConfig(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DeleteEventSourceMapping /// /// Deletes an event /// source mapping. You can get the identifier of a mapping from the output of ListEventSourceMappings. /// /// /// /// When you delete an event source mapping, it enters a Deleting state and /// might not be completely deleted for several seconds. /// /// /// Container for the necessary parameters to execute the DeleteEventSourceMapping service method. /// /// The response from the DeleteEventSourceMapping service method, as returned by Lambda. /// /// One of the parameters in the request is not valid. /// /// /// The resource already exists, or another operation is in progress. /// /// /// The operation conflicts with the resource's availability. For example, you tried to /// update an event source mapping in the CREATING state, or you tried to delete an event /// source mapping currently UPDATING. /// /// /// The resource specified in the request does not exist. /// /// /// The Lambda service encountered an internal error. /// /// /// The request throughput limit was exceeded. For more information, see Lambda /// quotas. /// /// REST API Reference for DeleteEventSourceMapping Operation public virtual DeleteEventSourceMappingResponse DeleteEventSourceMapping(DeleteEventSourceMappingRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteEventSourceMappingRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteEventSourceMappingResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DeleteEventSourceMapping operation. /// /// /// Container for the necessary parameters to execute the DeleteEventSourceMapping operation on AmazonLambdaClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteEventSourceMapping /// operation. /// REST API Reference for DeleteEventSourceMapping Operation public virtual IAsyncResult BeginDeleteEventSourceMapping(DeleteEventSourceMappingRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteEventSourceMappingRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteEventSourceMappingResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DeleteEventSourceMapping operation. /// /// /// The IAsyncResult returned by the call to BeginDeleteEventSourceMapping. /// /// Returns a DeleteEventSourceMappingResult from Lambda. /// REST API Reference for DeleteEventSourceMapping Operation public virtual DeleteEventSourceMappingResponse EndDeleteEventSourceMapping(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DeleteFunction /// /// Deletes a Lambda function. To delete a specific function version, use the Qualifier /// parameter. Otherwise, all versions and aliases are deleted. This doesn't require the /// user to have explicit permissions for DeleteAlias. /// /// /// /// To delete Lambda event source mappings that invoke a function, use DeleteEventSourceMapping. /// For Amazon Web Services and resources that invoke your function directly, delete the /// trigger in the service where you originally configured it. /// /// /// The name of the Lambda function or version.

Name formats

  • Function namemy-function (name-only), my-function:1 (with version).
  • Function ARNarn:aws:lambda:us-west-2:123456789012:function:my-function.
  • Partial ARN123456789012:function:my-function.
You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length. /// /// The response from the DeleteFunction service method, as returned by Lambda. /// /// One of the parameters in the request is not valid. /// /// /// The resource already exists, or another operation is in progress. /// /// /// The resource specified in the request does not exist. /// /// /// The Lambda service encountered an internal error. /// /// /// The request throughput limit was exceeded. For more information, see Lambda /// quotas. /// /// REST API Reference for DeleteFunction Operation public virtual DeleteFunctionResponse DeleteFunction(string functionName) { var request = new DeleteFunctionRequest(); request.FunctionName = functionName; return DeleteFunction(request); } /// /// Deletes a Lambda function. To delete a specific function version, use the Qualifier /// parameter. Otherwise, all versions and aliases are deleted. This doesn't require the /// user to have explicit permissions for DeleteAlias. /// /// /// /// To delete Lambda event source mappings that invoke a function, use DeleteEventSourceMapping. /// For Amazon Web Services and resources that invoke your function directly, delete the /// trigger in the service where you originally configured it. /// /// /// Container for the necessary parameters to execute the DeleteFunction service method. /// /// The response from the DeleteFunction service method, as returned by Lambda. /// /// One of the parameters in the request is not valid. /// /// /// The resource already exists, or another operation is in progress. /// /// /// The resource specified in the request does not exist. /// /// /// The Lambda service encountered an internal error. /// /// /// The request throughput limit was exceeded. For more information, see Lambda /// quotas. /// /// REST API Reference for DeleteFunction Operation public virtual DeleteFunctionResponse DeleteFunction(DeleteFunctionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteFunctionRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteFunctionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DeleteFunction operation. /// /// /// Container for the necessary parameters to execute the DeleteFunction operation on AmazonLambdaClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteFunction /// operation. /// REST API Reference for DeleteFunction Operation public virtual IAsyncResult BeginDeleteFunction(DeleteFunctionRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteFunctionRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteFunctionResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DeleteFunction operation. /// /// /// The IAsyncResult returned by the call to BeginDeleteFunction. /// /// Returns a DeleteFunctionResult from Lambda. /// REST API Reference for DeleteFunction Operation public virtual DeleteFunctionResponse EndDeleteFunction(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DeleteFunctionCodeSigningConfig /// /// Removes the code signing configuration from the function. /// /// Container for the necessary parameters to execute the DeleteFunctionCodeSigningConfig service method. /// /// The response from the DeleteFunctionCodeSigningConfig service method, as returned by Lambda. /// /// The specified code signing configuration does not exist. /// /// /// One of the parameters in the request is not valid. /// /// /// The resource already exists, or another operation is in progress. /// /// /// The resource specified in the request does not exist. /// /// /// The Lambda service encountered an internal error. /// /// /// The request throughput limit was exceeded. For more information, see Lambda /// quotas. /// /// REST API Reference for DeleteFunctionCodeSigningConfig Operation public virtual DeleteFunctionCodeSigningConfigResponse DeleteFunctionCodeSigningConfig(DeleteFunctionCodeSigningConfigRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteFunctionCodeSigningConfigRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteFunctionCodeSigningConfigResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DeleteFunctionCodeSigningConfig operation. /// /// /// Container for the necessary parameters to execute the DeleteFunctionCodeSigningConfig operation on AmazonLambdaClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteFunctionCodeSigningConfig /// operation. /// REST API Reference for DeleteFunctionCodeSigningConfig Operation public virtual IAsyncResult BeginDeleteFunctionCodeSigningConfig(DeleteFunctionCodeSigningConfigRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteFunctionCodeSigningConfigRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteFunctionCodeSigningConfigResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DeleteFunctionCodeSigningConfig operation. /// /// /// The IAsyncResult returned by the call to BeginDeleteFunctionCodeSigningConfig. /// /// Returns a DeleteFunctionCodeSigningConfigResult from Lambda. /// REST API Reference for DeleteFunctionCodeSigningConfig Operation public virtual DeleteFunctionCodeSigningConfigResponse EndDeleteFunctionCodeSigningConfig(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DeleteFunctionConcurrency /// /// Removes a concurrent execution limit from a function. /// /// Container for the necessary parameters to execute the DeleteFunctionConcurrency service method. /// /// The response from the DeleteFunctionConcurrency service method, as returned by Lambda. /// /// One of the parameters in the request is not valid. /// /// /// The resource already exists, or another operation is in progress. /// /// /// The resource specified in the request does not exist. /// /// /// The Lambda service encountered an internal error. /// /// /// The request throughput limit was exceeded. For more information, see Lambda /// quotas. /// /// REST API Reference for DeleteFunctionConcurrency Operation public virtual DeleteFunctionConcurrencyResponse DeleteFunctionConcurrency(DeleteFunctionConcurrencyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteFunctionConcurrencyRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteFunctionConcurrencyResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DeleteFunctionConcurrency operation. /// /// /// Container for the necessary parameters to execute the DeleteFunctionConcurrency operation on AmazonLambdaClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteFunctionConcurrency /// operation. /// REST API Reference for DeleteFunctionConcurrency Operation public virtual IAsyncResult BeginDeleteFunctionConcurrency(DeleteFunctionConcurrencyRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteFunctionConcurrencyRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteFunctionConcurrencyResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DeleteFunctionConcurrency operation. /// /// /// The IAsyncResult returned by the call to BeginDeleteFunctionConcurrency. /// /// Returns a DeleteFunctionConcurrencyResult from Lambda. /// REST API Reference for DeleteFunctionConcurrency Operation public virtual DeleteFunctionConcurrencyResponse EndDeleteFunctionConcurrency(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DeleteFunctionEventInvokeConfig /// /// Deletes the configuration for asynchronous invocation for a function, version, or /// alias. /// /// /// /// To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig. /// /// /// Container for the necessary parameters to execute the DeleteFunctionEventInvokeConfig service method. /// /// The response from the DeleteFunctionEventInvokeConfig service method, as returned by Lambda. /// /// One of the parameters in the request is not valid. /// /// /// The resource already exists, or another operation is in progress. /// /// /// The resource specified in the request does not exist. /// /// /// The Lambda service encountered an internal error. /// /// /// The request throughput limit was exceeded. For more information, see Lambda /// quotas. /// /// REST API Reference for DeleteFunctionEventInvokeConfig Operation public virtual DeleteFunctionEventInvokeConfigResponse DeleteFunctionEventInvokeConfig(DeleteFunctionEventInvokeConfigRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteFunctionEventInvokeConfigRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteFunctionEventInvokeConfigResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DeleteFunctionEventInvokeConfig operation. /// /// /// Container for the necessary parameters to execute the DeleteFunctionEventInvokeConfig operation on AmazonLambdaClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteFunctionEventInvokeConfig /// operation. /// REST API Reference for DeleteFunctionEventInvokeConfig Operation public virtual IAsyncResult BeginDeleteFunctionEventInvokeConfig(DeleteFunctionEventInvokeConfigRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteFunctionEventInvokeConfigRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteFunctionEventInvokeConfigResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DeleteFunctionEventInvokeConfig operation. /// /// /// The IAsyncResult returned by the call to BeginDeleteFunctionEventInvokeConfig. /// /// Returns a DeleteFunctionEventInvokeConfigResult from Lambda. /// REST API Reference for DeleteFunctionEventInvokeConfig Operation public virtual DeleteFunctionEventInvokeConfigResponse EndDeleteFunctionEventInvokeConfig(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DeleteFunctionUrlConfig /// /// Deletes a Lambda function URL. When you delete a function URL, you can't recover it. /// Creating a new function URL results in a different URL address. /// /// Container for the necessary parameters to execute the DeleteFunctionUrlConfig service method. /// /// The response from the DeleteFunctionUrlConfig service method, as returned by Lambda. /// /// The resource already exists, or another operation is in progress. /// /// /// The resource specified in the request does not exist. /// /// /// The Lambda service encountered an internal error. /// /// /// The request throughput limit was exceeded. For more information, see Lambda /// quotas. /// /// REST API Reference for DeleteFunctionUrlConfig Operation public virtual DeleteFunctionUrlConfigResponse DeleteFunctionUrlConfig(DeleteFunctionUrlConfigRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteFunctionUrlConfigRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteFunctionUrlConfigResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DeleteFunctionUrlConfig operation. /// /// /// Container for the necessary parameters to execute the DeleteFunctionUrlConfig operation on AmazonLambdaClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteFunctionUrlConfig /// operation. /// REST API Reference for DeleteFunctionUrlConfig Operation public virtual IAsyncResult BeginDeleteFunctionUrlConfig(DeleteFunctionUrlConfigRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteFunctionUrlConfigRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteFunctionUrlConfigResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DeleteFunctionUrlConfig operation. /// /// /// The IAsyncResult returned by the call to BeginDeleteFunctionUrlConfig. /// /// Returns a DeleteFunctionUrlConfigResult from Lambda. /// REST API Reference for DeleteFunctionUrlConfig Operation public virtual DeleteFunctionUrlConfigResponse EndDeleteFunctionUrlConfig(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DeleteLayerVersion /// /// Deletes a version of an Lambda /// layer. Deleted versions can no longer be viewed or added to functions. To avoid /// breaking functions, a copy of the version remains in Lambda until no functions refer /// to it. /// /// Container for the necessary parameters to execute the DeleteLayerVersion service method. /// /// The response from the DeleteLayerVersion service method, as returned by Lambda. /// /// The Lambda service encountered an internal error. /// /// /// The request throughput limit was exceeded. For more information, see Lambda /// quotas. /// /// REST API Reference for DeleteLayerVersion Operation public virtual DeleteLayerVersionResponse DeleteLayerVersion(DeleteLayerVersionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteLayerVersionRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteLayerVersionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DeleteLayerVersion operation. /// /// /// Container for the necessary parameters to execute the DeleteLayerVersion operation on AmazonLambdaClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteLayerVersion /// operation. /// REST API Reference for DeleteLayerVersion Operation public virtual IAsyncResult BeginDeleteLayerVersion(DeleteLayerVersionRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteLayerVersionRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteLayerVersionResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DeleteLayerVersion operation. /// /// /// The IAsyncResult returned by the call to BeginDeleteLayerVersion. /// /// Returns a DeleteLayerVersionResult from Lambda. /// REST API Reference for DeleteLayerVersion Operation public virtual DeleteLayerVersionResponse EndDeleteLayerVersion(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DeleteProvisionedConcurrencyConfig /// /// Deletes the provisioned concurrency configuration for a function. /// /// Container for the necessary parameters to execute the DeleteProvisionedConcurrencyConfig service method. /// /// The response from the DeleteProvisionedConcurrencyConfig service method, as returned by Lambda. /// /// One of the parameters in the request is not valid. /// /// /// The resource already exists, or another operation is in progress. /// /// /// The resource specified in the request does not exist. /// /// /// The Lambda service encountered an internal error. /// /// /// The request throughput limit was exceeded. For more information, see Lambda /// quotas. /// /// REST API Reference for DeleteProvisionedConcurrencyConfig Operation public virtual DeleteProvisionedConcurrencyConfigResponse DeleteProvisionedConcurrencyConfig(DeleteProvisionedConcurrencyConfigRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteProvisionedConcurrencyConfigRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteProvisionedConcurrencyConfigResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DeleteProvisionedConcurrencyConfig operation. /// /// /// Container for the necessary parameters to execute the DeleteProvisionedConcurrencyConfig operation on AmazonLambdaClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteProvisionedConcurrencyConfig /// operation. /// REST API Reference for DeleteProvisionedConcurrencyConfig Operation public virtual IAsyncResult BeginDeleteProvisionedConcurrencyConfig(DeleteProvisionedConcurrencyConfigRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteProvisionedConcurrencyConfigRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteProvisionedConcurrencyConfigResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DeleteProvisionedConcurrencyConfig operation. /// /// /// The IAsyncResult returned by the call to BeginDeleteProvisionedConcurrencyConfig. /// /// Returns a DeleteProvisionedConcurrencyConfigResult from Lambda. /// REST API Reference for DeleteProvisionedConcurrencyConfig Operation public virtual DeleteProvisionedConcurrencyConfigResponse EndDeleteProvisionedConcurrencyConfig(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region GetAccountSettings /// /// Retrieves details about your account's limits /// and usage in an Amazon Web Services Region. /// /// Container for the necessary parameters to execute the GetAccountSettings service method. /// /// The response from the GetAccountSettings service method, as returned by Lambda. /// /// The Lambda service encountered an internal error. /// /// /// The request throughput limit was exceeded. For more information, see Lambda /// quotas. /// /// REST API Reference for GetAccountSettings Operation public virtual GetAccountSettingsResponse GetAccountSettings(GetAccountSettingsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetAccountSettingsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetAccountSettingsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the GetAccountSettings operation. /// /// /// Container for the necessary parameters to execute the GetAccountSettings operation on AmazonLambdaClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetAccountSettings /// operation. /// REST API Reference for GetAccountSettings Operation public virtual IAsyncResult BeginGetAccountSettings(GetAccountSettingsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetAccountSettingsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetAccountSettingsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GetAccountSettings operation. /// /// /// The IAsyncResult returned by the call to BeginGetAccountSettings. /// /// Returns a GetAccountSettingsResult from Lambda. /// REST API Reference for GetAccountSettings Operation public virtual GetAccountSettingsResponse EndGetAccountSettings(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region GetAlias /// /// Returns details about a Lambda function alias. /// /// Container for the necessary parameters to execute the GetAlias service method. /// /// The response from the GetAlias service method, as returned by Lambda. /// /// One of the parameters in the request is not valid. /// /// /// The resource specified in the request does not exist. /// /// /// The Lambda service encountered an internal error. /// /// /// The request throughput limit was exceeded. For more information, see Lambda /// quotas. /// /// REST API Reference for GetAlias Operation public virtual GetAliasResponse GetAlias(GetAliasRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetAliasRequestMarshaller.Instance; options.ResponseUnmarshaller = GetAliasResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the GetAlias operation. /// /// /// Container for the necessary parameters to execute the GetAlias operation on AmazonLambdaClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetAlias /// operation. /// REST API Reference for GetAlias Operation public virtual IAsyncResult BeginGetAlias(GetAliasRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetAliasRequestMarshaller.Instance; options.ResponseUnmarshaller = GetAliasResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GetAlias operation. /// /// /// The IAsyncResult returned by the call to BeginGetAlias. /// /// Returns a GetAliasResult from Lambda. /// REST API Reference for GetAlias Operation public virtual GetAliasResponse EndGetAlias(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region GetCodeSigningConfig /// /// Returns information about the specified code signing configuration. /// /// Container for the necessary parameters to execute the GetCodeSigningConfig service method. /// /// The response from the GetCodeSigningConfig service method, as returned by Lambda. /// /// One of the parameters in the request is not valid. /// /// /// The resource specified in the request does not exist. /// /// /// The Lambda service encountered an internal error. /// /// REST API Reference for GetCodeSigningConfig Operation public virtual GetCodeSigningConfigResponse GetCodeSigningConfig(GetCodeSigningConfigRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetCodeSigningConfigRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCodeSigningConfigResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the GetCodeSigningConfig operation. /// /// /// Container for the necessary parameters to execute the GetCodeSigningConfig operation on AmazonLambdaClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetCodeSigningConfig /// operation. /// REST API Reference for GetCodeSigningConfig Operation public virtual IAsyncResult BeginGetCodeSigningConfig(GetCodeSigningConfigRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetCodeSigningConfigRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCodeSigningConfigResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GetCodeSigningConfig operation. /// /// /// The IAsyncResult returned by the call to BeginGetCodeSigningConfig. /// /// Returns a GetCodeSigningConfigResult from Lambda. /// REST API Reference for GetCodeSigningConfig Operation public virtual GetCodeSigningConfigResponse EndGetCodeSigningConfig(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region GetEventSourceMapping /// /// Returns details about an event source mapping. You can get the identifier of a mapping /// from the output of ListEventSourceMappings. /// /// Container for the necessary parameters to execute the GetEventSourceMapping service method. /// /// The response from the GetEventSourceMapping service method, as returned by Lambda. /// /// One of the parameters in the request is not valid. /// /// /// The resource specified in the request does not exist. /// /// /// The Lambda service encountered an internal error. /// /// /// The request throughput limit was exceeded. For more information, see Lambda /// quotas. /// /// REST API Reference for GetEventSourceMapping Operation public virtual GetEventSourceMappingResponse GetEventSourceMapping(GetEventSourceMappingRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetEventSourceMappingRequestMarshaller.Instance; options.ResponseUnmarshaller = GetEventSourceMappingResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the GetEventSourceMapping operation. /// /// /// Container for the necessary parameters to execute the GetEventSourceMapping operation on AmazonLambdaClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetEventSourceMapping /// operation. /// REST API Reference for GetEventSourceMapping Operation public virtual IAsyncResult BeginGetEventSourceMapping(GetEventSourceMappingRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetEventSourceMappingRequestMarshaller.Instance; options.ResponseUnmarshaller = GetEventSourceMappingResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GetEventSourceMapping operation. /// /// /// The IAsyncResult returned by the call to BeginGetEventSourceMapping. /// /// Returns a GetEventSourceMappingResult from Lambda. /// REST API Reference for GetEventSourceMapping Operation public virtual GetEventSourceMappingResponse EndGetEventSourceMapping(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region GetFunction /// /// Returns information about the function or function version, with a link to download /// the deployment package that's valid for 10 minutes. If you specify a function version, /// only details that are specific to that version are returned. /// /// The name of the Lambda function, version, or alias.

Name formats

  • Function namemy-function (name-only), my-function:v1 (with alias).
  • Function ARNarn:aws:lambda:us-west-2:123456789012:function:my-function.
  • Partial ARN123456789012:function:my-function.
You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length. /// /// The response from the GetFunction service method, as returned by Lambda. /// /// One of the parameters in the request is not valid. /// /// /// The resource specified in the request does not exist. /// /// /// The Lambda service encountered an internal error. /// /// /// The request throughput limit was exceeded. For more information, see Lambda /// quotas. /// /// REST API Reference for GetFunction Operation public virtual GetFunctionResponse GetFunction(string functionName) { var request = new GetFunctionRequest(); request.FunctionName = functionName; return GetFunction(request); } /// /// Returns information about the function or function version, with a link to download /// the deployment package that's valid for 10 minutes. If you specify a function version, /// only details that are specific to that version are returned. /// /// Container for the necessary parameters to execute the GetFunction service method. /// /// The response from the GetFunction service method, as returned by Lambda. /// /// One of the parameters in the request is not valid. /// /// /// The resource specified in the request does not exist. /// /// /// The Lambda service encountered an internal error. /// /// /// The request throughput limit was exceeded. For more information, see Lambda /// quotas. /// /// REST API Reference for GetFunction Operation public virtual GetFunctionResponse GetFunction(GetFunctionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetFunctionRequestMarshaller.Instance; options.ResponseUnmarshaller = GetFunctionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the GetFunction operation. /// /// /// Container for the necessary parameters to execute the GetFunction operation on AmazonLambdaClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetFunction /// operation. /// REST API Reference for GetFunction Operation public virtual IAsyncResult BeginGetFunction(GetFunctionRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetFunctionRequestMarshaller.Instance; options.ResponseUnmarshaller = GetFunctionResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GetFunction operation. /// /// /// The IAsyncResult returned by the call to BeginGetFunction. /// /// Returns a GetFunctionResult from Lambda. /// REST API Reference for GetFunction Operation public virtual GetFunctionResponse EndGetFunction(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region GetFunctionCodeSigningConfig /// /// Returns the code signing configuration for the specified function. /// /// Container for the necessary parameters to execute the GetFunctionCodeSigningConfig service method. /// /// The response from the GetFunctionCodeSigningConfig service method, as returned by Lambda. /// /// One of the parameters in the request is not valid. /// /// /// The resource specified in the request does not exist. /// /// /// The Lambda service encountered an internal error. /// /// /// The request throughput limit was exceeded. For more information, see Lambda /// quotas. /// /// REST API Reference for GetFunctionCodeSigningConfig Operation public virtual GetFunctionCodeSigningConfigResponse GetFunctionCodeSigningConfig(GetFunctionCodeSigningConfigRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetFunctionCodeSigningConfigRequestMarshaller.Instance; options.ResponseUnmarshaller = GetFunctionCodeSigningConfigResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the GetFunctionCodeSigningConfig operation. /// /// /// Container for the necessary parameters to execute the GetFunctionCodeSigningConfig operation on AmazonLambdaClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetFunctionCodeSigningConfig /// operation. /// REST API Reference for GetFunctionCodeSigningConfig Operation public virtual IAsyncResult BeginGetFunctionCodeSigningConfig(GetFunctionCodeSigningConfigRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetFunctionCodeSigningConfigRequestMarshaller.Instance; options.ResponseUnmarshaller = GetFunctionCodeSigningConfigResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GetFunctionCodeSigningConfig operation. /// /// /// The IAsyncResult returned by the call to BeginGetFunctionCodeSigningConfig. /// /// Returns a GetFunctionCodeSigningConfigResult from Lambda. /// REST API Reference for GetFunctionCodeSigningConfig Operation public virtual GetFunctionCodeSigningConfigResponse EndGetFunctionCodeSigningConfig(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region GetFunctionConcurrency /// /// Returns details about the reserved concurrency configuration for a function. To set /// a concurrency limit for a function, use PutFunctionConcurrency. /// /// Container for the necessary parameters to execute the GetFunctionConcurrency service method. /// /// The response from the GetFunctionConcurrency service method, as returned by Lambda. /// /// One of the parameters in the request is not valid. /// /// /// The resource specified in the request does not exist. /// /// /// The Lambda service encountered an internal error. /// /// /// The request throughput limit was exceeded. For more information, see Lambda /// quotas. /// /// REST API Reference for GetFunctionConcurrency Operation public virtual GetFunctionConcurrencyResponse GetFunctionConcurrency(GetFunctionConcurrencyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetFunctionConcurrencyRequestMarshaller.Instance; options.ResponseUnmarshaller = GetFunctionConcurrencyResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the GetFunctionConcurrency operation. /// /// /// Container for the necessary parameters to execute the GetFunctionConcurrency operation on AmazonLambdaClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetFunctionConcurrency /// operation. /// REST API Reference for GetFunctionConcurrency Operation public virtual IAsyncResult BeginGetFunctionConcurrency(GetFunctionConcurrencyRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetFunctionConcurrencyRequestMarshaller.Instance; options.ResponseUnmarshaller = GetFunctionConcurrencyResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GetFunctionConcurrency operation. /// /// /// The IAsyncResult returned by the call to BeginGetFunctionConcurrency. /// /// Returns a GetFunctionConcurrencyResult from Lambda. /// REST API Reference for GetFunctionConcurrency Operation public virtual GetFunctionConcurrencyResponse EndGetFunctionConcurrency(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region GetFunctionConfiguration /// /// Returns the version-specific settings of a Lambda function or version. The output /// includes only options that can vary between versions of a function. To modify these /// settings, use UpdateFunctionConfiguration. /// /// /// /// To get all of a function's details, including function-level settings, use GetFunction. /// /// /// The name of the Lambda function, version, or alias.

Name formats

  • Function namemy-function (name-only), my-function:v1 (with alias).
  • Function ARNarn:aws:lambda:us-west-2:123456789012:function:my-function.
  • Partial ARN123456789012:function:my-function.
You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length. /// /// The response from the GetFunctionConfiguration service method, as returned by Lambda. /// /// One of the parameters in the request is not valid. /// /// /// The resource specified in the request does not exist. /// /// /// The Lambda service encountered an internal error. /// /// /// The request throughput limit was exceeded. For more information, see Lambda /// quotas. /// /// REST API Reference for GetFunctionConfiguration Operation public virtual GetFunctionConfigurationResponse GetFunctionConfiguration(string functionName) { var request = new GetFunctionConfigurationRequest(); request.FunctionName = functionName; return GetFunctionConfiguration(request); } /// /// Returns the version-specific settings of a Lambda function or version. The output /// includes only options that can vary between versions of a function. To modify these /// settings, use UpdateFunctionConfiguration. /// /// /// /// To get all of a function's details, including function-level settings, use GetFunction. /// /// /// Container for the necessary parameters to execute the GetFunctionConfiguration service method. /// /// The response from the GetFunctionConfiguration service method, as returned by Lambda. /// /// One of the parameters in the request is not valid. /// /// /// The resource specified in the request does not exist. /// /// /// The Lambda service encountered an internal error. /// /// /// The request throughput limit was exceeded. For more information, see Lambda /// quotas. /// /// REST API Reference for GetFunctionConfiguration Operation public virtual GetFunctionConfigurationResponse GetFunctionConfiguration(GetFunctionConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetFunctionConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetFunctionConfigurationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the GetFunctionConfiguration operation. /// /// /// Container for the necessary parameters to execute the GetFunctionConfiguration operation on AmazonLambdaClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetFunctionConfiguration /// operation. /// REST API Reference for GetFunctionConfiguration Operation public virtual IAsyncResult BeginGetFunctionConfiguration(GetFunctionConfigurationRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetFunctionConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetFunctionConfigurationResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GetFunctionConfiguration operation. /// /// /// The IAsyncResult returned by the call to BeginGetFunctionConfiguration. /// /// Returns a GetFunctionConfigurationResult from Lambda. /// REST API Reference for GetFunctionConfiguration Operation public virtual GetFunctionConfigurationResponse EndGetFunctionConfiguration(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region GetFunctionEventInvokeConfig /// /// Retrieves the configuration for asynchronous invocation for a function, version, or /// alias. /// /// /// /// To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig. /// /// /// Container for the necessary parameters to execute the GetFunctionEventInvokeConfig service method. /// /// The response from the GetFunctionEventInvokeConfig service method, as returned by Lambda. /// /// One of the parameters in the request is not valid. /// /// /// The resource specified in the request does not exist. /// /// /// The Lambda service encountered an internal error. /// /// /// The request throughput limit was exceeded. For more information, see Lambda /// quotas. /// /// REST API Reference for GetFunctionEventInvokeConfig Operation public virtual GetFunctionEventInvokeConfigResponse GetFunctionEventInvokeConfig(GetFunctionEventInvokeConfigRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetFunctionEventInvokeConfigRequestMarshaller.Instance; options.ResponseUnmarshaller = GetFunctionEventInvokeConfigResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the GetFunctionEventInvokeConfig operation. /// /// /// Container for the necessary parameters to execute the GetFunctionEventInvokeConfig operation on AmazonLambdaClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetFunctionEventInvokeConfig /// operation. /// REST API Reference for GetFunctionEventInvokeConfig Operation public virtual IAsyncResult BeginGetFunctionEventInvokeConfig(GetFunctionEventInvokeConfigRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetFunctionEventInvokeConfigRequestMarshaller.Instance; options.ResponseUnmarshaller = GetFunctionEventInvokeConfigResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GetFunctionEventInvokeConfig operation. /// /// /// The IAsyncResult returned by the call to BeginGetFunctionEventInvokeConfig. /// /// Returns a GetFunctionEventInvokeConfigResult from Lambda. /// REST API Reference for GetFunctionEventInvokeConfig Operation public virtual GetFunctionEventInvokeConfigResponse EndGetFunctionEventInvokeConfig(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region GetFunctionUrlConfig /// /// Returns details about a Lambda function URL. /// /// Container for the necessary parameters to execute the GetFunctionUrlConfig service method. /// /// The response from the GetFunctionUrlConfig service method, as returned by Lambda. /// /// One of the parameters in the request is not valid. /// /// /// The resource specified in the request does not exist. /// /// /// The Lambda service encountered an internal error. /// /// /// The request throughput limit was exceeded. For more information, see Lambda /// quotas. /// /// REST API Reference for GetFunctionUrlConfig Operation public virtual GetFunctionUrlConfigResponse GetFunctionUrlConfig(GetFunctionUrlConfigRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetFunctionUrlConfigRequestMarshaller.Instance; options.ResponseUnmarshaller = GetFunctionUrlConfigResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the GetFunctionUrlConfig operation. /// /// /// Container for the necessary parameters to execute the GetFunctionUrlConfig operation on AmazonLambdaClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetFunctionUrlConfig /// operation. /// REST API Reference for GetFunctionUrlConfig Operation public virtual IAsyncResult BeginGetFunctionUrlConfig(GetFunctionUrlConfigRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetFunctionUrlConfigRequestMarshaller.Instance; options.ResponseUnmarshaller = GetFunctionUrlConfigResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GetFunctionUrlConfig operation. /// /// /// The IAsyncResult returned by the call to BeginGetFunctionUrlConfig. /// /// Returns a GetFunctionUrlConfigResult from Lambda. /// REST API Reference for GetFunctionUrlConfig Operation public virtual GetFunctionUrlConfigResponse EndGetFunctionUrlConfig(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region GetLayerVersion /// /// Returns information about a version of an Lambda /// layer, with a link to download the layer archive that's valid for 10 minutes. /// /// Container for the necessary parameters to execute the GetLayerVersion service method. /// /// The response from the GetLayerVersion service method, as returned by Lambda. /// /// One of the parameters in the request is not valid. /// /// /// The resource specified in the request does not exist. /// /// /// The Lambda service encountered an internal error. /// /// /// The request throughput limit was exceeded. For more information, see Lambda /// quotas. /// /// REST API Reference for GetLayerVersion Operation public virtual GetLayerVersionResponse GetLayerVersion(GetLayerVersionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetLayerVersionRequestMarshaller.Instance; options.ResponseUnmarshaller = GetLayerVersionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the GetLayerVersion operation. /// /// /// Container for the necessary parameters to execute the GetLayerVersion operation on AmazonLambdaClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetLayerVersion /// operation. /// REST API Reference for GetLayerVersion Operation public virtual IAsyncResult BeginGetLayerVersion(GetLayerVersionRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetLayerVersionRequestMarshaller.Instance; options.ResponseUnmarshaller = GetLayerVersionResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GetLayerVersion operation. /// /// /// The IAsyncResult returned by the call to BeginGetLayerVersion. /// /// Returns a GetLayerVersionResult from Lambda. /// REST API Reference for GetLayerVersion Operation public virtual GetLayerVersionResponse EndGetLayerVersion(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region GetLayerVersionByArn /// /// Returns information about a version of an Lambda /// layer, with a link to download the layer archive that's valid for 10 minutes. /// /// Container for the necessary parameters to execute the GetLayerVersionByArn service method. /// /// The response from the GetLayerVersionByArn service method, as returned by Lambda. /// /// One of the parameters in the request is not valid. /// /// /// The resource specified in the request does not exist. /// /// /// The Lambda service encountered an internal error. /// /// /// The request throughput limit was exceeded. For more information, see Lambda /// quotas. /// /// REST API Reference for GetLayerVersionByArn Operation public virtual GetLayerVersionByArnResponse GetLayerVersionByArn(GetLayerVersionByArnRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetLayerVersionByArnRequestMarshaller.Instance; options.ResponseUnmarshaller = GetLayerVersionByArnResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the GetLayerVersionByArn operation. /// /// /// Container for the necessary parameters to execute the GetLayerVersionByArn operation on AmazonLambdaClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetLayerVersionByArn /// operation. /// REST API Reference for GetLayerVersionByArn Operation public virtual IAsyncResult BeginGetLayerVersionByArn(GetLayerVersionByArnRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetLayerVersionByArnRequestMarshaller.Instance; options.ResponseUnmarshaller = GetLayerVersionByArnResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GetLayerVersionByArn operation. /// /// /// The IAsyncResult returned by the call to BeginGetLayerVersionByArn. /// /// Returns a GetLayerVersionByArnResult from Lambda. /// REST API Reference for GetLayerVersionByArn Operation public virtual GetLayerVersionByArnResponse EndGetLayerVersionByArn(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region GetLayerVersionPolicy /// /// Returns the permission policy for a version of an Lambda /// layer. For more information, see AddLayerVersionPermission. /// /// Container for the necessary parameters to execute the GetLayerVersionPolicy service method. /// /// The response from the GetLayerVersionPolicy service method, as returned by Lambda. /// /// One of the parameters in the request is not valid. /// /// /// The resource specified in the request does not exist. /// /// /// The Lambda service encountered an internal error. /// /// /// The request throughput limit was exceeded. For more information, see Lambda /// quotas. /// /// REST API Reference for GetLayerVersionPolicy Operation public virtual GetLayerVersionPolicyResponse GetLayerVersionPolicy(GetLayerVersionPolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetLayerVersionPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = GetLayerVersionPolicyResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the GetLayerVersionPolicy operation. /// /// /// Container for the necessary parameters to execute the GetLayerVersionPolicy operation on AmazonLambdaClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetLayerVersionPolicy /// operation. /// REST API Reference for GetLayerVersionPolicy Operation public virtual IAsyncResult BeginGetLayerVersionPolicy(GetLayerVersionPolicyRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetLayerVersionPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = GetLayerVersionPolicyResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GetLayerVersionPolicy operation. /// /// /// The IAsyncResult returned by the call to BeginGetLayerVersionPolicy. /// /// Returns a GetLayerVersionPolicyResult from Lambda. /// REST API Reference for GetLayerVersionPolicy Operation public virtual GetLayerVersionPolicyResponse EndGetLayerVersionPolicy(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region GetPolicy /// /// Returns the resource-based /// IAM policy for a function, version, or alias. /// /// Container for the necessary parameters to execute the GetPolicy service method. /// /// The response from the GetPolicy service method, as returned by Lambda. /// /// One of the parameters in the request is not valid. /// /// /// The resource specified in the request does not exist. /// /// /// The Lambda service encountered an internal error. /// /// /// The request throughput limit was exceeded. For more information, see Lambda /// quotas. /// /// REST API Reference for GetPolicy Operation public virtual GetPolicyResponse GetPolicy(GetPolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = GetPolicyResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the GetPolicy operation. /// /// /// Container for the necessary parameters to execute the GetPolicy operation on AmazonLambdaClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetPolicy /// operation. /// REST API Reference for GetPolicy Operation public virtual IAsyncResult BeginGetPolicy(GetPolicyRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = GetPolicyResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GetPolicy operation. /// /// /// The IAsyncResult returned by the call to BeginGetPolicy. /// /// Returns a GetPolicyResult from Lambda. /// REST API Reference for GetPolicy Operation public virtual GetPolicyResponse EndGetPolicy(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region GetProvisionedConcurrencyConfig /// /// Retrieves the provisioned concurrency configuration for a function's alias or version. /// /// Container for the necessary parameters to execute the GetProvisionedConcurrencyConfig service method. /// /// The response from the GetProvisionedConcurrencyConfig service method, as returned by Lambda. /// /// One of the parameters in the request is not valid. /// /// /// The specified configuration does not exist. /// /// /// The resource specified in the request does not exist. /// /// /// The Lambda service encountered an internal error. /// /// /// The request throughput limit was exceeded. For more information, see Lambda /// quotas. /// /// REST API Reference for GetProvisionedConcurrencyConfig Operation public virtual GetProvisionedConcurrencyConfigResponse GetProvisionedConcurrencyConfig(GetProvisionedConcurrencyConfigRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetProvisionedConcurrencyConfigRequestMarshaller.Instance; options.ResponseUnmarshaller = GetProvisionedConcurrencyConfigResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the GetProvisionedConcurrencyConfig operation. /// /// /// Container for the necessary parameters to execute the GetProvisionedConcurrencyConfig operation on AmazonLambdaClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetProvisionedConcurrencyConfig /// operation. /// REST API Reference for GetProvisionedConcurrencyConfig Operation public virtual IAsyncResult BeginGetProvisionedConcurrencyConfig(GetProvisionedConcurrencyConfigRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetProvisionedConcurrencyConfigRequestMarshaller.Instance; options.ResponseUnmarshaller = GetProvisionedConcurrencyConfigResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GetProvisionedConcurrencyConfig operation. /// /// /// The IAsyncResult returned by the call to BeginGetProvisionedConcurrencyConfig. /// /// Returns a GetProvisionedConcurrencyConfigResult from Lambda. /// REST API Reference for GetProvisionedConcurrencyConfig Operation public virtual GetProvisionedConcurrencyConfigResponse EndGetProvisionedConcurrencyConfig(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region GetRuntimeManagementConfig /// /// Retrieves the runtime management configuration for a function's version. If the runtime /// update mode is Manual, this includes the ARN of the runtime version and the /// runtime update mode. If the runtime update mode is Auto or Function update, /// this includes the runtime update mode and null is returned for the ARN. /// For more information, see Runtime /// updates. /// /// Container for the necessary parameters to execute the GetRuntimeManagementConfig service method. /// /// The response from the GetRuntimeManagementConfig service method, as returned by Lambda. /// /// One of the parameters in the request is not valid. /// /// /// The resource specified in the request does not exist. /// /// /// The Lambda service encountered an internal error. /// /// /// The request throughput limit was exceeded. For more information, see Lambda /// quotas. /// /// REST API Reference for GetRuntimeManagementConfig Operation public virtual GetRuntimeManagementConfigResponse GetRuntimeManagementConfig(GetRuntimeManagementConfigRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetRuntimeManagementConfigRequestMarshaller.Instance; options.ResponseUnmarshaller = GetRuntimeManagementConfigResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the GetRuntimeManagementConfig operation. /// /// /// Container for the necessary parameters to execute the GetRuntimeManagementConfig operation on AmazonLambdaClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetRuntimeManagementConfig /// operation. /// REST API Reference for GetRuntimeManagementConfig Operation public virtual IAsyncResult BeginGetRuntimeManagementConfig(GetRuntimeManagementConfigRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetRuntimeManagementConfigRequestMarshaller.Instance; options.ResponseUnmarshaller = GetRuntimeManagementConfigResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GetRuntimeManagementConfig operation. /// /// /// The IAsyncResult returned by the call to BeginGetRuntimeManagementConfig. /// /// Returns a GetRuntimeManagementConfigResult from Lambda. /// REST API Reference for GetRuntimeManagementConfig Operation public virtual GetRuntimeManagementConfigResponse EndGetRuntimeManagementConfig(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region Invoke /// /// Invokes a Lambda function. You can invoke a function synchronously (and wait for the /// response), or asynchronously. To invoke a function asynchronously, set InvocationType /// to Event. /// /// /// /// For synchronous /// invocation, details about the function response, including errors, are included /// in the response body and headers. For either invocation type, you can find more information /// in the execution /// log and trace. /// /// /// /// When an error occurs, your function may be invoked multiple times. Retry behavior /// varies by error type, client, event source, and invocation type. For example, if you /// invoke a function asynchronously and it returns an error, Lambda executes the function /// up to two more times. For more information, see Error /// handling and automatic retries in Lambda. /// /// /// /// For asynchronous /// invocation, Lambda adds events to a queue before sending them to your function. /// If your function does not have enough capacity to keep up with the queue, events may /// be lost. Occasionally, your function may receive the same event multiple times, even /// if no error occurs. To retain events that were not processed, configure your function /// with a dead-letter /// queue. /// /// /// /// The status code in the API response doesn't reflect function errors. Error codes are /// reserved for errors that prevent your function from executing, such as permissions /// errors, quota /// errors, or issues with your function's code and configuration. For example, Lambda /// returns TooManyRequestsException if running the function would cause /// you to exceed a concurrency limit at either the account level (ConcurrentInvocationLimitExceeded) /// or function level (ReservedFunctionConcurrentInvocationLimitExceeded). /// /// /// /// For functions with a long timeout, your client might disconnect during synchronous /// invocation while it waits for a response. Configure your HTTP client, SDK, firewall, /// proxy, or operating system to allow for long connections with timeout or keep-alive /// settings. /// /// /// /// This operation requires permission for the lambda:InvokeFunction /// action. For details on how to set up permissions for cross-account invocations, see /// Granting /// function access to other accounts. /// /// /// Container for the necessary parameters to execute the Invoke service method. /// /// The response from the Invoke service method, as returned by Lambda. /// /// Need additional permissions to configure VPC settings. /// /// /// Amazon EC2 throttled Lambda during Lambda function initialization using the execution /// role provided for the function. /// /// /// Lambda received an unexpected Amazon EC2 client exception while setting up for the /// Lambda function. /// /// /// An error occurred when reading from or writing to a connected file system. /// /// /// The Lambda function couldn't make a network connection to the configured file system. /// /// /// The Lambda function couldn't mount the configured file system due to a permission /// or configuration issue. /// /// /// The Lambda function made a network connection to the configured file system, but the /// mount operation timed out. /// /// /// Lambda couldn't create an elastic network interface in the VPC, specified as part /// of Lambda function configuration, because the limit for network interfaces has been /// reached. For more information, see Lambda /// quotas. /// /// /// One of the parameters in the request is not valid. /// /// /// The request body could not be parsed as JSON. /// /// /// The runtime or runtime version specified is not supported. /// /// /// The security group ID provided in the Lambda function VPC configuration is not valid. /// /// /// The subnet ID provided in the Lambda function VPC configuration is not valid. /// /// /// Lambda could not unzip the deployment package. /// /// /// Lambda couldn't decrypt the environment variables because KMS access was denied. Check /// the Lambda function's KMS permissions. /// /// /// Lambda couldn't decrypt the environment variables because the KMS key used is disabled. /// Check the Lambda function's KMS key settings. /// /// /// Lambda couldn't decrypt the environment variables because the state of the KMS key /// used is not valid for Decrypt. Check the function's KMS key settings. /// /// /// Lambda couldn't decrypt the environment variables because the KMS key was not found. /// Check the function's KMS key settings. /// /// /// Lambda has detected your function being invoked in a recursive loop with other Amazon /// Web Services resources and stopped your function's invocation. /// /// /// The request payload exceeded the Invoke request body JSON input quota. /// For more information, see Lambda /// quotas. /// /// /// The resource already exists, or another operation is in progress. /// /// /// The resource specified in the request does not exist. /// /// /// The function is inactive and its VPC connection is no longer available. Wait for the /// VPC connection to reestablish and try again. /// /// /// The Lambda service encountered an internal error. /// /// /// The afterRestore() runtime /// hook encountered an error. For more information, check the Amazon CloudWatch logs. /// /// /// Lambda is initializing your function. You can invoke the function when the function /// state becomes Active. /// /// /// Lambda couldn't restore the snapshot within the timeout limit. /// /// /// Lambda couldn't set up VPC access for the Lambda function because one or more configured /// subnets has no available IP addresses. /// /// /// The request throughput limit was exceeded. For more information, see Lambda /// quotas. /// /// /// The content type of the Invoke request body is not JSON. /// /// REST API Reference for Invoke Operation public virtual InvokeResponse Invoke(InvokeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = InvokeRequestMarshaller.Instance; options.ResponseUnmarshaller = InvokeResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the Invoke operation. /// /// /// Container for the necessary parameters to execute the Invoke operation on AmazonLambdaClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndInvoke /// operation. /// REST API Reference for Invoke Operation public virtual IAsyncResult BeginInvoke(InvokeRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = InvokeRequestMarshaller.Instance; options.ResponseUnmarshaller = InvokeResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the Invoke operation. /// /// /// The IAsyncResult returned by the call to BeginInvoke. /// /// Returns a InvokeResult from Lambda. /// REST API Reference for Invoke Operation public virtual InvokeResponse EndInvoke(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region InvokeAsync /// /// /// /// For asynchronous function invocation, use Invoke. /// /// /// /// Invokes a function asynchronously. /// /// /// Container for the necessary parameters to execute the InvokeAsync service method. /// /// The response from the InvokeAsync service method, as returned by Lambda. /// /// The request body could not be parsed as JSON. /// /// /// The runtime or runtime version specified is not supported. /// /// /// The resource already exists, or another operation is in progress. /// /// /// The resource specified in the request does not exist. /// /// /// The Lambda service encountered an internal error. /// /// REST API Reference for InvokeAsync Operation [Obsolete("For .NET 3.5/4.5, API InvokeAsyncResponse InvokeAsync(InvokeAsyncRequest) is deprecated, use InvokeResponse Invoke(InvokeRequest), or Task InvokeAsync(InvokeRequest, CancellationToken) instead. For .NET Core, Task InvokeAsyncAsync(InvokeAsyncRequest, CancellationToken) is deprecated, use Task InvokeAsync(InvokeRequest, CancellationToken) instead.")] public virtual InvokeAsyncResponse InvokeAsync(InvokeAsyncRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = InvokeAsyncRequestMarshaller.Instance; options.ResponseUnmarshaller = InvokeAsyncResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the InvokeAsync operation. /// /// /// Container for the necessary parameters to execute the InvokeAsync operation on AmazonLambdaClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndInvokeAsync /// operation. /// REST API Reference for InvokeAsync Operation [Obsolete("For .NET 3.5/4.5, API InvokeAsyncResponse InvokeAsync(InvokeAsyncRequest) is deprecated, use InvokeResponse Invoke(InvokeRequest), or Task InvokeAsync(InvokeRequest, CancellationToken) instead. For .NET Core, Task InvokeAsyncAsync(InvokeAsyncRequest, CancellationToken) is deprecated, use Task InvokeAsync(InvokeRequest, CancellationToken) instead.")] public virtual IAsyncResult BeginInvokeAsync(InvokeAsyncRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = InvokeAsyncRequestMarshaller.Instance; options.ResponseUnmarshaller = InvokeAsyncResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the InvokeAsync operation. /// /// /// The IAsyncResult returned by the call to BeginInvokeAsync. /// /// Returns a InvokeAsyncResult from Lambda. /// REST API Reference for InvokeAsync Operation [Obsolete("For .NET 3.5/4.5, API InvokeAsyncResponse InvokeAsync(InvokeAsyncRequest) is deprecated, use InvokeResponse Invoke(InvokeRequest), or Task InvokeAsync(InvokeRequest, CancellationToken) instead. For .NET Core, Task InvokeAsyncAsync(InvokeAsyncRequest, CancellationToken) is deprecated, use Task InvokeAsync(InvokeRequest, CancellationToken) instead.")] public virtual InvokeAsyncResponse EndInvokeAsync(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region InvokeWithResponseStream /// /// Configure your Lambda functions to stream response payloads back to clients. For more /// information, see Configuring /// a Lambda function to stream responses. /// /// /// /// This operation requires permission for the lambda:InvokeFunction /// action. For details on how to set up permissions for cross-account invocations, see /// Granting /// function access to other accounts. /// /// /// Container for the necessary parameters to execute the InvokeWithResponseStream service method. /// /// The response from the InvokeWithResponseStream service method, as returned by Lambda. /// /// Need additional permissions to configure VPC settings. /// /// /// Amazon EC2 throttled Lambda during Lambda function initialization using the execution /// role provided for the function. /// /// /// Lambda received an unexpected Amazon EC2 client exception while setting up for the /// Lambda function. /// /// /// An error occurred when reading from or writing to a connected file system. /// /// /// The Lambda function couldn't make a network connection to the configured file system. /// /// /// The Lambda function couldn't mount the configured file system due to a permission /// or configuration issue. /// /// /// The Lambda function made a network connection to the configured file system, but the /// mount operation timed out. /// /// /// Lambda couldn't create an elastic network interface in the VPC, specified as part /// of Lambda function configuration, because the limit for network interfaces has been /// reached. For more information, see Lambda /// quotas. /// /// /// One of the parameters in the request is not valid. /// /// /// The request body could not be parsed as JSON. /// /// /// The runtime or runtime version specified is not supported. /// /// /// The security group ID provided in the Lambda function VPC configuration is not valid. /// /// /// The subnet ID provided in the Lambda function VPC configuration is not valid. /// /// /// Lambda could not unzip the deployment package. /// /// /// Lambda couldn't decrypt the environment variables because KMS access was denied. Check /// the Lambda function's KMS permissions. /// /// /// Lambda couldn't decrypt the environment variables because the KMS key used is disabled. /// Check the Lambda function's KMS key settings. /// /// /// Lambda couldn't decrypt the environment variables because the state of the KMS key /// used is not valid for Decrypt. Check the function's KMS key settings. /// /// /// Lambda couldn't decrypt the environment variables because the KMS key was not found. /// Check the function's KMS key settings. /// /// /// Lambda has detected your function being invoked in a recursive loop with other Amazon /// Web Services resources and stopped your function's invocation. /// /// /// The request payload exceeded the Invoke request body JSON input quota. /// For more information, see Lambda /// quotas. /// /// /// The resource already exists, or another operation is in progress. /// /// /// The resource specified in the request does not exist. /// /// /// The function is inactive and its VPC connection is no longer available. Wait for the /// VPC connection to reestablish and try again. /// /// /// The Lambda service encountered an internal error. /// /// /// The afterRestore() runtime /// hook encountered an error. For more information, check the Amazon CloudWatch logs. /// /// /// Lambda is initializing your function. You can invoke the function when the function /// state becomes Active. /// /// /// Lambda couldn't restore the snapshot within the timeout limit. /// /// /// Lambda couldn't set up VPC access for the Lambda function because one or more configured /// subnets has no available IP addresses. /// /// /// The request throughput limit was exceeded. For more information, see Lambda /// quotas. /// /// /// The content type of the Invoke request body is not JSON. /// /// REST API Reference for InvokeWithResponseStream Operation public virtual InvokeWithResponseStreamResponse InvokeWithResponseStream(InvokeWithResponseStreamRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = InvokeWithResponseStreamRequestMarshaller.Instance; options.ResponseUnmarshaller = InvokeWithResponseStreamResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the InvokeWithResponseStream operation. /// /// /// Container for the necessary parameters to execute the InvokeWithResponseStream operation on AmazonLambdaClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndInvokeWithResponseStream /// operation. /// REST API Reference for InvokeWithResponseStream Operation public virtual IAsyncResult BeginInvokeWithResponseStream(InvokeWithResponseStreamRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = InvokeWithResponseStreamRequestMarshaller.Instance; options.ResponseUnmarshaller = InvokeWithResponseStreamResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the InvokeWithResponseStream operation. /// /// /// The IAsyncResult returned by the call to BeginInvokeWithResponseStream. /// /// Returns a InvokeWithResponseStreamResult from Lambda. /// REST API Reference for InvokeWithResponseStream Operation public virtual InvokeWithResponseStreamResponse EndInvokeWithResponseStream(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListAliases /// /// Returns a list of aliases /// for a Lambda function. /// /// Container for the necessary parameters to execute the ListAliases service method. /// /// The response from the ListAliases service method, as returned by Lambda. /// /// One of the parameters in the request is not valid. /// /// /// The resource specified in the request does not exist. /// /// /// The Lambda service encountered an internal error. /// /// /// The request throughput limit was exceeded. For more information, see Lambda /// quotas. /// /// REST API Reference for ListAliases Operation public virtual ListAliasesResponse ListAliases(ListAliasesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListAliasesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAliasesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListAliases operation. /// /// /// Container for the necessary parameters to execute the ListAliases operation on AmazonLambdaClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListAliases /// operation. /// REST API Reference for ListAliases Operation public virtual IAsyncResult BeginListAliases(ListAliasesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListAliasesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAliasesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListAliases operation. /// /// /// The IAsyncResult returned by the call to BeginListAliases. /// /// Returns a ListAliasesResult from Lambda. /// REST API Reference for ListAliases Operation public virtual ListAliasesResponse EndListAliases(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListCodeSigningConfigs /// /// Returns a list of code /// signing configurations. A request returns up to 10,000 configurations per call. /// You can use the MaxItems parameter to return fewer configurations per /// call. /// /// Container for the necessary parameters to execute the ListCodeSigningConfigs service method. /// /// The response from the ListCodeSigningConfigs service method, as returned by Lambda. /// /// One of the parameters in the request is not valid. /// /// /// The Lambda service encountered an internal error. /// /// REST API Reference for ListCodeSigningConfigs Operation public virtual ListCodeSigningConfigsResponse ListCodeSigningConfigs(ListCodeSigningConfigsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListCodeSigningConfigsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListCodeSigningConfigsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListCodeSigningConfigs operation. /// /// /// Container for the necessary parameters to execute the ListCodeSigningConfigs operation on AmazonLambdaClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListCodeSigningConfigs /// operation. /// REST API Reference for ListCodeSigningConfigs Operation public virtual IAsyncResult BeginListCodeSigningConfigs(ListCodeSigningConfigsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListCodeSigningConfigsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListCodeSigningConfigsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListCodeSigningConfigs operation. /// /// /// The IAsyncResult returned by the call to BeginListCodeSigningConfigs. /// /// Returns a ListCodeSigningConfigsResult from Lambda. /// REST API Reference for ListCodeSigningConfigs Operation public virtual ListCodeSigningConfigsResponse EndListCodeSigningConfigs(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListEventSourceMappings /// /// Lists event source mappings. Specify an EventSourceArn to show only event /// source mappings for a single event source. /// /// Container for the necessary parameters to execute the ListEventSourceMappings service method. /// /// The response from the ListEventSourceMappings service method, as returned by Lambda. /// /// One of the parameters in the request is not valid. /// /// /// The resource specified in the request does not exist. /// /// /// The Lambda service encountered an internal error. /// /// /// The request throughput limit was exceeded. For more information, see Lambda /// quotas. /// /// REST API Reference for ListEventSourceMappings Operation public virtual ListEventSourceMappingsResponse ListEventSourceMappings(ListEventSourceMappingsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListEventSourceMappingsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListEventSourceMappingsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListEventSourceMappings operation. /// /// /// Container for the necessary parameters to execute the ListEventSourceMappings operation on AmazonLambdaClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListEventSourceMappings /// operation. /// REST API Reference for ListEventSourceMappings Operation public virtual IAsyncResult BeginListEventSourceMappings(ListEventSourceMappingsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListEventSourceMappingsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListEventSourceMappingsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListEventSourceMappings operation. /// /// /// The IAsyncResult returned by the call to BeginListEventSourceMappings. /// /// Returns a ListEventSourceMappingsResult from Lambda. /// REST API Reference for ListEventSourceMappings Operation public virtual ListEventSourceMappingsResponse EndListEventSourceMappings(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListFunctionEventInvokeConfigs /// /// Retrieves a list of configurations for asynchronous invocation for a function. /// /// /// /// To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig. /// /// /// Container for the necessary parameters to execute the ListFunctionEventInvokeConfigs service method. /// /// The response from the ListFunctionEventInvokeConfigs service method, as returned by Lambda. /// /// One of the parameters in the request is not valid. /// /// /// The resource specified in the request does not exist. /// /// /// The Lambda service encountered an internal error. /// /// /// The request throughput limit was exceeded. For more information, see Lambda /// quotas. /// /// REST API Reference for ListFunctionEventInvokeConfigs Operation public virtual ListFunctionEventInvokeConfigsResponse ListFunctionEventInvokeConfigs(ListFunctionEventInvokeConfigsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListFunctionEventInvokeConfigsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListFunctionEventInvokeConfigsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListFunctionEventInvokeConfigs operation. /// /// /// Container for the necessary parameters to execute the ListFunctionEventInvokeConfigs operation on AmazonLambdaClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListFunctionEventInvokeConfigs /// operation. /// REST API Reference for ListFunctionEventInvokeConfigs Operation public virtual IAsyncResult BeginListFunctionEventInvokeConfigs(ListFunctionEventInvokeConfigsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListFunctionEventInvokeConfigsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListFunctionEventInvokeConfigsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListFunctionEventInvokeConfigs operation. /// /// /// The IAsyncResult returned by the call to BeginListFunctionEventInvokeConfigs. /// /// Returns a ListFunctionEventInvokeConfigsResult from Lambda. /// REST API Reference for ListFunctionEventInvokeConfigs Operation public virtual ListFunctionEventInvokeConfigsResponse EndListFunctionEventInvokeConfigs(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListFunctions /// /// Returns a list of Lambda functions, with the version-specific configuration of each. /// Lambda returns up to 50 functions per call. /// /// /// /// Set FunctionVersion to ALL to include all published versions /// of each function in addition to the unpublished version. /// /// /// /// The ListFunctions operation returns a subset of the FunctionConfiguration /// fields. To get the additional fields (State, StateReasonCode, StateReason, LastUpdateStatus, /// LastUpdateStatusReason, LastUpdateStatusReasonCode, RuntimeVersionConfig) for a function /// or version, use GetFunction. /// /// /// /// /// The response from the ListFunctions service method, as returned by Lambda. /// /// One of the parameters in the request is not valid. /// /// /// The Lambda service encountered an internal error. /// /// /// The request throughput limit was exceeded. For more information, see Lambda /// quotas. /// /// REST API Reference for ListFunctions Operation public virtual ListFunctionsResponse ListFunctions() { var request = new ListFunctionsRequest(); return ListFunctions(request); } /// /// Returns a list of Lambda functions, with the version-specific configuration of each. /// Lambda returns up to 50 functions per call. /// /// /// /// Set FunctionVersion to ALL to include all published versions /// of each function in addition to the unpublished version. /// /// /// /// The ListFunctions operation returns a subset of the FunctionConfiguration /// fields. To get the additional fields (State, StateReasonCode, StateReason, LastUpdateStatus, /// LastUpdateStatusReason, LastUpdateStatusReasonCode, RuntimeVersionConfig) for a function /// or version, use GetFunction. /// /// /// /// Container for the necessary parameters to execute the ListFunctions service method. /// /// The response from the ListFunctions service method, as returned by Lambda. /// /// One of the parameters in the request is not valid. /// /// /// The Lambda service encountered an internal error. /// /// /// The request throughput limit was exceeded. For more information, see Lambda /// quotas. /// /// REST API Reference for ListFunctions Operation public virtual ListFunctionsResponse ListFunctions(ListFunctionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListFunctionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListFunctionsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListFunctions operation. /// /// /// Container for the necessary parameters to execute the ListFunctions operation on AmazonLambdaClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListFunctions /// operation. /// REST API Reference for ListFunctions Operation public virtual IAsyncResult BeginListFunctions(ListFunctionsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListFunctionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListFunctionsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListFunctions operation. /// /// /// The IAsyncResult returned by the call to BeginListFunctions. /// /// Returns a ListFunctionsResult from Lambda. /// REST API Reference for ListFunctions Operation public virtual ListFunctionsResponse EndListFunctions(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListFunctionsByCodeSigningConfig /// /// List the functions that use the specified code signing configuration. You can use /// this method prior to deleting a code signing configuration, to verify that no functions /// are using it. /// /// Container for the necessary parameters to execute the ListFunctionsByCodeSigningConfig service method. /// /// The response from the ListFunctionsByCodeSigningConfig service method, as returned by Lambda. /// /// One of the parameters in the request is not valid. /// /// /// The resource specified in the request does not exist. /// /// /// The Lambda service encountered an internal error. /// /// REST API Reference for ListFunctionsByCodeSigningConfig Operation public virtual ListFunctionsByCodeSigningConfigResponse ListFunctionsByCodeSigningConfig(ListFunctionsByCodeSigningConfigRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListFunctionsByCodeSigningConfigRequestMarshaller.Instance; options.ResponseUnmarshaller = ListFunctionsByCodeSigningConfigResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListFunctionsByCodeSigningConfig operation. /// /// /// Container for the necessary parameters to execute the ListFunctionsByCodeSigningConfig operation on AmazonLambdaClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListFunctionsByCodeSigningConfig /// operation. /// REST API Reference for ListFunctionsByCodeSigningConfig Operation public virtual IAsyncResult BeginListFunctionsByCodeSigningConfig(ListFunctionsByCodeSigningConfigRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListFunctionsByCodeSigningConfigRequestMarshaller.Instance; options.ResponseUnmarshaller = ListFunctionsByCodeSigningConfigResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListFunctionsByCodeSigningConfig operation. /// /// /// The IAsyncResult returned by the call to BeginListFunctionsByCodeSigningConfig. /// /// Returns a ListFunctionsByCodeSigningConfigResult from Lambda. /// REST API Reference for ListFunctionsByCodeSigningConfig Operation public virtual ListFunctionsByCodeSigningConfigResponse EndListFunctionsByCodeSigningConfig(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListFunctionUrlConfigs /// /// Returns a list of Lambda function URLs for the specified function. /// /// Container for the necessary parameters to execute the ListFunctionUrlConfigs service method. /// /// The response from the ListFunctionUrlConfigs service method, as returned by Lambda. /// /// One of the parameters in the request is not valid. /// /// /// The resource specified in the request does not exist. /// /// /// The Lambda service encountered an internal error. /// /// /// The request throughput limit was exceeded. For more information, see Lambda /// quotas. /// /// REST API Reference for ListFunctionUrlConfigs Operation public virtual ListFunctionUrlConfigsResponse ListFunctionUrlConfigs(ListFunctionUrlConfigsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListFunctionUrlConfigsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListFunctionUrlConfigsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListFunctionUrlConfigs operation. /// /// /// Container for the necessary parameters to execute the ListFunctionUrlConfigs operation on AmazonLambdaClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListFunctionUrlConfigs /// operation. /// REST API Reference for ListFunctionUrlConfigs Operation public virtual IAsyncResult BeginListFunctionUrlConfigs(ListFunctionUrlConfigsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListFunctionUrlConfigsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListFunctionUrlConfigsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListFunctionUrlConfigs operation. /// /// /// The IAsyncResult returned by the call to BeginListFunctionUrlConfigs. /// /// Returns a ListFunctionUrlConfigsResult from Lambda. /// REST API Reference for ListFunctionUrlConfigs Operation public virtual ListFunctionUrlConfigsResponse EndListFunctionUrlConfigs(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListLayers /// /// Lists Lambda /// layers and shows information about the latest version of each. Specify a runtime /// identifier to list only layers that indicate that they're compatible with that /// runtime. Specify a compatible architecture to include only layers that are compatible /// with that instruction /// set architecture. /// /// Container for the necessary parameters to execute the ListLayers service method. /// /// The response from the ListLayers service method, as returned by Lambda. /// /// One of the parameters in the request is not valid. /// /// /// The Lambda service encountered an internal error. /// /// /// The request throughput limit was exceeded. For more information, see Lambda /// quotas. /// /// REST API Reference for ListLayers Operation public virtual ListLayersResponse ListLayers(ListLayersRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListLayersRequestMarshaller.Instance; options.ResponseUnmarshaller = ListLayersResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListLayers operation. /// /// /// Container for the necessary parameters to execute the ListLayers operation on AmazonLambdaClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListLayers /// operation. /// REST API Reference for ListLayers Operation public virtual IAsyncResult BeginListLayers(ListLayersRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListLayersRequestMarshaller.Instance; options.ResponseUnmarshaller = ListLayersResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListLayers operation. /// /// /// The IAsyncResult returned by the call to BeginListLayers. /// /// Returns a ListLayersResult from Lambda. /// REST API Reference for ListLayers Operation public virtual ListLayersResponse EndListLayers(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListLayerVersions /// /// Lists the versions of an Lambda /// layer. Versions that have been deleted aren't listed. Specify a runtime /// identifier to list only versions that indicate that they're compatible with that /// runtime. Specify a compatible architecture to include only layer versions that are /// compatible with that architecture. /// /// Container for the necessary parameters to execute the ListLayerVersions service method. /// /// The response from the ListLayerVersions service method, as returned by Lambda. /// /// One of the parameters in the request is not valid. /// /// /// The resource specified in the request does not exist. /// /// /// The Lambda service encountered an internal error. /// /// /// The request throughput limit was exceeded. For more information, see Lambda /// quotas. /// /// REST API Reference for ListLayerVersions Operation public virtual ListLayerVersionsResponse ListLayerVersions(ListLayerVersionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListLayerVersionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListLayerVersionsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListLayerVersions operation. /// /// /// Container for the necessary parameters to execute the ListLayerVersions operation on AmazonLambdaClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListLayerVersions /// operation. /// REST API Reference for ListLayerVersions Operation public virtual IAsyncResult BeginListLayerVersions(ListLayerVersionsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListLayerVersionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListLayerVersionsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListLayerVersions operation. /// /// /// The IAsyncResult returned by the call to BeginListLayerVersions. /// /// Returns a ListLayerVersionsResult from Lambda. /// REST API Reference for ListLayerVersions Operation public virtual ListLayerVersionsResponse EndListLayerVersions(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListProvisionedConcurrencyConfigs /// /// Retrieves a list of provisioned concurrency configurations for a function. /// /// Container for the necessary parameters to execute the ListProvisionedConcurrencyConfigs service method. /// /// The response from the ListProvisionedConcurrencyConfigs service method, as returned by Lambda. /// /// One of the parameters in the request is not valid. /// /// /// The resource specified in the request does not exist. /// /// /// The Lambda service encountered an internal error. /// /// /// The request throughput limit was exceeded. For more information, see Lambda /// quotas. /// /// REST API Reference for ListProvisionedConcurrencyConfigs Operation public virtual ListProvisionedConcurrencyConfigsResponse ListProvisionedConcurrencyConfigs(ListProvisionedConcurrencyConfigsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListProvisionedConcurrencyConfigsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListProvisionedConcurrencyConfigsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListProvisionedConcurrencyConfigs operation. /// /// /// Container for the necessary parameters to execute the ListProvisionedConcurrencyConfigs operation on AmazonLambdaClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListProvisionedConcurrencyConfigs /// operation. /// REST API Reference for ListProvisionedConcurrencyConfigs Operation public virtual IAsyncResult BeginListProvisionedConcurrencyConfigs(ListProvisionedConcurrencyConfigsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListProvisionedConcurrencyConfigsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListProvisionedConcurrencyConfigsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListProvisionedConcurrencyConfigs operation. /// /// /// The IAsyncResult returned by the call to BeginListProvisionedConcurrencyConfigs. /// /// Returns a ListProvisionedConcurrencyConfigsResult from Lambda. /// REST API Reference for ListProvisionedConcurrencyConfigs Operation public virtual ListProvisionedConcurrencyConfigsResponse EndListProvisionedConcurrencyConfigs(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListTags /// /// Returns a function's tags. /// You can also view tags with GetFunction. /// /// Container for the necessary parameters to execute the ListTags service method. /// /// The response from the ListTags service method, as returned by Lambda. /// /// One of the parameters in the request is not valid. /// /// /// The resource specified in the request does not exist. /// /// /// The Lambda service encountered an internal error. /// /// /// The request throughput limit was exceeded. For more information, see Lambda /// quotas. /// /// REST API Reference for ListTags Operation public virtual ListTagsResponse ListTags(ListTagsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListTags operation. /// /// /// Container for the necessary parameters to execute the ListTags operation on AmazonLambdaClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListTags /// operation. /// REST API Reference for ListTags Operation public virtual IAsyncResult BeginListTags(ListTagsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListTags operation. /// /// /// The IAsyncResult returned by the call to BeginListTags. /// /// Returns a ListTagsResult from Lambda. /// REST API Reference for ListTags Operation public virtual ListTagsResponse EndListTags(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListVersionsByFunction /// /// Returns a list of versions, /// with the version-specific configuration of each. Lambda returns up to 50 versions /// per call. /// /// Container for the necessary parameters to execute the ListVersionsByFunction service method. /// /// The response from the ListVersionsByFunction service method, as returned by Lambda. /// /// One of the parameters in the request is not valid. /// /// /// The resource specified in the request does not exist. /// /// /// The Lambda service encountered an internal error. /// /// /// The request throughput limit was exceeded. For more information, see Lambda /// quotas. /// /// REST API Reference for ListVersionsByFunction Operation public virtual ListVersionsByFunctionResponse ListVersionsByFunction(ListVersionsByFunctionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListVersionsByFunctionRequestMarshaller.Instance; options.ResponseUnmarshaller = ListVersionsByFunctionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListVersionsByFunction operation. /// /// /// Container for the necessary parameters to execute the ListVersionsByFunction operation on AmazonLambdaClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListVersionsByFunction /// operation. /// REST API Reference for ListVersionsByFunction Operation public virtual IAsyncResult BeginListVersionsByFunction(ListVersionsByFunctionRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListVersionsByFunctionRequestMarshaller.Instance; options.ResponseUnmarshaller = ListVersionsByFunctionResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListVersionsByFunction operation. /// /// /// The IAsyncResult returned by the call to BeginListVersionsByFunction. /// /// Returns a ListVersionsByFunctionResult from Lambda. /// REST API Reference for ListVersionsByFunction Operation public virtual ListVersionsByFunctionResponse EndListVersionsByFunction(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region PublishLayerVersion /// /// Creates an Lambda /// layer from a ZIP archive. Each time you call PublishLayerVersion /// with the same layer name, a new version is created. /// /// /// /// Add layers to your function with CreateFunction or UpdateFunctionConfiguration. /// /// /// Container for the necessary parameters to execute the PublishLayerVersion service method. /// /// The response from the PublishLayerVersion service method, as returned by Lambda. /// /// Your Amazon Web Services account has exceeded its maximum total code size. For more /// information, see Lambda /// quotas. /// /// /// One of the parameters in the request is not valid. /// /// /// The resource specified in the request does not exist. /// /// /// The Lambda service encountered an internal error. /// /// /// The request throughput limit was exceeded. For more information, see Lambda /// quotas. /// /// REST API Reference for PublishLayerVersion Operation public virtual PublishLayerVersionResponse PublishLayerVersion(PublishLayerVersionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PublishLayerVersionRequestMarshaller.Instance; options.ResponseUnmarshaller = PublishLayerVersionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the PublishLayerVersion operation. /// /// /// Container for the necessary parameters to execute the PublishLayerVersion operation on AmazonLambdaClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPublishLayerVersion /// operation. /// REST API Reference for PublishLayerVersion Operation public virtual IAsyncResult BeginPublishLayerVersion(PublishLayerVersionRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = PublishLayerVersionRequestMarshaller.Instance; options.ResponseUnmarshaller = PublishLayerVersionResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the PublishLayerVersion operation. /// /// /// The IAsyncResult returned by the call to BeginPublishLayerVersion. /// /// Returns a PublishLayerVersionResult from Lambda. /// REST API Reference for PublishLayerVersion Operation public virtual PublishLayerVersionResponse EndPublishLayerVersion(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region PublishVersion /// /// Creates a version /// from the current code and configuration of a function. Use versions to create a snapshot /// of your function code and configuration that doesn't change. /// /// /// /// Lambda doesn't publish a version if the function's configuration and code haven't /// changed since the last version. Use UpdateFunctionCode or UpdateFunctionConfiguration /// to update the function before publishing a version. /// /// /// /// Clients can invoke versions directly or with an alias. To create an alias, use CreateAlias. /// /// /// Container for the necessary parameters to execute the PublishVersion service method. /// /// The response from the PublishVersion service method, as returned by Lambda. /// /// Your Amazon Web Services account has exceeded its maximum total code size. For more /// information, see Lambda /// quotas. /// /// /// One of the parameters in the request is not valid. /// /// /// The RevisionId provided does not match the latest RevisionId for the Lambda function /// or alias. Call the GetFunction or the GetAlias API operation /// to retrieve the latest RevisionId for your resource. /// /// /// The resource already exists, or another operation is in progress. /// /// /// The resource specified in the request does not exist. /// /// /// The Lambda service encountered an internal error. /// /// /// The request throughput limit was exceeded. For more information, see Lambda /// quotas. /// /// REST API Reference for PublishVersion Operation public virtual PublishVersionResponse PublishVersion(PublishVersionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PublishVersionRequestMarshaller.Instance; options.ResponseUnmarshaller = PublishVersionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the PublishVersion operation. /// /// /// Container for the necessary parameters to execute the PublishVersion operation on AmazonLambdaClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPublishVersion /// operation. /// REST API Reference for PublishVersion Operation public virtual IAsyncResult BeginPublishVersion(PublishVersionRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = PublishVersionRequestMarshaller.Instance; options.ResponseUnmarshaller = PublishVersionResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the PublishVersion operation. /// /// /// The IAsyncResult returned by the call to BeginPublishVersion. /// /// Returns a PublishVersionResult from Lambda. /// REST API Reference for PublishVersion Operation public virtual PublishVersionResponse EndPublishVersion(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region PutFunctionCodeSigningConfig /// /// Update the code signing configuration for the function. Changes to the code signing /// configuration take effect the next time a user tries to deploy a code package to the /// function. /// /// Container for the necessary parameters to execute the PutFunctionCodeSigningConfig service method. /// /// The response from the PutFunctionCodeSigningConfig service method, as returned by Lambda. /// /// The specified code signing configuration does not exist. /// /// /// One of the parameters in the request is not valid. /// /// /// The resource already exists, or another operation is in progress. /// /// /// The resource specified in the request does not exist. /// /// /// The Lambda service encountered an internal error. /// /// /// The request throughput limit was exceeded. For more information, see Lambda /// quotas. /// /// REST API Reference for PutFunctionCodeSigningConfig Operation public virtual PutFunctionCodeSigningConfigResponse PutFunctionCodeSigningConfig(PutFunctionCodeSigningConfigRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutFunctionCodeSigningConfigRequestMarshaller.Instance; options.ResponseUnmarshaller = PutFunctionCodeSigningConfigResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the PutFunctionCodeSigningConfig operation. /// /// /// Container for the necessary parameters to execute the PutFunctionCodeSigningConfig operation on AmazonLambdaClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutFunctionCodeSigningConfig /// operation. /// REST API Reference for PutFunctionCodeSigningConfig Operation public virtual IAsyncResult BeginPutFunctionCodeSigningConfig(PutFunctionCodeSigningConfigRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = PutFunctionCodeSigningConfigRequestMarshaller.Instance; options.ResponseUnmarshaller = PutFunctionCodeSigningConfigResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the PutFunctionCodeSigningConfig operation. /// /// /// The IAsyncResult returned by the call to BeginPutFunctionCodeSigningConfig. /// /// Returns a PutFunctionCodeSigningConfigResult from Lambda. /// REST API Reference for PutFunctionCodeSigningConfig Operation public virtual PutFunctionCodeSigningConfigResponse EndPutFunctionCodeSigningConfig(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region PutFunctionConcurrency /// /// Sets the maximum number of simultaneous executions for a function, and reserves capacity /// for that concurrency level. /// /// /// /// Concurrency settings apply to the function as a whole, including all published versions /// and the unpublished version. Reserving concurrency both ensures that your function /// has capacity to process the specified number of events simultaneously, and prevents /// it from scaling beyond that level. Use GetFunction to see the current setting /// for a function. /// /// /// /// Use GetAccountSettings to see your Regional concurrency limit. You can reserve /// concurrency for as many functions as you like, as long as you leave at least 100 simultaneous /// executions unreserved for functions that aren't configured with a per-function limit. /// For more information, see Lambda /// function scaling. /// /// /// Container for the necessary parameters to execute the PutFunctionConcurrency service method. /// /// The response from the PutFunctionConcurrency service method, as returned by Lambda. /// /// One of the parameters in the request is not valid. /// /// /// The resource already exists, or another operation is in progress. /// /// /// The resource specified in the request does not exist. /// /// /// The Lambda service encountered an internal error. /// /// /// The request throughput limit was exceeded. For more information, see Lambda /// quotas. /// /// REST API Reference for PutFunctionConcurrency Operation public virtual PutFunctionConcurrencyResponse PutFunctionConcurrency(PutFunctionConcurrencyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutFunctionConcurrencyRequestMarshaller.Instance; options.ResponseUnmarshaller = PutFunctionConcurrencyResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the PutFunctionConcurrency operation. /// /// /// Container for the necessary parameters to execute the PutFunctionConcurrency operation on AmazonLambdaClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutFunctionConcurrency /// operation. /// REST API Reference for PutFunctionConcurrency Operation public virtual IAsyncResult BeginPutFunctionConcurrency(PutFunctionConcurrencyRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = PutFunctionConcurrencyRequestMarshaller.Instance; options.ResponseUnmarshaller = PutFunctionConcurrencyResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the PutFunctionConcurrency operation. /// /// /// The IAsyncResult returned by the call to BeginPutFunctionConcurrency. /// /// Returns a PutFunctionConcurrencyResult from Lambda. /// REST API Reference for PutFunctionConcurrency Operation public virtual PutFunctionConcurrencyResponse EndPutFunctionConcurrency(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region PutFunctionEventInvokeConfig /// /// Configures options for asynchronous /// invocation on a function, version, or alias. If a configuration already exists /// for a function, version, or alias, this operation overwrites it. If you exclude any /// settings, they are removed. To set one option without affecting existing settings /// for other options, use UpdateFunctionEventInvokeConfig. /// /// /// /// By default, Lambda retries an asynchronous invocation twice if the function returns /// an error. It retains events in a queue for up to six hours. When an event fails all /// processing attempts or stays in the asynchronous invocation queue for too long, Lambda /// discards it. To retain discarded events, configure a dead-letter queue with UpdateFunctionConfiguration. /// /// /// /// To send an invocation record to a queue, topic, function, or event bus, specify a /// destination. /// You can configure separate destinations for successful invocations (on-success) and /// events that fail all processing attempts (on-failure). You can configure destinations /// in addition to or instead of a dead-letter queue. /// /// /// Container for the necessary parameters to execute the PutFunctionEventInvokeConfig service method. /// /// The response from the PutFunctionEventInvokeConfig service method, as returned by Lambda. /// /// One of the parameters in the request is not valid. /// /// /// The resource already exists, or another operation is in progress. /// /// /// The resource specified in the request does not exist. /// /// /// The Lambda service encountered an internal error. /// /// /// The request throughput limit was exceeded. For more information, see Lambda /// quotas. /// /// REST API Reference for PutFunctionEventInvokeConfig Operation public virtual PutFunctionEventInvokeConfigResponse PutFunctionEventInvokeConfig(PutFunctionEventInvokeConfigRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutFunctionEventInvokeConfigRequestMarshaller.Instance; options.ResponseUnmarshaller = PutFunctionEventInvokeConfigResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the PutFunctionEventInvokeConfig operation. /// /// /// Container for the necessary parameters to execute the PutFunctionEventInvokeConfig operation on AmazonLambdaClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutFunctionEventInvokeConfig /// operation. /// REST API Reference for PutFunctionEventInvokeConfig Operation public virtual IAsyncResult BeginPutFunctionEventInvokeConfig(PutFunctionEventInvokeConfigRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = PutFunctionEventInvokeConfigRequestMarshaller.Instance; options.ResponseUnmarshaller = PutFunctionEventInvokeConfigResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the PutFunctionEventInvokeConfig operation. /// /// /// The IAsyncResult returned by the call to BeginPutFunctionEventInvokeConfig. /// /// Returns a PutFunctionEventInvokeConfigResult from Lambda. /// REST API Reference for PutFunctionEventInvokeConfig Operation public virtual PutFunctionEventInvokeConfigResponse EndPutFunctionEventInvokeConfig(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region PutProvisionedConcurrencyConfig /// /// Adds a provisioned concurrency configuration to a function's alias or version. /// /// Container for the necessary parameters to execute the PutProvisionedConcurrencyConfig service method. /// /// The response from the PutProvisionedConcurrencyConfig service method, as returned by Lambda. /// /// One of the parameters in the request is not valid. /// /// /// The resource already exists, or another operation is in progress. /// /// /// The resource specified in the request does not exist. /// /// /// The Lambda service encountered an internal error. /// /// /// The request throughput limit was exceeded. For more information, see Lambda /// quotas. /// /// REST API Reference for PutProvisionedConcurrencyConfig Operation public virtual PutProvisionedConcurrencyConfigResponse PutProvisionedConcurrencyConfig(PutProvisionedConcurrencyConfigRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutProvisionedConcurrencyConfigRequestMarshaller.Instance; options.ResponseUnmarshaller = PutProvisionedConcurrencyConfigResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the PutProvisionedConcurrencyConfig operation. /// /// /// Container for the necessary parameters to execute the PutProvisionedConcurrencyConfig operation on AmazonLambdaClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutProvisionedConcurrencyConfig /// operation. /// REST API Reference for PutProvisionedConcurrencyConfig Operation public virtual IAsyncResult BeginPutProvisionedConcurrencyConfig(PutProvisionedConcurrencyConfigRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = PutProvisionedConcurrencyConfigRequestMarshaller.Instance; options.ResponseUnmarshaller = PutProvisionedConcurrencyConfigResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the PutProvisionedConcurrencyConfig operation. /// /// /// The IAsyncResult returned by the call to BeginPutProvisionedConcurrencyConfig. /// /// Returns a PutProvisionedConcurrencyConfigResult from Lambda. /// REST API Reference for PutProvisionedConcurrencyConfig Operation public virtual PutProvisionedConcurrencyConfigResponse EndPutProvisionedConcurrencyConfig(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region PutRuntimeManagementConfig /// /// Sets the runtime management configuration for a function's version. For more information, /// see Runtime /// updates. /// /// Container for the necessary parameters to execute the PutRuntimeManagementConfig service method. /// /// The response from the PutRuntimeManagementConfig service method, as returned by Lambda. /// /// One of the parameters in the request is not valid. /// /// /// The resource already exists, or another operation is in progress. /// /// /// The resource specified in the request does not exist. /// /// /// The Lambda service encountered an internal error. /// /// /// The request throughput limit was exceeded. For more information, see Lambda /// quotas. /// /// REST API Reference for PutRuntimeManagementConfig Operation public virtual PutRuntimeManagementConfigResponse PutRuntimeManagementConfig(PutRuntimeManagementConfigRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutRuntimeManagementConfigRequestMarshaller.Instance; options.ResponseUnmarshaller = PutRuntimeManagementConfigResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the PutRuntimeManagementConfig operation. /// /// /// Container for the necessary parameters to execute the PutRuntimeManagementConfig operation on AmazonLambdaClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutRuntimeManagementConfig /// operation. /// REST API Reference for PutRuntimeManagementConfig Operation public virtual IAsyncResult BeginPutRuntimeManagementConfig(PutRuntimeManagementConfigRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = PutRuntimeManagementConfigRequestMarshaller.Instance; options.ResponseUnmarshaller = PutRuntimeManagementConfigResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the PutRuntimeManagementConfig operation. /// /// /// The IAsyncResult returned by the call to BeginPutRuntimeManagementConfig. /// /// Returns a PutRuntimeManagementConfigResult from Lambda. /// REST API Reference for PutRuntimeManagementConfig Operation public virtual PutRuntimeManagementConfigResponse EndPutRuntimeManagementConfig(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region RemoveLayerVersionPermission /// /// Removes a statement from the permissions policy for a version of an Lambda /// layer. For more information, see AddLayerVersionPermission. /// /// Container for the necessary parameters to execute the RemoveLayerVersionPermission service method. /// /// The response from the RemoveLayerVersionPermission service method, as returned by Lambda. /// /// One of the parameters in the request is not valid. /// /// /// The RevisionId provided does not match the latest RevisionId for the Lambda function /// or alias. Call the GetFunction or the GetAlias API operation /// to retrieve the latest RevisionId for your resource. /// /// /// The resource specified in the request does not exist. /// /// /// The Lambda service encountered an internal error. /// /// /// The request throughput limit was exceeded. For more information, see Lambda /// quotas. /// /// REST API Reference for RemoveLayerVersionPermission Operation public virtual RemoveLayerVersionPermissionResponse RemoveLayerVersionPermission(RemoveLayerVersionPermissionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = RemoveLayerVersionPermissionRequestMarshaller.Instance; options.ResponseUnmarshaller = RemoveLayerVersionPermissionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the RemoveLayerVersionPermission operation. /// /// /// Container for the necessary parameters to execute the RemoveLayerVersionPermission operation on AmazonLambdaClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndRemoveLayerVersionPermission /// operation. /// REST API Reference for RemoveLayerVersionPermission Operation public virtual IAsyncResult BeginRemoveLayerVersionPermission(RemoveLayerVersionPermissionRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = RemoveLayerVersionPermissionRequestMarshaller.Instance; options.ResponseUnmarshaller = RemoveLayerVersionPermissionResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the RemoveLayerVersionPermission operation. /// /// /// The IAsyncResult returned by the call to BeginRemoveLayerVersionPermission. /// /// Returns a RemoveLayerVersionPermissionResult from Lambda. /// REST API Reference for RemoveLayerVersionPermission Operation public virtual RemoveLayerVersionPermissionResponse EndRemoveLayerVersionPermission(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region RemovePermission /// /// Revokes function-use permission from an Amazon Web Service or another Amazon Web Services /// account. You can get the ID of the statement from the output of GetPolicy. /// /// Container for the necessary parameters to execute the RemovePermission service method. /// /// The response from the RemovePermission service method, as returned by Lambda. /// /// One of the parameters in the request is not valid. /// /// /// The RevisionId provided does not match the latest RevisionId for the Lambda function /// or alias. Call the GetFunction or the GetAlias API operation /// to retrieve the latest RevisionId for your resource. /// /// /// The resource specified in the request does not exist. /// /// /// The Lambda service encountered an internal error. /// /// /// The request throughput limit was exceeded. For more information, see Lambda /// quotas. /// /// REST API Reference for RemovePermission Operation public virtual RemovePermissionResponse RemovePermission(RemovePermissionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = RemovePermissionRequestMarshaller.Instance; options.ResponseUnmarshaller = RemovePermissionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the RemovePermission operation. /// /// /// Container for the necessary parameters to execute the RemovePermission operation on AmazonLambdaClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndRemovePermission /// operation. /// REST API Reference for RemovePermission Operation public virtual IAsyncResult BeginRemovePermission(RemovePermissionRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = RemovePermissionRequestMarshaller.Instance; options.ResponseUnmarshaller = RemovePermissionResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the RemovePermission operation. /// /// /// The IAsyncResult returned by the call to BeginRemovePermission. /// /// Returns a RemovePermissionResult from Lambda. /// REST API Reference for RemovePermission Operation public virtual RemovePermissionResponse EndRemovePermission(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region TagResource /// /// Adds tags /// to a function. /// /// Container for the necessary parameters to execute the TagResource service method. /// /// The response from the TagResource service method, as returned by Lambda. /// /// One of the parameters in the request is not valid. /// /// /// The resource already exists, or another operation is in progress. /// /// /// The resource specified in the request does not exist. /// /// /// The Lambda service encountered an internal error. /// /// /// The request throughput limit was exceeded. For more information, see Lambda /// quotas. /// /// REST API Reference for TagResource Operation public virtual TagResourceResponse TagResource(TagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the TagResource operation. /// /// /// Container for the necessary parameters to execute the TagResource operation on AmazonLambdaClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndTagResource /// operation. /// REST API Reference for TagResource Operation public virtual IAsyncResult BeginTagResource(TagResourceRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the TagResource operation. /// /// /// The IAsyncResult returned by the call to BeginTagResource. /// /// Returns a TagResourceResult from Lambda. /// REST API Reference for TagResource Operation public virtual TagResourceResponse EndTagResource(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region UntagResource /// /// Removes tags /// from a function. /// /// Container for the necessary parameters to execute the UntagResource service method. /// /// The response from the UntagResource service method, as returned by Lambda. /// /// One of the parameters in the request is not valid. /// /// /// The resource already exists, or another operation is in progress. /// /// /// The resource specified in the request does not exist. /// /// /// The Lambda service encountered an internal error. /// /// /// The request throughput limit was exceeded. For more information, see Lambda /// quotas. /// /// REST API Reference for UntagResource Operation public virtual UntagResourceResponse UntagResource(UntagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the UntagResource operation. /// /// /// Container for the necessary parameters to execute the UntagResource operation on AmazonLambdaClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUntagResource /// operation. /// REST API Reference for UntagResource Operation public virtual IAsyncResult BeginUntagResource(UntagResourceRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the UntagResource operation. /// /// /// The IAsyncResult returned by the call to BeginUntagResource. /// /// Returns a UntagResourceResult from Lambda. /// REST API Reference for UntagResource Operation public virtual UntagResourceResponse EndUntagResource(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region UpdateAlias /// /// Updates the configuration of a Lambda function alias. /// /// Container for the necessary parameters to execute the UpdateAlias service method. /// /// The response from the UpdateAlias service method, as returned by Lambda. /// /// One of the parameters in the request is not valid. /// /// /// The RevisionId provided does not match the latest RevisionId for the Lambda function /// or alias. Call the GetFunction or the GetAlias API operation /// to retrieve the latest RevisionId for your resource. /// /// /// The resource already exists, or another operation is in progress. /// /// /// The resource specified in the request does not exist. /// /// /// The Lambda service encountered an internal error. /// /// /// The request throughput limit was exceeded. For more information, see Lambda /// quotas. /// /// REST API Reference for UpdateAlias Operation public virtual UpdateAliasResponse UpdateAlias(UpdateAliasRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateAliasRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateAliasResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the UpdateAlias operation. /// /// /// Container for the necessary parameters to execute the UpdateAlias operation on AmazonLambdaClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateAlias /// operation. /// REST API Reference for UpdateAlias Operation public virtual IAsyncResult BeginUpdateAlias(UpdateAliasRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateAliasRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateAliasResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the UpdateAlias operation. /// /// /// The IAsyncResult returned by the call to BeginUpdateAlias. /// /// Returns a UpdateAliasResult from Lambda. /// REST API Reference for UpdateAlias Operation public virtual UpdateAliasResponse EndUpdateAlias(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region UpdateCodeSigningConfig /// /// Update the code signing configuration. Changes to the code signing configuration take /// effect the next time a user tries to deploy a code package to the function. /// /// Container for the necessary parameters to execute the UpdateCodeSigningConfig service method. /// /// The response from the UpdateCodeSigningConfig service method, as returned by Lambda. /// /// One of the parameters in the request is not valid. /// /// /// The resource specified in the request does not exist. /// /// /// The Lambda service encountered an internal error. /// /// REST API Reference for UpdateCodeSigningConfig Operation public virtual UpdateCodeSigningConfigResponse UpdateCodeSigningConfig(UpdateCodeSigningConfigRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateCodeSigningConfigRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateCodeSigningConfigResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the UpdateCodeSigningConfig operation. /// /// /// Container for the necessary parameters to execute the UpdateCodeSigningConfig operation on AmazonLambdaClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateCodeSigningConfig /// operation. /// REST API Reference for UpdateCodeSigningConfig Operation public virtual IAsyncResult BeginUpdateCodeSigningConfig(UpdateCodeSigningConfigRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateCodeSigningConfigRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateCodeSigningConfigResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the UpdateCodeSigningConfig operation. /// /// /// The IAsyncResult returned by the call to BeginUpdateCodeSigningConfig. /// /// Returns a UpdateCodeSigningConfigResult from Lambda. /// REST API Reference for UpdateCodeSigningConfig Operation public virtual UpdateCodeSigningConfigResponse EndUpdateCodeSigningConfig(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region UpdateEventSourceMapping /// /// Updates an event source mapping. You can change the function that Lambda invokes, /// or pause invocation and resume later from the same location. /// /// /// /// For details about how to configure different event sources, see the following topics. /// /// /// /// /// The following error handling options are available only for stream sources (DynamoDB /// and Kinesis): /// ///
  • /// /// BisectBatchOnFunctionError – If the function returns an error, split /// the batch in two and retry. /// ///
  • /// /// DestinationConfig – Send discarded records to an Amazon SQS queue or /// Amazon SNS topic. /// ///
  • /// /// MaximumRecordAgeInSeconds – Discard records older than the specified /// age. The default value is infinite (-1). When set to infinite (-1), failed records /// are retried until the record expires /// ///
  • /// /// MaximumRetryAttempts – Discard records after the specified number of /// retries. The default value is infinite (-1). When set to infinite (-1), failed records /// are retried until the record expires. /// ///
  • /// /// ParallelizationFactor – Process multiple batches from each shard concurrently. /// ///
/// /// For information about which configuration parameters apply to each event source, see /// the following topics. /// /// ///
/// Container for the necessary parameters to execute the UpdateEventSourceMapping service method. /// /// The response from the UpdateEventSourceMapping service method, as returned by Lambda. /// /// One of the parameters in the request is not valid. /// /// /// The resource already exists, or another operation is in progress. /// /// /// The operation conflicts with the resource's availability. For example, you tried to /// update an event source mapping in the CREATING state, or you tried to delete an event /// source mapping currently UPDATING. /// /// /// The resource specified in the request does not exist. /// /// /// The Lambda service encountered an internal error. /// /// /// The request throughput limit was exceeded. For more information, see Lambda /// quotas. /// /// REST API Reference for UpdateEventSourceMapping Operation public virtual UpdateEventSourceMappingResponse UpdateEventSourceMapping(UpdateEventSourceMappingRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateEventSourceMappingRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateEventSourceMappingResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the UpdateEventSourceMapping operation. /// /// /// Container for the necessary parameters to execute the UpdateEventSourceMapping operation on AmazonLambdaClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateEventSourceMapping /// operation. /// REST API Reference for UpdateEventSourceMapping Operation public virtual IAsyncResult BeginUpdateEventSourceMapping(UpdateEventSourceMappingRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateEventSourceMappingRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateEventSourceMappingResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the UpdateEventSourceMapping operation. /// /// /// The IAsyncResult returned by the call to BeginUpdateEventSourceMapping. /// /// Returns a UpdateEventSourceMappingResult from Lambda. /// REST API Reference for UpdateEventSourceMapping Operation public virtual UpdateEventSourceMappingResponse EndUpdateEventSourceMapping(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region UpdateFunctionCode /// /// Updates a Lambda function's code. If code signing is enabled for the function, the /// code package must be signed by a trusted publisher. For more information, see Configuring /// code signing for Lambda. /// /// /// /// If the function's package type is Image, then you must specify the code /// package in ImageUri as the URI of a container /// image in the Amazon ECR registry. /// /// /// /// If the function's package type is Zip, then you must specify the deployment /// package as a .zip /// file archive. Enter the Amazon S3 bucket and key of the code .zip file location. /// You can also provide the function code inline using the ZipFile field. /// /// /// /// The code in the deployment package must be compatible with the target instruction /// set architecture of the function (x86-64 or arm64). /// /// /// /// The function's code is locked when you publish a version. You can't modify the code /// of a published version, only the unpublished version. /// /// /// /// For a function defined as a container image, Lambda resolves the image tag to an image /// digest. In Amazon ECR, if you update the image tag to a new image, Lambda does not /// automatically update the function. /// /// /// /// Container for the necessary parameters to execute the UpdateFunctionCode service method. /// /// The response from the UpdateFunctionCode service method, as returned by Lambda. /// /// The specified code signing configuration does not exist. /// /// /// Your Amazon Web Services account has exceeded its maximum total code size. For more /// information, see Lambda /// quotas. /// /// /// The code signature failed one or more of the validation checks for signature mismatch /// or expiry, and the code signing policy is set to ENFORCE. Lambda blocks the deployment. /// /// /// The code signature failed the integrity check. If the integrity check fails, then /// Lambda blocks deployment, even if the code signing policy is set to WARN. /// /// /// One of the parameters in the request is not valid. /// /// /// The RevisionId provided does not match the latest RevisionId for the Lambda function /// or alias. Call the GetFunction or the GetAlias API operation /// to retrieve the latest RevisionId for your resource. /// /// /// The resource already exists, or another operation is in progress. /// /// /// The resource specified in the request does not exist. /// /// /// The Lambda service encountered an internal error. /// /// /// The request throughput limit was exceeded. For more information, see Lambda /// quotas. /// /// REST API Reference for UpdateFunctionCode Operation public virtual UpdateFunctionCodeResponse UpdateFunctionCode(UpdateFunctionCodeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateFunctionCodeRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateFunctionCodeResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the UpdateFunctionCode operation. /// /// /// Container for the necessary parameters to execute the UpdateFunctionCode operation on AmazonLambdaClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateFunctionCode /// operation. /// REST API Reference for UpdateFunctionCode Operation public virtual IAsyncResult BeginUpdateFunctionCode(UpdateFunctionCodeRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateFunctionCodeRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateFunctionCodeResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the UpdateFunctionCode operation. /// /// /// The IAsyncResult returned by the call to BeginUpdateFunctionCode. /// /// Returns a UpdateFunctionCodeResult from Lambda. /// REST API Reference for UpdateFunctionCode Operation public virtual UpdateFunctionCodeResponse EndUpdateFunctionCode(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region UpdateFunctionConfiguration /// /// Modify the version-specific settings of a Lambda function. /// /// /// /// When you update a function, Lambda provisions an instance of the function and its /// supporting resources. If your function connects to a VPC, this process can take a /// minute. During this time, you can't modify the function, but you can still invoke /// it. The LastUpdateStatus, LastUpdateStatusReason, and LastUpdateStatusReasonCode /// fields in the response from GetFunctionConfiguration indicate when the update /// is complete and the function is processing events with the new configuration. For /// more information, see Lambda /// function states. /// /// /// /// These settings can vary between versions of a function and are locked when you publish /// a version. You can't modify the configuration of a published version, only the unpublished /// version. /// /// /// /// To configure function concurrency, use PutFunctionConcurrency. To grant invoke /// permissions to an Amazon Web Services account or Amazon Web Service, use AddPermission. /// /// /// Container for the necessary parameters to execute the UpdateFunctionConfiguration service method. /// /// The response from the UpdateFunctionConfiguration service method, as returned by Lambda. /// /// The specified code signing configuration does not exist. /// /// /// The code signature failed one or more of the validation checks for signature mismatch /// or expiry, and the code signing policy is set to ENFORCE. Lambda blocks the deployment. /// /// /// The code signature failed the integrity check. If the integrity check fails, then /// Lambda blocks deployment, even if the code signing policy is set to WARN. /// /// /// One of the parameters in the request is not valid. /// /// /// The RevisionId provided does not match the latest RevisionId for the Lambda function /// or alias. Call the GetFunction or the GetAlias API operation /// to retrieve the latest RevisionId for your resource. /// /// /// The resource already exists, or another operation is in progress. /// /// /// The resource specified in the request does not exist. /// /// /// The Lambda service encountered an internal error. /// /// /// The request throughput limit was exceeded. For more information, see Lambda /// quotas. /// /// REST API Reference for UpdateFunctionConfiguration Operation public virtual UpdateFunctionConfigurationResponse UpdateFunctionConfiguration(UpdateFunctionConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateFunctionConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateFunctionConfigurationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the UpdateFunctionConfiguration operation. /// /// /// Container for the necessary parameters to execute the UpdateFunctionConfiguration operation on AmazonLambdaClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateFunctionConfiguration /// operation. /// REST API Reference for UpdateFunctionConfiguration Operation public virtual IAsyncResult BeginUpdateFunctionConfiguration(UpdateFunctionConfigurationRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateFunctionConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateFunctionConfigurationResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the UpdateFunctionConfiguration operation. /// /// /// The IAsyncResult returned by the call to BeginUpdateFunctionConfiguration. /// /// Returns a UpdateFunctionConfigurationResult from Lambda. /// REST API Reference for UpdateFunctionConfiguration Operation public virtual UpdateFunctionConfigurationResponse EndUpdateFunctionConfiguration(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region UpdateFunctionEventInvokeConfig /// /// Updates the configuration for asynchronous invocation for a function, version, or /// alias. /// /// /// /// To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig. /// /// /// Container for the necessary parameters to execute the UpdateFunctionEventInvokeConfig service method. /// /// The response from the UpdateFunctionEventInvokeConfig service method, as returned by Lambda. /// /// One of the parameters in the request is not valid. /// /// /// The resource already exists, or another operation is in progress. /// /// /// The resource specified in the request does not exist. /// /// /// The Lambda service encountered an internal error. /// /// /// The request throughput limit was exceeded. For more information, see Lambda /// quotas. /// /// REST API Reference for UpdateFunctionEventInvokeConfig Operation public virtual UpdateFunctionEventInvokeConfigResponse UpdateFunctionEventInvokeConfig(UpdateFunctionEventInvokeConfigRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateFunctionEventInvokeConfigRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateFunctionEventInvokeConfigResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the UpdateFunctionEventInvokeConfig operation. /// /// /// Container for the necessary parameters to execute the UpdateFunctionEventInvokeConfig operation on AmazonLambdaClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateFunctionEventInvokeConfig /// operation. /// REST API Reference for UpdateFunctionEventInvokeConfig Operation public virtual IAsyncResult BeginUpdateFunctionEventInvokeConfig(UpdateFunctionEventInvokeConfigRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateFunctionEventInvokeConfigRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateFunctionEventInvokeConfigResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the UpdateFunctionEventInvokeConfig operation. /// /// /// The IAsyncResult returned by the call to BeginUpdateFunctionEventInvokeConfig. /// /// Returns a UpdateFunctionEventInvokeConfigResult from Lambda. /// REST API Reference for UpdateFunctionEventInvokeConfig Operation public virtual UpdateFunctionEventInvokeConfigResponse EndUpdateFunctionEventInvokeConfig(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region UpdateFunctionUrlConfig /// /// Updates the configuration for a Lambda function URL. /// /// Container for the necessary parameters to execute the UpdateFunctionUrlConfig service method. /// /// The response from the UpdateFunctionUrlConfig service method, as returned by Lambda. /// /// One of the parameters in the request is not valid. /// /// /// The resource already exists, or another operation is in progress. /// /// /// The resource specified in the request does not exist. /// /// /// The Lambda service encountered an internal error. /// /// /// The request throughput limit was exceeded. For more information, see Lambda /// quotas. /// /// REST API Reference for UpdateFunctionUrlConfig Operation public virtual UpdateFunctionUrlConfigResponse UpdateFunctionUrlConfig(UpdateFunctionUrlConfigRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateFunctionUrlConfigRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateFunctionUrlConfigResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the UpdateFunctionUrlConfig operation. /// /// /// Container for the necessary parameters to execute the UpdateFunctionUrlConfig operation on AmazonLambdaClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateFunctionUrlConfig /// operation. /// REST API Reference for UpdateFunctionUrlConfig Operation public virtual IAsyncResult BeginUpdateFunctionUrlConfig(UpdateFunctionUrlConfigRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateFunctionUrlConfigRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateFunctionUrlConfigResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the UpdateFunctionUrlConfig operation. /// /// /// The IAsyncResult returned by the call to BeginUpdateFunctionUrlConfig. /// /// Returns a UpdateFunctionUrlConfigResult from Lambda. /// REST API Reference for UpdateFunctionUrlConfig Operation public virtual UpdateFunctionUrlConfigResponse EndUpdateFunctionUrlConfig(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion } }