import * as core from "@terrascript/core"; export interface HsmConfigurationArgs extends core.ResourceArgs { /** * (Required, Forces new resource) A text description of the HSM configuration to be created. */ description: string | core.StringOut; /** * (Required, Forces new resource) The identifier to be assigned to the new Amazon Redshift HSM configu * ration. */ hsmConfigurationIdentifier: string | core.StringOut; /** * (Required, Forces new resource) The IP address that the Amazon Redshift cluster must use to access t * he HSM. */ hsmIpAddress: string | core.StringOut; /** * (Required, Forces new resource) The name of the partition in the HSM where the Amazon Redshift clust * ers will store their database encryption keys. */ hsmPartitionName: string | core.StringOut; /** * (Required, Forces new resource) The password required to access the HSM partition. */ hsmPartitionPassword: string | core.StringOut; /** * (Required, Forces new resource) The HSMs public certificate file. When using Cloud HSM, the file nam * e is server.pem. */ hsmServerPublicCertificate: string | core.StringOut; /** * (Optional) A map of tags to assign to the resource. If configured with a provider [`default_tags` co * nfiguration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-co * nfiguration-block) present, tags with matching keys will overwrite those defined at the provider-lev * el. */ tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ tagsAll?: core.Map | core.MapOut; } export class HsmConfiguration extends core.Resource { /** * Amazon Resource Name (ARN) of the Hsm Client Certificate. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * (Required, Forces new resource) A text description of the HSM configuration to be created. */ @core.attr(String) public description!: string | core.StringOut; /** * (Required, Forces new resource) The identifier to be assigned to the new Amazon Redshift HSM configu * ration. */ @core.attr(String) public hsmConfigurationIdentifier!: string | core.StringOut; /** * (Required, Forces new resource) The IP address that the Amazon Redshift cluster must use to access t * he HSM. */ @core.attr(String) public hsmIpAddress!: string | core.StringOut; /** * (Required, Forces new resource) The name of the partition in the HSM where the Amazon Redshift clust * ers will store their database encryption keys. */ @core.attr(String) public hsmPartitionName!: string | core.StringOut; /** * (Required, Forces new resource) The password required to access the HSM partition. */ @core.attr(String) public hsmPartitionPassword!: string | core.StringOut; /** * (Required, Forces new resource) The HSMs public certificate file. When using Cloud HSM, the file nam * e is server.pem. */ @core.attr(String) public hsmServerPublicCertificate!: string | core.StringOut; @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Optional) A map of tags to assign to the resource. If configured with a provider [`default_tags` co * nfiguration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-co * nfiguration-block) present, tags with matching keys will overwrite those defined at the provider-lev * el. */ @core.attr(String, { kind: "map" }) public tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ @core.attr(String, { computed: true, kind: "map" }) public tagsAll?: core.Map | core.MapOut; constructor(name: string, args?: HsmConfigurationArgs) { super(name, "aws_redshift_hsm_configuration", args); } public override getNamespace(): string { return "aws_redshift"; } }