Table of Contents

Module Members



Create a reference to an externally managed LogGroup

Example usage:

logGroup: Log.LogGroup.external("arn:aws:logs:us-east-1:123456789012:log-group:my-log-group:*")

Type Signature

 fun (String) -> LogGroup
Argument: arn
Type: String

A reference to the target LogGroup.

Type: LogGroup



new LogGroup (Constructor)

Call this constructor to create a new Fugue.Core.AWS.CloudWatch.Logs.LogGroup value.

Example usage:

logGroup: Logs.LogGroup.new {
  name: "group0",
  retentionInDays: 15,
  encryptionKey: KMS.Key
  region: qUs-east-1

Type Signature

 fun { name: String,
       retentionInDays: Optional<Int>,
       encryptionKey: Optional<Key>,
       tags: Optional<List<Tag>>,
       region: Region,
       resourceId: Optional<String> } -> LogGroup
Argument: name

The name of the LogGroup. It must consist of the following characters: a-z, A-Z, 0-9, ‘_’ (underscore), ‘-‘ (hyphen), ‘/’ (forward slash), and ‘.’ (period), be between 1 and 512 characters, and must be unique within an account.

Type: String

Argument: retentionInDays

Retention period in days for which to retain log events in this group. Valid values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1827, and 3653. Mutable.

Type: Optional<Int>

Argument: encryptionKey

KMS key to use to encrypt log data. Mutable.

Type: Optional<Key>

Argument: tags

Tags for the LogGroup. Mutable.

Type: Optional<List<Tag>>

Argument: region

The region in which the LogGroup will be created.

Type: Region

Argument: resourceId

Resource ID of the resource to import with Fugue import. This field is only honored on fugue run. The resource ID is the LogGroup ARN. Mutable. Example: arn:aws:logs:us-east-1:123456789012:log-group:my-log-group:*`

Type: Optional<String>

Type: LogGroup