logs

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2016 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Destination = Resource{
	AwsType: "AWS::Logs::Destination",

	ReturnValue: Schema{
		Type: ValueString,
	},

	Properties: Properties{
		"DestinationName": Schema{
			Type:     ValueString,
			Required: constraints.Always,
		},

		"DestinationPolicy": Schema{
			Type:     ValueString,
			Required: constraints.Always,
		},

		"RoleArn": Schema{
			Type:     ARN,
			Required: constraints.Always,
		},

		"TargetArn": Schema{
			Type:     ARN,
			Required: constraints.Always,
		},
	},
}

see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-destination.html

View Source
var LogGroup = Resource{
	AwsType: "AWS::Logs::LogGroup",

	Attributes: map[string]Schema{
		"Arn": Schema{
			Type: ARN,
		},
	},

	ReturnValue: Schema{
		Type: ValueString,
	},

	Properties: Properties{
		"RetentionInDays": Schema{
			Type:         ValueNumber,
			ValidateFunc: NumberOptions(1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1827, 3653),
		},
	},
}

see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-loggroup.html

View Source
var LogStream = Resource{
	AwsType: "AWS::Logs::LogStream",

	ReturnValue: Schema{
		Type: ValueString,
	},

	Properties: Properties{
		"LogGroupName": Schema{
			Type:     ValueString,
			Required: constraints.Always,
		},

		"LogStreamName": Schema{
			Type: ValueString,
		},
	},
}

see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-logstream.html

View Source
var MetricFilter = Resource{
	AwsType: "AWS::Logs::MetricFilter",

	Properties: Properties{
		"FilterPattern": Schema{
			Type:     Multiple(ValueString),
			Required: constraints.Always,
		},

		"LogGroupName": Schema{
			Type:     ValueString,
			Required: constraints.Always,
		},

		"MetricTransformations": Schema{
			Type:     Multiple(metricTransformation),
			Required: constraints.Always,
		},
	},
}

see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-metricfilter.html

View Source
var SubscriptionFilter = Resource{
	AwsType: "AWS::Logs::SubscriptionFilter",

	ReturnValue: Schema{
		Type: ValueString,
	},

	Properties: Properties{
		"DestinationArn": Schema{
			Type:     ARN,
			Required: constraints.Always,
		},

		"FilterPattern": Schema{
			Type:     ValueString,
			Required: constraints.Always,
		},

		"LogGroupName": Schema{
			Type:     ValueString,
			Required: constraints.Always,
		},

		"RoleArn": Schema{
			Type: ARN,
		},
	},
}

see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-subscriptionfilter.html

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL