We are excited to announce the developer preview of our new API documentation for AWS SDK for JavaScript v3. Please follow instructions on the landing page to leave us your feedback.
Protected
Updates an AppConfig extension. For more information about extensions, see Working with AppConfig extensions in the AppConfig User Guide.
Use a bare-bones client and the command you need to make an API call.
import { AppConfigClient, UpdateExtensionCommand } from "@aws-sdk/client-appconfig"; // ES Modules import// const { AppConfigClient, UpdateExtensionCommand } = require("@aws-sdk/client-appconfig"); // CommonJS importconst client = new AppConfigClient(config);const input = { // UpdateExtensionRequest ExtensionIdentifier: "STRING_VALUE", // required Description: "STRING_VALUE", Actions: { // ActionsMap "<keys>": [ // ActionList { // Action Name: "STRING_VALUE", Description: "STRING_VALUE", Uri: "STRING_VALUE", RoleArn: "STRING_VALUE", }, ], }, Parameters: { // ParameterMap "<keys>": { // Parameter Description: "STRING_VALUE", Required: true || false, }, }, VersionNumber: Number("int"),};const command = new UpdateExtensionCommand(input);const response = await client.send(command);// { // Extension// Id: "STRING_VALUE",// Name: "STRING_VALUE",// VersionNumber: Number("int"),// Arn: "STRING_VALUE",// Description: "STRING_VALUE",// Actions: { // ActionsMap// "<keys>": [ // ActionList// { // Action// Name: "STRING_VALUE",// Description: "STRING_VALUE",// Uri: "STRING_VALUE",// RoleArn: "STRING_VALUE",// },// ],// },// Parameters: { // ParameterMap// "<keys>": { // Parameter// Description: "STRING_VALUE",// Required: true || false,// },// },// };
UpdateExtensionCommandInput
UpdateExtensionCommandOutput
input
response
config
BadRequestException (client fault)
The input fails to satisfy the constraints specified by an Amazon Web Services service.
ConflictException (client fault)
The request could not be processed because of conflict in the current state of the resource.
InternalServerException (server fault)
There was an internal failure in the AppConfig service.
ResourceNotFoundException (client fault)
The requested resource could not be found.
AppConfigServiceException
Base exception class for all service exceptions from AppConfig service.
Readonly
Static
Updates an AppConfig extension. For more information about extensions, see Working with AppConfig extensions in the AppConfig User Guide.
Example
Use a bare-bones client and the command you need to make an API call.
Param
UpdateExtensionCommandInput
Returns
UpdateExtensionCommandOutput
See
input
shape.response
shape.config
shape.Throws
BadRequestException (client fault)
The input fails to satisfy the constraints specified by an Amazon Web Services service.
Throws
ConflictException (client fault)
The request could not be processed because of conflict in the current state of the resource.
Throws
InternalServerException (server fault)
There was an internal failure in the AppConfig service.
Throws
ResourceNotFoundException (client fault)
The requested resource could not be found.
Throws
AppConfigServiceException
Base exception class for all service exceptions from AppConfig service.