import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { PutComplianceItemsRequest, PutComplianceItemsResult } from "../models/models_1"; import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link PutComplianceItemsCommand}. */ export interface PutComplianceItemsCommandInput extends PutComplianceItemsRequest { } /** * @public * * The output of {@link PutComplianceItemsCommand}. */ export interface PutComplianceItemsCommandOutput extends PutComplianceItemsResult, __MetadataBearer { } declare const PutComplianceItemsCommand_base: { new (input: PutComplianceItemsCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: PutComplianceItemsCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Registers a compliance type and other compliance details on a designated resource. This * operation lets you register custom compliance details with a resource. This call overwrites * existing compliance information on the resource, so you must provide a full list of compliance * items each time that you send the request.

*

ComplianceType can be one of the following:

* * @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { SSMClient, PutComplianceItemsCommand } from "@aws-sdk/client-ssm"; // ES Modules import * // const { SSMClient, PutComplianceItemsCommand } = require("@aws-sdk/client-ssm"); // CommonJS import * const client = new SSMClient(config); * const input = { // PutComplianceItemsRequest * ResourceId: "STRING_VALUE", // required * ResourceType: "STRING_VALUE", // required * ComplianceType: "STRING_VALUE", // required * ExecutionSummary: { // ComplianceExecutionSummary * ExecutionTime: new Date("TIMESTAMP"), // required * ExecutionId: "STRING_VALUE", * ExecutionType: "STRING_VALUE", * }, * Items: [ // ComplianceItemEntryList // required * { // ComplianceItemEntry * Id: "STRING_VALUE", * Title: "STRING_VALUE", * Severity: "CRITICAL" || "HIGH" || "MEDIUM" || "LOW" || "INFORMATIONAL" || "UNSPECIFIED", // required * Status: "COMPLIANT" || "NON_COMPLIANT", // required * Details: { // ComplianceItemDetails * "": "STRING_VALUE", * }, * }, * ], * ItemContentHash: "STRING_VALUE", * UploadType: "COMPLETE" || "PARTIAL", * }; * const command = new PutComplianceItemsCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param PutComplianceItemsCommandInput - {@link PutComplianceItemsCommandInput} * @returns {@link PutComplianceItemsCommandOutput} * @see {@link PutComplianceItemsCommandInput} for command's `input` shape. * @see {@link PutComplianceItemsCommandOutput} for command's `response` shape. * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. * * @throws {@link ComplianceTypeCountLimitExceededException} (client fault) *

You specified too many custom compliance types. You can specify a maximum of 10 different * types.

* * @throws {@link InternalServerError} (server fault) *

An error occurred on the server side.

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

One or more content items isn't valid.

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

The resource ID isn't valid. Verify that you entered the correct ID and try again.

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

The resource type isn't valid. For example, if you are attempting to tag an EC2 instance, * the instance must be a registered managed node.

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

The inventory item size has exceeded the size limit.

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

The size of inventory data has exceeded the total size limit for the resource.

* * @throws {@link SSMServiceException} *

Base exception class for all service exceptions from SSM service.

* * * @public */ export declare class PutComplianceItemsCommand extends PutComplianceItemsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: PutComplianceItemsRequest; output: {}; }; sdk: { input: PutComplianceItemsCommandInput; output: PutComplianceItemsCommandOutput; }; }; }