Certificate

class Certificate : KotlinCustomResource

Provides a AWS Transfer AS2 Certificate resource.

Example Usage

Basic

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.transfer.Certificate;
import com.pulumi.aws.transfer.CertificateArgs;
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) {
var example = new Certificate("example", CertificateArgs.builder()
.certificate(Files.readString(Paths.get(String.format("%s/example.com/example.crt", path.module()))))
.certificateChain(Files.readString(Paths.get(String.format("%s/example.com/ca.crt", path.module()))))
.privateKey(Files.readString(Paths.get(String.format("%s/example.com/example.key", path.module()))))
.description("example")
.usage("SIGNING")
.build());
}
}

Import

Using pulumi import, import Transfer AS2 Certificate using the certificate_id. For example:

$ pulumi import aws:transfer/certificate:Certificate example c-4221a88afd5f4362a

Properties

Link copied to clipboard
val activeDate: Output<String>

An date when the certificate becomes active

Link copied to clipboard
val arn: Output<String>

The ARN of the certificate

Link copied to clipboard
val certificate: Output<String>

The valid certificate file required for the transfer.

Link copied to clipboard
val certificateChain: Output<String>?

The optional list of certificate that make up the chain for the certificate that is being imported.

Link copied to clipboard
val certificateId: Output<String>

The unique identifier for the AS2 certificate

Link copied to clipboard
val description: Output<String>?

A short description that helps identify the certificate.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val inactiveDate: Output<String>

An date when the certificate becomes inactive

Link copied to clipboard
val privateKey: Output<String>?

The private key associated with the certificate being imported.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val tags: Output<Map<String, String>>?

A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Link copied to clipboard
val tagsAll: Output<Map<String, String>>
Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val usage: Output<String>

Specifies if a certificate is being used for signing or encryption. The valid values are SIGNING and ENCRYPTION.