import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { ConfigServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConfigServiceClient"; import type { PutConformancePackRequest, PutConformancePackResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link PutConformancePackCommand}. */ export interface PutConformancePackCommandInput extends PutConformancePackRequest { } /** * @public * * The output of {@link PutConformancePackCommand}. */ export interface PutConformancePackCommandOutput extends PutConformancePackResponse, __MetadataBearer { } declare const PutConformancePackCommand_base: { new (input: PutConformancePackCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: PutConformancePackCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Creates or updates a conformance pack. A conformance pack is a collection of Config rules that can be easily deployed in an account and a region and across an organization. * For information on how many conformance packs you can have per account, * see * Service Limits * in the Config Developer Guide.

* *

When you use PutConformancePack to deploy conformance packs in your account, * the operation can create Config rules and remediation actions without * requiring config:PutConfigRule or * config:PutRemediationConfigurations permissions in your account IAM * policies.

*

This API uses the AWSServiceRoleForConfigConforms service-linked role in your * account to create conformance pack resources. This service-linked role includes the * permissions to create Config rules and remediation configurations, even * if your account IAM policies explicitly deny these actions.

*
*

This API creates a service-linked role AWSServiceRoleForConfigConforms in your account. * The service-linked role is created only when the role does not exist in your account.

* *

You must specify only one of the follow parameters: TemplateS3Uri, TemplateBody or TemplateSSMDocumentDetails.

*
* *

* Tags are added at creation and cannot be updated with this operation *

*

* PutConformancePack is an idempotent API. Subsequent requests won't create a duplicate resource if one was already created. If a following request has different tags values, * Config will ignore these differences and treat it as an idempotent request of the previous. In this case, tags will not be updated, even if they are different.

*

Use TagResource and UntagResource to update tags after creation.

*
* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ConfigServiceClient, PutConformancePackCommand } from "@aws-sdk/client-config-service"; // ES Modules import * // const { ConfigServiceClient, PutConformancePackCommand } = require("@aws-sdk/client-config-service"); // CommonJS import * // import type { ConfigServiceClientConfig } from "@aws-sdk/client-config-service"; * const config = {}; // type is ConfigServiceClientConfig * const client = new ConfigServiceClient(config); * const input = { // PutConformancePackRequest * ConformancePackName: "STRING_VALUE", // required * TemplateS3Uri: "STRING_VALUE", * TemplateBody: "STRING_VALUE", * DeliveryS3Bucket: "STRING_VALUE", * DeliveryS3KeyPrefix: "STRING_VALUE", * ConformancePackInputParameters: [ // ConformancePackInputParameters * { // ConformancePackInputParameter * ParameterName: "STRING_VALUE", // required * ParameterValue: "STRING_VALUE", // required * }, * ], * TemplateSSMDocumentDetails: { // TemplateSSMDocumentDetails * DocumentName: "STRING_VALUE", // required * DocumentVersion: "STRING_VALUE", * }, * Tags: [ // TagsList * { // Tag * Key: "STRING_VALUE", * Value: "STRING_VALUE", * }, * ], * }; * const command = new PutConformancePackCommand(input); * const response = await client.send(command); * // { // PutConformancePackResponse * // ConformancePackArn: "STRING_VALUE", * // }; * * ``` * * @param PutConformancePackCommandInput - {@link PutConformancePackCommandInput} * @returns {@link PutConformancePackCommandOutput} * @see {@link PutConformancePackCommandInput} for command's `input` shape. * @see {@link PutConformancePackCommandOutput} for command's `response` shape. * @see {@link ConfigServiceClientResolvedConfig | config} for ConfigServiceClient's `config` shape. * * @throws {@link ConformancePackTemplateValidationException} (client fault) *

You have specified a template that is not valid or supported.

* * @throws {@link InsufficientPermissionsException} (client fault) *

Indicates one of the following errors:

* * * @throws {@link InvalidParameterValueException} (client fault) *

One or more of the specified parameters are not valid. Verify * that your parameters are valid and try again.

* * @throws {@link MaxNumberOfConformancePacksExceededException} (client fault) *

You have reached the limit of the number of conformance packs you can create in an account. For more information, see * Service Limits * in the Config Developer Guide.

* * @throws {@link ResourceInUseException} (client fault) *

You see this exception in the following cases:

* * * @throws {@link ConfigServiceServiceException} *

Base exception class for all service exceptions from ConfigService service.

* * * @public */ export declare class PutConformancePackCommand extends PutConformancePackCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: PutConformancePackRequest; output: PutConformancePackResponse; }; sdk: { input: PutConformancePackCommandInput; output: PutConformancePackCommandOutput; }; }; }