import * as core from "@terrascript/core"; export interface CertificateArgs extends core.ResourceArgs { /** * (Required) Boolean flag to indicate if the certificate should be active */ active: boolean | core.BooleanOut; /** * (Optional) The CA certificate for the certificate to be registered. If this is set, the CA needs to * be registered with AWS IoT beforehand. */ caPem?: string | core.StringOut; /** * (Optional) The certificate to be registered. If `ca_pem` is unspecified, review */ certificatePem?: string | core.StringOut; /** * (Optional) The certificate signing request. Review */ csr?: string | core.StringOut; } export class Certificate extends core.Resource { /** * (Required) Boolean flag to indicate if the certificate should be active */ @core.attr(Boolean) public active!: boolean | core.BooleanOut; /** * The ARN of the created certificate. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * (Optional) The CA certificate for the certificate to be registered. If this is set, the CA needs to * be registered with AWS IoT beforehand. */ @core.attr(String) public caPem?: string | core.StringOut; /** * (Optional) The certificate to be registered. If `ca_pem` is unspecified, review */ @core.attr(String, { computed: true }) public certificatePem?: string | core.StringOut; /** * (Optional) The certificate signing request. Review */ @core.attr(String) public csr?: string | core.StringOut; /** * The internal ID assigned to this certificate. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * When neither CSR nor certificate is provided, the private key. */ @core.attr(String, { computed: true }) public privateKey!: string | core.StringOut; /** * When neither CSR nor certificate is provided, the public key. */ @core.attr(String, { computed: true }) public publicKey!: string | core.StringOut; constructor(name: string, args?: CertificateArgs) { super(name, "aws_iot_certificate", args); } public override getNamespace(): string { return "aws_iot"; } }