Jump to Content

This API Documentation is now deprecated

We are excited to announce our new API Documentation.

Class UpdateFunctionUrlConfigCommandProtected

Updates the configuration for a Lambda function URL.

Example

Use a bare-bones client and the command you need to make an API call.

import { LambdaClient, UpdateFunctionUrlConfigCommand } from "@aws-sdk/client-lambda"; // ES Modules import
// const { LambdaClient, UpdateFunctionUrlConfigCommand } = require("@aws-sdk/client-lambda"); // CommonJS import
const client = new LambdaClient(config);
const input = { // UpdateFunctionUrlConfigRequest
FunctionName: "STRING_VALUE", // required
Qualifier: "STRING_VALUE",
AuthType: "NONE" || "AWS_IAM",
Cors: { // Cors
AllowCredentials: true || false,
AllowHeaders: [ // HeadersList
"STRING_VALUE",
],
AllowMethods: [ // AllowMethodsList
"STRING_VALUE",
],
AllowOrigins: [ // AllowOriginsList
"STRING_VALUE",
],
ExposeHeaders: [
"STRING_VALUE",
],
MaxAge: Number("int"),
},
InvokeMode: "BUFFERED" || "RESPONSE_STREAM",
};
const command = new UpdateFunctionUrlConfigCommand(input);
const response = await client.send(command);
// { // UpdateFunctionUrlConfigResponse
// FunctionUrl: "STRING_VALUE", // required
// FunctionArn: "STRING_VALUE", // required
// AuthType: "NONE" || "AWS_IAM", // required
// Cors: { // Cors
// AllowCredentials: true || false,
// AllowHeaders: [ // HeadersList
// "STRING_VALUE",
// ],
// AllowMethods: [ // AllowMethodsList
// "STRING_VALUE",
// ],
// AllowOrigins: [ // AllowOriginsList
// "STRING_VALUE",
// ],
// ExposeHeaders: [
// "STRING_VALUE",
// ],
// MaxAge: Number("int"),
// },
// CreationTime: "STRING_VALUE", // required
// LastModifiedTime: "STRING_VALUE", // required
// InvokeMode: "BUFFERED" || "RESPONSE_STREAM",
// };

Param

UpdateFunctionUrlConfigCommandInput

Returns

UpdateFunctionUrlConfigCommandOutput

See

Throws

InvalidParameterValueException (client fault)

One of the parameters in the request is not valid.

Throws

ResourceConflictException (client fault)

The resource already exists, or another operation is in progress.

Throws

ResourceNotFoundException (client fault)

The resource specified in the request does not exist.

Throws

ServiceException (server fault)

The Lambda service encountered an internal error.

Throws

TooManyRequestsException (client fault)

The request throughput limit was exceeded. For more information, see Lambda quotas.

Throws

LambdaServiceException

Base exception class for all service exceptions from Lambda service.

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

Methods