import * as core from "@terrascript/core"; export interface LogGroupArgs extends core.ResourceArgs { /** * (Optional) The ARN of the KMS Key to use when encrypting log data. Please note, after the AWS KMS CM * K is disassociated from the log group, */ kmsKeyId?: string | core.StringOut; /** * (Optional, Forces new resource) The name of the log group. If omitted, Terraform will assign a rando * m, unique name. */ name?: string | core.StringOut; /** * (Optional, Forces new resource) Creates a unique name beginning with the specified prefix. Conflicts * with `name`. */ namePrefix?: string | core.StringOut; /** * (Optional) Specifies the number of days */ retentionInDays?: number | core.NumberOut; /** * (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 LogGroup extends core.Resource { /** * The Amazon Resource Name (ARN) specifying the log group. Any `:*` suffix added by the API, denoting * all CloudWatch Log Streams under the CloudWatch Log Group, is removed for greater compatibility with * other AWS services that do not accept the suffix. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Optional) The ARN of the KMS Key to use when encrypting log data. Please note, after the AWS KMS CM * K is disassociated from the log group, */ @core.attr(String) public kmsKeyId?: string | core.StringOut; /** * (Optional, Forces new resource) The name of the log group. If omitted, Terraform will assign a rando * m, unique name. */ @core.attr(String, { computed: true }) public name?: string | core.StringOut; /** * (Optional, Forces new resource) Creates a unique name beginning with the specified prefix. Conflicts * with `name`. */ @core.attr(String) public namePrefix?: string | core.StringOut; /** * (Optional) Specifies the number of days */ @core.attr(Number) public retentionInDays?: number | core.NumberOut; /** * (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?: LogGroupArgs) { super(name, "aws_cloudwatch_log_group", args); } public override getNamespace(): string { return "aws_cloudwatch"; } }