Jump to Content

New API Documentation - Developer Preview Available

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.

Class ValidateConfigurationCommandProtected

Uses the validators in a configuration profile to validate a configuration.

Example

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

import { AppConfigClient, ValidateConfigurationCommand } from "@aws-sdk/client-appconfig"; // ES Modules import
// const { AppConfigClient, ValidateConfigurationCommand } = require("@aws-sdk/client-appconfig"); // CommonJS import
const client = new AppConfigClient(config);
const input = { // ValidateConfigurationRequest
ApplicationId: "STRING_VALUE", // required
ConfigurationProfileId: "STRING_VALUE", // required
ConfigurationVersion: "STRING_VALUE", // required
};
const command = new ValidateConfigurationCommand(input);
const response = await client.send(command);
// {};

Param

ValidateConfigurationCommandInput

Returns

ValidateConfigurationCommandOutput

See

Throws

BadRequestException (client fault)

The input fails to satisfy the constraints specified by an Amazon Web Services service.

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.

Example

To validate a configuration

// The following validate-configuration example uses the validators in a configuration profile to validate a configuration.
const input = {
"ApplicationId": "abc1234",
"ConfigurationProfileId": "ur8hx2f",
"ConfigurationVersion": "1"
};
const command = new ValidateConfigurationCommand(input);
await client.send(command);
// example id: to-validate-a-configuration-1632331491365

Hierarchy

Constructors

Properties

Methods