1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. getElbCertificate
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.getElbCertificate

Explore with Pulumi AI

flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

Use this data source to get the ELB certificate in FlexibleEngine.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";

const config = new pulumi.Config();
const certificateName = config.requireObject("certificateName");
const test = flexibleengine.getElbCertificate({
    name: certificateName,
});
Copy
import pulumi
import pulumi_flexibleengine as flexibleengine

config = pulumi.Config()
certificate_name = config.require_object("certificateName")
test = flexibleengine.get_elb_certificate(name=certificate_name)
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		certificateName := cfg.RequireObject("certificateName")
		_, err := flexibleengine.LookupElbCertificate(ctx, &flexibleengine.LookupElbCertificateArgs{
			Name: certificateName,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;

return await Deployment.RunAsync(() => 
{
    var config = new Config();
    var certificateName = config.RequireObject<dynamic>("certificateName");
    var test = Flexibleengine.GetElbCertificate.Invoke(new()
    {
        Name = certificateName,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.FlexibleengineFunctions;
import com.pulumi.flexibleengine.inputs.GetElbCertificateArgs;
import java.util.List;
import java.util.ArrayList;
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) {
        final var config = ctx.config();
        final var certificateName = config.get("certificateName");
        final var test = FlexibleengineFunctions.getElbCertificate(GetElbCertificateArgs.builder()
            .name(certificateName)
            .build());

    }
}
Copy
configuration:
  certificateName:
    type: dynamic
variables:
  test:
    fn::invoke:
      function: flexibleengine:getElbCertificate
      arguments:
        name: ${certificateName}
Copy

Using getElbCertificate

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getElbCertificate(args: GetElbCertificateArgs, opts?: InvokeOptions): Promise<GetElbCertificateResult>
function getElbCertificateOutput(args: GetElbCertificateOutputArgs, opts?: InvokeOptions): Output<GetElbCertificateResult>
Copy
def get_elb_certificate(id: Optional[str] = None,
                        name: Optional[str] = None,
                        region: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetElbCertificateResult
def get_elb_certificate_output(id: Optional[pulumi.Input[str]] = None,
                        name: Optional[pulumi.Input[str]] = None,
                        region: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetElbCertificateResult]
Copy
func LookupElbCertificate(ctx *Context, args *LookupElbCertificateArgs, opts ...InvokeOption) (*LookupElbCertificateResult, error)
func LookupElbCertificateOutput(ctx *Context, args *LookupElbCertificateOutputArgs, opts ...InvokeOption) LookupElbCertificateResultOutput
Copy

> Note: This function is named LookupElbCertificate in the Go SDK.

public static class GetElbCertificate 
{
    public static Task<GetElbCertificateResult> InvokeAsync(GetElbCertificateArgs args, InvokeOptions? opts = null)
    public static Output<GetElbCertificateResult> Invoke(GetElbCertificateInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetElbCertificateResult> getElbCertificate(GetElbCertificateArgs args, InvokeOptions options)
public static Output<GetElbCertificateResult> getElbCertificate(GetElbCertificateArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: flexibleengine:index/getElbCertificate:getElbCertificate
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Name This property is required. string

The name of certificate. The value is case sensitive and does not supports fuzzy matching.

NOTE: The certificate name is not unique. Only returns the last created one when matched multiple certificates.

Id string
The certificate ID in UUID format.
Region string
The region in which to obtain the Dedicated ELB certificate. If omitted, the provider-level region will be used.
Name This property is required. string

The name of certificate. The value is case sensitive and does not supports fuzzy matching.

NOTE: The certificate name is not unique. Only returns the last created one when matched multiple certificates.

Id string
The certificate ID in UUID format.
Region string
The region in which to obtain the Dedicated ELB certificate. If omitted, the provider-level region will be used.
name This property is required. String

The name of certificate. The value is case sensitive and does not supports fuzzy matching.

NOTE: The certificate name is not unique. Only returns the last created one when matched multiple certificates.

id String
The certificate ID in UUID format.
region String
The region in which to obtain the Dedicated ELB certificate. If omitted, the provider-level region will be used.
name This property is required. string

The name of certificate. The value is case sensitive and does not supports fuzzy matching.

NOTE: The certificate name is not unique. Only returns the last created one when matched multiple certificates.

id string
The certificate ID in UUID format.
region string
The region in which to obtain the Dedicated ELB certificate. If omitted, the provider-level region will be used.
name This property is required. str

The name of certificate. The value is case sensitive and does not supports fuzzy matching.

NOTE: The certificate name is not unique. Only returns the last created one when matched multiple certificates.

id str
The certificate ID in UUID format.
region str
The region in which to obtain the Dedicated ELB certificate. If omitted, the provider-level region will be used.
name This property is required. String

The name of certificate. The value is case sensitive and does not supports fuzzy matching.

NOTE: The certificate name is not unique. Only returns the last created one when matched multiple certificates.

id String
The certificate ID in UUID format.
region String
The region in which to obtain the Dedicated ELB certificate. If omitted, the provider-level region will be used.

getElbCertificate Result

The following output properties are available:

Description string
Human-readable description for the certificate.
Domain string
The domain of the certificate. This parameter is valid only when type is "server".
Expiration string
Indicates the time when the certificate expires.
Id string
The certificate ID in UUID format.
Name string
Region string
Type string
Specifies the certificate type. The value can be one of the following:
Description string
Human-readable description for the certificate.
Domain string
The domain of the certificate. This parameter is valid only when type is "server".
Expiration string
Indicates the time when the certificate expires.
Id string
The certificate ID in UUID format.
Name string
Region string
Type string
Specifies the certificate type. The value can be one of the following:
description String
Human-readable description for the certificate.
domain String
The domain of the certificate. This parameter is valid only when type is "server".
expiration String
Indicates the time when the certificate expires.
id String
The certificate ID in UUID format.
name String
region String
type String
Specifies the certificate type. The value can be one of the following:
description string
Human-readable description for the certificate.
domain string
The domain of the certificate. This parameter is valid only when type is "server".
expiration string
Indicates the time when the certificate expires.
id string
The certificate ID in UUID format.
name string
region string
type string
Specifies the certificate type. The value can be one of the following:
description str
Human-readable description for the certificate.
domain str
The domain of the certificate. This parameter is valid only when type is "server".
expiration str
Indicates the time when the certificate expires.
id str
The certificate ID in UUID format.
name str
region str
type str
Specifies the certificate type. The value can be one of the following:
description String
Human-readable description for the certificate.
domain String
The domain of the certificate. This parameter is valid only when type is "server".
expiration String
Indicates the time when the certificate expires.
id String
The certificate ID in UUID format.
name String
region String
type String
Specifies the certificate type. The value can be one of the following:

Package Details

Repository
flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
License
Notes
This Pulumi package is based on the flexibleengine Terraform Provider.
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud