Package com.pulumi.aws.elb
Class SslNegotiationPolicy
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.elb.SslNegotiationPolicy
-
public class SslNegotiationPolicy extends com.pulumi.resources.CustomResourceProvides 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 Usagepackage generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.aws.elb.LoadBalancer; import com.pulumi.aws.elb.LoadBalancerArgs; import com.pulumi.aws.elb.inputs.LoadBalancerListenerArgs; import com.pulumi.aws.elb.SslNegotiationPolicy; import com.pulumi.aws.elb.SslNegotiationPolicyArgs; import com.pulumi.aws.elb.inputs.SslNegotiationPolicyAttributeArgs; import java.util.ArrayList; import java.util.Arrays; import java.util.Map; import java.io.File; import java.nio.file.Files; import java.nio.file.Paths; public class App { public static void main(String[] args) { Pulumi.run(App::stack); } public static void stack(Context ctx) { var lb = new LoadBalancer("lb", LoadBalancerArgs.builder() .listeners(LoadBalancerListenerArgs.builder() .instancePort(8000) .instanceProtocol("https") .lbPort(443) .lbProtocol("https") .sslCertificateId("arn:aws:iam::123456789012:server-certificate/certName") .build()) .name("test-lb") .availabilityZones("us-east-1a") .build()); var foo = new SslNegotiationPolicy("foo", SslNegotiationPolicyArgs.builder() .attributes( SslNegotiationPolicyAttributeArgs.builder() .name("Protocol-TLSv1") .value("false") .build(), SslNegotiationPolicyAttributeArgs.builder() .name("Protocol-TLSv1.1") .value("false") .build(), SslNegotiationPolicyAttributeArgs.builder() .name("Protocol-TLSv1.2") .value("true") .build(), SslNegotiationPolicyAttributeArgs.builder() .name("Server-Defined-Cipher-Order") .value("true") .build(), SslNegotiationPolicyAttributeArgs.builder() .name("ECDHE-RSA-AES128-GCM-SHA256") .value("true") .build(), SslNegotiationPolicyAttributeArgs.builder() .name("AES128-GCM-SHA256") .value("true") .build(), SslNegotiationPolicyAttributeArgs.builder() .name("EDH-RSA-DES-CBC3-SHA") .value("false") .build()) .name("foo-policy") .loadBalancer(lb.id()) .lbPort(443) .build()); } }
-
-
Constructor Summary
Constructors Constructor Description SslNegotiationPolicy(java.lang.String name)SslNegotiationPolicy(java.lang.String name, SslNegotiationPolicyArgs args)SslNegotiationPolicy(java.lang.String name, SslNegotiationPolicyArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.util.Optional<java.util.List<SslNegotiationPolicyAttribute>>>attributes()static SslNegotiationPolicyget(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, SslNegotiationPolicyState state, com.pulumi.resources.CustomResourceOptions options)Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.lang.Integer>lbPort()com.pulumi.core.Output<java.lang.String>loadBalancer()com.pulumi.core.Output<java.lang.String>name()com.pulumi.core.Output<java.lang.String>region()com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>>triggers()
-
-
-
Constructor Detail
-
SslNegotiationPolicy
public SslNegotiationPolicy(java.lang.String name)
- Parameters:
name- The _unique_ name of the resulting resource.
-
SslNegotiationPolicy
public SslNegotiationPolicy(java.lang.String name, SslNegotiationPolicyArgs args)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.
-
SslNegotiationPolicy
public SslNegotiationPolicy(java.lang.String name, SslNegotiationPolicyArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.options- A bag of options that control this resource's behavior.
-
-
Method Detail
-
attributes
public com.pulumi.core.Output<java.util.Optional<java.util.List<SslNegotiationPolicyAttribute>>> attributes()
- Returns:
- An SSL Negotiation policy attribute. Each has two properties:
-
lbPort
public com.pulumi.core.Output<java.lang.Integer> lbPort()
- Returns:
- The load balancer port to which the policy should be applied. This must be an active listener on the load balancer.
-
loadBalancer
public com.pulumi.core.Output<java.lang.String> loadBalancer()
- Returns:
- The load balancer to which the policy should be attached.
-
name
public com.pulumi.core.Output<java.lang.String> name()
- Returns:
- The name of the SSL negotiation policy.
-
region
public com.pulumi.core.Output<java.lang.String> region()
- Returns:
- 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.
-
triggers
public com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>> triggers()
- Returns:
- Map of arbitrary keys and values that, when changed, will trigger a redeployment. To set your attributes, please see the [AWS Elastic Load Balancing Developer Guide](http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/elb-security-policy-table.html) for a listing of the supported SSL protocols, SSL options, and SSL ciphers. > **NOTE:** The AWS documentation references Server Order Preference, which the AWS Elastic Load Balancing API refers to as `Server-Defined-Cipher-Order`. If you wish to set Server Order Preference, use this value instead.
-
get
public static SslNegotiationPolicy get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable SslNegotiationPolicyState state, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name- The _unique_ name of the resulting resource.id- The _unique_ provider ID of the resource to lookup.state-options- Optional settings to control the behavior of the CustomResource.
-
-