UNPKG

@pulumi/aws

Version:

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

91 lines 3.91 kB
"use strict"; // *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.TrustStoreAssociation = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Resource for managing an AWS WorkSpaces Web Trust Store Association. * * ## Example Usage * * ### Basic Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * import * as std from "@pulumi/std"; * * const example = new aws.workspacesweb.Portal("example", {displayName: "example"}); * const exampleTrustStore = new aws.workspacesweb.TrustStore("example", {certificateList: [std.file({ * input: "certificate.pem", * }).then(invoke => std.base64encode({ * input: invoke.result, * })).then(invoke => invoke.result)]}); * const exampleTrustStoreAssociation = new aws.workspacesweb.TrustStoreAssociation("example", { * trustStoreArn: exampleTrustStore.trustStoreArn, * portalArn: example.portalArn, * }); * ``` * * ## Import * * Using `pulumi import`, import WorkSpaces Web Trust Store Association using the `trust_store_arn,portal_arn`. For example: * * ```sh * $ pulumi import aws:workspacesweb/trustStoreAssociation:TrustStoreAssociation example arn:aws:workspaces-web:us-west-2:123456789012:trustStore/trust_store-id-12345678,arn:aws:workspaces-web:us-west-2:123456789012:portal/portal-id-12345678 * ``` */ class TrustStoreAssociation extends pulumi.CustomResource { /** * Get an existing TrustStoreAssociation 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, id, state, opts) { return new TrustStoreAssociation(name, state, { ...opts, id: id }); } /** * Returns true if the given object is an instance of TrustStoreAssociation. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj) { if (obj === undefined || obj === null) { return false; } return obj['__pulumiType'] === TrustStoreAssociation.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["portalArn"] = state?.portalArn; resourceInputs["region"] = state?.region; resourceInputs["trustStoreArn"] = state?.trustStoreArn; } else { const args = argsOrState; if (args?.portalArn === undefined && !opts.urn) { throw new Error("Missing required property 'portalArn'"); } if (args?.trustStoreArn === undefined && !opts.urn) { throw new Error("Missing required property 'trustStoreArn'"); } resourceInputs["portalArn"] = args?.portalArn; resourceInputs["region"] = args?.region; resourceInputs["trustStoreArn"] = args?.trustStoreArn; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(TrustStoreAssociation.__pulumiType, name, resourceInputs, opts); } } exports.TrustStoreAssociation = TrustStoreAssociation; /** @internal */ TrustStoreAssociation.__pulumiType = 'aws:workspacesweb/trustStoreAssociation:TrustStoreAssociation'; //# sourceMappingURL=trustStoreAssociation.js.map