import * as core from "@terrascript/core"; export interface ClusterActivityStreamArgs extends core.ResourceArgs { /** * (Optional, Forces new resources) Specifies whether the database activity stream includes engine-nati * ve audit fields. This option only applies to an Oracle DB instance. By default, no engine-native aud * it fields are included. Defaults `false`. */ engineNativeAuditFieldsIncluded?: boolean | core.BooleanOut; /** * (Required, Forces new resources) The AWS KMS key identifier for encrypting messages in the database * activity stream. The AWS KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the * KMS key. */ kmsKeyId: string | core.StringOut; /** * (Required, Forces new resources) Specifies the mode of the database activity stream. Database events * such as a change or access generate an activity stream event. The database session can handle these * events either synchronously or asynchronously. One of: `sync`, `async`. */ mode: string | core.StringOut; /** * (Required, Forces new resources) The Amazon Resource Name (ARN) of the DB cluster. */ resourceArn: string | core.StringOut; } export class ClusterActivityStream extends core.Resource { /** * (Optional, Forces new resources) Specifies whether the database activity stream includes engine-nati * ve audit fields. This option only applies to an Oracle DB instance. By default, no engine-native aud * it fields are included. Defaults `false`. */ @core.attr(Boolean) public engineNativeAuditFieldsIncluded?: boolean | core.BooleanOut; /** * The Amazon Resource Name (ARN) of the DB cluster. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * The name of the Amazon Kinesis data stream to be used for the database activity stream. */ @core.attr(String, { computed: true }) public kinesisStreamName!: string | core.StringOut; /** * (Required, Forces new resources) The AWS KMS key identifier for encrypting messages in the database * activity stream. The AWS KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the * KMS key. */ @core.attr(String) public kmsKeyId!: string | core.StringOut; /** * (Required, Forces new resources) Specifies the mode of the database activity stream. Database events * such as a change or access generate an activity stream event. The database session can handle these * events either synchronously or asynchronously. One of: `sync`, `async`. */ @core.attr(String) public mode!: string | core.StringOut; /** * (Required, Forces new resources) The Amazon Resource Name (ARN) of the DB cluster. */ @core.attr(String) public resourceArn!: string | core.StringOut; constructor(name: string, args?: ClusterActivityStreamArgs) { super(name, "aws_rds_cluster_activity_stream", args); } public override getNamespace(): string { return "aws_rds"; } }