Class GetServerCertificate
Inheritance
System.Object
GetServerCertificate
Inherited Members
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.Iam
Assembly: Pulumi.Aws.dll
Syntax
public static class GetServerCertificate
Methods
View SourceInvokeAsync(GetServerCertificateArgs, InvokeOptions)
Use this data source to lookup information about IAM Server Certificates.
{{% examples %}}
Example Usage
{{% example %}}
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var my_domain = Output.Create(Aws.Iam.GetServerCertificate.InvokeAsync(new Aws.Iam.GetServerCertificateArgs
{
Latest = true,
NamePrefix = "my-domain.org",
}));
var elb = new Aws.Elb.LoadBalancer("elb", new Aws.Elb.LoadBalancerArgs
{
Listeners =
{
new Aws.Elb.Inputs.LoadBalancerListenerArgs
{
InstancePort = 8000,
InstanceProtocol = "https",
LbPort = 443,
LbProtocol = "https",
SslCertificateId = my_domain.Apply(my_domain => my_domain.Arn),
},
},
});
}
}
{{% /example %}} {{% /examples %}}
Import
The import function will read in certificate body, certificate chain (if it exists), id, name, path, and arn. It will not retrieve the private key which is not available through the AWS API.
Declaration
public static Task<GetServerCertificateResult> InvokeAsync(GetServerCertificateArgs args = null, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetServerCertificateArgs | args | |
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetServerCertificateResult> |