1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. nlb
  5. ListenerAdditionalCertificateAttachment
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.nlb.ListenerAdditionalCertificateAttachment

Explore with Pulumi AI

Provides a NLB Listener Additional Certificate Attachment resource.

For information about NLB Listener Additional Certificate Attachment and how to use it, see What is Listener Additional Certificate Attachment.

NOTE: Available since v1.209.0.

Create ListenerAdditionalCertificateAttachment Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new ListenerAdditionalCertificateAttachment(name: string, args: ListenerAdditionalCertificateAttachmentArgs, opts?: CustomResourceOptions);
@overload
def ListenerAdditionalCertificateAttachment(resource_name: str,
                                            args: ListenerAdditionalCertificateAttachmentArgs,
                                            opts: Optional[ResourceOptions] = None)

@overload
def ListenerAdditionalCertificateAttachment(resource_name: str,
                                            opts: Optional[ResourceOptions] = None,
                                            certificate_id: Optional[str] = None,
                                            listener_id: Optional[str] = None,
                                            dry_run: Optional[bool] = None)
func NewListenerAdditionalCertificateAttachment(ctx *Context, name string, args ListenerAdditionalCertificateAttachmentArgs, opts ...ResourceOption) (*ListenerAdditionalCertificateAttachment, error)
public ListenerAdditionalCertificateAttachment(string name, ListenerAdditionalCertificateAttachmentArgs args, CustomResourceOptions? opts = null)
public ListenerAdditionalCertificateAttachment(String name, ListenerAdditionalCertificateAttachmentArgs args)
public ListenerAdditionalCertificateAttachment(String name, ListenerAdditionalCertificateAttachmentArgs args, CustomResourceOptions options)
type: alicloud:nlb:ListenerAdditionalCertificateAttachment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. ListenerAdditionalCertificateAttachmentArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. ListenerAdditionalCertificateAttachmentArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. ListenerAdditionalCertificateAttachmentArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ListenerAdditionalCertificateAttachmentArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ListenerAdditionalCertificateAttachmentArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var alicloudListenerAdditionalCertificateAttachmentResource = new AliCloud.Nlb.ListenerAdditionalCertificateAttachment("alicloudListenerAdditionalCertificateAttachmentResource", new()
{
    CertificateId = "string",
    ListenerId = "string",
    DryRun = false,
});
Copy
example, err := nlb.NewListenerAdditionalCertificateAttachment(ctx, "alicloudListenerAdditionalCertificateAttachmentResource", &nlb.ListenerAdditionalCertificateAttachmentArgs{
	CertificateId: pulumi.String("string"),
	ListenerId:    pulumi.String("string"),
	DryRun:        pulumi.Bool(false),
})
Copy
var alicloudListenerAdditionalCertificateAttachmentResource = new ListenerAdditionalCertificateAttachment("alicloudListenerAdditionalCertificateAttachmentResource", ListenerAdditionalCertificateAttachmentArgs.builder()
    .certificateId("string")
    .listenerId("string")
    .dryRun(false)
    .build());
Copy
alicloud_listener_additional_certificate_attachment_resource = alicloud.nlb.ListenerAdditionalCertificateAttachment("alicloudListenerAdditionalCertificateAttachmentResource",
    certificate_id="string",
    listener_id="string",
    dry_run=False)
Copy
const alicloudListenerAdditionalCertificateAttachmentResource = new alicloud.nlb.ListenerAdditionalCertificateAttachment("alicloudListenerAdditionalCertificateAttachmentResource", {
    certificateId: "string",
    listenerId: "string",
    dryRun: false,
});
Copy
type: alicloud:nlb:ListenerAdditionalCertificateAttachment
properties:
    certificateId: string
    dryRun: false
    listenerId: string
Copy

ListenerAdditionalCertificateAttachment Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The ListenerAdditionalCertificateAttachment resource accepts the following input properties:

CertificateId
This property is required.
Changes to this property will trigger replacement.
string
The ID of additional certificates.
ListenerId
This property is required.
Changes to this property will trigger replacement.
string
The listener ID. You must specify the ID of a listener that uses SSL over TCP.
DryRun bool
Specifies whether to perform a dry run, without performing the actual request. Valid values:
CertificateId
This property is required.
Changes to this property will trigger replacement.
string
The ID of additional certificates.
ListenerId
This property is required.
Changes to this property will trigger replacement.
string
The listener ID. You must specify the ID of a listener that uses SSL over TCP.
DryRun bool
Specifies whether to perform a dry run, without performing the actual request. Valid values:
certificateId
This property is required.
Changes to this property will trigger replacement.
String
The ID of additional certificates.
listenerId
This property is required.
Changes to this property will trigger replacement.
String
The listener ID. You must specify the ID of a listener that uses SSL over TCP.
dryRun Boolean
Specifies whether to perform a dry run, without performing the actual request. Valid values:
certificateId
This property is required.
Changes to this property will trigger replacement.
string
The ID of additional certificates.
listenerId
This property is required.
Changes to this property will trigger replacement.
string
The listener ID. You must specify the ID of a listener that uses SSL over TCP.
dryRun boolean
Specifies whether to perform a dry run, without performing the actual request. Valid values:
certificate_id
This property is required.
Changes to this property will trigger replacement.
str
The ID of additional certificates.
listener_id
This property is required.
Changes to this property will trigger replacement.
str
The listener ID. You must specify the ID of a listener that uses SSL over TCP.
dry_run bool
Specifies whether to perform a dry run, without performing the actual request. Valid values:
certificateId
This property is required.
Changes to this property will trigger replacement.
String
The ID of additional certificates.
listenerId
This property is required.
Changes to this property will trigger replacement.
String
The listener ID. You must specify the ID of a listener that uses SSL over TCP.
dryRun Boolean
Specifies whether to perform a dry run, without performing the actual request. Valid values:

Outputs

All input properties are implicitly available as output properties. Additionally, the ListenerAdditionalCertificateAttachment resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Status string
The status of the resource
Id string
The provider-assigned unique ID for this managed resource.
Status string
The status of the resource
id String
The provider-assigned unique ID for this managed resource.
status String
The status of the resource
id string
The provider-assigned unique ID for this managed resource.
status string
The status of the resource
id str
The provider-assigned unique ID for this managed resource.
status str
The status of the resource
id String
The provider-assigned unique ID for this managed resource.
status String
The status of the resource

Look up Existing ListenerAdditionalCertificateAttachment Resource

Get an existing ListenerAdditionalCertificateAttachment resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: ListenerAdditionalCertificateAttachmentState, opts?: CustomResourceOptions): ListenerAdditionalCertificateAttachment
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        certificate_id: Optional[str] = None,
        dry_run: Optional[bool] = None,
        listener_id: Optional[str] = None,
        status: Optional[str] = None) -> ListenerAdditionalCertificateAttachment
func GetListenerAdditionalCertificateAttachment(ctx *Context, name string, id IDInput, state *ListenerAdditionalCertificateAttachmentState, opts ...ResourceOption) (*ListenerAdditionalCertificateAttachment, error)
public static ListenerAdditionalCertificateAttachment Get(string name, Input<string> id, ListenerAdditionalCertificateAttachmentState? state, CustomResourceOptions? opts = null)
public static ListenerAdditionalCertificateAttachment get(String name, Output<String> id, ListenerAdditionalCertificateAttachmentState state, CustomResourceOptions options)
resources:  _:    type: alicloud:nlb:ListenerAdditionalCertificateAttachment    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
CertificateId Changes to this property will trigger replacement. string
The ID of additional certificates.
DryRun bool
Specifies whether to perform a dry run, without performing the actual request. Valid values:
ListenerId Changes to this property will trigger replacement. string
The listener ID. You must specify the ID of a listener that uses SSL over TCP.
Status string
The status of the resource
CertificateId Changes to this property will trigger replacement. string
The ID of additional certificates.
DryRun bool
Specifies whether to perform a dry run, without performing the actual request. Valid values:
ListenerId Changes to this property will trigger replacement. string
The listener ID. You must specify the ID of a listener that uses SSL over TCP.
Status string
The status of the resource
certificateId Changes to this property will trigger replacement. String
The ID of additional certificates.
dryRun Boolean
Specifies whether to perform a dry run, without performing the actual request. Valid values:
listenerId Changes to this property will trigger replacement. String
The listener ID. You must specify the ID of a listener that uses SSL over TCP.
status String
The status of the resource
certificateId Changes to this property will trigger replacement. string
The ID of additional certificates.
dryRun boolean
Specifies whether to perform a dry run, without performing the actual request. Valid values:
listenerId Changes to this property will trigger replacement. string
The listener ID. You must specify the ID of a listener that uses SSL over TCP.
status string
The status of the resource
certificate_id Changes to this property will trigger replacement. str
The ID of additional certificates.
dry_run bool
Specifies whether to perform a dry run, without performing the actual request. Valid values:
listener_id Changes to this property will trigger replacement. str
The listener ID. You must specify the ID of a listener that uses SSL over TCP.
status str
The status of the resource
certificateId Changes to this property will trigger replacement. String
The ID of additional certificates.
dryRun Boolean
Specifies whether to perform a dry run, without performing the actual request. Valid values:
listenerId Changes to this property will trigger replacement. String
The listener ID. You must specify the ID of a listener that uses SSL over TCP.
status String
The status of the resource

Import

NLB Listener Additional Certificate Attachment can be imported using the id, e.g.

$ pulumi import alicloud:nlb/listenerAdditionalCertificateAttachment:ListenerAdditionalCertificateAttachment example <listener_id>:<certificate_id>
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.