UNPKG

@pulumi/aws

Version:

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

124 lines 4.74 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.SslNegotiationPolicy = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Provides a load balancer SSL negotiation policy, which allows an ELB to control the ciphers and protocols that are supported during SSL negotiations between a client and a load balancer. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const lb = new aws.elb.LoadBalancer("lb", { * name: "test-lb", * availabilityZones: ["us-east-1a"], * listeners: [{ * instancePort: 8000, * instanceProtocol: "https", * lbPort: 443, * lbProtocol: "https", * sslCertificateId: "arn:aws:iam::123456789012:server-certificate/certName", * }], * }); * const foo = new aws.elb.SslNegotiationPolicy("foo", { * name: "foo-policy", * loadBalancer: lb.id, * lbPort: 443, * attributes: [ * { * name: "Protocol-TLSv1", * value: "false", * }, * { * name: "Protocol-TLSv1.1", * value: "false", * }, * { * name: "Protocol-TLSv1.2", * value: "true", * }, * { * name: "Server-Defined-Cipher-Order", * value: "true", * }, * { * name: "ECDHE-RSA-AES128-GCM-SHA256", * value: "true", * }, * { * name: "AES128-GCM-SHA256", * value: "true", * }, * { * name: "EDH-RSA-DES-CBC3-SHA", * value: "false", * }, * ], * }); * ``` */ class SslNegotiationPolicy extends pulumi.CustomResource { /** * Get an existing SslNegotiationPolicy 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 SslNegotiationPolicy(name, state, { ...opts, id: id }); } /** * Returns true if the given object is an instance of SslNegotiationPolicy. 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'] === SslNegotiationPolicy.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["attributes"] = state?.attributes; resourceInputs["lbPort"] = state?.lbPort; resourceInputs["loadBalancer"] = state?.loadBalancer; resourceInputs["name"] = state?.name; resourceInputs["region"] = state?.region; resourceInputs["triggers"] = state?.triggers; } else { const args = argsOrState; if (args?.lbPort === undefined && !opts.urn) { throw new Error("Missing required property 'lbPort'"); } if (args?.loadBalancer === undefined && !opts.urn) { throw new Error("Missing required property 'loadBalancer'"); } resourceInputs["attributes"] = args?.attributes; resourceInputs["lbPort"] = args?.lbPort; resourceInputs["loadBalancer"] = args?.loadBalancer; resourceInputs["name"] = args?.name; resourceInputs["region"] = args?.region; resourceInputs["triggers"] = args?.triggers; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); const aliasOpts = { aliases: [{ type: "aws:elasticloadbalancing/sslNegotiationPolicy:SslNegotiationPolicy" }] }; opts = pulumi.mergeOptions(opts, aliasOpts); super(SslNegotiationPolicy.__pulumiType, name, resourceInputs, opts); } } exports.SslNegotiationPolicy = SslNegotiationPolicy; /** @internal */ SslNegotiationPolicy.__pulumiType = 'aws:elb/sslNegotiationPolicy:SslNegotiationPolicy'; //# sourceMappingURL=sslNegotiationPolicy.js.map