-
Notifications
You must be signed in to change notification settings - Fork 17
/
CfnSubscriptionFilterProps.go
56 lines (53 loc) · 3.13 KB
/
CfnSubscriptionFilterProps.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
package awslogs
// Properties for defining a `CfnSubscriptionFilter`.
//
// Example:
// // The code below shows an example of how to instantiate this type.
// // The values are placeholders you should change.
// import "github.com/aws/aws-cdk-go/awscdk"
//
// cfnSubscriptionFilterProps := &CfnSubscriptionFilterProps{
// DestinationArn: jsii.String("destinationArn"),
// FilterPattern: jsii.String("filterPattern"),
// LogGroupName: jsii.String("logGroupName"),
//
// // the properties below are optional
// Distribution: jsii.String("distribution"),
// FilterName: jsii.String("filterName"),
// RoleArn: jsii.String("roleArn"),
// }
//
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-subscriptionfilter.html
//
type CfnSubscriptionFilterProps struct {
// The Amazon Resource Name (ARN) of the destination.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-subscriptionfilter.html#cfn-logs-subscriptionfilter-destinationarn
//
DestinationArn *string `field:"required" json:"destinationArn" yaml:"destinationArn"`
// The filtering expressions that restrict what gets delivered to the destination AWS resource.
//
// For more information about the filter pattern syntax, see [Filter and Pattern Syntax](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/FilterAndPatternSyntax.html) .
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-subscriptionfilter.html#cfn-logs-subscriptionfilter-filterpattern
//
FilterPattern *string `field:"required" json:"filterPattern" yaml:"filterPattern"`
// The log group to associate with the subscription filter.
//
// All log events that are uploaded to this log group are filtered and delivered to the specified AWS resource if the filter pattern matches the log events.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-subscriptionfilter.html#cfn-logs-subscriptionfilter-loggroupname
//
LogGroupName *string `field:"required" json:"logGroupName" yaml:"logGroupName"`
// The method used to distribute log data to the destination, which can be either random or grouped by log stream.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-subscriptionfilter.html#cfn-logs-subscriptionfilter-distribution
//
Distribution *string `field:"optional" json:"distribution" yaml:"distribution"`
// The name of the subscription filter.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-subscriptionfilter.html#cfn-logs-subscriptionfilter-filtername
//
FilterName *string `field:"optional" json:"filterName" yaml:"filterName"`
// The ARN of an IAM role that grants CloudWatch Logs permissions to deliver ingested log events to the destination stream.
//
// You don't need to provide the ARN when you are working with a logical destination for cross-account delivery.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-subscriptionfilter.html#cfn-logs-subscriptionfilter-rolearn
//
RoleArn *string `field:"optional" json:"roleArn" yaml:"roleArn"`
}