Class ListenerCertificate
Provides 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.ListenerCertificateis known asaws.lb.ListenerCertificate. The functionality is identical.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var exampleCertificate = new Aws.Acm.Certificate("exampleCertificate", new Aws.Acm.CertificateArgs
{
});
var frontEndLoadBalancer = new Aws.LB.LoadBalancer("frontEndLoadBalancer", new Aws.LB.LoadBalancerArgs
{
});
var frontEndListener = new Aws.LB.Listener("frontEndListener", new Aws.LB.ListenerArgs
{
});
var exampleListenerCertificate = new Aws.LB.ListenerCertificate("exampleListenerCertificate", new Aws.LB.ListenerCertificateArgs
{
CertificateArn = exampleCertificate.Arn,
ListenerArn = frontEndListener.Arn,
});
}
}
Inherited Members
Namespace: Pulumi.Aws.ApplicationLoadBalancing
Assembly: Pulumi.Aws.dll
Syntax
[Obsolete("aws.applicationloadbalancing.ListenerCertificate has been deprecated in favor of aws.alb.ListenerCertificate")]
public class ListenerCertificate : CustomResource
Constructors
View SourceListenerCertificate(String, ListenerCertificateArgs, CustomResourceOptions)
Create a ListenerCertificate resource with the given unique name, arguments, and options.
Declaration
public ListenerCertificate(string name, ListenerCertificateArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| ListenerCertificateArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceCertificateArn
The ARN of the certificate to attach to the listener.
Declaration
public Output<string> CertificateArn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ListenerArn
The ARN of the listener to which to attach the certificate.
Declaration
public Output<string> ListenerArn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, ListenerCertificateState, CustomResourceOptions)
Get an existing ListenerCertificate resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static ListenerCertificate Get(string name, Input<string> id, ListenerCertificateState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| ListenerCertificateState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| ListenerCertificate |