Show / Hide Table of Contents

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.ListenerCertificate is known as aws.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,
    });
}

}
Inheritance
System.Object
Resource
CustomResource
ListenerCertificate
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
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 Source

ListenerCertificate(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 Source

CertificateArn

The ARN of the certificate to attach to the listener.

Declaration
public Output<string> CertificateArn { get; }
Property Value
Type Description
Output<System.String>
View Source

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 Source

Get(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
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.