@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
179 lines (178 loc) • 6.75 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
/**
* Provides a load balancer policy, which can be attached to an ELB listener or backend server.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
* import * as std from "@pulumi/std";
*
* const wu_tang = new aws.elb.LoadBalancer("wu-tang", {
* name: "wu-tang",
* availabilityZones: ["us-east-1a"],
* listeners: [{
* instancePort: 443,
* instanceProtocol: "http",
* lbPort: 443,
* lbProtocol: "https",
* sslCertificateId: "arn:aws:iam::000000000000:server-certificate/wu-tang.net",
* }],
* tags: {
* Name: "wu-tang",
* },
* });
* const wu_tang_ca_pubkey_policy = new aws.elb.LoadBalancerPolicy("wu-tang-ca-pubkey-policy", {
* loadBalancerName: wu_tang.name,
* policyName: "wu-tang-ca-pubkey-policy",
* policyTypeName: "PublicKeyPolicyType",
* policyAttributes: [{
* name: "PublicKey",
* value: std.file({
* input: "wu-tang-pubkey",
* }).then(invoke => invoke.result),
* }],
* });
* const wu_tang_root_ca_backend_auth_policy = new aws.elb.LoadBalancerPolicy("wu-tang-root-ca-backend-auth-policy", {
* loadBalancerName: wu_tang.name,
* policyName: "wu-tang-root-ca-backend-auth-policy",
* policyTypeName: "BackendServerAuthenticationPolicyType",
* policyAttributes: [{
* name: "PublicKeyPolicyName",
* value: wu_tang_root_ca_pubkey_policy.policyName,
* }],
* });
* const wu_tang_ssl = new aws.elb.LoadBalancerPolicy("wu-tang-ssl", {
* loadBalancerName: wu_tang.name,
* policyName: "wu-tang-ssl",
* policyTypeName: "SSLNegotiationPolicyType",
* policyAttributes: [
* {
* name: "ECDHE-ECDSA-AES128-GCM-SHA256",
* value: "true",
* },
* {
* name: "Protocol-TLSv1.2",
* value: "true",
* },
* ],
* });
* const wu_tang_ssl_tls_1_1 = new aws.elb.LoadBalancerPolicy("wu-tang-ssl-tls-1-1", {
* loadBalancerName: wu_tang.name,
* policyName: "wu-tang-ssl",
* policyTypeName: "SSLNegotiationPolicyType",
* policyAttributes: [{
* name: "Reference-Security-Policy",
* value: "ELBSecurityPolicy-TLS-1-1-2017-01",
* }],
* });
* const wu_tang_backend_auth_policies_443 = new aws.elb.LoadBalancerBackendServerPolicy("wu-tang-backend-auth-policies-443", {
* loadBalancerName: wu_tang.name,
* instancePort: 443,
* policyNames: [wu_tang_root_ca_backend_auth_policy.policyName],
* });
* const wu_tang_listener_policies_443 = new aws.elb.ListenerPolicy("wu-tang-listener-policies-443", {
* loadBalancerName: wu_tang.name,
* loadBalancerPort: 443,
* policyNames: [wu_tang_ssl.policyName],
* });
* ```
*/
export declare class LoadBalancerPolicy extends pulumi.CustomResource {
/**
* Get an existing LoadBalancerPolicy 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: string, id: pulumi.Input<pulumi.ID>, state?: LoadBalancerPolicyState, opts?: pulumi.CustomResourceOptions): LoadBalancerPolicy;
/**
* Returns true if the given object is an instance of LoadBalancerPolicy. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj: any): obj is LoadBalancerPolicy;
/**
* The load balancer on which the policy is defined.
*/
readonly loadBalancerName: pulumi.Output<string>;
/**
* Policy attribute to apply to the policy.
*/
readonly policyAttributes: pulumi.Output<outputs.elb.LoadBalancerPolicyPolicyAttribute[]>;
/**
* The name of the load balancer policy.
*/
readonly policyName: pulumi.Output<string>;
/**
* The policy type.
*/
readonly policyTypeName: pulumi.Output<string>;
/**
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
*/
readonly region: pulumi.Output<string>;
/**
* Create a LoadBalancerPolicy resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args: LoadBalancerPolicyArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering LoadBalancerPolicy resources.
*/
export interface LoadBalancerPolicyState {
/**
* The load balancer on which the policy is defined.
*/
loadBalancerName?: pulumi.Input<string>;
/**
* Policy attribute to apply to the policy.
*/
policyAttributes?: pulumi.Input<pulumi.Input<inputs.elb.LoadBalancerPolicyPolicyAttribute>[]>;
/**
* The name of the load balancer policy.
*/
policyName?: pulumi.Input<string>;
/**
* The policy type.
*/
policyTypeName?: pulumi.Input<string>;
/**
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
*/
region?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a LoadBalancerPolicy resource.
*/
export interface LoadBalancerPolicyArgs {
/**
* The load balancer on which the policy is defined.
*/
loadBalancerName: pulumi.Input<string>;
/**
* Policy attribute to apply to the policy.
*/
policyAttributes?: pulumi.Input<pulumi.Input<inputs.elb.LoadBalancerPolicyPolicyAttribute>[]>;
/**
* The name of the load balancer policy.
*/
policyName: pulumi.Input<string>;
/**
* The policy type.
*/
policyTypeName: pulumi.Input<string>;
/**
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
*/
region?: pulumi.Input<string>;
}