import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CreateTrustStoreRequest, CreateTrustStoreResult } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link CreateTrustStoreCommand}. */ export interface CreateTrustStoreCommandInput extends CreateTrustStoreRequest { } /** * @public * * The output of {@link CreateTrustStoreCommand}. */ export interface CreateTrustStoreCommandOutput extends CreateTrustStoreResult, __MetadataBearer { } declare const CreateTrustStoreCommand_base: { new (input: CreateTrustStoreCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreateTrustStoreCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Creates a trust store.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { CloudFrontClient, CreateTrustStoreCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import * // const { CloudFrontClient, CreateTrustStoreCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import * // import type { CloudFrontClientConfig } from "@aws-sdk/client-cloudfront"; * const config = {}; // type is CloudFrontClientConfig * const client = new CloudFrontClient(config); * const input = { // CreateTrustStoreRequest * Name: "STRING_VALUE", // required * CaCertificatesBundleSource: { // CaCertificatesBundleSource Union: only one key present * CaCertificatesBundleS3Location: { // CaCertificatesBundleS3Location * Bucket: "STRING_VALUE", // required * Key: "STRING_VALUE", // required * Region: "STRING_VALUE", // required * Version: "STRING_VALUE", * }, * }, * UseClientCertificateOCSPEndpoint: true || false, * Tags: { // Tags * Items: [ // TagList * { // Tag * Key: "STRING_VALUE", // required * Value: "STRING_VALUE", * }, * ], * }, * }; * const command = new CreateTrustStoreCommand(input); * const response = await client.send(command); * // { // CreateTrustStoreResult * // TrustStore: { // TrustStore * // Id: "STRING_VALUE", * // Arn: "STRING_VALUE", * // Name: "STRING_VALUE", * // Status: "pending" || "active" || "failed", * // NumberOfCaCertificates: Number("int"), * // LastModifiedTime: new Date("TIMESTAMP"), * // Reason: "STRING_VALUE", * // UseClientCertificateOCSPEndpoint: true || false, * // }, * // ETag: "STRING_VALUE", * // }; * * ``` * * @param CreateTrustStoreCommandInput - {@link CreateTrustStoreCommandInput} * @returns {@link CreateTrustStoreCommandOutput} * @see {@link CreateTrustStoreCommandInput} for command's `input` shape. * @see {@link CreateTrustStoreCommandOutput} for command's `response` shape. * @see {@link CloudFrontClientResolvedConfig | config} for CloudFrontClient's `config` shape. * * @throws {@link AccessDenied} (client fault) *

Access denied.

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

The entity already exists. You must provide a unique entity.

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

The entity limit has been exceeded.

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

The entity was not found.

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

An argument is invalid.

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

The tagging specified is not valid.

* * @throws {@link CloudFrontServiceException} *

Base exception class for all service exceptions from CloudFront service.

* * * @public */ export declare class CreateTrustStoreCommand extends CreateTrustStoreCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateTrustStoreRequest; output: CreateTrustStoreResult; }; sdk: { input: CreateTrustStoreCommandInput; output: CreateTrustStoreCommandOutput; }; }; }