Skip to main content

CloudWatchLogGroupSchema

The CloudWatchLogGroupSchema class is the schema for the CloudWatchLogGroup resource, which represents a CloudWatch Logs log group, and how long it keeps what is written to it. Terraform provisions it as aws_cloudwatch_log_group.

@group

Resources/CloudWatchLogGroup

@overrideProperty

resourceId - The resource id is of format cloudwatch-log-group-<execution-id>.

Hierarchy

  • BaseResourceSchema
    • CloudWatchLogGroupSchema

Index

Properties

inheritedlocalResourceId

localResourceId: string

The ID the resource was created with, unique within its scope.

inheritedparents

parents: IResourceReference[]

The resources this one is built on top of.

properties

properties: { awsAccountId: string; awsRegionId: string; logGroupName: string; retentionInDays: 1 | 3 | 5 | 7 | 14 | 30 | 60 | 90 | 120 | 150 | 180 | 365 | 400 | 545 | 731 | 1096 | 1827 | 2192 | 2557 | 2922 | 3288 | 3653 }

Input properties.

  • properties.awsAccountId - The AWS account id.
  • properties.awsRegionId - The AWS region id.
  • properties.logGroupName - The name of the log group. Part of its identity.
  • properties.retentionInDays - How many days an event is kept before CloudWatch deletes it.

Type declaration

  • awsAccountId: string
  • awsRegionId: string
  • logGroupName: string
  • retentionInDays: 1 | 3 | 5 | 7 | 14 | 30 | 60 | 90 | 120 | 150 | 180 | 365 | 400 | 545 | 731 | 1096 | 1827 | 2192 | 2557 | 2922 | 3288 | 3653

inheritedresourceId

resourceId: string

The ID of the resource, unique across the infrastructure: its localResourceId, followed by a hash of its scope when it has one.

response

response: { Arn?: string; LogGroupName?: string }

Saved response.

  • response.Arn - The ARN of the log group.
  • response.LogGroupName - The name of the log group.

Type declaration

  • optionalArn?: string
  • optionalLogGroupName?: string

inheritedscope

scope: string[]

The contexts of the models the resource is placed under, derived from where the node creating it sits in the model graph. Octo sets it; a resource created outside a model action has none.

inheritedtags

tags: {}

The tags applied to the resource.


Type declaration

  • [key string]: string