@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
176 lines (175 loc) • 6.33 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
/**
* Manages an AWS CloudFront Trust Store.
*
* ## Example Usage
*
* ### Basic Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const example = new aws.cloudfront.TrustStore("example", {
* name: "example-trust-store",
* caCertificatesBundleSource: {
* caCertificatesBundleS3Location: {
* bucket: "example-bucket",
* key: "ca-certificates.pem",
* region: "us-east-1",
* },
* },
* });
* ```
*
* ### With S3 Object Version
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const example = new aws.cloudfront.TrustStore("example", {
* name: "example-trust-store",
* caCertificatesBundleSource: {
* caCertificatesBundleS3Location: {
* bucket: "example-bucket",
* key: "ca-certificates.pem",
* region: "us-east-1",
* version: "abc123",
* },
* },
* });
* ```
*
* ## Import
*
* Using `pulumi import`, import CloudFront Trust Store using the trust store ID. For example:
*
* ```sh
* $ pulumi import aws:cloudfront/trustStore:TrustStore example ts_12abcXYZhA4Q6RS6tuvW5Xy0ZZZ
* ```
*/
export declare class TrustStore extends pulumi.CustomResource {
/**
* Get an existing TrustStore resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: TrustStoreState, opts?: pulumi.CustomResourceOptions): TrustStore;
/**
* Returns true if the given object is an instance of TrustStore. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj: any): obj is TrustStore;
/**
* ARN of the trust store.
*/
readonly arn: pulumi.Output<string>;
/**
* Configuration block for the CA certificates bundle source. See `caCertificatesBundleSource` below.
*
* The following arguments are optional:
*/
readonly caCertificatesBundleSource: pulumi.Output<outputs.cloudfront.TrustStoreCaCertificatesBundleSource | undefined>;
/**
* ETag of the trust store.
*/
readonly etag: pulumi.Output<string>;
/**
* Name of the trust store. Changing this forces a new resource to be created.
*/
readonly name: pulumi.Output<string>;
/**
* Number of CA certificates in the trust store.
*/
readonly numberOfCaCertificates: pulumi.Output<number>;
/**
* Key-value tags for the place index. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
*/
readonly tags: pulumi.Output<{
[key: string]: string;
} | undefined>;
/**
* A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
*/
readonly tagsAll: pulumi.Output<{
[key: string]: string;
}>;
readonly timeouts: pulumi.Output<outputs.cloudfront.TrustStoreTimeouts | undefined>;
/**
* Create a TrustStore resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args?: TrustStoreArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering TrustStore resources.
*/
export interface TrustStoreState {
/**
* ARN of the trust store.
*/
arn?: pulumi.Input<string>;
/**
* Configuration block for the CA certificates bundle source. See `caCertificatesBundleSource` below.
*
* The following arguments are optional:
*/
caCertificatesBundleSource?: pulumi.Input<inputs.cloudfront.TrustStoreCaCertificatesBundleSource>;
/**
* ETag of the trust store.
*/
etag?: pulumi.Input<string>;
/**
* Name of the trust store. Changing this forces a new resource to be created.
*/
name?: pulumi.Input<string>;
/**
* Number of CA certificates in the trust store.
*/
numberOfCaCertificates?: pulumi.Input<number>;
/**
* Key-value tags for the place index. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
*/
tags?: pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>;
/**
* A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
*/
tagsAll?: pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>;
timeouts?: pulumi.Input<inputs.cloudfront.TrustStoreTimeouts>;
}
/**
* The set of arguments for constructing a TrustStore resource.
*/
export interface TrustStoreArgs {
/**
* Configuration block for the CA certificates bundle source. See `caCertificatesBundleSource` below.
*
* The following arguments are optional:
*/
caCertificatesBundleSource?: pulumi.Input<inputs.cloudfront.TrustStoreCaCertificatesBundleSource>;
/**
* Name of the trust store. Changing this forces a new resource to be created.
*/
name?: pulumi.Input<string>;
/**
* Key-value tags for the place index. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
*/
tags?: pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>;
timeouts?: pulumi.Input<inputs.cloudfront.TrustStoreTimeouts>;
}