/*
* 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.Runtime.ExceptionServices;
using System.Threading;
using System.Threading.Tasks;
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:
///
/// -
///
/// Microsoft Windows versions that have updates from January 2005 or later installed
/// contain at least one of the required CAs in their trust list.
///
///
-
///
/// Mac OS X 10.4 with Java for Mac OS X 10.4 Release 5 (February 2007), Mac OS X 10.5
/// (October 2007), and later versions contain at least one of the required CAs in their
/// trust list.
///
///
-
///
/// Red Hat Enterprise Linux 5 (March 2007), 6, and 7 and CentOS 5, 6, and 7 all contain
/// at least one of the required CAs in their default trusted CA list.
///
///
-
///
/// Java 1.4.2_12 (May 2006), 5 Update 2 (March 2005), and all later versions, including
/// Java 6 (December 2006), 7, and 8, contain at least one of the required CAs in their
/// default trusted CA list.
///
///
///
/// 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:
///
/// -
///
/// Amazon Root CA 1
///
///
-
///
/// Starfield Services Root Certificate Authority - G2
///
///
-
///
/// Starfield Class 2 Certification Authority
///
///
///
/// 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();
private ILambdaPaginatorFactory _paginators;
///
/// Paginators for the service
///
public ILambdaPaginatorFactory Paginators
{
get
{
if (this._paginators == null)
{
this._paginators = new LambdaPaginatorFactory(this);
}
return this._paginators;
}
}
#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);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task AddLayerVersionPermissionAsync(AddLayerVersionPermissionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = AddLayerVersionPermissionRequestMarshaller.Instance;
options.ResponseUnmarshaller = AddLayerVersionPermissionResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task AddPermissionAsync(AddPermissionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = AddPermissionRequestMarshaller.Instance;
options.ResponseUnmarshaller = AddPermissionResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task CreateAliasAsync(CreateAliasRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateAliasRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateAliasResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task CreateCodeSigningConfigAsync(CreateCodeSigningConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateCodeSigningConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateCodeSigningConfigResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task CreateEventSourceMappingAsync(CreateEventSourceMappingRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateEventSourceMappingRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateEventSourceMappingResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task CreateFunctionAsync(CreateFunctionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateFunctionRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateFunctionResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task CreateFunctionUrlConfigAsync(CreateFunctionUrlConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateFunctionUrlConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateFunctionUrlConfigResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// Deletes a Lambda function alias.
///
/// Container for the necessary parameters to execute the DeleteAlias service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task DeleteAliasAsync(DeleteAliasRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteAliasRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteAliasResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task DeleteCodeSigningConfigAsync(DeleteCodeSigningConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteCodeSigningConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteCodeSigningConfigResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task DeleteEventSourceMappingAsync(DeleteEventSourceMappingRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteEventSourceMappingRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteEventSourceMappingResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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 name –
my-function
(name-only), my-function:1
(with version). - Function ARN –
arn:aws:lambda:us-west-2:123456789012:function:my-function
. - Partial ARN –
123456789012: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);
}
///
/// 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 name –
my-function
(name-only), my-function:1
(with version). - Function ARN –
arn:aws:lambda:us-west-2:123456789012:function:my-function
. - Partial ARN –
123456789012: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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task DeleteFunctionAsync(string functionName, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var request = new DeleteFunctionRequest();
request.FunctionName = functionName;
return DeleteFunctionAsync(request, cancellationToken);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task DeleteFunctionAsync(DeleteFunctionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteFunctionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteFunctionResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// Removes the code signing configuration from the function.
///
/// Container for the necessary parameters to execute the DeleteFunctionCodeSigningConfig service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task DeleteFunctionCodeSigningConfigAsync(DeleteFunctionCodeSigningConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteFunctionCodeSigningConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteFunctionCodeSigningConfigResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// Removes a concurrent execution limit from a function.
///
/// Container for the necessary parameters to execute the DeleteFunctionConcurrency service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task DeleteFunctionConcurrencyAsync(DeleteFunctionConcurrencyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteFunctionConcurrencyRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteFunctionConcurrencyResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task DeleteFunctionEventInvokeConfigAsync(DeleteFunctionEventInvokeConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteFunctionEventInvokeConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteFunctionEventInvokeConfigResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task DeleteFunctionUrlConfigAsync(DeleteFunctionUrlConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteFunctionUrlConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteFunctionUrlConfigResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task DeleteLayerVersionAsync(DeleteLayerVersionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteLayerVersionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteLayerVersionResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// Deletes the provisioned concurrency configuration for a function.
///
/// Container for the necessary parameters to execute the DeleteProvisionedConcurrencyConfig service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task DeleteProvisionedConcurrencyConfigAsync(DeleteProvisionedConcurrencyConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteProvisionedConcurrencyConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteProvisionedConcurrencyConfigResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task GetAccountSettingsAsync(GetAccountSettingsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetAccountSettingsRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetAccountSettingsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// Returns details about a Lambda function alias.
///
/// Container for the necessary parameters to execute the GetAlias service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task GetAliasAsync(GetAliasRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetAliasRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetAliasResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// Returns information about the specified code signing configuration.
///
/// Container for the necessary parameters to execute the GetCodeSigningConfig service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task GetCodeSigningConfigAsync(GetCodeSigningConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetCodeSigningConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetCodeSigningConfigResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task GetEventSourceMappingAsync(GetEventSourceMappingRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetEventSourceMappingRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetEventSourceMappingResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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 name –
my-function
(name-only), my-function:v1
(with alias). - Function ARN –
arn:aws:lambda:us-west-2:123456789012:function:my-function
. - Partial ARN –
123456789012: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);
}
///
/// 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 name –
my-function
(name-only), my-function:v1
(with alias). - Function ARN –
arn:aws:lambda:us-west-2:123456789012:function:my-function
. - Partial ARN –
123456789012: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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task GetFunctionAsync(string functionName, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var request = new GetFunctionRequest();
request.FunctionName = functionName;
return GetFunctionAsync(request, cancellationToken);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task GetFunctionAsync(GetFunctionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetFunctionRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetFunctionResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// Returns the code signing configuration for the specified function.
///
/// Container for the necessary parameters to execute the GetFunctionCodeSigningConfig service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task GetFunctionCodeSigningConfigAsync(GetFunctionCodeSigningConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetFunctionCodeSigningConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetFunctionCodeSigningConfigResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task GetFunctionConcurrencyAsync(GetFunctionConcurrencyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetFunctionConcurrencyRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetFunctionConcurrencyResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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 name –
my-function
(name-only), my-function:v1
(with alias). - Function ARN –
arn:aws:lambda:us-west-2:123456789012:function:my-function
. - Partial ARN –
123456789012: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);
}
///
/// 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 name –
my-function
(name-only), my-function:v1
(with alias). - Function ARN –
arn:aws:lambda:us-west-2:123456789012:function:my-function
. - Partial ARN –
123456789012: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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task GetFunctionConfigurationAsync(string functionName, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var request = new GetFunctionConfigurationRequest();
request.FunctionName = functionName;
return GetFunctionConfigurationAsync(request, cancellationToken);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task GetFunctionConfigurationAsync(GetFunctionConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetFunctionConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetFunctionConfigurationResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task GetFunctionEventInvokeConfigAsync(GetFunctionEventInvokeConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetFunctionEventInvokeConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetFunctionEventInvokeConfigResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// Returns details about a Lambda function URL.
///
/// Container for the necessary parameters to execute the GetFunctionUrlConfig service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task GetFunctionUrlConfigAsync(GetFunctionUrlConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetFunctionUrlConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetFunctionUrlConfigResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task GetLayerVersionAsync(GetLayerVersionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetLayerVersionRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetLayerVersionResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task GetLayerVersionByArnAsync(GetLayerVersionByArnRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetLayerVersionByArnRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetLayerVersionByArnResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task GetLayerVersionPolicyAsync(GetLayerVersionPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetLayerVersionPolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetLayerVersionPolicyResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// Returns the resource-based
/// IAM policy for a function, version, or alias.
///
/// Container for the necessary parameters to execute the GetPolicy service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task GetPolicyAsync(GetPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetPolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetPolicyResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// Retrieves the provisioned concurrency configuration for a function's alias or version.
///
/// Container for the necessary parameters to execute the GetProvisionedConcurrencyConfig service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task GetProvisionedConcurrencyConfigAsync(GetProvisionedConcurrencyConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetProvisionedConcurrencyConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetProvisionedConcurrencyConfigResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task GetRuntimeManagementConfigAsync(GetRuntimeManagementConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetRuntimeManagementConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetRuntimeManagementConfigResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task InvokeAsync(InvokeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = InvokeRequestMarshaller.Instance;
options.ResponseUnmarshaller = InvokeResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
///
///
/// For asynchronous function invocation, use Invoke.
///
///
///
/// Invokes a function asynchronously.
///
///
/// Container for the necessary parameters to execute the InvokeAsync service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task InvokeAsyncAsync(InvokeAsyncRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = InvokeAsyncRequestMarshaller.Instance;
options.ResponseUnmarshaller = InvokeAsyncResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task InvokeWithResponseStreamAsync(InvokeWithResponseStreamRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = InvokeWithResponseStreamRequestMarshaller.Instance;
options.ResponseUnmarshaller = InvokeWithResponseStreamResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// Returns a list of aliases
/// for a Lambda function.
///
/// Container for the necessary parameters to execute the ListAliases service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task ListAliasesAsync(ListAliasesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListAliasesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListAliasesResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task ListCodeSigningConfigsAsync(ListCodeSigningConfigsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListCodeSigningConfigsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListCodeSigningConfigsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task ListEventSourceMappingsAsync(ListEventSourceMappingsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListEventSourceMappingsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListEventSourceMappingsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task ListFunctionEventInvokeConfigsAsync(ListFunctionEventInvokeConfigsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListFunctionEventInvokeConfigsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListFunctionEventInvokeConfigsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// 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.
///
///
///
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task ListFunctionsAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var request = new ListFunctionsRequest();
return ListFunctionsAsync(request, cancellationToken);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task ListFunctionsAsync(ListFunctionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListFunctionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListFunctionsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task ListFunctionsByCodeSigningConfigAsync(ListFunctionsByCodeSigningConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListFunctionsByCodeSigningConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListFunctionsByCodeSigningConfigResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// Returns a list of Lambda function URLs for the specified function.
///
/// Container for the necessary parameters to execute the ListFunctionUrlConfigs service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task ListFunctionUrlConfigsAsync(ListFunctionUrlConfigsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListFunctionUrlConfigsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListFunctionUrlConfigsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task ListLayersAsync(ListLayersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListLayersRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListLayersResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task ListLayerVersionsAsync(ListLayerVersionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListLayerVersionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListLayerVersionsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// Retrieves a list of provisioned concurrency configurations for a function.
///
/// Container for the necessary parameters to execute the ListProvisionedConcurrencyConfigs service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task ListProvisionedConcurrencyConfigsAsync(ListProvisionedConcurrencyConfigsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListProvisionedConcurrencyConfigsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListProvisionedConcurrencyConfigsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// Returns a function's tags.
/// You can also view tags with GetFunction.
///
/// Container for the necessary parameters to execute the ListTags service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task ListTagsAsync(ListTagsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task ListVersionsByFunctionAsync(ListVersionsByFunctionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListVersionsByFunctionRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListVersionsByFunctionResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task PublishLayerVersionAsync(PublishLayerVersionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = PublishLayerVersionRequestMarshaller.Instance;
options.ResponseUnmarshaller = PublishLayerVersionResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task PublishVersionAsync(PublishVersionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = PublishVersionRequestMarshaller.Instance;
options.ResponseUnmarshaller = PublishVersionResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task PutFunctionCodeSigningConfigAsync(PutFunctionCodeSigningConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = PutFunctionCodeSigningConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutFunctionCodeSigningConfigResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task PutFunctionConcurrencyAsync(PutFunctionConcurrencyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = PutFunctionConcurrencyRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutFunctionConcurrencyResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task PutFunctionEventInvokeConfigAsync(PutFunctionEventInvokeConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = PutFunctionEventInvokeConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutFunctionEventInvokeConfigResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// Adds a provisioned concurrency configuration to a function's alias or version.
///
/// Container for the necessary parameters to execute the PutProvisionedConcurrencyConfig service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task PutProvisionedConcurrencyConfigAsync(PutProvisionedConcurrencyConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = PutProvisionedConcurrencyConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutProvisionedConcurrencyConfigResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task PutRuntimeManagementConfigAsync(PutRuntimeManagementConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = PutRuntimeManagementConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutRuntimeManagementConfigResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task RemoveLayerVersionPermissionAsync(RemoveLayerVersionPermissionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = RemoveLayerVersionPermissionRequestMarshaller.Instance;
options.ResponseUnmarshaller = RemoveLayerVersionPermissionResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task RemovePermissionAsync(RemovePermissionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = RemovePermissionRequestMarshaller.Instance;
options.ResponseUnmarshaller = RemovePermissionResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// Adds tags
/// to a function.
///
/// Container for the necessary parameters to execute the TagResource service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// Removes tags
/// from a function.
///
/// Container for the necessary parameters to execute the UntagResource service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task UntagResourceAsync(UntagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// Updates the configuration of a Lambda function alias.
///
/// Container for the necessary parameters to execute the UpdateAlias service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task UpdateAliasAsync(UpdateAliasRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateAliasRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateAliasResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task UpdateCodeSigningConfigAsync(UpdateCodeSigningConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateCodeSigningConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateCodeSigningConfigResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task UpdateEventSourceMappingAsync(UpdateEventSourceMappingRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateEventSourceMappingRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateEventSourceMappingResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task UpdateFunctionCodeAsync(UpdateFunctionCodeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateFunctionCodeRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateFunctionCodeResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task UpdateFunctionConfigurationAsync(UpdateFunctionConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateFunctionConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateFunctionConfigurationResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task UpdateFunctionEventInvokeConfigAsync(UpdateFunctionEventInvokeConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateFunctionEventInvokeConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateFunctionEventInvokeConfigResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// Updates the configuration for a Lambda function URL.
///
/// Container for the necessary parameters to execute the UpdateFunctionUrlConfig service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task UpdateFunctionUrlConfigAsync(UpdateFunctionUrlConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateFunctionUrlConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateFunctionUrlConfigResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
}
}