Class Certificate
Creates and manages an AWS IoT certificate.
Example Usage
With CSR
using System.IO;
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var cert = new Aws.Iot.Certificate("cert", new Aws.Iot.CertificateArgs
{
Active = true,
Csr = File.ReadAllText("/my/csr.pem"),
});
}
}
Without CSR
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var cert = new Aws.Iot.Certificate("cert", new Aws.Iot.CertificateArgs
{
Active = true,
});
}
}
Inherited Members
Namespace: Pulumi.Aws.Iot
Assembly: Pulumi.Aws.dll
Syntax
public class Certificate : CustomResource
Constructors
View SourceCertificate(String, CertificateArgs, CustomResourceOptions)
Create a Certificate resource with the given unique name, arguments, and options.
Declaration
public Certificate(string name, CertificateArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| CertificateArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceActive
Boolean flag to indicate if the certificate should be active
Declaration
public Output<bool> Active { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Boolean> |
Arn
The ARN of the created certificate.
Declaration
public Output<string> Arn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
CertificatePem
The certificate data, in PEM format.
Declaration
public Output<string> CertificatePem { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Csr
The certificate signing request. Review CreateCertificateFromCsr for more information on generating a certificate from a certificate signing request (CSR). If none is specified both the certificate and keys will be generated, review CreateKeysAndCertificate for more information on generating keys and a certificate.
Declaration
public Output<string> Csr { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
PrivateKey
When no CSR is provided, the private key.
Declaration
public Output<string> PrivateKey { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
PublicKey
When no CSR is provided, the public key.
Declaration
public Output<string> PublicKey { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, CertificateState, CustomResourceOptions)
Get an existing Certificate resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static Certificate Get(string name, Input<string> id, CertificateState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| CertificateState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| Certificate |