import * as core from "@terrascript/core"; export interface SecretArgs extends core.SchemaArgs { context?: core.Map | core.MapOut; grantTokens?: core.Array | core.ArrayOut; name: string | core.StringOut; payload: string | core.StringOut; } export class Secret extends core.Schema { @core.attr(String, { kind: "map" }) public context?: core.Map | core.MapOut; @core.attr(String, { kind: "array" }) public grantTokens?: core.Array | core.ArrayOut; @core.attr(String) public name!: string | core.StringOut; @core.attr(String) public payload!: string | core.StringOut; } export interface DsSecretsArgs { /** * (Required) One or more encrypted payload definitions from the KMS service. See the Secret Definition * s below. */ secret: core.Array | core.ArrayOut; } export class DsSecrets extends core.Data { @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * Map containing each `secret` `name` as the key with its decrypted plaintext value */ @core.attr(String, { computed: true, kind: "map" }) public plaintext!: core.Map | core.MapOut; /** * (Required) One or more encrypted payload definitions from the KMS service. See the Secret Definition * s below. */ @core.attr(Secret, { kind: "array" }) public secret!: core.Array | core.ArrayOut; constructor(name: string, args?: DsSecretsArgs) { super(name, "aws_kms_secrets", args); } public override getNamespace(): string { return "aws_kms"; } }