UNPKG

@pulumi/fastly

Version:

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

75 lines 3.87 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, { ...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?.activationIds; resourceInputs["certBundle"] = state?.certBundle; resourceInputs["createdAt"] = state?.createdAt; resourceInputs["enforced"] = state?.enforced; resourceInputs["include"] = state?.include; resourceInputs["name"] = state?.name; resourceInputs["tlsActivations"] = state?.tlsActivations; resourceInputs["updatedAt"] = state?.updatedAt; } else { const args = argsOrState; if (args?.certBundle === undefined && !opts.urn) { throw new Error("Missing required property 'certBundle'"); } resourceInputs["activationIds"] = args?.activationIds; resourceInputs["certBundle"] = args?.certBundle; resourceInputs["enforced"] = args?.enforced; resourceInputs["include"] = args?.include; resourceInputs["name"] = args?.name; 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