UNPKG

@pulumi/fastly

Version:

A Pulumi package for creating and managing fastly cloud resources.. Based on terraform-provider-fastly: version v4

75 lines 4.16 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.TlsMutualAuthentication = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * The Mutual TLS API allows for client-to-server authentication using client-side X.509 authentication. * * The main Mutual Authentication object represents the certificate bundle and other configurations which support Mutual TLS for your domains. * * Mutual TLS can be added to existing TLS activations to allow for client-to-server authentication. In order to use mutual TLS, you must already have active server-side TLS using either custom certificates or an enabled Fastly-managed subscription. * * The examples below demonstrate how to use Mutual Authentication along with a TLS Subscription. Refer to the `fastly.TlsSubscription` resource documentation for a deeper explanation of that code. */ class TlsMutualAuthentication extends pulumi.CustomResource { /** * Get an existing TlsMutualAuthentication 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 TlsMutualAuthentication(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of TlsMutualAuthentication. 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'] === TlsMutualAuthentication.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["activationIds"] = state ? state.activationIds : undefined; resourceInputs["certBundle"] = state ? state.certBundle : undefined; resourceInputs["createdAt"] = state ? state.createdAt : undefined; resourceInputs["enforced"] = state ? state.enforced : undefined; resourceInputs["include"] = state ? state.include : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["tlsActivations"] = state ? state.tlsActivations : undefined; resourceInputs["updatedAt"] = state ? state.updatedAt : undefined; } else { const args = argsOrState; if ((!args || args.certBundle === undefined) && !opts.urn) { throw new Error("Missing required property 'certBundle'"); } resourceInputs["activationIds"] = args ? args.activationIds : undefined; resourceInputs["certBundle"] = args ? args.certBundle : undefined; resourceInputs["enforced"] = args ? args.enforced : undefined; resourceInputs["include"] = args ? args.include : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["createdAt"] = undefined /*out*/; resourceInputs["tlsActivations"] = undefined /*out*/; resourceInputs["updatedAt"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(TlsMutualAuthentication.__pulumiType, name, resourceInputs, opts); } } exports.TlsMutualAuthentication = TlsMutualAuthentication; /** @internal */ TlsMutualAuthentication.__pulumiType = 'fastly:index/tlsMutualAuthentication:TlsMutualAuthentication'; //# sourceMappingURL=tlsMutualAuthentication.js.map