Interface LambdaClient
-
- All Superinterfaces:
AutoCloseable
,AwsClient
,SdkAutoCloseable
,SdkClient
@Generated("software.amazon.awssdk:codegen") @ThreadSafe public interface LambdaClient extends AwsClient
Service client for accessing AWS Lambda. This can be created using the staticbuilder()
method.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.
-
-
Field Summary
Fields Modifier and Type Field Description static String
SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider
.static String
SERVICE_NAME
-
Method Summary
-
Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
close
-
Methods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
-
-
-
Field Detail
-
SERVICE_NAME
static final String SERVICE_NAME
- See Also:
- Constant Field Values
-
SERVICE_METADATA_ID
static final String SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider
.- See Also:
- Constant Field Values
-
-
Method Detail
-
addLayerVersionPermission
default AddLayerVersionPermissionResponse addLayerVersionPermission(AddLayerVersionPermissionRequest addLayerVersionPermissionRequest) throws ServiceException, ResourceNotFoundException, ResourceConflictException, TooManyRequestsException, InvalidParameterValueException, PolicyLengthExceededException, PreconditionFailedException, AwsServiceException, SdkClientException, LambdaException
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.
- Parameters:
addLayerVersionPermissionRequest
-- Returns:
- Result of the AddLayerVersionPermission operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.ResourceConflictException
- The resource already exists, or another operation is in progress.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.InvalidParameterValueException
- One of the parameters in the request is not valid.PolicyLengthExceededException
- The permissions policy for the resource is too large. For more information, see Lambda quotas.PreconditionFailedException
- The RevisionId provided does not match the latest RevisionId for the Lambda function or alias.-
For AddPermission and RemovePermission API operations: Call
GetPolicy
to retrieve the latest RevisionId for your resource. -
For all other API operations: Call
GetFunction
orGetAlias
to retrieve the latest RevisionId for your resource.
-
SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
addLayerVersionPermission
default AddLayerVersionPermissionResponse addLayerVersionPermission(Consumer<AddLayerVersionPermissionRequest.Builder> addLayerVersionPermissionRequest) throws ServiceException, ResourceNotFoundException, ResourceConflictException, TooManyRequestsException, InvalidParameterValueException, PolicyLengthExceededException, PreconditionFailedException, AwsServiceException, SdkClientException, LambdaException
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.
This is a convenience which creates an instance of the
AddLayerVersionPermissionRequest.Builder
avoiding the need to create one manually viaAddLayerVersionPermissionRequest.builder()
- Parameters:
addLayerVersionPermissionRequest
- AConsumer
that will call methods onAddLayerVersionPermissionRequest.Builder
to create a request.- Returns:
- Result of the AddLayerVersionPermission operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.ResourceConflictException
- The resource already exists, or another operation is in progress.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.InvalidParameterValueException
- One of the parameters in the request is not valid.PolicyLengthExceededException
- The permissions policy for the resource is too large. For more information, see Lambda quotas.PreconditionFailedException
- The RevisionId provided does not match the latest RevisionId for the Lambda function or alias.-
For AddPermission and RemovePermission API operations: Call
GetPolicy
to retrieve the latest RevisionId for your resource. -
For all other API operations: Call
GetFunction
orGetAlias
to retrieve the latest RevisionId for your resource.
-
SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
addPermission
default AddPermissionResponse addPermission(AddPermissionRequest addPermissionRequest) throws ServiceException, ResourceNotFoundException, ResourceConflictException, InvalidParameterValueException, PolicyLengthExceededException, TooManyRequestsException, PreconditionFailedException, AwsServiceException, SdkClientException, LambdaException
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 thePrincipalOrgID
. For Amazon Web Services, the principal is a domain-style identifier that the service defines, such ass3.amazonaws.com
orsns.amazonaws.com
. For Amazon Web Services, you can also specify the ARN of the associated resource as theSourceArn
. 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.
- Parameters:
addPermissionRequest
-- Returns:
- Result of the AddPermission operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.ResourceConflictException
- The resource already exists, or another operation is in progress.InvalidParameterValueException
- One of the parameters in the request is not valid.PolicyLengthExceededException
- The permissions policy for the resource is too large. For more information, see Lambda quotas.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.PreconditionFailedException
- The RevisionId provided does not match the latest RevisionId for the Lambda function or alias.-
For AddPermission and RemovePermission API operations: Call
GetPolicy
to retrieve the latest RevisionId for your resource. -
For all other API operations: Call
GetFunction
orGetAlias
to retrieve the latest RevisionId for your resource.
-
SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
addPermission
default AddPermissionResponse addPermission(Consumer<AddPermissionRequest.Builder> addPermissionRequest) throws ServiceException, ResourceNotFoundException, ResourceConflictException, InvalidParameterValueException, PolicyLengthExceededException, TooManyRequestsException, PreconditionFailedException, AwsServiceException, SdkClientException, LambdaException
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 thePrincipalOrgID
. For Amazon Web Services, the principal is a domain-style identifier that the service defines, such ass3.amazonaws.com
orsns.amazonaws.com
. For Amazon Web Services, you can also specify the ARN of the associated resource as theSourceArn
. 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.
This is a convenience which creates an instance of the
AddPermissionRequest.Builder
avoiding the need to create one manually viaAddPermissionRequest.builder()
- Parameters:
addPermissionRequest
- AConsumer
that will call methods onAddPermissionRequest.Builder
to create a request.- Returns:
- Result of the AddPermission operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.ResourceConflictException
- The resource already exists, or another operation is in progress.InvalidParameterValueException
- One of the parameters in the request is not valid.PolicyLengthExceededException
- The permissions policy for the resource is too large. For more information, see Lambda quotas.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.PreconditionFailedException
- The RevisionId provided does not match the latest RevisionId for the Lambda function or alias.-
For AddPermission and RemovePermission API operations: Call
GetPolicy
to retrieve the latest RevisionId for your resource. -
For all other API operations: Call
GetFunction
orGetAlias
to retrieve the latest RevisionId for your resource.
-
SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
createAlias
default CreateAliasResponse createAlias(CreateAliasRequest createAliasRequest) throws ServiceException, ResourceNotFoundException, ResourceConflictException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
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.- Parameters:
createAliasRequest
-- Returns:
- Result of the CreateAlias operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.ResourceConflictException
- The resource already exists, or another operation is in progress.InvalidParameterValueException
- One of the parameters in the request is not valid.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
createAlias
default CreateAliasResponse createAlias(Consumer<CreateAliasRequest.Builder> createAliasRequest) throws ServiceException, ResourceNotFoundException, ResourceConflictException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
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.
This is a convenience which creates an instance of the
CreateAliasRequest.Builder
avoiding the need to create one manually viaCreateAliasRequest.builder()
- Parameters:
createAliasRequest
- AConsumer
that will call methods onCreateAliasRequest.Builder
to create a request.- Returns:
- Result of the CreateAlias operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.ResourceConflictException
- The resource already exists, or another operation is in progress.InvalidParameterValueException
- One of the parameters in the request is not valid.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
createCodeSigningConfig
default CreateCodeSigningConfigResponse createCodeSigningConfig(CreateCodeSigningConfigRequest createCodeSigningConfigRequest) throws ServiceException, InvalidParameterValueException, AwsServiceException, SdkClientException, LambdaException
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).
- Parameters:
createCodeSigningConfigRequest
-- Returns:
- Result of the CreateCodeSigningConfig operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.InvalidParameterValueException
- One of the parameters in the request is not valid.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
createCodeSigningConfig
default CreateCodeSigningConfigResponse createCodeSigningConfig(Consumer<CreateCodeSigningConfigRequest.Builder> createCodeSigningConfigRequest) throws ServiceException, InvalidParameterValueException, AwsServiceException, SdkClientException, LambdaException
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).
This is a convenience which creates an instance of the
CreateCodeSigningConfigRequest.Builder
avoiding the need to create one manually viaCreateCodeSigningConfigRequest.builder()
- Parameters:
createCodeSigningConfigRequest
- AConsumer
that will call methods onCreateCodeSigningConfigRequest.Builder
to create a request.- Returns:
- Result of the CreateCodeSigningConfig operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.InvalidParameterValueException
- One of the parameters in the request is not valid.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
createEventSourceMapping
default CreateEventSourceMappingResponse createEventSourceMapping(CreateEventSourceMappingRequest createEventSourceMappingRequest) throws ServiceException, InvalidParameterValueException, ResourceConflictException, TooManyRequestsException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaException
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.
- Parameters:
createEventSourceMappingRequest
-- Returns:
- Result of the CreateEventSourceMapping operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.InvalidParameterValueException
- One of the parameters in the request is not valid.ResourceConflictException
- The resource already exists, or another operation is in progress.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.ResourceNotFoundException
- The resource specified in the request does not exist.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
createEventSourceMapping
default CreateEventSourceMappingResponse createEventSourceMapping(Consumer<CreateEventSourceMappingRequest.Builder> createEventSourceMappingRequest) throws ServiceException, InvalidParameterValueException, ResourceConflictException, TooManyRequestsException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaException
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.
This is a convenience which creates an instance of the
CreateEventSourceMappingRequest.Builder
avoiding the need to create one manually viaCreateEventSourceMappingRequest.builder()
- Parameters:
createEventSourceMappingRequest
- AConsumer
that will call methods onCreateEventSourceMappingRequest.Builder
to create a request.- Returns:
- Result of the CreateEventSourceMapping operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.InvalidParameterValueException
- One of the parameters in the request is not valid.ResourceConflictException
- The resource already exists, or another operation is in progress.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.ResourceNotFoundException
- The resource specified in the request does not exist.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
createFunction
default CreateFunctionResponse createFunction(CreateFunctionRequest createFunctionRequest) throws ServiceException, InvalidParameterValueException, ResourceNotFoundException, ResourceConflictException, TooManyRequestsException, CodeStorageExceededException, CodeVerificationFailedException, InvalidCodeSignatureException, CodeSigningConfigNotFoundException, AwsServiceException, SdkClientException, LambdaException
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
orarm64
). If you do not specify the architecture, then the default value isx86-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
, andStateReasonCode
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 version1
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.
- Parameters:
createFunctionRequest
-- Returns:
- Result of the CreateFunction operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.InvalidParameterValueException
- One of the parameters in the request is not valid.ResourceNotFoundException
- The resource specified in the request does not exist.ResourceConflictException
- The resource already exists, or another operation is in progress.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.CodeStorageExceededException
- Your Amazon Web Services account has exceeded its maximum total code size. For more information, see Lambda quotas.CodeVerificationFailedException
- 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.InvalidCodeSignatureException
- 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.CodeSigningConfigNotFoundException
- The specified code signing configuration does not exist.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
createFunction
default CreateFunctionResponse createFunction(Consumer<CreateFunctionRequest.Builder> createFunctionRequest) throws ServiceException, InvalidParameterValueException, ResourceNotFoundException, ResourceConflictException, TooManyRequestsException, CodeStorageExceededException, CodeVerificationFailedException, InvalidCodeSignatureException, CodeSigningConfigNotFoundException, AwsServiceException, SdkClientException, LambdaException
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
orarm64
). If you do not specify the architecture, then the default value isx86-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
, andStateReasonCode
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 version1
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.
This is a convenience which creates an instance of the
CreateFunctionRequest.Builder
avoiding the need to create one manually viaCreateFunctionRequest.builder()
- Parameters:
createFunctionRequest
- AConsumer
that will call methods onCreateFunctionRequest.Builder
to create a request.- Returns:
- Result of the CreateFunction operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.InvalidParameterValueException
- One of the parameters in the request is not valid.ResourceNotFoundException
- The resource specified in the request does not exist.ResourceConflictException
- The resource already exists, or another operation is in progress.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.CodeStorageExceededException
- Your Amazon Web Services account has exceeded its maximum total code size. For more information, see Lambda quotas.CodeVerificationFailedException
- 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.InvalidCodeSignatureException
- 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.CodeSigningConfigNotFoundException
- The specified code signing configuration does not exist.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
createFunctionUrlConfig
default CreateFunctionUrlConfigResponse createFunctionUrlConfig(CreateFunctionUrlConfigRequest createFunctionUrlConfigRequest) throws ResourceConflictException, ResourceNotFoundException, InvalidParameterValueException, ServiceException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
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.
- Parameters:
createFunctionUrlConfigRequest
-- Returns:
- Result of the CreateFunctionUrlConfig operation returned by the service.
- Throws:
ResourceConflictException
- The resource already exists, or another operation is in progress.ResourceNotFoundException
- The resource specified in the request does not exist.InvalidParameterValueException
- One of the parameters in the request is not valid.ServiceException
- The Lambda service encountered an internal error.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
createFunctionUrlConfig
default CreateFunctionUrlConfigResponse createFunctionUrlConfig(Consumer<CreateFunctionUrlConfigRequest.Builder> createFunctionUrlConfigRequest) throws ResourceConflictException, ResourceNotFoundException, InvalidParameterValueException, ServiceException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
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.
This is a convenience which creates an instance of the
CreateFunctionUrlConfigRequest.Builder
avoiding the need to create one manually viaCreateFunctionUrlConfigRequest.builder()
- Parameters:
createFunctionUrlConfigRequest
- AConsumer
that will call methods onCreateFunctionUrlConfigRequest.Builder
to create a request.- Returns:
- Result of the CreateFunctionUrlConfig operation returned by the service.
- Throws:
ResourceConflictException
- The resource already exists, or another operation is in progress.ResourceNotFoundException
- The resource specified in the request does not exist.InvalidParameterValueException
- One of the parameters in the request is not valid.ServiceException
- The Lambda service encountered an internal error.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
deleteAlias
default DeleteAliasResponse deleteAlias(DeleteAliasRequest deleteAliasRequest) throws ServiceException, InvalidParameterValueException, ResourceConflictException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Deletes a Lambda function alias.
- Parameters:
deleteAliasRequest
-- Returns:
- Result of the DeleteAlias operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.InvalidParameterValueException
- One of the parameters in the request is not valid.ResourceConflictException
- The resource already exists, or another operation is in progress.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
deleteAlias
default DeleteAliasResponse deleteAlias(Consumer<DeleteAliasRequest.Builder> deleteAliasRequest) throws ServiceException, InvalidParameterValueException, ResourceConflictException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Deletes a Lambda function alias.
This is a convenience which creates an instance of the
DeleteAliasRequest.Builder
avoiding the need to create one manually viaDeleteAliasRequest.builder()
- Parameters:
deleteAliasRequest
- AConsumer
that will call methods onDeleteAliasRequest.Builder
to create a request.- Returns:
- Result of the DeleteAlias operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.InvalidParameterValueException
- One of the parameters in the request is not valid.ResourceConflictException
- The resource already exists, or another operation is in progress.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
deleteCodeSigningConfig
default DeleteCodeSigningConfigResponse deleteCodeSigningConfig(DeleteCodeSigningConfigRequest deleteCodeSigningConfigRequest) throws ServiceException, InvalidParameterValueException, ResourceNotFoundException, ResourceConflictException, AwsServiceException, SdkClientException, LambdaException
Deletes the code signing configuration. You can delete the code signing configuration only if no function is using it.
- Parameters:
deleteCodeSigningConfigRequest
-- Returns:
- Result of the DeleteCodeSigningConfig operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.InvalidParameterValueException
- One of the parameters in the request is not valid.ResourceNotFoundException
- The resource specified in the request does not exist.ResourceConflictException
- The resource already exists, or another operation is in progress.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
deleteCodeSigningConfig
default DeleteCodeSigningConfigResponse deleteCodeSigningConfig(Consumer<DeleteCodeSigningConfigRequest.Builder> deleteCodeSigningConfigRequest) throws ServiceException, InvalidParameterValueException, ResourceNotFoundException, ResourceConflictException, AwsServiceException, SdkClientException, LambdaException
Deletes the code signing configuration. You can delete the code signing configuration only if no function is using it.
This is a convenience which creates an instance of the
DeleteCodeSigningConfigRequest.Builder
avoiding the need to create one manually viaDeleteCodeSigningConfigRequest.builder()
- Parameters:
deleteCodeSigningConfigRequest
- AConsumer
that will call methods onDeleteCodeSigningConfigRequest.Builder
to create a request.- Returns:
- Result of the DeleteCodeSigningConfig operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.InvalidParameterValueException
- One of the parameters in the request is not valid.ResourceNotFoundException
- The resource specified in the request does not exist.ResourceConflictException
- The resource already exists, or another operation is in progress.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
deleteEventSourceMapping
default DeleteEventSourceMappingResponse deleteEventSourceMapping(DeleteEventSourceMappingRequest deleteEventSourceMappingRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, ResourceConflictException, ResourceInUseException, AwsServiceException, SdkClientException, LambdaException
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.- Parameters:
deleteEventSourceMappingRequest
-- Returns:
- Result of the DeleteEventSourceMapping operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.InvalidParameterValueException
- One of the parameters in the request is not valid.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.ResourceConflictException
- The resource already exists, or another operation is in progress.ResourceInUseException
- 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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
deleteEventSourceMapping
default DeleteEventSourceMappingResponse deleteEventSourceMapping(Consumer<DeleteEventSourceMappingRequest.Builder> deleteEventSourceMappingRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, ResourceConflictException, ResourceInUseException, AwsServiceException, SdkClientException, LambdaException
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.
This is a convenience which creates an instance of the
DeleteEventSourceMappingRequest.Builder
avoiding the need to create one manually viaDeleteEventSourceMappingRequest.builder()
- Parameters:
deleteEventSourceMappingRequest
- AConsumer
that will call methods onDeleteEventSourceMappingRequest.Builder
to create a request.- Returns:
- Result of the DeleteEventSourceMapping operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.InvalidParameterValueException
- One of the parameters in the request is not valid.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.ResourceConflictException
- The resource already exists, or another operation is in progress.ResourceInUseException
- 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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
deleteFunction
default DeleteFunctionResponse deleteFunction(DeleteFunctionRequest deleteFunctionRequest) throws ServiceException, ResourceNotFoundException, TooManyRequestsException, InvalidParameterValueException, ResourceConflictException, AwsServiceException, SdkClientException, LambdaException
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.
- Parameters:
deleteFunctionRequest
-- Returns:
- Result of the DeleteFunction operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.InvalidParameterValueException
- One of the parameters in the request is not valid.ResourceConflictException
- The resource already exists, or another operation is in progress.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
deleteFunction
default DeleteFunctionResponse deleteFunction(Consumer<DeleteFunctionRequest.Builder> deleteFunctionRequest) throws ServiceException, ResourceNotFoundException, TooManyRequestsException, InvalidParameterValueException, ResourceConflictException, AwsServiceException, SdkClientException, LambdaException
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.
This is a convenience which creates an instance of the
DeleteFunctionRequest.Builder
avoiding the need to create one manually viaDeleteFunctionRequest.builder()
- Parameters:
deleteFunctionRequest
- AConsumer
that will call methods onDeleteFunctionRequest.Builder
to create a request.- Returns:
- Result of the DeleteFunction operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.InvalidParameterValueException
- One of the parameters in the request is not valid.ResourceConflictException
- The resource already exists, or another operation is in progress.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
deleteFunctionCodeSigningConfig
default DeleteFunctionCodeSigningConfigResponse deleteFunctionCodeSigningConfig(DeleteFunctionCodeSigningConfigRequest deleteFunctionCodeSigningConfigRequest) throws InvalidParameterValueException, CodeSigningConfigNotFoundException, ResourceNotFoundException, ServiceException, TooManyRequestsException, ResourceConflictException, AwsServiceException, SdkClientException, LambdaException
Removes the code signing configuration from the function.
- Parameters:
deleteFunctionCodeSigningConfigRequest
-- Returns:
- Result of the DeleteFunctionCodeSigningConfig operation returned by the service.
- Throws:
InvalidParameterValueException
- One of the parameters in the request is not valid.CodeSigningConfigNotFoundException
- The specified code signing configuration does not exist.ResourceNotFoundException
- The resource specified in the request does not exist.ServiceException
- The Lambda service encountered an internal error.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.ResourceConflictException
- The resource already exists, or another operation is in progress.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
deleteFunctionCodeSigningConfig
default DeleteFunctionCodeSigningConfigResponse deleteFunctionCodeSigningConfig(Consumer<DeleteFunctionCodeSigningConfigRequest.Builder> deleteFunctionCodeSigningConfigRequest) throws InvalidParameterValueException, CodeSigningConfigNotFoundException, ResourceNotFoundException, ServiceException, TooManyRequestsException, ResourceConflictException, AwsServiceException, SdkClientException, LambdaException
Removes the code signing configuration from the function.
This is a convenience which creates an instance of the
DeleteFunctionCodeSigningConfigRequest.Builder
avoiding the need to create one manually viaDeleteFunctionCodeSigningConfigRequest.builder()
- Parameters:
deleteFunctionCodeSigningConfigRequest
- AConsumer
that will call methods onDeleteFunctionCodeSigningConfigRequest.Builder
to create a request.- Returns:
- Result of the DeleteFunctionCodeSigningConfig operation returned by the service.
- Throws:
InvalidParameterValueException
- One of the parameters in the request is not valid.CodeSigningConfigNotFoundException
- The specified code signing configuration does not exist.ResourceNotFoundException
- The resource specified in the request does not exist.ServiceException
- The Lambda service encountered an internal error.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.ResourceConflictException
- The resource already exists, or another operation is in progress.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
deleteFunctionConcurrency
default DeleteFunctionConcurrencyResponse deleteFunctionConcurrency(DeleteFunctionConcurrencyRequest deleteFunctionConcurrencyRequest) throws ServiceException, ResourceNotFoundException, TooManyRequestsException, InvalidParameterValueException, ResourceConflictException, AwsServiceException, SdkClientException, LambdaException
Removes a concurrent execution limit from a function.
- Parameters:
deleteFunctionConcurrencyRequest
-- Returns:
- Result of the DeleteFunctionConcurrency operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.InvalidParameterValueException
- One of the parameters in the request is not valid.ResourceConflictException
- The resource already exists, or another operation is in progress.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
deleteFunctionConcurrency
default DeleteFunctionConcurrencyResponse deleteFunctionConcurrency(Consumer<DeleteFunctionConcurrencyRequest.Builder> deleteFunctionConcurrencyRequest) throws ServiceException, ResourceNotFoundException, TooManyRequestsException, InvalidParameterValueException, ResourceConflictException, AwsServiceException, SdkClientException, LambdaException
Removes a concurrent execution limit from a function.
This is a convenience which creates an instance of the
DeleteFunctionConcurrencyRequest.Builder
avoiding the need to create one manually viaDeleteFunctionConcurrencyRequest.builder()
- Parameters:
deleteFunctionConcurrencyRequest
- AConsumer
that will call methods onDeleteFunctionConcurrencyRequest.Builder
to create a request.- Returns:
- Result of the DeleteFunctionConcurrency operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.InvalidParameterValueException
- One of the parameters in the request is not valid.ResourceConflictException
- The resource already exists, or another operation is in progress.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
deleteFunctionEventInvokeConfig
default DeleteFunctionEventInvokeConfigResponse deleteFunctionEventInvokeConfig(DeleteFunctionEventInvokeConfigRequest deleteFunctionEventInvokeConfigRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, ResourceConflictException, AwsServiceException, SdkClientException, LambdaException
Deletes the configuration for asynchronous invocation for a function, version, or alias.
To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.
- Parameters:
deleteFunctionEventInvokeConfigRequest
-- Returns:
- Result of the DeleteFunctionEventInvokeConfig operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.InvalidParameterValueException
- One of the parameters in the request is not valid.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.ResourceConflictException
- The resource already exists, or another operation is in progress.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
deleteFunctionEventInvokeConfig
default DeleteFunctionEventInvokeConfigResponse deleteFunctionEventInvokeConfig(Consumer<DeleteFunctionEventInvokeConfigRequest.Builder> deleteFunctionEventInvokeConfigRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, ResourceConflictException, AwsServiceException, SdkClientException, LambdaException
Deletes the configuration for asynchronous invocation for a function, version, or alias.
To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.
This is a convenience which creates an instance of the
DeleteFunctionEventInvokeConfigRequest.Builder
avoiding the need to create one manually viaDeleteFunctionEventInvokeConfigRequest.builder()
- Parameters:
deleteFunctionEventInvokeConfigRequest
- AConsumer
that will call methods onDeleteFunctionEventInvokeConfigRequest.Builder
to create a request.- Returns:
- Result of the DeleteFunctionEventInvokeConfig operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.InvalidParameterValueException
- One of the parameters in the request is not valid.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.ResourceConflictException
- The resource already exists, or another operation is in progress.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
deleteFunctionUrlConfig
default DeleteFunctionUrlConfigResponse deleteFunctionUrlConfig(DeleteFunctionUrlConfigRequest deleteFunctionUrlConfigRequest) throws ResourceConflictException, ResourceNotFoundException, ServiceException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
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.
- Parameters:
deleteFunctionUrlConfigRequest
-- Returns:
- Result of the DeleteFunctionUrlConfig operation returned by the service.
- Throws:
ResourceConflictException
- The resource already exists, or another operation is in progress.ResourceNotFoundException
- The resource specified in the request does not exist.ServiceException
- The Lambda service encountered an internal error.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
deleteFunctionUrlConfig
default DeleteFunctionUrlConfigResponse deleteFunctionUrlConfig(Consumer<DeleteFunctionUrlConfigRequest.Builder> deleteFunctionUrlConfigRequest) throws ResourceConflictException, ResourceNotFoundException, ServiceException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
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.
This is a convenience which creates an instance of the
DeleteFunctionUrlConfigRequest.Builder
avoiding the need to create one manually viaDeleteFunctionUrlConfigRequest.builder()
- Parameters:
deleteFunctionUrlConfigRequest
- AConsumer
that will call methods onDeleteFunctionUrlConfigRequest.Builder
to create a request.- Returns:
- Result of the DeleteFunctionUrlConfig operation returned by the service.
- Throws:
ResourceConflictException
- The resource already exists, or another operation is in progress.ResourceNotFoundException
- The resource specified in the request does not exist.ServiceException
- The Lambda service encountered an internal error.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
deleteLayerVersion
default DeleteLayerVersionResponse deleteLayerVersion(DeleteLayerVersionRequest deleteLayerVersionRequest) throws ServiceException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
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.
- Parameters:
deleteLayerVersionRequest
-- Returns:
- Result of the DeleteLayerVersion operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
deleteLayerVersion
default DeleteLayerVersionResponse deleteLayerVersion(Consumer<DeleteLayerVersionRequest.Builder> deleteLayerVersionRequest) throws ServiceException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
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.
This is a convenience which creates an instance of the
DeleteLayerVersionRequest.Builder
avoiding the need to create one manually viaDeleteLayerVersionRequest.builder()
- Parameters:
deleteLayerVersionRequest
- AConsumer
that will call methods onDeleteLayerVersionRequest.Builder
to create a request.- Returns:
- Result of the DeleteLayerVersion operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
deleteProvisionedConcurrencyConfig
default DeleteProvisionedConcurrencyConfigResponse deleteProvisionedConcurrencyConfig(DeleteProvisionedConcurrencyConfigRequest deleteProvisionedConcurrencyConfigRequest) throws InvalidParameterValueException, ResourceConflictException, ResourceNotFoundException, TooManyRequestsException, ServiceException, AwsServiceException, SdkClientException, LambdaException
Deletes the provisioned concurrency configuration for a function.
- Parameters:
deleteProvisionedConcurrencyConfigRequest
-- Returns:
- Result of the DeleteProvisionedConcurrencyConfig operation returned by the service.
- Throws:
InvalidParameterValueException
- One of the parameters in the request is not valid.ResourceConflictException
- The resource already exists, or another operation is in progress.ResourceNotFoundException
- The resource specified in the request does not exist.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.ServiceException
- The Lambda service encountered an internal error.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
deleteProvisionedConcurrencyConfig
default DeleteProvisionedConcurrencyConfigResponse deleteProvisionedConcurrencyConfig(Consumer<DeleteProvisionedConcurrencyConfigRequest.Builder> deleteProvisionedConcurrencyConfigRequest) throws InvalidParameterValueException, ResourceConflictException, ResourceNotFoundException, TooManyRequestsException, ServiceException, AwsServiceException, SdkClientException, LambdaException
Deletes the provisioned concurrency configuration for a function.
This is a convenience which creates an instance of the
DeleteProvisionedConcurrencyConfigRequest.Builder
avoiding the need to create one manually viaDeleteProvisionedConcurrencyConfigRequest.builder()
- Parameters:
deleteProvisionedConcurrencyConfigRequest
- AConsumer
that will call methods onDeleteProvisionedConcurrencyConfigRequest.Builder
to create a request.- Returns:
- Result of the DeleteProvisionedConcurrencyConfig operation returned by the service.
- Throws:
InvalidParameterValueException
- One of the parameters in the request is not valid.ResourceConflictException
- The resource already exists, or another operation is in progress.ResourceNotFoundException
- The resource specified in the request does not exist.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.ServiceException
- The Lambda service encountered an internal error.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
getAccountSettings
default GetAccountSettingsResponse getAccountSettings(GetAccountSettingsRequest getAccountSettingsRequest) throws TooManyRequestsException, ServiceException, AwsServiceException, SdkClientException, LambdaException
Retrieves details about your account's limits and usage in an Amazon Web Services Region.
- Parameters:
getAccountSettingsRequest
-- Returns:
- Result of the GetAccountSettings operation returned by the service.
- Throws:
TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.ServiceException
- The Lambda service encountered an internal error.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
getAccountSettings
default GetAccountSettingsResponse getAccountSettings(Consumer<GetAccountSettingsRequest.Builder> getAccountSettingsRequest) throws TooManyRequestsException, ServiceException, AwsServiceException, SdkClientException, LambdaException
Retrieves details about your account's limits and usage in an Amazon Web Services Region.
This is a convenience which creates an instance of the
GetAccountSettingsRequest.Builder
avoiding the need to create one manually viaGetAccountSettingsRequest.builder()
- Parameters:
getAccountSettingsRequest
- AConsumer
that will call methods onGetAccountSettingsRequest.Builder
to create a request.- Returns:
- Result of the GetAccountSettings operation returned by the service.
- Throws:
TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.ServiceException
- The Lambda service encountered an internal error.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
getAccountSettings
default GetAccountSettingsResponse getAccountSettings() throws TooManyRequestsException, ServiceException, AwsServiceException, SdkClientException, LambdaException
Retrieves details about your account's limits and usage in an Amazon Web Services Region.
- Returns:
- Result of the GetAccountSettings operation returned by the service.
- Throws:
TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.ServiceException
- The Lambda service encountered an internal error.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
getAccountSettings(GetAccountSettingsRequest)
, AWS API Documentation
-
getAlias
default GetAliasResponse getAlias(GetAliasRequest getAliasRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Returns details about a Lambda function alias.
- Parameters:
getAliasRequest
-- Returns:
- Result of the GetAlias operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.InvalidParameterValueException
- One of the parameters in the request is not valid.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
getAlias
default GetAliasResponse getAlias(Consumer<GetAliasRequest.Builder> getAliasRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Returns details about a Lambda function alias.
This is a convenience which creates an instance of the
GetAliasRequest.Builder
avoiding the need to create one manually viaGetAliasRequest.builder()
- Parameters:
getAliasRequest
- AConsumer
that will call methods onGetAliasRequest.Builder
to create a request.- Returns:
- Result of the GetAlias operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.InvalidParameterValueException
- One of the parameters in the request is not valid.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
getCodeSigningConfig
default GetCodeSigningConfigResponse getCodeSigningConfig(GetCodeSigningConfigRequest getCodeSigningConfigRequest) throws ServiceException, InvalidParameterValueException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaException
Returns information about the specified code signing configuration.
- Parameters:
getCodeSigningConfigRequest
-- Returns:
- Result of the GetCodeSigningConfig operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.InvalidParameterValueException
- One of the parameters in the request is not valid.ResourceNotFoundException
- The resource specified in the request does not exist.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
getCodeSigningConfig
default GetCodeSigningConfigResponse getCodeSigningConfig(Consumer<GetCodeSigningConfigRequest.Builder> getCodeSigningConfigRequest) throws ServiceException, InvalidParameterValueException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaException
Returns information about the specified code signing configuration.
This is a convenience which creates an instance of the
GetCodeSigningConfigRequest.Builder
avoiding the need to create one manually viaGetCodeSigningConfigRequest.builder()
- Parameters:
getCodeSigningConfigRequest
- AConsumer
that will call methods onGetCodeSigningConfigRequest.Builder
to create a request.- Returns:
- Result of the GetCodeSigningConfig operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.InvalidParameterValueException
- One of the parameters in the request is not valid.ResourceNotFoundException
- The resource specified in the request does not exist.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
getEventSourceMapping
default GetEventSourceMappingResponse getEventSourceMapping(GetEventSourceMappingRequest getEventSourceMappingRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Returns details about an event source mapping. You can get the identifier of a mapping from the output of ListEventSourceMappings.
- Parameters:
getEventSourceMappingRequest
-- Returns:
- Result of the GetEventSourceMapping operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.InvalidParameterValueException
- One of the parameters in the request is not valid.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
getEventSourceMapping
default GetEventSourceMappingResponse getEventSourceMapping(Consumer<GetEventSourceMappingRequest.Builder> getEventSourceMappingRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Returns details about an event source mapping. You can get the identifier of a mapping from the output of ListEventSourceMappings.
This is a convenience which creates an instance of the
GetEventSourceMappingRequest.Builder
avoiding the need to create one manually viaGetEventSourceMappingRequest.builder()
- Parameters:
getEventSourceMappingRequest
- AConsumer
that will call methods onGetEventSourceMappingRequest.Builder
to create a request.- Returns:
- Result of the GetEventSourceMapping operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.InvalidParameterValueException
- One of the parameters in the request is not valid.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
getFunction
default GetFunctionResponse getFunction(GetFunctionRequest getFunctionRequest) throws ServiceException, ResourceNotFoundException, TooManyRequestsException, InvalidParameterValueException, AwsServiceException, SdkClientException, LambdaException
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.
- Parameters:
getFunctionRequest
-- Returns:
- Result of the GetFunction operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.InvalidParameterValueException
- One of the parameters in the request is not valid.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
getFunction
default GetFunctionResponse getFunction(Consumer<GetFunctionRequest.Builder> getFunctionRequest) throws ServiceException, ResourceNotFoundException, TooManyRequestsException, InvalidParameterValueException, AwsServiceException, SdkClientException, LambdaException
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.
This is a convenience which creates an instance of the
GetFunctionRequest.Builder
avoiding the need to create one manually viaGetFunctionRequest.builder()
- Parameters:
getFunctionRequest
- AConsumer
that will call methods onGetFunctionRequest.Builder
to create a request.- Returns:
- Result of the GetFunction operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.InvalidParameterValueException
- One of the parameters in the request is not valid.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
getFunctionCodeSigningConfig
default GetFunctionCodeSigningConfigResponse getFunctionCodeSigningConfig(GetFunctionCodeSigningConfigRequest getFunctionCodeSigningConfigRequest) throws InvalidParameterValueException, ResourceNotFoundException, ServiceException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Returns the code signing configuration for the specified function.
- Parameters:
getFunctionCodeSigningConfigRequest
-- Returns:
- Result of the GetFunctionCodeSigningConfig operation returned by the service.
- Throws:
InvalidParameterValueException
- One of the parameters in the request is not valid.ResourceNotFoundException
- The resource specified in the request does not exist.ServiceException
- The Lambda service encountered an internal error.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
getFunctionCodeSigningConfig
default GetFunctionCodeSigningConfigResponse getFunctionCodeSigningConfig(Consumer<GetFunctionCodeSigningConfigRequest.Builder> getFunctionCodeSigningConfigRequest) throws InvalidParameterValueException, ResourceNotFoundException, ServiceException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Returns the code signing configuration for the specified function.
This is a convenience which creates an instance of the
GetFunctionCodeSigningConfigRequest.Builder
avoiding the need to create one manually viaGetFunctionCodeSigningConfigRequest.builder()
- Parameters:
getFunctionCodeSigningConfigRequest
- AConsumer
that will call methods onGetFunctionCodeSigningConfigRequest.Builder
to create a request.- Returns:
- Result of the GetFunctionCodeSigningConfig operation returned by the service.
- Throws:
InvalidParameterValueException
- One of the parameters in the request is not valid.ResourceNotFoundException
- The resource specified in the request does not exist.ServiceException
- The Lambda service encountered an internal error.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
getFunctionConcurrency
default GetFunctionConcurrencyResponse getFunctionConcurrency(GetFunctionConcurrencyRequest getFunctionConcurrencyRequest) throws InvalidParameterValueException, ResourceNotFoundException, TooManyRequestsException, ServiceException, AwsServiceException, SdkClientException, LambdaException
Returns details about the reserved concurrency configuration for a function. To set a concurrency limit for a function, use PutFunctionConcurrency.
- Parameters:
getFunctionConcurrencyRequest
-- Returns:
- Result of the GetFunctionConcurrency operation returned by the service.
- Throws:
InvalidParameterValueException
- One of the parameters in the request is not valid.ResourceNotFoundException
- The resource specified in the request does not exist.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.ServiceException
- The Lambda service encountered an internal error.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
getFunctionConcurrency
default GetFunctionConcurrencyResponse getFunctionConcurrency(Consumer<GetFunctionConcurrencyRequest.Builder> getFunctionConcurrencyRequest) throws InvalidParameterValueException, ResourceNotFoundException, TooManyRequestsException, ServiceException, AwsServiceException, SdkClientException, LambdaException
Returns details about the reserved concurrency configuration for a function. To set a concurrency limit for a function, use PutFunctionConcurrency.
This is a convenience which creates an instance of the
GetFunctionConcurrencyRequest.Builder
avoiding the need to create one manually viaGetFunctionConcurrencyRequest.builder()
- Parameters:
getFunctionConcurrencyRequest
- AConsumer
that will call methods onGetFunctionConcurrencyRequest.Builder
to create a request.- Returns:
- Result of the GetFunctionConcurrency operation returned by the service.
- Throws:
InvalidParameterValueException
- One of the parameters in the request is not valid.ResourceNotFoundException
- The resource specified in the request does not exist.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.ServiceException
- The Lambda service encountered an internal error.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
getFunctionConfiguration
default GetFunctionConfigurationResponse getFunctionConfiguration(GetFunctionConfigurationRequest getFunctionConfigurationRequest) throws ServiceException, ResourceNotFoundException, TooManyRequestsException, InvalidParameterValueException, AwsServiceException, SdkClientException, LambdaException
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.
- Parameters:
getFunctionConfigurationRequest
-- Returns:
- Result of the GetFunctionConfiguration operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.InvalidParameterValueException
- One of the parameters in the request is not valid.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
getFunctionConfiguration
default GetFunctionConfigurationResponse getFunctionConfiguration(Consumer<GetFunctionConfigurationRequest.Builder> getFunctionConfigurationRequest) throws ServiceException, ResourceNotFoundException, TooManyRequestsException, InvalidParameterValueException, AwsServiceException, SdkClientException, LambdaException
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.
This is a convenience which creates an instance of the
GetFunctionConfigurationRequest.Builder
avoiding the need to create one manually viaGetFunctionConfigurationRequest.builder()
- Parameters:
getFunctionConfigurationRequest
- AConsumer
that will call methods onGetFunctionConfigurationRequest.Builder
to create a request.- Returns:
- Result of the GetFunctionConfiguration operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.InvalidParameterValueException
- One of the parameters in the request is not valid.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
getFunctionEventInvokeConfig
default GetFunctionEventInvokeConfigResponse getFunctionEventInvokeConfig(GetFunctionEventInvokeConfigRequest getFunctionEventInvokeConfigRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Retrieves the configuration for asynchronous invocation for a function, version, or alias.
To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.
- Parameters:
getFunctionEventInvokeConfigRequest
-- Returns:
- Result of the GetFunctionEventInvokeConfig operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.InvalidParameterValueException
- One of the parameters in the request is not valid.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
getFunctionEventInvokeConfig
default GetFunctionEventInvokeConfigResponse getFunctionEventInvokeConfig(Consumer<GetFunctionEventInvokeConfigRequest.Builder> getFunctionEventInvokeConfigRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Retrieves the configuration for asynchronous invocation for a function, version, or alias.
To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.
This is a convenience which creates an instance of the
GetFunctionEventInvokeConfigRequest.Builder
avoiding the need to create one manually viaGetFunctionEventInvokeConfigRequest.builder()
- Parameters:
getFunctionEventInvokeConfigRequest
- AConsumer
that will call methods onGetFunctionEventInvokeConfigRequest.Builder
to create a request.- Returns:
- Result of the GetFunctionEventInvokeConfig operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.InvalidParameterValueException
- One of the parameters in the request is not valid.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
getFunctionRecursionConfig
default GetFunctionRecursionConfigResponse getFunctionRecursionConfig(GetFunctionRecursionConfigRequest getFunctionRecursionConfigRequest) throws InvalidParameterValueException, ResourceNotFoundException, TooManyRequestsException, ServiceException, AwsServiceException, SdkClientException, LambdaException
Returns your function's recursive loop detection configuration.
- Parameters:
getFunctionRecursionConfigRequest
-- Returns:
- Result of the GetFunctionRecursionConfig operation returned by the service.
- Throws:
InvalidParameterValueException
- One of the parameters in the request is not valid.ResourceNotFoundException
- The resource specified in the request does not exist.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.ServiceException
- The Lambda service encountered an internal error.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
getFunctionRecursionConfig
default GetFunctionRecursionConfigResponse getFunctionRecursionConfig(Consumer<GetFunctionRecursionConfigRequest.Builder> getFunctionRecursionConfigRequest) throws InvalidParameterValueException, ResourceNotFoundException, TooManyRequestsException, ServiceException, AwsServiceException, SdkClientException, LambdaException
Returns your function's recursive loop detection configuration.
This is a convenience which creates an instance of the
GetFunctionRecursionConfigRequest.Builder
avoiding the need to create one manually viaGetFunctionRecursionConfigRequest.builder()
- Parameters:
getFunctionRecursionConfigRequest
- AConsumer
that will call methods onGetFunctionRecursionConfigRequest.Builder
to create a request.- Returns:
- Result of the GetFunctionRecursionConfig operation returned by the service.
- Throws:
InvalidParameterValueException
- One of the parameters in the request is not valid.ResourceNotFoundException
- The resource specified in the request does not exist.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.ServiceException
- The Lambda service encountered an internal error.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
getFunctionUrlConfig
default GetFunctionUrlConfigResponse getFunctionUrlConfig(GetFunctionUrlConfigRequest getFunctionUrlConfigRequest) throws InvalidParameterValueException, ServiceException, ResourceNotFoundException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Returns details about a Lambda function URL.
- Parameters:
getFunctionUrlConfigRequest
-- Returns:
- Result of the GetFunctionUrlConfig operation returned by the service.
- Throws:
InvalidParameterValueException
- One of the parameters in the request is not valid.ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
getFunctionUrlConfig
default GetFunctionUrlConfigResponse getFunctionUrlConfig(Consumer<GetFunctionUrlConfigRequest.Builder> getFunctionUrlConfigRequest) throws InvalidParameterValueException, ServiceException, ResourceNotFoundException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Returns details about a Lambda function URL.
This is a convenience which creates an instance of the
GetFunctionUrlConfigRequest.Builder
avoiding the need to create one manually viaGetFunctionUrlConfigRequest.builder()
- Parameters:
getFunctionUrlConfigRequest
- AConsumer
that will call methods onGetFunctionUrlConfigRequest.Builder
to create a request.- Returns:
- Result of the GetFunctionUrlConfig operation returned by the service.
- Throws:
InvalidParameterValueException
- One of the parameters in the request is not valid.ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
getLayerVersion
default GetLayerVersionResponse getLayerVersion(GetLayerVersionRequest getLayerVersionRequest) throws ServiceException, InvalidParameterValueException, TooManyRequestsException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaException
Returns information about a version of an Lambda layer, with a link to download the layer archive that's valid for 10 minutes.
- Parameters:
getLayerVersionRequest
-- Returns:
- Result of the GetLayerVersion operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.InvalidParameterValueException
- One of the parameters in the request is not valid.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.ResourceNotFoundException
- The resource specified in the request does not exist.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
getLayerVersion
default GetLayerVersionResponse getLayerVersion(Consumer<GetLayerVersionRequest.Builder> getLayerVersionRequest) throws ServiceException, InvalidParameterValueException, TooManyRequestsException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaException
Returns information about a version of an Lambda layer, with a link to download the layer archive that's valid for 10 minutes.
This is a convenience which creates an instance of the
GetLayerVersionRequest.Builder
avoiding the need to create one manually viaGetLayerVersionRequest.builder()
- Parameters:
getLayerVersionRequest
- AConsumer
that will call methods onGetLayerVersionRequest.Builder
to create a request.- Returns:
- Result of the GetLayerVersion operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.InvalidParameterValueException
- One of the parameters in the request is not valid.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.ResourceNotFoundException
- The resource specified in the request does not exist.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
getLayerVersionByArn
default GetLayerVersionByArnResponse getLayerVersionByArn(GetLayerVersionByArnRequest getLayerVersionByArnRequest) throws ServiceException, InvalidParameterValueException, TooManyRequestsException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaException
Returns information about a version of an Lambda layer, with a link to download the layer archive that's valid for 10 minutes.
- Parameters:
getLayerVersionByArnRequest
-- Returns:
- Result of the GetLayerVersionByArn operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.InvalidParameterValueException
- One of the parameters in the request is not valid.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.ResourceNotFoundException
- The resource specified in the request does not exist.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
getLayerVersionByArn
default GetLayerVersionByArnResponse getLayerVersionByArn(Consumer<GetLayerVersionByArnRequest.Builder> getLayerVersionByArnRequest) throws ServiceException, InvalidParameterValueException, TooManyRequestsException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaException
Returns information about a version of an Lambda layer, with a link to download the layer archive that's valid for 10 minutes.
This is a convenience which creates an instance of the
GetLayerVersionByArnRequest.Builder
avoiding the need to create one manually viaGetLayerVersionByArnRequest.builder()
- Parameters:
getLayerVersionByArnRequest
- AConsumer
that will call methods onGetLayerVersionByArnRequest.Builder
to create a request.- Returns:
- Result of the GetLayerVersionByArn operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.InvalidParameterValueException
- One of the parameters in the request is not valid.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.ResourceNotFoundException
- The resource specified in the request does not exist.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
getLayerVersionPolicy
default GetLayerVersionPolicyResponse getLayerVersionPolicy(GetLayerVersionPolicyRequest getLayerVersionPolicyRequest) throws ServiceException, ResourceNotFoundException, TooManyRequestsException, InvalidParameterValueException, AwsServiceException, SdkClientException, LambdaException
Returns the permission policy for a version of an Lambda layer. For more information, see AddLayerVersionPermission.
- Parameters:
getLayerVersionPolicyRequest
-- Returns:
- Result of the GetLayerVersionPolicy operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.InvalidParameterValueException
- One of the parameters in the request is not valid.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
getLayerVersionPolicy
default GetLayerVersionPolicyResponse getLayerVersionPolicy(Consumer<GetLayerVersionPolicyRequest.Builder> getLayerVersionPolicyRequest) throws ServiceException, ResourceNotFoundException, TooManyRequestsException, InvalidParameterValueException, AwsServiceException, SdkClientException, LambdaException
Returns the permission policy for a version of an Lambda layer. For more information, see AddLayerVersionPermission.
This is a convenience which creates an instance of the
GetLayerVersionPolicyRequest.Builder
avoiding the need to create one manually viaGetLayerVersionPolicyRequest.builder()
- Parameters:
getLayerVersionPolicyRequest
- AConsumer
that will call methods onGetLayerVersionPolicyRequest.Builder
to create a request.- Returns:
- Result of the GetLayerVersionPolicy operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.InvalidParameterValueException
- One of the parameters in the request is not valid.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
getPolicy
default GetPolicyResponse getPolicy(GetPolicyRequest getPolicyRequest) throws ServiceException, ResourceNotFoundException, TooManyRequestsException, InvalidParameterValueException, AwsServiceException, SdkClientException, LambdaException
Returns the resource-based IAM policy for a function, version, or alias.
- Parameters:
getPolicyRequest
-- Returns:
- Result of the GetPolicy operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.InvalidParameterValueException
- One of the parameters in the request is not valid.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
getPolicy
default GetPolicyResponse getPolicy(Consumer<GetPolicyRequest.Builder> getPolicyRequest) throws ServiceException, ResourceNotFoundException, TooManyRequestsException, InvalidParameterValueException, AwsServiceException, SdkClientException, LambdaException
Returns the resource-based IAM policy for a function, version, or alias.
This is a convenience which creates an instance of the
GetPolicyRequest.Builder
avoiding the need to create one manually viaGetPolicyRequest.builder()
- Parameters:
getPolicyRequest
- AConsumer
that will call methods onGetPolicyRequest.Builder
to create a request.- Returns:
- Result of the GetPolicy operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.InvalidParameterValueException
- One of the parameters in the request is not valid.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
getProvisionedConcurrencyConfig
default GetProvisionedConcurrencyConfigResponse getProvisionedConcurrencyConfig(GetProvisionedConcurrencyConfigRequest getProvisionedConcurrencyConfigRequest) throws InvalidParameterValueException, ResourceNotFoundException, TooManyRequestsException, ServiceException, ProvisionedConcurrencyConfigNotFoundException, AwsServiceException, SdkClientException, LambdaException
Retrieves the provisioned concurrency configuration for a function's alias or version.
- Parameters:
getProvisionedConcurrencyConfigRequest
-- Returns:
- Result of the GetProvisionedConcurrencyConfig operation returned by the service.
- Throws:
InvalidParameterValueException
- One of the parameters in the request is not valid.ResourceNotFoundException
- The resource specified in the request does not exist.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.ServiceException
- The Lambda service encountered an internal error.ProvisionedConcurrencyConfigNotFoundException
- The specified configuration does not exist.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
getProvisionedConcurrencyConfig
default GetProvisionedConcurrencyConfigResponse getProvisionedConcurrencyConfig(Consumer<GetProvisionedConcurrencyConfigRequest.Builder> getProvisionedConcurrencyConfigRequest) throws InvalidParameterValueException, ResourceNotFoundException, TooManyRequestsException, ServiceException, ProvisionedConcurrencyConfigNotFoundException, AwsServiceException, SdkClientException, LambdaException
Retrieves the provisioned concurrency configuration for a function's alias or version.
This is a convenience which creates an instance of the
GetProvisionedConcurrencyConfigRequest.Builder
avoiding the need to create one manually viaGetProvisionedConcurrencyConfigRequest.builder()
- Parameters:
getProvisionedConcurrencyConfigRequest
- AConsumer
that will call methods onGetProvisionedConcurrencyConfigRequest.Builder
to create a request.- Returns:
- Result of the GetProvisionedConcurrencyConfig operation returned by the service.
- Throws:
InvalidParameterValueException
- One of the parameters in the request is not valid.ResourceNotFoundException
- The resource specified in the request does not exist.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.ServiceException
- The Lambda service encountered an internal error.ProvisionedConcurrencyConfigNotFoundException
- The specified configuration does not exist.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
getRuntimeManagementConfig
default GetRuntimeManagementConfigResponse getRuntimeManagementConfig(GetRuntimeManagementConfigRequest getRuntimeManagementConfigRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
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.- Parameters:
getRuntimeManagementConfigRequest
-- Returns:
- Result of the GetRuntimeManagementConfig operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.InvalidParameterValueException
- One of the parameters in the request is not valid.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
getRuntimeManagementConfig
default GetRuntimeManagementConfigResponse getRuntimeManagementConfig(Consumer<GetRuntimeManagementConfigRequest.Builder> getRuntimeManagementConfigRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
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.
This is a convenience which creates an instance of the
GetRuntimeManagementConfigRequest.Builder
avoiding the need to create one manually viaGetRuntimeManagementConfigRequest.builder()
- Parameters:
getRuntimeManagementConfigRequest
- AConsumer
that will call methods onGetRuntimeManagementConfigRequest.Builder
to create a request.- Returns:
- Result of the GetRuntimeManagementConfig operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.InvalidParameterValueException
- One of the parameters in the request is not valid.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
invoke
default InvokeResponse invoke(InvokeRequest invokeRequest) throws ServiceException, ResourceNotFoundException, InvalidRequestContentException, RequestTooLargeException, UnsupportedMediaTypeException, TooManyRequestsException, InvalidParameterValueException, Ec2UnexpectedException, SubnetIpAddressLimitReachedException, EniLimitReachedException, EfsMountConnectivityException, EfsMountFailureException, EfsMountTimeoutException, EfsioException, SnapStartException, SnapStartTimeoutException, SnapStartNotReadyException, Ec2ThrottledException, Ec2AccessDeniedException, InvalidSubnetIdException, InvalidSecurityGroupIdException, InvalidZipFileException, KmsDisabledException, KmsInvalidStateException, KmsAccessDeniedException, KmsNotFoundException, InvalidRuntimeException, ResourceConflictException, ResourceNotReadyException, RecursiveInvocationException, AwsServiceException, SdkClientException, LambdaException
Invokes a Lambda function. You can invoke a function synchronously (and wait for the response), or asynchronously. By default, Lambda invokes your function synchronously (i.e. the
InvocationType
isRequestResponse
). To invoke a function asynchronously, setInvocationType
toEvent
. Lambda passes theClientContext
object to your function for synchronous invocations only.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.
- Parameters:
invokeRequest
-- Returns:
- Result of the Invoke operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.InvalidRequestContentException
- The request body could not be parsed as JSON.RequestTooLargeException
- The request payload exceeded theInvoke
request body JSON input quota. For more information, see Lambda quotas.UnsupportedMediaTypeException
- The content type of theInvoke
request body is not JSON.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.InvalidParameterValueException
- One of the parameters in the request is not valid.Ec2UnexpectedException
- Lambda received an unexpected Amazon EC2 client exception while setting up for the Lambda function.SubnetIpAddressLimitReachedException
- Lambda couldn't set up VPC access for the Lambda function because one or more configured subnets has no available IP addresses.EniLimitReachedException
- 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.EfsMountConnectivityException
- The Lambda function couldn't make a network connection to the configured file system.EfsMountFailureException
- The Lambda function couldn't mount the configured file system due to a permission or configuration issue.EfsMountTimeoutException
- The Lambda function made a network connection to the configured file system, but the mount operation timed out.EfsioException
- An error occurred when reading from or writing to a connected file system.SnapStartException
- TheafterRestore()
runtime hook encountered an error. For more information, check the Amazon CloudWatch logs.SnapStartTimeoutException
- Lambda couldn't restore the snapshot within the timeout limit.SnapStartNotReadyException
- Lambda is initializing your function. You can invoke the function when the function state becomesActive
.Ec2ThrottledException
- Amazon EC2 throttled Lambda during Lambda function initialization using the execution role provided for the function.Ec2AccessDeniedException
- Need additional permissions to configure VPC settings.InvalidSubnetIdException
- The subnet ID provided in the Lambda function VPC configuration is not valid.InvalidSecurityGroupIdException
- The security group ID provided in the Lambda function VPC configuration is not valid.InvalidZipFileException
- Lambda could not unzip the deployment package.KmsDisabledException
- Lambda couldn't decrypt the environment variables because the KMS key used is disabled. Check the Lambda function's KMS key settings.KmsInvalidStateException
- 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.KmsAccessDeniedException
- Lambda couldn't decrypt the environment variables because KMS access was denied. Check the Lambda function's KMS permissions.KmsNotFoundException
- Lambda couldn't decrypt the environment variables because the KMS key was not found. Check the function's KMS key settings.InvalidRuntimeException
- The runtime or runtime version specified is not supported.ResourceConflictException
- The resource already exists, or another operation is in progress.ResourceNotReadyException
- The function is inactive and its VPC connection is no longer available. Wait for the VPC connection to reestablish and try again.RecursiveInvocationException
- Lambda has detected your function being invoked in a recursive loop with other Amazon Web Services resources and stopped your function's invocation.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
invoke
default InvokeResponse invoke(Consumer<InvokeRequest.Builder> invokeRequest) throws ServiceException, ResourceNotFoundException, InvalidRequestContentException, RequestTooLargeException, UnsupportedMediaTypeException, TooManyRequestsException, InvalidParameterValueException, Ec2UnexpectedException, SubnetIpAddressLimitReachedException, EniLimitReachedException, EfsMountConnectivityException, EfsMountFailureException, EfsMountTimeoutException, EfsioException, SnapStartException, SnapStartTimeoutException, SnapStartNotReadyException, Ec2ThrottledException, Ec2AccessDeniedException, InvalidSubnetIdException, InvalidSecurityGroupIdException, InvalidZipFileException, KmsDisabledException, KmsInvalidStateException, KmsAccessDeniedException, KmsNotFoundException, InvalidRuntimeException, ResourceConflictException, ResourceNotReadyException, RecursiveInvocationException, AwsServiceException, SdkClientException, LambdaException
Invokes a Lambda function. You can invoke a function synchronously (and wait for the response), or asynchronously. By default, Lambda invokes your function synchronously (i.e. the
InvocationType
isRequestResponse
). To invoke a function asynchronously, setInvocationType
toEvent
. Lambda passes theClientContext
object to your function for synchronous invocations only.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.
This is a convenience which creates an instance of the
InvokeRequest.Builder
avoiding the need to create one manually viaInvokeRequest.builder()
- Parameters:
invokeRequest
- AConsumer
that will call methods onInvokeRequest.Builder
to create a request.- Returns:
- Result of the Invoke operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.InvalidRequestContentException
- The request body could not be parsed as JSON.RequestTooLargeException
- The request payload exceeded theInvoke
request body JSON input quota. For more information, see Lambda quotas.UnsupportedMediaTypeException
- The content type of theInvoke
request body is not JSON.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.InvalidParameterValueException
- One of the parameters in the request is not valid.Ec2UnexpectedException
- Lambda received an unexpected Amazon EC2 client exception while setting up for the Lambda function.SubnetIpAddressLimitReachedException
- Lambda couldn't set up VPC access for the Lambda function because one or more configured subnets has no available IP addresses.EniLimitReachedException
- 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.EfsMountConnectivityException
- The Lambda function couldn't make a network connection to the configured file system.EfsMountFailureException
- The Lambda function couldn't mount the configured file system due to a permission or configuration issue.EfsMountTimeoutException
- The Lambda function made a network connection to the configured file system, but the mount operation timed out.EfsioException
- An error occurred when reading from or writing to a connected file system.SnapStartException
- TheafterRestore()
runtime hook encountered an error. For more information, check the Amazon CloudWatch logs.SnapStartTimeoutException
- Lambda couldn't restore the snapshot within the timeout limit.SnapStartNotReadyException
- Lambda is initializing your function. You can invoke the function when the function state becomesActive
.Ec2ThrottledException
- Amazon EC2 throttled Lambda during Lambda function initialization using the execution role provided for the function.Ec2AccessDeniedException
- Need additional permissions to configure VPC settings.InvalidSubnetIdException
- The subnet ID provided in the Lambda function VPC configuration is not valid.InvalidSecurityGroupIdException
- The security group ID provided in the Lambda function VPC configuration is not valid.InvalidZipFileException
- Lambda could not unzip the deployment package.KmsDisabledException
- Lambda couldn't decrypt the environment variables because the KMS key used is disabled. Check the Lambda function's KMS key settings.KmsInvalidStateException
- 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.KmsAccessDeniedException
- Lambda couldn't decrypt the environment variables because KMS access was denied. Check the Lambda function's KMS permissions.KmsNotFoundException
- Lambda couldn't decrypt the environment variables because the KMS key was not found. Check the function's KMS key settings.InvalidRuntimeException
- The runtime or runtime version specified is not supported.ResourceConflictException
- The resource already exists, or another operation is in progress.ResourceNotReadyException
- The function is inactive and its VPC connection is no longer available. Wait for the VPC connection to reestablish and try again.RecursiveInvocationException
- Lambda has detected your function being invoked in a recursive loop with other Amazon Web Services resources and stopped your function's invocation.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
listAliases
default ListAliasesResponse listAliases(ListAliasesRequest listAliasesRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Returns a list of aliases for a Lambda function.
- Parameters:
listAliasesRequest
-- Returns:
- Result of the ListAliases operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.InvalidParameterValueException
- One of the parameters in the request is not valid.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
listAliases
default ListAliasesResponse listAliases(Consumer<ListAliasesRequest.Builder> listAliasesRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Returns a list of aliases for a Lambda function.
This is a convenience which creates an instance of the
ListAliasesRequest.Builder
avoiding the need to create one manually viaListAliasesRequest.builder()
- Parameters:
listAliasesRequest
- AConsumer
that will call methods onListAliasesRequest.Builder
to create a request.- Returns:
- Result of the ListAliases operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.InvalidParameterValueException
- One of the parameters in the request is not valid.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
listAliasesPaginator
default ListAliasesIterable listAliasesPaginator(ListAliasesRequest listAliasesRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
This is a variant of
listAliases(software.amazon.awssdk.services.lambda.model.ListAliasesRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.lambda.paginators.ListAliasesIterable responses = client.listAliasesPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.lambda.paginators.ListAliasesIterable responses = client.listAliasesPaginator(request); for (software.amazon.awssdk.services.lambda.model.ListAliasesResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.lambda.paginators.ListAliasesIterable responses = client.listAliasesPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAliases(software.amazon.awssdk.services.lambda.model.ListAliasesRequest)
operation.- Parameters:
listAliasesRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.InvalidParameterValueException
- One of the parameters in the request is not valid.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
listAliasesPaginator
default ListAliasesIterable listAliasesPaginator(Consumer<ListAliasesRequest.Builder> listAliasesRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
This is a variant of
listAliases(software.amazon.awssdk.services.lambda.model.ListAliasesRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.lambda.paginators.ListAliasesIterable responses = client.listAliasesPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.lambda.paginators.ListAliasesIterable responses = client.listAliasesPaginator(request); for (software.amazon.awssdk.services.lambda.model.ListAliasesResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.lambda.paginators.ListAliasesIterable responses = client.listAliasesPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAliases(software.amazon.awssdk.services.lambda.model.ListAliasesRequest)
operation.
This is a convenience which creates an instance of the
ListAliasesRequest.Builder
avoiding the need to create one manually viaListAliasesRequest.builder()
- Parameters:
listAliasesRequest
- AConsumer
that will call methods onListAliasesRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.InvalidParameterValueException
- One of the parameters in the request is not valid.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
listCodeSigningConfigs
default ListCodeSigningConfigsResponse listCodeSigningConfigs(ListCodeSigningConfigsRequest listCodeSigningConfigsRequest) throws ServiceException, InvalidParameterValueException, AwsServiceException, SdkClientException, LambdaException
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.- Parameters:
listCodeSigningConfigsRequest
-- Returns:
- Result of the ListCodeSigningConfigs operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.InvalidParameterValueException
- One of the parameters in the request is not valid.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
listCodeSigningConfigs
default ListCodeSigningConfigsResponse listCodeSigningConfigs(Consumer<ListCodeSigningConfigsRequest.Builder> listCodeSigningConfigsRequest) throws ServiceException, InvalidParameterValueException, AwsServiceException, SdkClientException, LambdaException
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.
This is a convenience which creates an instance of the
ListCodeSigningConfigsRequest.Builder
avoiding the need to create one manually viaListCodeSigningConfigsRequest.builder()
- Parameters:
listCodeSigningConfigsRequest
- AConsumer
that will call methods onListCodeSigningConfigsRequest.Builder
to create a request.- Returns:
- Result of the ListCodeSigningConfigs operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.InvalidParameterValueException
- One of the parameters in the request is not valid.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
listCodeSigningConfigsPaginator
default ListCodeSigningConfigsIterable listCodeSigningConfigsPaginator(ListCodeSigningConfigsRequest listCodeSigningConfigsRequest) throws ServiceException, InvalidParameterValueException, AwsServiceException, SdkClientException, LambdaException
This is a variant of
listCodeSigningConfigs(software.amazon.awssdk.services.lambda.model.ListCodeSigningConfigsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.lambda.paginators.ListCodeSigningConfigsIterable responses = client.listCodeSigningConfigsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.lambda.paginators.ListCodeSigningConfigsIterable responses = client .listCodeSigningConfigsPaginator(request); for (software.amazon.awssdk.services.lambda.model.ListCodeSigningConfigsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.lambda.paginators.ListCodeSigningConfigsIterable responses = client.listCodeSigningConfigsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listCodeSigningConfigs(software.amazon.awssdk.services.lambda.model.ListCodeSigningConfigsRequest)
operation.- Parameters:
listCodeSigningConfigsRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ServiceException
- The Lambda service encountered an internal error.InvalidParameterValueException
- One of the parameters in the request is not valid.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
listCodeSigningConfigsPaginator
default ListCodeSigningConfigsIterable listCodeSigningConfigsPaginator(Consumer<ListCodeSigningConfigsRequest.Builder> listCodeSigningConfigsRequest) throws ServiceException, InvalidParameterValueException, AwsServiceException, SdkClientException, LambdaException
This is a variant of
listCodeSigningConfigs(software.amazon.awssdk.services.lambda.model.ListCodeSigningConfigsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.lambda.paginators.ListCodeSigningConfigsIterable responses = client.listCodeSigningConfigsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.lambda.paginators.ListCodeSigningConfigsIterable responses = client .listCodeSigningConfigsPaginator(request); for (software.amazon.awssdk.services.lambda.model.ListCodeSigningConfigsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.lambda.paginators.ListCodeSigningConfigsIterable responses = client.listCodeSigningConfigsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listCodeSigningConfigs(software.amazon.awssdk.services.lambda.model.ListCodeSigningConfigsRequest)
operation.
This is a convenience which creates an instance of the
ListCodeSigningConfigsRequest.Builder
avoiding the need to create one manually viaListCodeSigningConfigsRequest.builder()
- Parameters:
listCodeSigningConfigsRequest
- AConsumer
that will call methods onListCodeSigningConfigsRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ServiceException
- The Lambda service encountered an internal error.InvalidParameterValueException
- One of the parameters in the request is not valid.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
listEventSourceMappings
default ListEventSourceMappingsResponse listEventSourceMappings(ListEventSourceMappingsRequest listEventSourceMappingsRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Lists event source mappings. Specify an
EventSourceArn
to show only event source mappings for a single event source.- Parameters:
listEventSourceMappingsRequest
-- Returns:
- Result of the ListEventSourceMappings operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.InvalidParameterValueException
- One of the parameters in the request is not valid.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
listEventSourceMappings
default ListEventSourceMappingsResponse listEventSourceMappings(Consumer<ListEventSourceMappingsRequest.Builder> listEventSourceMappingsRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Lists event source mappings. Specify an
EventSourceArn
to show only event source mappings for a single event source.
This is a convenience which creates an instance of the
ListEventSourceMappingsRequest.Builder
avoiding the need to create one manually viaListEventSourceMappingsRequest.builder()
- Parameters:
listEventSourceMappingsRequest
- AConsumer
that will call methods onListEventSourceMappingsRequest.Builder
to create a request.- Returns:
- Result of the ListEventSourceMappings operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.InvalidParameterValueException
- One of the parameters in the request is not valid.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
listEventSourceMappings
default ListEventSourceMappingsResponse listEventSourceMappings() throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Lists event source mappings. Specify an
EventSourceArn
to show only event source mappings for a single event source.- Returns:
- Result of the ListEventSourceMappings operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.InvalidParameterValueException
- One of the parameters in the request is not valid.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
listEventSourceMappings(ListEventSourceMappingsRequest)
, AWS API Documentation
-
listEventSourceMappingsPaginator
default ListEventSourceMappingsIterable listEventSourceMappingsPaginator() throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
This is a variant of
listEventSourceMappings(software.amazon.awssdk.services.lambda.model.ListEventSourceMappingsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.lambda.paginators.ListEventSourceMappingsIterable responses = client.listEventSourceMappingsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.lambda.paginators.ListEventSourceMappingsIterable responses = client .listEventSourceMappingsPaginator(request); for (software.amazon.awssdk.services.lambda.model.ListEventSourceMappingsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.lambda.paginators.ListEventSourceMappingsIterable responses = client.listEventSourceMappingsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listEventSourceMappings(software.amazon.awssdk.services.lambda.model.ListEventSourceMappingsRequest)
operation.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.InvalidParameterValueException
- One of the parameters in the request is not valid.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
listEventSourceMappingsPaginator(ListEventSourceMappingsRequest)
, AWS API Documentation
-
listEventSourceMappingsPaginator
default ListEventSourceMappingsIterable listEventSourceMappingsPaginator(ListEventSourceMappingsRequest listEventSourceMappingsRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
This is a variant of
listEventSourceMappings(software.amazon.awssdk.services.lambda.model.ListEventSourceMappingsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.lambda.paginators.ListEventSourceMappingsIterable responses = client.listEventSourceMappingsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.lambda.paginators.ListEventSourceMappingsIterable responses = client .listEventSourceMappingsPaginator(request); for (software.amazon.awssdk.services.lambda.model.ListEventSourceMappingsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.lambda.paginators.ListEventSourceMappingsIterable responses = client.listEventSourceMappingsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listEventSourceMappings(software.amazon.awssdk.services.lambda.model.ListEventSourceMappingsRequest)
operation.- Parameters:
listEventSourceMappingsRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.InvalidParameterValueException
- One of the parameters in the request is not valid.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
listEventSourceMappingsPaginator
default ListEventSourceMappingsIterable listEventSourceMappingsPaginator(Consumer<ListEventSourceMappingsRequest.Builder> listEventSourceMappingsRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
This is a variant of
listEventSourceMappings(software.amazon.awssdk.services.lambda.model.ListEventSourceMappingsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.lambda.paginators.ListEventSourceMappingsIterable responses = client.listEventSourceMappingsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.lambda.paginators.ListEventSourceMappingsIterable responses = client .listEventSourceMappingsPaginator(request); for (software.amazon.awssdk.services.lambda.model.ListEventSourceMappingsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.lambda.paginators.ListEventSourceMappingsIterable responses = client.listEventSourceMappingsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listEventSourceMappings(software.amazon.awssdk.services.lambda.model.ListEventSourceMappingsRequest)
operation.
This is a convenience which creates an instance of the
ListEventSourceMappingsRequest.Builder
avoiding the need to create one manually viaListEventSourceMappingsRequest.builder()
- Parameters:
listEventSourceMappingsRequest
- AConsumer
that will call methods onListEventSourceMappingsRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.InvalidParameterValueException
- One of the parameters in the request is not valid.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
listFunctionEventInvokeConfigs
default ListFunctionEventInvokeConfigsResponse listFunctionEventInvokeConfigs(ListFunctionEventInvokeConfigsRequest listFunctionEventInvokeConfigsRequest) throws InvalidParameterValueException, ResourceNotFoundException, TooManyRequestsException, ServiceException, AwsServiceException, SdkClientException, LambdaException
Retrieves a list of configurations for asynchronous invocation for a function.
To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.
- Parameters:
listFunctionEventInvokeConfigsRequest
-- Returns:
- Result of the ListFunctionEventInvokeConfigs operation returned by the service.
- Throws:
InvalidParameterValueException
- One of the parameters in the request is not valid.ResourceNotFoundException
- The resource specified in the request does not exist.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.ServiceException
- The Lambda service encountered an internal error.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
listFunctionEventInvokeConfigs
default ListFunctionEventInvokeConfigsResponse listFunctionEventInvokeConfigs(Consumer<ListFunctionEventInvokeConfigsRequest.Builder> listFunctionEventInvokeConfigsRequest) throws InvalidParameterValueException, ResourceNotFoundException, TooManyRequestsException, ServiceException, AwsServiceException, SdkClientException, LambdaException
Retrieves a list of configurations for asynchronous invocation for a function.
To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.
This is a convenience which creates an instance of the
ListFunctionEventInvokeConfigsRequest.Builder
avoiding the need to create one manually viaListFunctionEventInvokeConfigsRequest.builder()
- Parameters:
listFunctionEventInvokeConfigsRequest
- AConsumer
that will call methods onListFunctionEventInvokeConfigsRequest.Builder
to create a request.- Returns:
- Result of the ListFunctionEventInvokeConfigs operation returned by the service.
- Throws:
InvalidParameterValueException
- One of the parameters in the request is not valid.ResourceNotFoundException
- The resource specified in the request does not exist.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.ServiceException
- The Lambda service encountered an internal error.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
listFunctionEventInvokeConfigsPaginator
default ListFunctionEventInvokeConfigsIterable listFunctionEventInvokeConfigsPaginator(ListFunctionEventInvokeConfigsRequest listFunctionEventInvokeConfigsRequest) throws InvalidParameterValueException, ResourceNotFoundException, TooManyRequestsException, ServiceException, AwsServiceException, SdkClientException, LambdaException
This is a variant of
listFunctionEventInvokeConfigs(software.amazon.awssdk.services.lambda.model.ListFunctionEventInvokeConfigsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.lambda.paginators.ListFunctionEventInvokeConfigsIterable responses = client.listFunctionEventInvokeConfigsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.lambda.paginators.ListFunctionEventInvokeConfigsIterable responses = client .listFunctionEventInvokeConfigsPaginator(request); for (software.amazon.awssdk.services.lambda.model.ListFunctionEventInvokeConfigsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.lambda.paginators.ListFunctionEventInvokeConfigsIterable responses = client.listFunctionEventInvokeConfigsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listFunctionEventInvokeConfigs(software.amazon.awssdk.services.lambda.model.ListFunctionEventInvokeConfigsRequest)
operation.- Parameters:
listFunctionEventInvokeConfigsRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
InvalidParameterValueException
- One of the parameters in the request is not valid.ResourceNotFoundException
- The resource specified in the request does not exist.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.ServiceException
- The Lambda service encountered an internal error.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
listFunctionEventInvokeConfigsPaginator
default ListFunctionEventInvokeConfigsIterable listFunctionEventInvokeConfigsPaginator(Consumer<ListFunctionEventInvokeConfigsRequest.Builder> listFunctionEventInvokeConfigsRequest) throws InvalidParameterValueException, ResourceNotFoundException, TooManyRequestsException, ServiceException, AwsServiceException, SdkClientException, LambdaException
This is a variant of
listFunctionEventInvokeConfigs(software.amazon.awssdk.services.lambda.model.ListFunctionEventInvokeConfigsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.lambda.paginators.ListFunctionEventInvokeConfigsIterable responses = client.listFunctionEventInvokeConfigsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.lambda.paginators.ListFunctionEventInvokeConfigsIterable responses = client .listFunctionEventInvokeConfigsPaginator(request); for (software.amazon.awssdk.services.lambda.model.ListFunctionEventInvokeConfigsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.lambda.paginators.ListFunctionEventInvokeConfigsIterable responses = client.listFunctionEventInvokeConfigsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listFunctionEventInvokeConfigs(software.amazon.awssdk.services.lambda.model.ListFunctionEventInvokeConfigsRequest)
operation.
This is a convenience which creates an instance of the
ListFunctionEventInvokeConfigsRequest.Builder
avoiding the need to create one manually viaListFunctionEventInvokeConfigsRequest.builder()
- Parameters:
listFunctionEventInvokeConfigsRequest
- AConsumer
that will call methods onListFunctionEventInvokeConfigsRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
InvalidParameterValueException
- One of the parameters in the request is not valid.ResourceNotFoundException
- The resource specified in the request does not exist.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.ServiceException
- The Lambda service encountered an internal error.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
listFunctionUrlConfigs
default ListFunctionUrlConfigsResponse listFunctionUrlConfigs(ListFunctionUrlConfigsRequest listFunctionUrlConfigsRequest) throws InvalidParameterValueException, ServiceException, ResourceNotFoundException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Returns a list of Lambda function URLs for the specified function.
- Parameters:
listFunctionUrlConfigsRequest
-- Returns:
- Result of the ListFunctionUrlConfigs operation returned by the service.
- Throws:
InvalidParameterValueException
- One of the parameters in the request is not valid.ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
listFunctionUrlConfigs
default ListFunctionUrlConfigsResponse listFunctionUrlConfigs(Consumer<ListFunctionUrlConfigsRequest.Builder> listFunctionUrlConfigsRequest) throws InvalidParameterValueException, ServiceException, ResourceNotFoundException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Returns a list of Lambda function URLs for the specified function.
This is a convenience which creates an instance of the
ListFunctionUrlConfigsRequest.Builder
avoiding the need to create one manually viaListFunctionUrlConfigsRequest.builder()
- Parameters:
listFunctionUrlConfigsRequest
- AConsumer
that will call methods onListFunctionUrlConfigsRequest.Builder
to create a request.- Returns:
- Result of the ListFunctionUrlConfigs operation returned by the service.
- Throws:
InvalidParameterValueException
- One of the parameters in the request is not valid.ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
listFunctionUrlConfigsPaginator
default ListFunctionUrlConfigsIterable listFunctionUrlConfigsPaginator(ListFunctionUrlConfigsRequest listFunctionUrlConfigsRequest) throws InvalidParameterValueException, ServiceException, ResourceNotFoundException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
This is a variant of
listFunctionUrlConfigs(software.amazon.awssdk.services.lambda.model.ListFunctionUrlConfigsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.lambda.paginators.ListFunctionUrlConfigsIterable responses = client.listFunctionUrlConfigsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.lambda.paginators.ListFunctionUrlConfigsIterable responses = client .listFunctionUrlConfigsPaginator(request); for (software.amazon.awssdk.services.lambda.model.ListFunctionUrlConfigsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.lambda.paginators.ListFunctionUrlConfigsIterable responses = client.listFunctionUrlConfigsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listFunctionUrlConfigs(software.amazon.awssdk.services.lambda.model.ListFunctionUrlConfigsRequest)
operation.- Parameters:
listFunctionUrlConfigsRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
InvalidParameterValueException
- One of the parameters in the request is not valid.ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
listFunctionUrlConfigsPaginator
default ListFunctionUrlConfigsIterable listFunctionUrlConfigsPaginator(Consumer<ListFunctionUrlConfigsRequest.Builder> listFunctionUrlConfigsRequest) throws InvalidParameterValueException, ServiceException, ResourceNotFoundException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
This is a variant of
listFunctionUrlConfigs(software.amazon.awssdk.services.lambda.model.ListFunctionUrlConfigsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.lambda.paginators.ListFunctionUrlConfigsIterable responses = client.listFunctionUrlConfigsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.lambda.paginators.ListFunctionUrlConfigsIterable responses = client .listFunctionUrlConfigsPaginator(request); for (software.amazon.awssdk.services.lambda.model.ListFunctionUrlConfigsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.lambda.paginators.ListFunctionUrlConfigsIterable responses = client.listFunctionUrlConfigsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listFunctionUrlConfigs(software.amazon.awssdk.services.lambda.model.ListFunctionUrlConfigsRequest)
operation.
This is a convenience which creates an instance of the
ListFunctionUrlConfigsRequest.Builder
avoiding the need to create one manually viaListFunctionUrlConfigsRequest.builder()
- Parameters:
listFunctionUrlConfigsRequest
- AConsumer
that will call methods onListFunctionUrlConfigsRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
InvalidParameterValueException
- One of the parameters in the request is not valid.ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
listFunctions
default ListFunctionsResponse listFunctions(ListFunctionsRequest listFunctionsRequest) throws ServiceException, TooManyRequestsException, InvalidParameterValueException, AwsServiceException, SdkClientException, LambdaException
Returns a list of Lambda functions, with the version-specific configuration of each. Lambda returns up to 50 functions per call.
Set
FunctionVersion
toALL
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.- Parameters:
listFunctionsRequest
-- Returns:
- Result of the ListFunctions operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.InvalidParameterValueException
- One of the parameters in the request is not valid.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
listFunctions
default ListFunctionsResponse listFunctions(Consumer<ListFunctionsRequest.Builder> listFunctionsRequest) throws ServiceException, TooManyRequestsException, InvalidParameterValueException, AwsServiceException, SdkClientException, LambdaException
Returns a list of Lambda functions, with the version-specific configuration of each. Lambda returns up to 50 functions per call.
Set
FunctionVersion
toALL
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.
This is a convenience which creates an instance of the
ListFunctionsRequest.Builder
avoiding the need to create one manually viaListFunctionsRequest.builder()
- Parameters:
listFunctionsRequest
- AConsumer
that will call methods onListFunctionsRequest.Builder
to create a request.- Returns:
- Result of the ListFunctions operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.InvalidParameterValueException
- One of the parameters in the request is not valid.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
listFunctions
default ListFunctionsResponse listFunctions() throws ServiceException, TooManyRequestsException, InvalidParameterValueException, AwsServiceException, SdkClientException, LambdaException
Returns a list of Lambda functions, with the version-specific configuration of each. Lambda returns up to 50 functions per call.
Set
FunctionVersion
toALL
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.- Returns:
- Result of the ListFunctions operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.InvalidParameterValueException
- One of the parameters in the request is not valid.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
listFunctions(ListFunctionsRequest)
, AWS API Documentation
-
listFunctionsPaginator
default ListFunctionsIterable listFunctionsPaginator() throws ServiceException, TooManyRequestsException, InvalidParameterValueException, AwsServiceException, SdkClientException, LambdaException
This is a variant of
listFunctions(software.amazon.awssdk.services.lambda.model.ListFunctionsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.lambda.paginators.ListFunctionsIterable responses = client.listFunctionsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.lambda.paginators.ListFunctionsIterable responses = client.listFunctionsPaginator(request); for (software.amazon.awssdk.services.lambda.model.ListFunctionsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.lambda.paginators.ListFunctionsIterable responses = client.listFunctionsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listFunctions(software.amazon.awssdk.services.lambda.model.ListFunctionsRequest)
operation.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ServiceException
- The Lambda service encountered an internal error.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.InvalidParameterValueException
- One of the parameters in the request is not valid.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
listFunctionsPaginator(ListFunctionsRequest)
, AWS API Documentation
-
listFunctionsPaginator
default ListFunctionsIterable listFunctionsPaginator(ListFunctionsRequest listFunctionsRequest) throws ServiceException, TooManyRequestsException, InvalidParameterValueException, AwsServiceException, SdkClientException, LambdaException
This is a variant of
listFunctions(software.amazon.awssdk.services.lambda.model.ListFunctionsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.lambda.paginators.ListFunctionsIterable responses = client.listFunctionsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.lambda.paginators.ListFunctionsIterable responses = client.listFunctionsPaginator(request); for (software.amazon.awssdk.services.lambda.model.ListFunctionsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.lambda.paginators.ListFunctionsIterable responses = client.listFunctionsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listFunctions(software.amazon.awssdk.services.lambda.model.ListFunctionsRequest)
operation.- Parameters:
listFunctionsRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ServiceException
- The Lambda service encountered an internal error.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.InvalidParameterValueException
- One of the parameters in the request is not valid.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
listFunctionsPaginator
default ListFunctionsIterable listFunctionsPaginator(Consumer<ListFunctionsRequest.Builder> listFunctionsRequest) throws ServiceException, TooManyRequestsException, InvalidParameterValueException, AwsServiceException, SdkClientException, LambdaException
This is a variant of
listFunctions(software.amazon.awssdk.services.lambda.model.ListFunctionsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.lambda.paginators.ListFunctionsIterable responses = client.listFunctionsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.lambda.paginators.ListFunctionsIterable responses = client.listFunctionsPaginator(request); for (software.amazon.awssdk.services.lambda.model.ListFunctionsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.lambda.paginators.ListFunctionsIterable responses = client.listFunctionsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listFunctions(software.amazon.awssdk.services.lambda.model.ListFunctionsRequest)
operation.
This is a convenience which creates an instance of the
ListFunctionsRequest.Builder
avoiding the need to create one manually viaListFunctionsRequest.builder()
- Parameters:
listFunctionsRequest
- AConsumer
that will call methods onListFunctionsRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ServiceException
- The Lambda service encountered an internal error.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.InvalidParameterValueException
- One of the parameters in the request is not valid.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
listFunctionsByCodeSigningConfig
default ListFunctionsByCodeSigningConfigResponse listFunctionsByCodeSigningConfig(ListFunctionsByCodeSigningConfigRequest listFunctionsByCodeSigningConfigRequest) throws ServiceException, InvalidParameterValueException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaException
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.
- Parameters:
listFunctionsByCodeSigningConfigRequest
-- Returns:
- Result of the ListFunctionsByCodeSigningConfig operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.InvalidParameterValueException
- One of the parameters in the request is not valid.ResourceNotFoundException
- The resource specified in the request does not exist.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
listFunctionsByCodeSigningConfig
default ListFunctionsByCodeSigningConfigResponse listFunctionsByCodeSigningConfig(Consumer<ListFunctionsByCodeSigningConfigRequest.Builder> listFunctionsByCodeSigningConfigRequest) throws ServiceException, InvalidParameterValueException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaException
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.
This is a convenience which creates an instance of the
ListFunctionsByCodeSigningConfigRequest.Builder
avoiding the need to create one manually viaListFunctionsByCodeSigningConfigRequest.builder()
- Parameters:
listFunctionsByCodeSigningConfigRequest
- AConsumer
that will call methods onListFunctionsByCodeSigningConfigRequest.Builder
to create a request.- Returns:
- Result of the ListFunctionsByCodeSigningConfig operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.InvalidParameterValueException
- One of the parameters in the request is not valid.ResourceNotFoundException
- The resource specified in the request does not exist.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
listFunctionsByCodeSigningConfigPaginator
default ListFunctionsByCodeSigningConfigIterable listFunctionsByCodeSigningConfigPaginator(ListFunctionsByCodeSigningConfigRequest listFunctionsByCodeSigningConfigRequest) throws ServiceException, InvalidParameterValueException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaException
This is a variant of
listFunctionsByCodeSigningConfig(software.amazon.awssdk.services.lambda.model.ListFunctionsByCodeSigningConfigRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.lambda.paginators.ListFunctionsByCodeSigningConfigIterable responses = client.listFunctionsByCodeSigningConfigPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.lambda.paginators.ListFunctionsByCodeSigningConfigIterable responses = client .listFunctionsByCodeSigningConfigPaginator(request); for (software.amazon.awssdk.services.lambda.model.ListFunctionsByCodeSigningConfigResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.lambda.paginators.ListFunctionsByCodeSigningConfigIterable responses = client.listFunctionsByCodeSigningConfigPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listFunctionsByCodeSigningConfig(software.amazon.awssdk.services.lambda.model.ListFunctionsByCodeSigningConfigRequest)
operation.- Parameters:
listFunctionsByCodeSigningConfigRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ServiceException
- The Lambda service encountered an internal error.InvalidParameterValueException
- One of the parameters in the request is not valid.ResourceNotFoundException
- The resource specified in the request does not exist.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
listFunctionsByCodeSigningConfigPaginator
default ListFunctionsByCodeSigningConfigIterable listFunctionsByCodeSigningConfigPaginator(Consumer<ListFunctionsByCodeSigningConfigRequest.Builder> listFunctionsByCodeSigningConfigRequest) throws ServiceException, InvalidParameterValueException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaException
This is a variant of
listFunctionsByCodeSigningConfig(software.amazon.awssdk.services.lambda.model.ListFunctionsByCodeSigningConfigRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.lambda.paginators.ListFunctionsByCodeSigningConfigIterable responses = client.listFunctionsByCodeSigningConfigPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.lambda.paginators.ListFunctionsByCodeSigningConfigIterable responses = client .listFunctionsByCodeSigningConfigPaginator(request); for (software.amazon.awssdk.services.lambda.model.ListFunctionsByCodeSigningConfigResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.lambda.paginators.ListFunctionsByCodeSigningConfigIterable responses = client.listFunctionsByCodeSigningConfigPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listFunctionsByCodeSigningConfig(software.amazon.awssdk.services.lambda.model.ListFunctionsByCodeSigningConfigRequest)
operation.
This is a convenience which creates an instance of the
ListFunctionsByCodeSigningConfigRequest.Builder
avoiding the need to create one manually viaListFunctionsByCodeSigningConfigRequest.builder()
- Parameters:
listFunctionsByCodeSigningConfigRequest
- AConsumer
that will call methods onListFunctionsByCodeSigningConfigRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ServiceException
- The Lambda service encountered an internal error.InvalidParameterValueException
- One of the parameters in the request is not valid.ResourceNotFoundException
- The resource specified in the request does not exist.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
listLayerVersions
default ListLayerVersionsResponse listLayerVersions(ListLayerVersionsRequest listLayerVersionsRequest) throws ServiceException, InvalidParameterValueException, ResourceNotFoundException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
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.
- Parameters:
listLayerVersionsRequest
-- Returns:
- Result of the ListLayerVersions operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.InvalidParameterValueException
- One of the parameters in the request is not valid.ResourceNotFoundException
- The resource specified in the request does not exist.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
listLayerVersions
default ListLayerVersionsResponse listLayerVersions(Consumer<ListLayerVersionsRequest.Builder> listLayerVersionsRequest) throws ServiceException, InvalidParameterValueException, ResourceNotFoundException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
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.
This is a convenience which creates an instance of the
ListLayerVersionsRequest.Builder
avoiding the need to create one manually viaListLayerVersionsRequest.builder()
- Parameters:
listLayerVersionsRequest
- AConsumer
that will call methods onListLayerVersionsRequest.Builder
to create a request.- Returns:
- Result of the ListLayerVersions operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.InvalidParameterValueException
- One of the parameters in the request is not valid.ResourceNotFoundException
- The resource specified in the request does not exist.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
listLayerVersionsPaginator
default ListLayerVersionsIterable listLayerVersionsPaginator(ListLayerVersionsRequest listLayerVersionsRequest) throws ServiceException, InvalidParameterValueException, ResourceNotFoundException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
This is a variant of
listLayerVersions(software.amazon.awssdk.services.lambda.model.ListLayerVersionsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.lambda.paginators.ListLayerVersionsIterable responses = client.listLayerVersionsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.lambda.paginators.ListLayerVersionsIterable responses = client .listLayerVersionsPaginator(request); for (software.amazon.awssdk.services.lambda.model.ListLayerVersionsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.lambda.paginators.ListLayerVersionsIterable responses = client.listLayerVersionsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listLayerVersions(software.amazon.awssdk.services.lambda.model.ListLayerVersionsRequest)
operation.- Parameters:
listLayerVersionsRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ServiceException
- The Lambda service encountered an internal error.InvalidParameterValueException
- One of the parameters in the request is not valid.ResourceNotFoundException
- The resource specified in the request does not exist.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
listLayerVersionsPaginator
default ListLayerVersionsIterable listLayerVersionsPaginator(Consumer<ListLayerVersionsRequest.Builder> listLayerVersionsRequest) throws ServiceException, InvalidParameterValueException, ResourceNotFoundException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
This is a variant of
listLayerVersions(software.amazon.awssdk.services.lambda.model.ListLayerVersionsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.lambda.paginators.ListLayerVersionsIterable responses = client.listLayerVersionsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.lambda.paginators.ListLayerVersionsIterable responses = client .listLayerVersionsPaginator(request); for (software.amazon.awssdk.services.lambda.model.ListLayerVersionsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.lambda.paginators.ListLayerVersionsIterable responses = client.listLayerVersionsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listLayerVersions(software.amazon.awssdk.services.lambda.model.ListLayerVersionsRequest)
operation.
This is a convenience which creates an instance of the
ListLayerVersionsRequest.Builder
avoiding the need to create one manually viaListLayerVersionsRequest.builder()
- Parameters:
listLayerVersionsRequest
- AConsumer
that will call methods onListLayerVersionsRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ServiceException
- The Lambda service encountered an internal error.InvalidParameterValueException
- One of the parameters in the request is not valid.ResourceNotFoundException
- The resource specified in the request does not exist.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
listLayers
default ListLayersResponse listLayers(ListLayersRequest listLayersRequest) throws ServiceException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
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.
- Parameters:
listLayersRequest
-- Returns:
- Result of the ListLayers operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.InvalidParameterValueException
- One of the parameters in the request is not valid.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
listLayers
default ListLayersResponse listLayers(Consumer<ListLayersRequest.Builder> listLayersRequest) throws ServiceException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
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.
This is a convenience which creates an instance of the
ListLayersRequest.Builder
avoiding the need to create one manually viaListLayersRequest.builder()
- Parameters:
listLayersRequest
- AConsumer
that will call methods onListLayersRequest.Builder
to create a request.- Returns:
- Result of the ListLayers operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.InvalidParameterValueException
- One of the parameters in the request is not valid.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
listLayers
default ListLayersResponse listLayers() throws ServiceException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
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.
- Returns:
- Result of the ListLayers operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.InvalidParameterValueException
- One of the parameters in the request is not valid.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
listLayers(ListLayersRequest)
, AWS API Documentation
-
listLayersPaginator
default ListLayersIterable listLayersPaginator() throws ServiceException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
This is a variant of
listLayers(software.amazon.awssdk.services.lambda.model.ListLayersRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.lambda.paginators.ListLayersIterable responses = client.listLayersPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.lambda.paginators.ListLayersIterable responses = client.listLayersPaginator(request); for (software.amazon.awssdk.services.lambda.model.ListLayersResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.lambda.paginators.ListLayersIterable responses = client.listLayersPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listLayers(software.amazon.awssdk.services.lambda.model.ListLayersRequest)
operation.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ServiceException
- The Lambda service encountered an internal error.InvalidParameterValueException
- One of the parameters in the request is not valid.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
listLayersPaginator(ListLayersRequest)
, AWS API Documentation
-
listLayersPaginator
default ListLayersIterable listLayersPaginator(ListLayersRequest listLayersRequest) throws ServiceException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
This is a variant of
listLayers(software.amazon.awssdk.services.lambda.model.ListLayersRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.lambda.paginators.ListLayersIterable responses = client.listLayersPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.lambda.paginators.ListLayersIterable responses = client.listLayersPaginator(request); for (software.amazon.awssdk.services.lambda.model.ListLayersResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.lambda.paginators.ListLayersIterable responses = client.listLayersPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listLayers(software.amazon.awssdk.services.lambda.model.ListLayersRequest)
operation.- Parameters:
listLayersRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ServiceException
- The Lambda service encountered an internal error.InvalidParameterValueException
- One of the parameters in the request is not valid.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
listLayersPaginator
default ListLayersIterable listLayersPaginator(Consumer<ListLayersRequest.Builder> listLayersRequest) throws ServiceException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
This is a variant of
listLayers(software.amazon.awssdk.services.lambda.model.ListLayersRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.lambda.paginators.ListLayersIterable responses = client.listLayersPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.lambda.paginators.ListLayersIterable responses = client.listLayersPaginator(request); for (software.amazon.awssdk.services.lambda.model.ListLayersResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.lambda.paginators.ListLayersIterable responses = client.listLayersPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listLayers(software.amazon.awssdk.services.lambda.model.ListLayersRequest)
operation.
This is a convenience which creates an instance of the
ListLayersRequest.Builder
avoiding the need to create one manually viaListLayersRequest.builder()
- Parameters:
listLayersRequest
- AConsumer
that will call methods onListLayersRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ServiceException
- The Lambda service encountered an internal error.InvalidParameterValueException
- One of the parameters in the request is not valid.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
listProvisionedConcurrencyConfigs
default ListProvisionedConcurrencyConfigsResponse listProvisionedConcurrencyConfigs(ListProvisionedConcurrencyConfigsRequest listProvisionedConcurrencyConfigsRequest) throws InvalidParameterValueException, ResourceNotFoundException, TooManyRequestsException, ServiceException, AwsServiceException, SdkClientException, LambdaException
Retrieves a list of provisioned concurrency configurations for a function.
- Parameters:
listProvisionedConcurrencyConfigsRequest
-- Returns:
- Result of the ListProvisionedConcurrencyConfigs operation returned by the service.
- Throws:
InvalidParameterValueException
- One of the parameters in the request is not valid.ResourceNotFoundException
- The resource specified in the request does not exist.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.ServiceException
- The Lambda service encountered an internal error.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
listProvisionedConcurrencyConfigs
default ListProvisionedConcurrencyConfigsResponse listProvisionedConcurrencyConfigs(Consumer<ListProvisionedConcurrencyConfigsRequest.Builder> listProvisionedConcurrencyConfigsRequest) throws InvalidParameterValueException, ResourceNotFoundException, TooManyRequestsException, ServiceException, AwsServiceException, SdkClientException, LambdaException
Retrieves a list of provisioned concurrency configurations for a function.
This is a convenience which creates an instance of the
ListProvisionedConcurrencyConfigsRequest.Builder
avoiding the need to create one manually viaListProvisionedConcurrencyConfigsRequest.builder()
- Parameters:
listProvisionedConcurrencyConfigsRequest
- AConsumer
that will call methods onListProvisionedConcurrencyConfigsRequest.Builder
to create a request.- Returns:
- Result of the ListProvisionedConcurrencyConfigs operation returned by the service.
- Throws:
InvalidParameterValueException
- One of the parameters in the request is not valid.ResourceNotFoundException
- The resource specified in the request does not exist.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.ServiceException
- The Lambda service encountered an internal error.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
listProvisionedConcurrencyConfigsPaginator
default ListProvisionedConcurrencyConfigsIterable listProvisionedConcurrencyConfigsPaginator(ListProvisionedConcurrencyConfigsRequest listProvisionedConcurrencyConfigsRequest) throws InvalidParameterValueException, ResourceNotFoundException, TooManyRequestsException, ServiceException, AwsServiceException, SdkClientException, LambdaException
This is a variant of
listProvisionedConcurrencyConfigs(software.amazon.awssdk.services.lambda.model.ListProvisionedConcurrencyConfigsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.lambda.paginators.ListProvisionedConcurrencyConfigsIterable responses = client.listProvisionedConcurrencyConfigsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.lambda.paginators.ListProvisionedConcurrencyConfigsIterable responses = client .listProvisionedConcurrencyConfigsPaginator(request); for (software.amazon.awssdk.services.lambda.model.ListProvisionedConcurrencyConfigsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.lambda.paginators.ListProvisionedConcurrencyConfigsIterable responses = client.listProvisionedConcurrencyConfigsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listProvisionedConcurrencyConfigs(software.amazon.awssdk.services.lambda.model.ListProvisionedConcurrencyConfigsRequest)
operation.- Parameters:
listProvisionedConcurrencyConfigsRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
InvalidParameterValueException
- One of the parameters in the request is not valid.ResourceNotFoundException
- The resource specified in the request does not exist.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.ServiceException
- The Lambda service encountered an internal error.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
listProvisionedConcurrencyConfigsPaginator
default ListProvisionedConcurrencyConfigsIterable listProvisionedConcurrencyConfigsPaginator(Consumer<ListProvisionedConcurrencyConfigsRequest.Builder> listProvisionedConcurrencyConfigsRequest) throws InvalidParameterValueException, ResourceNotFoundException, TooManyRequestsException, ServiceException, AwsServiceException, SdkClientException, LambdaException
This is a variant of
listProvisionedConcurrencyConfigs(software.amazon.awssdk.services.lambda.model.ListProvisionedConcurrencyConfigsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.lambda.paginators.ListProvisionedConcurrencyConfigsIterable responses = client.listProvisionedConcurrencyConfigsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.lambda.paginators.ListProvisionedConcurrencyConfigsIterable responses = client .listProvisionedConcurrencyConfigsPaginator(request); for (software.amazon.awssdk.services.lambda.model.ListProvisionedConcurrencyConfigsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.lambda.paginators.ListProvisionedConcurrencyConfigsIterable responses = client.listProvisionedConcurrencyConfigsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listProvisionedConcurrencyConfigs(software.amazon.awssdk.services.lambda.model.ListProvisionedConcurrencyConfigsRequest)
operation.
This is a convenience which creates an instance of the
ListProvisionedConcurrencyConfigsRequest.Builder
avoiding the need to create one manually viaListProvisionedConcurrencyConfigsRequest.builder()
- Parameters:
listProvisionedConcurrencyConfigsRequest
- AConsumer
that will call methods onListProvisionedConcurrencyConfigsRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
InvalidParameterValueException
- One of the parameters in the request is not valid.ResourceNotFoundException
- The resource specified in the request does not exist.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.ServiceException
- The Lambda service encountered an internal error.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
listTags
default ListTagsResponse listTags(ListTagsRequest listTagsRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Returns a function's tags. You can also view tags with GetFunction.
- Parameters:
listTagsRequest
-- Returns:
- Result of the ListTags operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.InvalidParameterValueException
- One of the parameters in the request is not valid.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
listTags
default ListTagsResponse listTags(Consumer<ListTagsRequest.Builder> listTagsRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Returns a function's tags. You can also view tags with GetFunction.
This is a convenience which creates an instance of the
ListTagsRequest.Builder
avoiding the need to create one manually viaListTagsRequest.builder()
- Parameters:
listTagsRequest
- AConsumer
that will call methods onListTagsRequest.Builder
to create a request.- Returns:
- Result of the ListTags operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.InvalidParameterValueException
- One of the parameters in the request is not valid.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
listVersionsByFunction
default ListVersionsByFunctionResponse listVersionsByFunction(ListVersionsByFunctionRequest listVersionsByFunctionRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Returns a list of versions, with the version-specific configuration of each. Lambda returns up to 50 versions per call.
- Parameters:
listVersionsByFunctionRequest
-- Returns:
- Result of the ListVersionsByFunction operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.InvalidParameterValueException
- One of the parameters in the request is not valid.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
listVersionsByFunction
default ListVersionsByFunctionResponse listVersionsByFunction(Consumer<ListVersionsByFunctionRequest.Builder> listVersionsByFunctionRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Returns a list of versions, with the version-specific configuration of each. Lambda returns up to 50 versions per call.
This is a convenience which creates an instance of the
ListVersionsByFunctionRequest.Builder
avoiding the need to create one manually viaListVersionsByFunctionRequest.builder()
- Parameters:
listVersionsByFunctionRequest
- AConsumer
that will call methods onListVersionsByFunctionRequest.Builder
to create a request.- Returns:
- Result of the ListVersionsByFunction operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.InvalidParameterValueException
- One of the parameters in the request is not valid.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
listVersionsByFunctionPaginator
default ListVersionsByFunctionIterable listVersionsByFunctionPaginator(ListVersionsByFunctionRequest listVersionsByFunctionRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
This is a variant of
listVersionsByFunction(software.amazon.awssdk.services.lambda.model.ListVersionsByFunctionRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.lambda.paginators.ListVersionsByFunctionIterable responses = client.listVersionsByFunctionPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.lambda.paginators.ListVersionsByFunctionIterable responses = client .listVersionsByFunctionPaginator(request); for (software.amazon.awssdk.services.lambda.model.ListVersionsByFunctionResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.lambda.paginators.ListVersionsByFunctionIterable responses = client.listVersionsByFunctionPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listVersionsByFunction(software.amazon.awssdk.services.lambda.model.ListVersionsByFunctionRequest)
operation.- Parameters:
listVersionsByFunctionRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.InvalidParameterValueException
- One of the parameters in the request is not valid.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
listVersionsByFunctionPaginator
default ListVersionsByFunctionIterable listVersionsByFunctionPaginator(Consumer<ListVersionsByFunctionRequest.Builder> listVersionsByFunctionRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
This is a variant of
listVersionsByFunction(software.amazon.awssdk.services.lambda.model.ListVersionsByFunctionRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.lambda.paginators.ListVersionsByFunctionIterable responses = client.listVersionsByFunctionPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.lambda.paginators.ListVersionsByFunctionIterable responses = client .listVersionsByFunctionPaginator(request); for (software.amazon.awssdk.services.lambda.model.ListVersionsByFunctionResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.lambda.paginators.ListVersionsByFunctionIterable responses = client.listVersionsByFunctionPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxItems won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listVersionsByFunction(software.amazon.awssdk.services.lambda.model.ListVersionsByFunctionRequest)
operation.
This is a convenience which creates an instance of the
ListVersionsByFunctionRequest.Builder
avoiding the need to create one manually viaListVersionsByFunctionRequest.builder()
- Parameters:
listVersionsByFunctionRequest
- AConsumer
that will call methods onListVersionsByFunctionRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.InvalidParameterValueException
- One of the parameters in the request is not valid.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
publishLayerVersion
default PublishLayerVersionResponse publishLayerVersion(PublishLayerVersionRequest publishLayerVersionRequest) throws ServiceException, ResourceNotFoundException, TooManyRequestsException, InvalidParameterValueException, CodeStorageExceededException, AwsServiceException, SdkClientException, LambdaException
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.
- Parameters:
publishLayerVersionRequest
-- Returns:
- Result of the PublishLayerVersion operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.InvalidParameterValueException
- One of the parameters in the request is not valid.CodeStorageExceededException
- Your Amazon Web Services account has exceeded its maximum total code size. For more information, see Lambda quotas.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
publishLayerVersion
default PublishLayerVersionResponse publishLayerVersion(Consumer<PublishLayerVersionRequest.Builder> publishLayerVersionRequest) throws ServiceException, ResourceNotFoundException, TooManyRequestsException, InvalidParameterValueException, CodeStorageExceededException, AwsServiceException, SdkClientException, LambdaException
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.
This is a convenience which creates an instance of the
PublishLayerVersionRequest.Builder
avoiding the need to create one manually viaPublishLayerVersionRequest.builder()
- Parameters:
publishLayerVersionRequest
- AConsumer
that will call methods onPublishLayerVersionRequest.Builder
to create a request.- Returns:
- Result of the PublishLayerVersion operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.InvalidParameterValueException
- One of the parameters in the request is not valid.CodeStorageExceededException
- Your Amazon Web Services account has exceeded its maximum total code size. For more information, see Lambda quotas.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
publishVersion
default PublishVersionResponse publishVersion(PublishVersionRequest publishVersionRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, CodeStorageExceededException, PreconditionFailedException, ResourceConflictException, AwsServiceException, SdkClientException, LambdaException
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.
- Parameters:
publishVersionRequest
-- Returns:
- Result of the PublishVersion operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.InvalidParameterValueException
- One of the parameters in the request is not valid.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.CodeStorageExceededException
- Your Amazon Web Services account has exceeded its maximum total code size. For more information, see Lambda quotas.PreconditionFailedException
- The RevisionId provided does not match the latest RevisionId for the Lambda function or alias.-
For AddPermission and RemovePermission API operations: Call
GetPolicy
to retrieve the latest RevisionId for your resource. -
For all other API operations: Call
GetFunction
orGetAlias
to retrieve the latest RevisionId for your resource.
-
ResourceConflictException
- The resource already exists, or another operation is in progress.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
publishVersion
default PublishVersionResponse publishVersion(Consumer<PublishVersionRequest.Builder> publishVersionRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, CodeStorageExceededException, PreconditionFailedException, ResourceConflictException, AwsServiceException, SdkClientException, LambdaException
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.
This is a convenience which creates an instance of the
PublishVersionRequest.Builder
avoiding the need to create one manually viaPublishVersionRequest.builder()
- Parameters:
publishVersionRequest
- AConsumer
that will call methods onPublishVersionRequest.Builder
to create a request.- Returns:
- Result of the PublishVersion operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.InvalidParameterValueException
- One of the parameters in the request is not valid.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.CodeStorageExceededException
- Your Amazon Web Services account has exceeded its maximum total code size. For more information, see Lambda quotas.PreconditionFailedException
- The RevisionId provided does not match the latest RevisionId for the Lambda function or alias.-
For AddPermission and RemovePermission API operations: Call
GetPolicy
to retrieve the latest RevisionId for your resource. -
For all other API operations: Call
GetFunction
orGetAlias
to retrieve the latest RevisionId for your resource.
-
ResourceConflictException
- The resource already exists, or another operation is in progress.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
putFunctionCodeSigningConfig
default PutFunctionCodeSigningConfigResponse putFunctionCodeSigningConfig(PutFunctionCodeSigningConfigRequest putFunctionCodeSigningConfigRequest) throws ServiceException, InvalidParameterValueException, ResourceNotFoundException, TooManyRequestsException, ResourceConflictException, CodeSigningConfigNotFoundException, AwsServiceException, SdkClientException, LambdaException
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.
- Parameters:
putFunctionCodeSigningConfigRequest
-- Returns:
- Result of the PutFunctionCodeSigningConfig operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.InvalidParameterValueException
- One of the parameters in the request is not valid.ResourceNotFoundException
- The resource specified in the request does not exist.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.ResourceConflictException
- The resource already exists, or another operation is in progress.CodeSigningConfigNotFoundException
- The specified code signing configuration does not exist.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
putFunctionCodeSigningConfig
default PutFunctionCodeSigningConfigResponse putFunctionCodeSigningConfig(Consumer<PutFunctionCodeSigningConfigRequest.Builder> putFunctionCodeSigningConfigRequest) throws ServiceException, InvalidParameterValueException, ResourceNotFoundException, TooManyRequestsException, ResourceConflictException, CodeSigningConfigNotFoundException, AwsServiceException, SdkClientException, LambdaException
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.
This is a convenience which creates an instance of the
PutFunctionCodeSigningConfigRequest.Builder
avoiding the need to create one manually viaPutFunctionCodeSigningConfigRequest.builder()
- Parameters:
putFunctionCodeSigningConfigRequest
- AConsumer
that will call methods onPutFunctionCodeSigningConfigRequest.Builder
to create a request.- Returns:
- Result of the PutFunctionCodeSigningConfig operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.InvalidParameterValueException
- One of the parameters in the request is not valid.ResourceNotFoundException
- The resource specified in the request does not exist.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.ResourceConflictException
- The resource already exists, or another operation is in progress.CodeSigningConfigNotFoundException
- The specified code signing configuration does not exist.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
putFunctionConcurrency
default PutFunctionConcurrencyResponse putFunctionConcurrency(PutFunctionConcurrencyRequest putFunctionConcurrencyRequest) throws ServiceException, InvalidParameterValueException, ResourceNotFoundException, TooManyRequestsException, ResourceConflictException, AwsServiceException, SdkClientException, LambdaException
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.
- Parameters:
putFunctionConcurrencyRequest
-- Returns:
- Result of the PutFunctionConcurrency operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.InvalidParameterValueException
- One of the parameters in the request is not valid.ResourceNotFoundException
- The resource specified in the request does not exist.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.ResourceConflictException
- The resource already exists, or another operation is in progress.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
putFunctionConcurrency
default PutFunctionConcurrencyResponse putFunctionConcurrency(Consumer<PutFunctionConcurrencyRequest.Builder> putFunctionConcurrencyRequest) throws ServiceException, InvalidParameterValueException, ResourceNotFoundException, TooManyRequestsException, ResourceConflictException, AwsServiceException, SdkClientException, LambdaException
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.
This is a convenience which creates an instance of the
PutFunctionConcurrencyRequest.Builder
avoiding the need to create one manually viaPutFunctionConcurrencyRequest.builder()
- Parameters:
putFunctionConcurrencyRequest
- AConsumer
that will call methods onPutFunctionConcurrencyRequest.Builder
to create a request.- Returns:
- Result of the PutFunctionConcurrency operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.InvalidParameterValueException
- One of the parameters in the request is not valid.ResourceNotFoundException
- The resource specified in the request does not exist.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.ResourceConflictException
- The resource already exists, or another operation is in progress.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
putFunctionEventInvokeConfig
default PutFunctionEventInvokeConfigResponse putFunctionEventInvokeConfig(PutFunctionEventInvokeConfigRequest putFunctionEventInvokeConfigRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, ResourceConflictException, AwsServiceException, SdkClientException, LambdaException
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.
- Parameters:
putFunctionEventInvokeConfigRequest
-- Returns:
- Result of the PutFunctionEventInvokeConfig operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.InvalidParameterValueException
- One of the parameters in the request is not valid.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.ResourceConflictException
- The resource already exists, or another operation is in progress.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
putFunctionEventInvokeConfig
default PutFunctionEventInvokeConfigResponse putFunctionEventInvokeConfig(Consumer<PutFunctionEventInvokeConfigRequest.Builder> putFunctionEventInvokeConfigRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, ResourceConflictException, AwsServiceException, SdkClientException, LambdaException
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.
This is a convenience which creates an instance of the
PutFunctionEventInvokeConfigRequest.Builder
avoiding the need to create one manually viaPutFunctionEventInvokeConfigRequest.builder()
- Parameters:
putFunctionEventInvokeConfigRequest
- AConsumer
that will call methods onPutFunctionEventInvokeConfigRequest.Builder
to create a request.- Returns:
- Result of the PutFunctionEventInvokeConfig operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.InvalidParameterValueException
- One of the parameters in the request is not valid.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.ResourceConflictException
- The resource already exists, or another operation is in progress.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
putFunctionRecursionConfig
default PutFunctionRecursionConfigResponse putFunctionRecursionConfig(PutFunctionRecursionConfigRequest putFunctionRecursionConfigRequest) throws InvalidParameterValueException, ResourceConflictException, ResourceNotFoundException, TooManyRequestsException, ServiceException, AwsServiceException, SdkClientException, LambdaException
Sets your function's recursive loop detection configuration.
When you configure a Lambda function to output to the same service or resource that invokes the function, it's possible to create an infinite recursive loop. For example, a Lambda function might write a message to an Amazon Simple Queue Service (Amazon SQS) queue, which then invokes the same function. This invocation causes the function to write another message to the queue, which in turn invokes the function again.
Lambda can detect certain types of recursive loops shortly after they occur. When Lambda detects a recursive loop and your function's recursive loop detection configuration is set to
Terminate
, it stops your function being invoked and notifies you.- Parameters:
putFunctionRecursionConfigRequest
-- Returns:
- Result of the PutFunctionRecursionConfig operation returned by the service.
- Throws:
InvalidParameterValueException
- One of the parameters in the request is not valid.ResourceConflictException
- The resource already exists, or another operation is in progress.ResourceNotFoundException
- The resource specified in the request does not exist.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.ServiceException
- The Lambda service encountered an internal error.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
putFunctionRecursionConfig
default PutFunctionRecursionConfigResponse putFunctionRecursionConfig(Consumer<PutFunctionRecursionConfigRequest.Builder> putFunctionRecursionConfigRequest) throws InvalidParameterValueException, ResourceConflictException, ResourceNotFoundException, TooManyRequestsException, ServiceException, AwsServiceException, SdkClientException, LambdaException
Sets your function's recursive loop detection configuration.
When you configure a Lambda function to output to the same service or resource that invokes the function, it's possible to create an infinite recursive loop. For example, a Lambda function might write a message to an Amazon Simple Queue Service (Amazon SQS) queue, which then invokes the same function. This invocation causes the function to write another message to the queue, which in turn invokes the function again.
Lambda can detect certain types of recursive loops shortly after they occur. When Lambda detects a recursive loop and your function's recursive loop detection configuration is set to
Terminate
, it stops your function being invoked and notifies you.
This is a convenience which creates an instance of the
PutFunctionRecursionConfigRequest.Builder
avoiding the need to create one manually viaPutFunctionRecursionConfigRequest.builder()
- Parameters:
putFunctionRecursionConfigRequest
- AConsumer
that will call methods onPutFunctionRecursionConfigRequest.Builder
to create a request.- Returns:
- Result of the PutFunctionRecursionConfig operation returned by the service.
- Throws:
InvalidParameterValueException
- One of the parameters in the request is not valid.ResourceConflictException
- The resource already exists, or another operation is in progress.ResourceNotFoundException
- The resource specified in the request does not exist.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.ServiceException
- The Lambda service encountered an internal error.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
putProvisionedConcurrencyConfig
default PutProvisionedConcurrencyConfigResponse putProvisionedConcurrencyConfig(PutProvisionedConcurrencyConfigRequest putProvisionedConcurrencyConfigRequest) throws InvalidParameterValueException, ResourceNotFoundException, ResourceConflictException, TooManyRequestsException, ServiceException, AwsServiceException, SdkClientException, LambdaException
Adds a provisioned concurrency configuration to a function's alias or version.
- Parameters:
putProvisionedConcurrencyConfigRequest
-- Returns:
- Result of the PutProvisionedConcurrencyConfig operation returned by the service.
- Throws:
InvalidParameterValueException
- One of the parameters in the request is not valid.ResourceNotFoundException
- The resource specified in the request does not exist.ResourceConflictException
- The resource already exists, or another operation is in progress.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.ServiceException
- The Lambda service encountered an internal error.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
putProvisionedConcurrencyConfig
default PutProvisionedConcurrencyConfigResponse putProvisionedConcurrencyConfig(Consumer<PutProvisionedConcurrencyConfigRequest.Builder> putProvisionedConcurrencyConfigRequest) throws InvalidParameterValueException, ResourceNotFoundException, ResourceConflictException, TooManyRequestsException, ServiceException, AwsServiceException, SdkClientException, LambdaException
Adds a provisioned concurrency configuration to a function's alias or version.
This is a convenience which creates an instance of the
PutProvisionedConcurrencyConfigRequest.Builder
avoiding the need to create one manually viaPutProvisionedConcurrencyConfigRequest.builder()
- Parameters:
putProvisionedConcurrencyConfigRequest
- AConsumer
that will call methods onPutProvisionedConcurrencyConfigRequest.Builder
to create a request.- Returns:
- Result of the PutProvisionedConcurrencyConfig operation returned by the service.
- Throws:
InvalidParameterValueException
- One of the parameters in the request is not valid.ResourceNotFoundException
- The resource specified in the request does not exist.ResourceConflictException
- The resource already exists, or another operation is in progress.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.ServiceException
- The Lambda service encountered an internal error.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
putRuntimeManagementConfig
default PutRuntimeManagementConfigResponse putRuntimeManagementConfig(PutRuntimeManagementConfigRequest putRuntimeManagementConfigRequest) throws ServiceException, ResourceNotFoundException, ResourceConflictException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Sets the runtime management configuration for a function's version. For more information, see Runtime updates.
- Parameters:
putRuntimeManagementConfigRequest
-- Returns:
- Result of the PutRuntimeManagementConfig operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.ResourceConflictException
- The resource already exists, or another operation is in progress.InvalidParameterValueException
- One of the parameters in the request is not valid.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
putRuntimeManagementConfig
default PutRuntimeManagementConfigResponse putRuntimeManagementConfig(Consumer<PutRuntimeManagementConfigRequest.Builder> putRuntimeManagementConfigRequest) throws ServiceException, ResourceNotFoundException, ResourceConflictException, InvalidParameterValueException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Sets the runtime management configuration for a function's version. For more information, see Runtime updates.
This is a convenience which creates an instance of the
PutRuntimeManagementConfigRequest.Builder
avoiding the need to create one manually viaPutRuntimeManagementConfigRequest.builder()
- Parameters:
putRuntimeManagementConfigRequest
- AConsumer
that will call methods onPutRuntimeManagementConfigRequest.Builder
to create a request.- Returns:
- Result of the PutRuntimeManagementConfig operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.ResourceConflictException
- The resource already exists, or another operation is in progress.InvalidParameterValueException
- One of the parameters in the request is not valid.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
removeLayerVersionPermission
default RemoveLayerVersionPermissionResponse removeLayerVersionPermission(RemoveLayerVersionPermissionRequest removeLayerVersionPermissionRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, PreconditionFailedException, AwsServiceException, SdkClientException, LambdaException
Removes a statement from the permissions policy for a version of an Lambda layer. For more information, see AddLayerVersionPermission.
- Parameters:
removeLayerVersionPermissionRequest
-- Returns:
- Result of the RemoveLayerVersionPermission operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.InvalidParameterValueException
- One of the parameters in the request is not valid.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.PreconditionFailedException
- The RevisionId provided does not match the latest RevisionId for the Lambda function or alias.-
For AddPermission and RemovePermission API operations: Call
GetPolicy
to retrieve the latest RevisionId for your resource. -
For all other API operations: Call
GetFunction
orGetAlias
to retrieve the latest RevisionId for your resource.
-
SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
removeLayerVersionPermission
default RemoveLayerVersionPermissionResponse removeLayerVersionPermission(Consumer<RemoveLayerVersionPermissionRequest.Builder> removeLayerVersionPermissionRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, PreconditionFailedException, AwsServiceException, SdkClientException, LambdaException
Removes a statement from the permissions policy for a version of an Lambda layer. For more information, see AddLayerVersionPermission.
This is a convenience which creates an instance of the
RemoveLayerVersionPermissionRequest.Builder
avoiding the need to create one manually viaRemoveLayerVersionPermissionRequest.builder()
- Parameters:
removeLayerVersionPermissionRequest
- AConsumer
that will call methods onRemoveLayerVersionPermissionRequest.Builder
to create a request.- Returns:
- Result of the RemoveLayerVersionPermission operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.InvalidParameterValueException
- One of the parameters in the request is not valid.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.PreconditionFailedException
- The RevisionId provided does not match the latest RevisionId for the Lambda function or alias.-
For AddPermission and RemovePermission API operations: Call
GetPolicy
to retrieve the latest RevisionId for your resource. -
For all other API operations: Call
GetFunction
orGetAlias
to retrieve the latest RevisionId for your resource.
-
SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
removePermission
default RemovePermissionResponse removePermission(RemovePermissionRequest removePermissionRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, PreconditionFailedException, AwsServiceException, SdkClientException, LambdaException
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.
- Parameters:
removePermissionRequest
-- Returns:
- Result of the RemovePermission operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.InvalidParameterValueException
- One of the parameters in the request is not valid.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.PreconditionFailedException
- The RevisionId provided does not match the latest RevisionId for the Lambda function or alias.-
For AddPermission and RemovePermission API operations: Call
GetPolicy
to retrieve the latest RevisionId for your resource. -
For all other API operations: Call
GetFunction
orGetAlias
to retrieve the latest RevisionId for your resource.
-
SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
removePermission
default RemovePermissionResponse removePermission(Consumer<RemovePermissionRequest.Builder> removePermissionRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, PreconditionFailedException, AwsServiceException, SdkClientException, LambdaException
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.
This is a convenience which creates an instance of the
RemovePermissionRequest.Builder
avoiding the need to create one manually viaRemovePermissionRequest.builder()
- Parameters:
removePermissionRequest
- AConsumer
that will call methods onRemovePermissionRequest.Builder
to create a request.- Returns:
- Result of the RemovePermission operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.InvalidParameterValueException
- One of the parameters in the request is not valid.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.PreconditionFailedException
- The RevisionId provided does not match the latest RevisionId for the Lambda function or alias.-
For AddPermission and RemovePermission API operations: Call
GetPolicy
to retrieve the latest RevisionId for your resource. -
For all other API operations: Call
GetFunction
orGetAlias
to retrieve the latest RevisionId for your resource.
-
SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
tagResource
default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, ResourceConflictException, AwsServiceException, SdkClientException, LambdaException
Adds tags to a function.
- Parameters:
tagResourceRequest
-- Returns:
- Result of the TagResource operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.InvalidParameterValueException
- One of the parameters in the request is not valid.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.ResourceConflictException
- The resource already exists, or another operation is in progress.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
tagResource
default TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, ResourceConflictException, AwsServiceException, SdkClientException, LambdaException
Adds tags to a function.
This is a convenience which creates an instance of the
TagResourceRequest.Builder
avoiding the need to create one manually viaTagResourceRequest.builder()
- Parameters:
tagResourceRequest
- AConsumer
that will call methods onTagResourceRequest.Builder
to create a request.- Returns:
- Result of the TagResource operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.InvalidParameterValueException
- One of the parameters in the request is not valid.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.ResourceConflictException
- The resource already exists, or another operation is in progress.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
untagResource
default UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, ResourceConflictException, AwsServiceException, SdkClientException, LambdaException
Removes tags from a function.
- Parameters:
untagResourceRequest
-- Returns:
- Result of the UntagResource operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.InvalidParameterValueException
- One of the parameters in the request is not valid.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.ResourceConflictException
- The resource already exists, or another operation is in progress.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
untagResource
default UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, ResourceConflictException, AwsServiceException, SdkClientException, LambdaException
Removes tags from a function.
This is a convenience which creates an instance of the
UntagResourceRequest.Builder
avoiding the need to create one manually viaUntagResourceRequest.builder()
- Parameters:
untagResourceRequest
- AConsumer
that will call methods onUntagResourceRequest.Builder
to create a request.- Returns:
- Result of the UntagResource operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.InvalidParameterValueException
- One of the parameters in the request is not valid.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.ResourceConflictException
- The resource already exists, or another operation is in progress.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
updateAlias
default UpdateAliasResponse updateAlias(UpdateAliasRequest updateAliasRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, PreconditionFailedException, ResourceConflictException, AwsServiceException, SdkClientException, LambdaException
Updates the configuration of a Lambda function alias.
- Parameters:
updateAliasRequest
-- Returns:
- Result of the UpdateAlias operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.InvalidParameterValueException
- One of the parameters in the request is not valid.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.PreconditionFailedException
- The RevisionId provided does not match the latest RevisionId for the Lambda function or alias.-
For AddPermission and RemovePermission API operations: Call
GetPolicy
to retrieve the latest RevisionId for your resource. -
For all other API operations: Call
GetFunction
orGetAlias
to retrieve the latest RevisionId for your resource.
-
ResourceConflictException
- The resource already exists, or another operation is in progress.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
updateAlias
default UpdateAliasResponse updateAlias(Consumer<UpdateAliasRequest.Builder> updateAliasRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, PreconditionFailedException, ResourceConflictException, AwsServiceException, SdkClientException, LambdaException
Updates the configuration of a Lambda function alias.
This is a convenience which creates an instance of the
UpdateAliasRequest.Builder
avoiding the need to create one manually viaUpdateAliasRequest.builder()
- Parameters:
updateAliasRequest
- AConsumer
that will call methods onUpdateAliasRequest.Builder
to create a request.- Returns:
- Result of the UpdateAlias operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.InvalidParameterValueException
- One of the parameters in the request is not valid.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.PreconditionFailedException
- The RevisionId provided does not match the latest RevisionId for the Lambda function or alias.-
For AddPermission and RemovePermission API operations: Call
GetPolicy
to retrieve the latest RevisionId for your resource. -
For all other API operations: Call
GetFunction
orGetAlias
to retrieve the latest RevisionId for your resource.
-
ResourceConflictException
- The resource already exists, or another operation is in progress.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
updateCodeSigningConfig
default UpdateCodeSigningConfigResponse updateCodeSigningConfig(UpdateCodeSigningConfigRequest updateCodeSigningConfigRequest) throws ServiceException, InvalidParameterValueException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaException
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.
- Parameters:
updateCodeSigningConfigRequest
-- Returns:
- Result of the UpdateCodeSigningConfig operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.InvalidParameterValueException
- One of the parameters in the request is not valid.ResourceNotFoundException
- The resource specified in the request does not exist.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
updateCodeSigningConfig
default UpdateCodeSigningConfigResponse updateCodeSigningConfig(Consumer<UpdateCodeSigningConfigRequest.Builder> updateCodeSigningConfigRequest) throws ServiceException, InvalidParameterValueException, ResourceNotFoundException, AwsServiceException, SdkClientException, LambdaException
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.
This is a convenience which creates an instance of the
UpdateCodeSigningConfigRequest.Builder
avoiding the need to create one manually viaUpdateCodeSigningConfigRequest.builder()
- Parameters:
updateCodeSigningConfigRequest
- AConsumer
that will call methods onUpdateCodeSigningConfigRequest.Builder
to create a request.- Returns:
- Result of the UpdateCodeSigningConfig operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.InvalidParameterValueException
- One of the parameters in the request is not valid.ResourceNotFoundException
- The resource specified in the request does not exist.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
updateEventSourceMapping
default UpdateEventSourceMappingResponse updateEventSourceMapping(UpdateEventSourceMappingRequest updateEventSourceMappingRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, ResourceConflictException, ResourceInUseException, AwsServiceException, SdkClientException, LambdaException
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.
- Parameters:
updateEventSourceMappingRequest
-- Returns:
- Result of the UpdateEventSourceMapping operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.InvalidParameterValueException
- One of the parameters in the request is not valid.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.ResourceConflictException
- The resource already exists, or another operation is in progress.ResourceInUseException
- 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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
updateEventSourceMapping
default UpdateEventSourceMappingResponse updateEventSourceMapping(Consumer<UpdateEventSourceMappingRequest.Builder> updateEventSourceMappingRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, ResourceConflictException, ResourceInUseException, AwsServiceException, SdkClientException, LambdaException
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.
This is a convenience which creates an instance of the
UpdateEventSourceMappingRequest.Builder
avoiding the need to create one manually viaUpdateEventSourceMappingRequest.builder()
- Parameters:
updateEventSourceMappingRequest
- AConsumer
that will call methods onUpdateEventSourceMappingRequest.Builder
to create a request.- Returns:
- Result of the UpdateEventSourceMapping operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.InvalidParameterValueException
- One of the parameters in the request is not valid.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.ResourceConflictException
- The resource already exists, or another operation is in progress.ResourceInUseException
- 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.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
updateFunctionCode
default UpdateFunctionCodeResponse updateFunctionCode(UpdateFunctionCodeRequest updateFunctionCodeRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, CodeStorageExceededException, PreconditionFailedException, ResourceConflictException, CodeVerificationFailedException, InvalidCodeSignatureException, CodeSigningConfigNotFoundException, AwsServiceException, SdkClientException, LambdaException
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 inImageUri
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 theZipFile
field.The code in the deployment package must be compatible with the target instruction set architecture of the function (
x86-64
orarm64
).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.
- Parameters:
updateFunctionCodeRequest
-- Returns:
- Result of the UpdateFunctionCode operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.InvalidParameterValueException
- One of the parameters in the request is not valid.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.CodeStorageExceededException
- Your Amazon Web Services account has exceeded its maximum total code size. For more information, see Lambda quotas.PreconditionFailedException
- The RevisionId provided does not match the latest RevisionId for the Lambda function or alias.-
For AddPermission and RemovePermission API operations: Call
GetPolicy
to retrieve the latest RevisionId for your resource. -
For all other API operations: Call
GetFunction
orGetAlias
to retrieve the latest RevisionId for your resource.
-
ResourceConflictException
- The resource already exists, or another operation is in progress.CodeVerificationFailedException
- 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.InvalidCodeSignatureException
- 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.CodeSigningConfigNotFoundException
- The specified code signing configuration does not exist.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
updateFunctionCode
default UpdateFunctionCodeResponse updateFunctionCode(Consumer<UpdateFunctionCodeRequest.Builder> updateFunctionCodeRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, CodeStorageExceededException, PreconditionFailedException, ResourceConflictException, CodeVerificationFailedException, InvalidCodeSignatureException, CodeSigningConfigNotFoundException, AwsServiceException, SdkClientException, LambdaException
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 inImageUri
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 theZipFile
field.The code in the deployment package must be compatible with the target instruction set architecture of the function (
x86-64
orarm64
).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.
This is a convenience which creates an instance of the
UpdateFunctionCodeRequest.Builder
avoiding the need to create one manually viaUpdateFunctionCodeRequest.builder()
- Parameters:
updateFunctionCodeRequest
- AConsumer
that will call methods onUpdateFunctionCodeRequest.Builder
to create a request.- Returns:
- Result of the UpdateFunctionCode operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.InvalidParameterValueException
- One of the parameters in the request is not valid.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.CodeStorageExceededException
- Your Amazon Web Services account has exceeded its maximum total code size. For more information, see Lambda quotas.PreconditionFailedException
- The RevisionId provided does not match the latest RevisionId for the Lambda function or alias.-
For AddPermission and RemovePermission API operations: Call
GetPolicy
to retrieve the latest RevisionId for your resource. -
For all other API operations: Call
GetFunction
orGetAlias
to retrieve the latest RevisionId for your resource.
-
ResourceConflictException
- The resource already exists, or another operation is in progress.CodeVerificationFailedException
- 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.InvalidCodeSignatureException
- 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.CodeSigningConfigNotFoundException
- The specified code signing configuration does not exist.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
updateFunctionConfiguration
default UpdateFunctionConfigurationResponse updateFunctionConfiguration(UpdateFunctionConfigurationRequest updateFunctionConfigurationRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, ResourceConflictException, PreconditionFailedException, CodeVerificationFailedException, InvalidCodeSignatureException, CodeSigningConfigNotFoundException, AwsServiceException, SdkClientException, LambdaException
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
, andLastUpdateStatusReasonCode
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.
- Parameters:
updateFunctionConfigurationRequest
-- Returns:
- Result of the UpdateFunctionConfiguration operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.InvalidParameterValueException
- One of the parameters in the request is not valid.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.ResourceConflictException
- The resource already exists, or another operation is in progress.PreconditionFailedException
- The RevisionId provided does not match the latest RevisionId for the Lambda function or alias.-
For AddPermission and RemovePermission API operations: Call
GetPolicy
to retrieve the latest RevisionId for your resource. -
For all other API operations: Call
GetFunction
orGetAlias
to retrieve the latest RevisionId for your resource.
-
CodeVerificationFailedException
- 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.InvalidCodeSignatureException
- 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.CodeSigningConfigNotFoundException
- The specified code signing configuration does not exist.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
updateFunctionConfiguration
default UpdateFunctionConfigurationResponse updateFunctionConfiguration(Consumer<UpdateFunctionConfigurationRequest.Builder> updateFunctionConfigurationRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, ResourceConflictException, PreconditionFailedException, CodeVerificationFailedException, InvalidCodeSignatureException, CodeSigningConfigNotFoundException, AwsServiceException, SdkClientException, LambdaException
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
, andLastUpdateStatusReasonCode
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.
This is a convenience which creates an instance of the
UpdateFunctionConfigurationRequest.Builder
avoiding the need to create one manually viaUpdateFunctionConfigurationRequest.builder()
- Parameters:
updateFunctionConfigurationRequest
- AConsumer
that will call methods onUpdateFunctionConfigurationRequest.Builder
to create a request.- Returns:
- Result of the UpdateFunctionConfiguration operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.InvalidParameterValueException
- One of the parameters in the request is not valid.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.ResourceConflictException
- The resource already exists, or another operation is in progress.PreconditionFailedException
- The RevisionId provided does not match the latest RevisionId for the Lambda function or alias.-
For AddPermission and RemovePermission API operations: Call
GetPolicy
to retrieve the latest RevisionId for your resource. -
For all other API operations: Call
GetFunction
orGetAlias
to retrieve the latest RevisionId for your resource.
-
CodeVerificationFailedException
- 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.InvalidCodeSignatureException
- 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.CodeSigningConfigNotFoundException
- The specified code signing configuration does not exist.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
updateFunctionEventInvokeConfig
default UpdateFunctionEventInvokeConfigResponse updateFunctionEventInvokeConfig(UpdateFunctionEventInvokeConfigRequest updateFunctionEventInvokeConfigRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, ResourceConflictException, AwsServiceException, SdkClientException, LambdaException
Updates the configuration for asynchronous invocation for a function, version, or alias.
To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.
- Parameters:
updateFunctionEventInvokeConfigRequest
-- Returns:
- Result of the UpdateFunctionEventInvokeConfig operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.InvalidParameterValueException
- One of the parameters in the request is not valid.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.ResourceConflictException
- The resource already exists, or another operation is in progress.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
updateFunctionEventInvokeConfig
default UpdateFunctionEventInvokeConfigResponse updateFunctionEventInvokeConfig(Consumer<UpdateFunctionEventInvokeConfigRequest.Builder> updateFunctionEventInvokeConfigRequest) throws ServiceException, ResourceNotFoundException, InvalidParameterValueException, TooManyRequestsException, ResourceConflictException, AwsServiceException, SdkClientException, LambdaException
Updates the configuration for asynchronous invocation for a function, version, or alias.
To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.
This is a convenience which creates an instance of the
UpdateFunctionEventInvokeConfigRequest.Builder
avoiding the need to create one manually viaUpdateFunctionEventInvokeConfigRequest.builder()
- Parameters:
updateFunctionEventInvokeConfigRequest
- AConsumer
that will call methods onUpdateFunctionEventInvokeConfigRequest.Builder
to create a request.- Returns:
- Result of the UpdateFunctionEventInvokeConfig operation returned by the service.
- Throws:
ServiceException
- The Lambda service encountered an internal error.ResourceNotFoundException
- The resource specified in the request does not exist.InvalidParameterValueException
- One of the parameters in the request is not valid.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.ResourceConflictException
- The resource already exists, or another operation is in progress.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
updateFunctionUrlConfig
default UpdateFunctionUrlConfigResponse updateFunctionUrlConfig(UpdateFunctionUrlConfigRequest updateFunctionUrlConfigRequest) throws ResourceConflictException, ResourceNotFoundException, InvalidParameterValueException, ServiceException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Updates the configuration for a Lambda function URL.
- Parameters:
updateFunctionUrlConfigRequest
-- Returns:
- Result of the UpdateFunctionUrlConfig operation returned by the service.
- Throws:
ResourceConflictException
- The resource already exists, or another operation is in progress.ResourceNotFoundException
- The resource specified in the request does not exist.InvalidParameterValueException
- One of the parameters in the request is not valid.ServiceException
- The Lambda service encountered an internal error.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
updateFunctionUrlConfig
default UpdateFunctionUrlConfigResponse updateFunctionUrlConfig(Consumer<UpdateFunctionUrlConfigRequest.Builder> updateFunctionUrlConfigRequest) throws ResourceConflictException, ResourceNotFoundException, InvalidParameterValueException, ServiceException, TooManyRequestsException, AwsServiceException, SdkClientException, LambdaException
Updates the configuration for a Lambda function URL.
This is a convenience which creates an instance of the
UpdateFunctionUrlConfigRequest.Builder
avoiding the need to create one manually viaUpdateFunctionUrlConfigRequest.builder()
- Parameters:
updateFunctionUrlConfigRequest
- AConsumer
that will call methods onUpdateFunctionUrlConfigRequest.Builder
to create a request.- Returns:
- Result of the UpdateFunctionUrlConfig operation returned by the service.
- Throws:
ResourceConflictException
- The resource already exists, or another operation is in progress.ResourceNotFoundException
- The resource specified in the request does not exist.InvalidParameterValueException
- One of the parameters in the request is not valid.ServiceException
- The Lambda service encountered an internal error.TooManyRequestsException
- The request throughput limit was exceeded. For more information, see Lambda quotas.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.LambdaException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
- See Also:
- AWS API Documentation
-
waiter
default LambdaWaiter waiter()
Create an instance ofLambdaWaiter
using this client.Waiters created via this method are managed by the SDK and resources will be released when the service client is closed.
- Returns:
- an instance of
LambdaWaiter
-
create
static LambdaClient create()
Create aLambdaClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
.
-
builder
static LambdaClientBuilder builder()
Create a builder that can be used to configure and create aLambdaClient
.
-
serviceMetadata
static ServiceMetadata serviceMetadata()
-
serviceClientConfiguration
default LambdaServiceClientConfiguration serviceClientConfiguration()
- Specified by:
serviceClientConfiguration
in interfaceAwsClient
- Specified by:
serviceClientConfiguration
in interfaceSdkClient
-
-