@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
136 lines (135 loc) • 5.42 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Attaches a load balancer policy to an ELB 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_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],
* });
* ```
*/
export declare class LoadBalancerBackendServerPolicy extends pulumi.CustomResource {
/**
* Get an existing LoadBalancerBackendServerPolicy 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?: LoadBalancerBackendServerPolicyState, opts?: pulumi.CustomResourceOptions): LoadBalancerBackendServerPolicy;
/**
* Returns true if the given object is an instance of LoadBalancerBackendServerPolicy. 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 LoadBalancerBackendServerPolicy;
/**
* The instance port to apply the policy to.
*/
readonly instancePort: pulumi.Output<number>;
/**
* The load balancer to attach the policy to.
*/
readonly loadBalancerName: pulumi.Output<string>;
/**
* List of Policy Names to apply to the backend server.
*/
readonly policyNames: pulumi.Output<string[] | undefined>;
/**
* 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 LoadBalancerBackendServerPolicy 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: LoadBalancerBackendServerPolicyArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering LoadBalancerBackendServerPolicy resources.
*/
export interface LoadBalancerBackendServerPolicyState {
/**
* The instance port to apply the policy to.
*/
instancePort?: pulumi.Input<number>;
/**
* The load balancer to attach the policy to.
*/
loadBalancerName?: pulumi.Input<string>;
/**
* List of Policy Names to apply to the backend server.
*/
policyNames?: pulumi.Input<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 LoadBalancerBackendServerPolicy resource.
*/
export interface LoadBalancerBackendServerPolicyArgs {
/**
* The instance port to apply the policy to.
*/
instancePort: pulumi.Input<number>;
/**
* The load balancer to attach the policy to.
*/
loadBalancerName: pulumi.Input<string>;
/**
* List of Policy Names to apply to the backend server.
*/
policyNames?: pulumi.Input<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>;
}