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 DeleteConfigurationProfileCommandProtected

Deletes a configuration profile. Deleting a configuration profile does not delete a configuration from a host.

Example

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

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

Param

DeleteConfigurationProfileCommandInput

Returns

DeleteConfigurationProfileCommandOutput

See

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.

Example

To delete a configuration profile

// The following delete-configuration-profile example deletes the specified configuration profile.
const input = {
"ApplicationId": "339ohji",
"ConfigurationProfileId": "ur8hx2f"
};
const command = new DeleteConfigurationProfileCommand(input);
await client.send(command);
// example id: to-delete-a-configuration-profile-1632265401308

Hierarchy

Constructors

Properties

Methods