Package com.pulumi.aws.lb
Class ListenerCertificate
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.lb.ListenerCertificate
-
public class ListenerCertificate extends com.pulumi.resources.CustomResourceProvides a Load Balancer Listener Certificate resource. This resource is for additional certificates and does not replace the default certificate on the listener. > **Note:** `aws.alb.ListenerCertificate` is known as `aws.lb.ListenerCertificate`. The functionality is identical. ## Example Usage
## Import Using `pulumi import`, import Listener Certificates using the listener ARN and certificate ARN, separated by an underscore (`_`). For example: ```sh $ pulumi import aws:lb/listenerCertificate:ListenerCertificate example arn:aws:elasticloadbalancing:us-west-2:123456789012:listener/app/test/8e4497da625e2d8a/9ab28ade35828f96/67b3d2d36dd7c26b_arn:aws:iam::123456789012:server-certificate/tf-acc-test-6453083910015726063 ```package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.aws.acm.Certificate; import com.pulumi.aws.lb.LoadBalancer; import com.pulumi.aws.lb.Listener; import com.pulumi.aws.lb.ListenerCertificate; import com.pulumi.aws.lb.ListenerCertificateArgs; 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 example = new Certificate("example"); var frontEnd = new LoadBalancer("frontEnd"); var frontEndListener = new Listener("frontEndListener"); var exampleListenerCertificate = new ListenerCertificate("exampleListenerCertificate", ListenerCertificateArgs.builder() .listenerArn(frontEndListener.arn()) .certificateArn(example.arn()) .build()); } }
-
-
Constructor Summary
Constructors Constructor Description ListenerCertificate(java.lang.String name)ListenerCertificate(java.lang.String name, ListenerCertificateArgs args)ListenerCertificate(java.lang.String name, ListenerCertificateArgs 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.lang.String>certificateArn()static ListenerCertificateget(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, ListenerCertificateState 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.String>listenerArn()com.pulumi.core.Output<java.lang.String>region()
-
-
-
Constructor Detail
-
ListenerCertificate
public ListenerCertificate(java.lang.String name)
- Parameters:
name- The _unique_ name of the resulting resource.
-
ListenerCertificate
public ListenerCertificate(java.lang.String name, ListenerCertificateArgs args)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.
-
ListenerCertificate
public ListenerCertificate(java.lang.String name, ListenerCertificateArgs 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
-
certificateArn
public com.pulumi.core.Output<java.lang.String> certificateArn()
- Returns:
- The ARN of the certificate to attach to the listener.
-
listenerArn
public com.pulumi.core.Output<java.lang.String> listenerArn()
- Returns:
- The ARN of the listener to which to attach the certificate.
-
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.
-
get
public static ListenerCertificate get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable ListenerCertificateState 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.
-
-