UNPKG

@pulumi/gcp

Version:

A Pulumi package for creating and managing Google Cloud Platform resources.

110 lines 5.47 kB
"use strict"; // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.KeystoresAliasesPkcs12 = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * An alias from a pkcs12 file. * * To get more information about KeystoresAliasesPkcs12, see: * * * [API documentation](https://cloud.google.com/apigee/docs/reference/apis/apigee/rest/v1/organizations.environments.keystores.aliases) * * How-to Guides * * [Keystores Aliases](https://cloud.google.com/apigee/docs/reference/apis/apigee/rest/v1/organizations.environments.keystores.aliases) * * ## Import * * KeystoresAliasesPkcs12 can be imported using any of these accepted formats: * * * `organizations/{{org_id}}/environments/{{environment}}/keystores/{{keystore}}/aliases/{{alias}}` * * * `{{org_id}}/{{environment}}/{{keystore}}/{{alias}}` * * When using the `pulumi import` command, KeystoresAliasesPkcs12 can be imported using one of the formats above. For example: * * ```sh * $ pulumi import gcp:apigee/keystoresAliasesPkcs12:KeystoresAliasesPkcs12 default organizations/{{org_id}}/environments/{{environment}}/keystores/{{keystore}}/aliases/{{alias}} * ``` * * ```sh * $ pulumi import gcp:apigee/keystoresAliasesPkcs12:KeystoresAliasesPkcs12 default {{org_id}}/{{environment}}/{{keystore}}/{{alias}} * ``` */ class KeystoresAliasesPkcs12 extends pulumi.CustomResource { /** * Get an existing KeystoresAliasesPkcs12 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 KeystoresAliasesPkcs12(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of KeystoresAliasesPkcs12. 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'] === KeystoresAliasesPkcs12.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["alias"] = state ? state.alias : undefined; resourceInputs["certsInfos"] = state ? state.certsInfos : undefined; resourceInputs["environment"] = state ? state.environment : undefined; resourceInputs["file"] = state ? state.file : undefined; resourceInputs["filehash"] = state ? state.filehash : undefined; resourceInputs["keystore"] = state ? state.keystore : undefined; resourceInputs["orgId"] = state ? state.orgId : undefined; resourceInputs["password"] = state ? state.password : undefined; resourceInputs["type"] = state ? state.type : undefined; } else { const args = argsOrState; if ((!args || args.alias === undefined) && !opts.urn) { throw new Error("Missing required property 'alias'"); } if ((!args || args.environment === undefined) && !opts.urn) { throw new Error("Missing required property 'environment'"); } if ((!args || args.file === undefined) && !opts.urn) { throw new Error("Missing required property 'file'"); } if ((!args || args.filehash === undefined) && !opts.urn) { throw new Error("Missing required property 'filehash'"); } if ((!args || args.keystore === undefined) && !opts.urn) { throw new Error("Missing required property 'keystore'"); } if ((!args || args.orgId === undefined) && !opts.urn) { throw new Error("Missing required property 'orgId'"); } resourceInputs["alias"] = args ? args.alias : undefined; resourceInputs["environment"] = args ? args.environment : undefined; resourceInputs["file"] = args ? args.file : undefined; resourceInputs["filehash"] = args ? args.filehash : undefined; resourceInputs["keystore"] = args ? args.keystore : undefined; resourceInputs["orgId"] = args ? args.orgId : undefined; resourceInputs["password"] = args ? args.password : undefined; resourceInputs["certsInfos"] = undefined /*out*/; resourceInputs["type"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(KeystoresAliasesPkcs12.__pulumiType, name, resourceInputs, opts); } } exports.KeystoresAliasesPkcs12 = KeystoresAliasesPkcs12; /** @internal */ KeystoresAliasesPkcs12.__pulumiType = 'gcp:apigee/keystoresAliasesPkcs12:KeystoresAliasesPkcs12'; //# sourceMappingURL=keystoresAliasesPkcs12.js.map