AWS v6.77.1 published on Friday, Apr 18, 2025 by Pulumi
aws.rds.getCertificate
Explore with Pulumi AI
Information about an RDS Certificate.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.rds.getCertificate({
    latestValidTill: true,
});
import pulumi
import pulumi_aws as aws
example = aws.rds.get_certificate(latest_valid_till=True)
package main
import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/rds"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := rds.LookupCertificate(ctx, &rds.LookupCertificateArgs{
			LatestValidTill: pulumi.BoolRef(true),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() => 
{
    var example = Aws.Rds.GetCertificate.Invoke(new()
    {
        LatestValidTill = true,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.rds.RdsFunctions;
import com.pulumi.aws.rds.inputs.GetCertificateArgs;
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 example = RdsFunctions.getCertificate(GetCertificateArgs.builder()
            .latestValidTill(true)
            .build());
    }
}
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(default_for_new_launches: Optional[bool] = None,
                    id: Optional[str] = None,
                    latest_valid_till: Optional[bool] = None,
                    opts: Optional[InvokeOptions] = None) -> GetCertificateResult
def get_certificate_output(default_for_new_launches: Optional[pulumi.Input[bool]] = None,
                    id: Optional[pulumi.Input[str]] = None,
                    latest_valid_till: Optional[pulumi.Input[bool]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetCertificateResult]func LookupCertificate(ctx *Context, args *LookupCertificateArgs, opts ...InvokeOption) (*LookupCertificateResult, error)
func LookupCertificateOutput(ctx *Context, args *LookupCertificateOutputArgs, opts ...InvokeOption) LookupCertificateResultOutput> Note: This function is named LookupCertificate 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)
public static Output<GetCertificateResult> getCertificate(GetCertificateArgs args, InvokeOptions options)
fn::invoke:
  function: aws:rds/getCertificate:getCertificate
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Default
For boolNew Launches  - When enabled, returns the default certificate for new RDS instances.
 - Id string
 - Certificate identifier. For example, 
rds-ca-2019. - Latest
Valid boolTill  - When enabled, returns the certificate with the latest 
ValidTill. 
- Default
For boolNew Launches  - When enabled, returns the default certificate for new RDS instances.
 - Id string
 - Certificate identifier. For example, 
rds-ca-2019. - Latest
Valid boolTill  - When enabled, returns the certificate with the latest 
ValidTill. 
- default
For BooleanNew Launches  - When enabled, returns the default certificate for new RDS instances.
 - id String
 - Certificate identifier. For example, 
rds-ca-2019. - latest
Valid BooleanTill  - When enabled, returns the certificate with the latest 
ValidTill. 
- default
For booleanNew Launches  - When enabled, returns the default certificate for new RDS instances.
 - id string
 - Certificate identifier. For example, 
rds-ca-2019. - latest
Valid booleanTill  - When enabled, returns the certificate with the latest 
ValidTill. 
- default_
for_ boolnew_ launches  - When enabled, returns the default certificate for new RDS instances.
 - id str
 - Certificate identifier. For example, 
rds-ca-2019. - latest_
valid_ booltill  - When enabled, returns the certificate with the latest 
ValidTill. 
- default
For BooleanNew Launches  - When enabled, returns the default certificate for new RDS instances.
 - id String
 - Certificate identifier. For example, 
rds-ca-2019. - latest
Valid BooleanTill  - When enabled, returns the certificate with the latest 
ValidTill. 
getCertificate Result
The following output properties are available:
- Arn string
 - ARN of the certificate.
 - Certificate
Type string - Type of certificate. For example, 
CA. - Customer
Override bool - Boolean whether there is an override for the default certificate identifier.
 - Customer
Override stringValid Till  - If there is an override for the default certificate identifier, when the override expires.
 - Id string
 - Thumbprint string
 - Thumbprint of the certificate.
 - Valid
From string - RFC3339 format of certificate starting validity date.
 - Valid
Till string - RFC3339 format of certificate ending validity date.
 - Default
For boolNew Launches  - Latest
Valid boolTill  
- Arn string
 - ARN of the certificate.
 - Certificate
Type string - Type of certificate. For example, 
CA. - Customer
Override bool - Boolean whether there is an override for the default certificate identifier.
 - Customer
Override stringValid Till  - If there is an override for the default certificate identifier, when the override expires.
 - Id string
 - Thumbprint string
 - Thumbprint of the certificate.
 - Valid
From string - RFC3339 format of certificate starting validity date.
 - Valid
Till string - RFC3339 format of certificate ending validity date.
 - Default
For boolNew Launches  - Latest
Valid boolTill  
- arn String
 - ARN of the certificate.
 - certificate
Type String - Type of certificate. For example, 
CA. - customer
Override Boolean - Boolean whether there is an override for the default certificate identifier.
 - customer
Override StringValid Till  - If there is an override for the default certificate identifier, when the override expires.
 - id String
 - thumbprint String
 - Thumbprint of the certificate.
 - valid
From String - RFC3339 format of certificate starting validity date.
 - valid
Till String - RFC3339 format of certificate ending validity date.
 - default
For BooleanNew Launches  - latest
Valid BooleanTill  
- arn string
 - ARN of the certificate.
 - certificate
Type string - Type of certificate. For example, 
CA. - customer
Override boolean - Boolean whether there is an override for the default certificate identifier.
 - customer
Override stringValid Till  - If there is an override for the default certificate identifier, when the override expires.
 - id string
 - thumbprint string
 - Thumbprint of the certificate.
 - valid
From string - RFC3339 format of certificate starting validity date.
 - valid
Till string - RFC3339 format of certificate ending validity date.
 - default
For booleanNew Launches  - latest
Valid booleanTill  
- arn str
 - 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_ strvalid_ till  - 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.
 - default_
for_ boolnew_ launches  - latest_
valid_ booltill  
- arn String
 - ARN of the certificate.
 - certificate
Type String - Type of certificate. For example, 
CA. - customer
Override Boolean - Boolean whether there is an override for the default certificate identifier.
 - customer
Override StringValid Till  - If there is an override for the default certificate identifier, when the override expires.
 - id String
 - thumbprint String
 - Thumbprint of the certificate.
 - valid
From String - RFC3339 format of certificate starting validity date.
 - valid
Till String - RFC3339 format of certificate ending validity date.
 - default
For BooleanNew Launches  - latest
Valid BooleanTill  
Package Details
- Repository
 - AWS Classic pulumi/pulumi-aws
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
awsTerraform Provider.