AWS Classic

Pulumi Official
Package maintained by Pulumi
v5.10.0 published on Monday, Jul 11, 2022 by Pulumi

getCertificate

Information about an RDS Certificate.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(Aws.Rds.GetCertificate.InvokeAsync(new Aws.Rds.GetCertificateArgs
        {
            LatestValidTill = true,
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/rds"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := rds.GetCertificate(ctx, &rds.GetCertificateArgs{
			LatestValidTill: pulumi.BoolRef(true),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var example = Output.of(RdsFunctions.getCertificate(GetCertificateArgs.builder()
            .latestValidTill(true)
            .build()));

    }
}
import pulumi
import pulumi_aws as aws

example = aws.rds.get_certificate(latest_valid_till=True)
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = pulumi.output(aws.rds.getCertificate({
    latestValidTill: true,
}));
variables:
  example:
    Fn::Invoke:
      Function: aws:rds:getCertificate
      Arguments:
        latestValidTill: true

Using getCertificate

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 getCertificate(args: GetCertificateArgs, opts?: InvokeOptions): Promise<GetCertificateResult>
function getCertificateOutput(args: GetCertificateOutputArgs, opts?: InvokeOptions): Output<GetCertificateResult>
def get_certificate(id: Optional[str] = None,
                    latest_valid_till: Optional[bool] = None,
                    opts: Optional[InvokeOptions] = None) -> GetCertificateResult
def get_certificate_output(id: Optional[pulumi.Input[str]] = None,
                    latest_valid_till: Optional[pulumi.Input[bool]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetCertificateResult]
func GetCertificate(ctx *Context, args *GetCertificateArgs, opts ...InvokeOption) (*GetCertificateResult, error)
func GetCertificateOutput(ctx *Context, args *GetCertificateOutputArgs, opts ...InvokeOption) GetCertificateResultOutput

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

public static class GetCertificate 
{
    public static Task<GetCertificateResult> InvokeAsync(GetCertificateArgs args, InvokeOptions? opts = null)
    public static Output<GetCertificateResult> Invoke(GetCertificateInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetCertificateResult> getCertificate(GetCertificateArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: aws:rds/getCertificate:getCertificate
  Arguments:
    # Arguments dictionary

The following arguments are supported:

Id string

Certificate identifier. For example, rds-ca-2019.

LatestValidTill bool

When enabled, returns the certificate with the latest ValidTill.

Id string

Certificate identifier. For example, rds-ca-2019.

LatestValidTill bool

When enabled, returns the certificate with the latest ValidTill.

id String

Certificate identifier. For example, rds-ca-2019.

latestValidTill Boolean

When enabled, returns the certificate with the latest ValidTill.

id string

Certificate identifier. For example, rds-ca-2019.

latestValidTill boolean

When enabled, returns the certificate with the latest ValidTill.

id str

Certificate identifier. For example, rds-ca-2019.

latest_valid_till bool

When enabled, returns the certificate with the latest ValidTill.

id String

Certificate identifier. For example, rds-ca-2019.

latestValidTill Boolean

When enabled, returns the certificate with the latest ValidTill.

getCertificate Result

The following output properties are available:

Arn string

Amazon Resource Name (ARN) of the certificate.

CertificateType string

Type of certificate. For example, CA.

CustomerOverride bool

Boolean whether there is an override for the default certificate identifier.

CustomerOverrideValidTill string

If there is an override for the default certificate identifier, when the override expires.

Id string
Thumbprint string

Thumbprint of the certificate.

ValidFrom string

RFC3339 format of certificate starting validity date.

ValidTill string

RFC3339 format of certificate ending validity date.

LatestValidTill bool
Arn string

Amazon Resource Name (ARN) of the certificate.

CertificateType string

Type of certificate. For example, CA.

CustomerOverride bool

Boolean whether there is an override for the default certificate identifier.

CustomerOverrideValidTill string

If there is an override for the default certificate identifier, when the override expires.

Id string
Thumbprint string

Thumbprint of the certificate.

ValidFrom string

RFC3339 format of certificate starting validity date.

ValidTill string

RFC3339 format of certificate ending validity date.

LatestValidTill bool
arn String

Amazon Resource Name (ARN) of the certificate.

certificateType String

Type of certificate. For example, CA.

customerOverride Boolean

Boolean whether there is an override for the default certificate identifier.

customerOverrideValidTill String

If there is an override for the default certificate identifier, when the override expires.

id String
thumbprint String

Thumbprint of the certificate.

validFrom String

RFC3339 format of certificate starting validity date.

validTill String

RFC3339 format of certificate ending validity date.

latestValidTill Boolean
arn string

Amazon Resource Name (ARN) of the certificate.

certificateType string

Type of certificate. For example, CA.

customerOverride boolean

Boolean whether there is an override for the default certificate identifier.

customerOverrideValidTill string

If there is an override for the default certificate identifier, when the override expires.

id string
thumbprint string

Thumbprint of the certificate.

validFrom string

RFC3339 format of certificate starting validity date.

validTill string

RFC3339 format of certificate ending validity date.

latestValidTill boolean
arn str

Amazon Resource Name (ARN) of the certificate.

certificate_type str

Type of certificate. For example, CA.

customer_override bool

Boolean whether there is an override for the default certificate identifier.

customer_override_valid_till str

If there is an override for the default certificate identifier, when the override expires.

id str
thumbprint str

Thumbprint of the certificate.

valid_from str

RFC3339 format of certificate starting validity date.

valid_till str

RFC3339 format of certificate ending validity date.

latest_valid_till bool
arn String

Amazon Resource Name (ARN) of the certificate.

certificateType String

Type of certificate. For example, CA.

customerOverride Boolean

Boolean whether there is an override for the default certificate identifier.

customerOverrideValidTill String

If there is an override for the default certificate identifier, when the override expires.

id String
thumbprint String

Thumbprint of the certificate.

validFrom String

RFC3339 format of certificate starting validity date.

validTill String

RFC3339 format of certificate ending validity date.

latestValidTill Boolean

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.