CfnSubscriptionFilterProps Struct
Properties for defining a CfnSubscriptionFilter.
| Source | |
|---|---|
| Type last changed |
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_logs as logs } from 'aws-cdk-lib';
const cfnSubscriptionFilterProps: logs.CfnSubscriptionFilterProps = {
destinationArn: 'destinationArn',
filterPattern: 'filterPattern',
logGroupName: 'logGroupName',
// the properties below are optional
applyOnTransformedLogs: false,
distribution: 'distribution',
emitSystemFields: ['emitSystemFields'],
fieldSelectionCriteria: 'fieldSelectionCriteria',
filterName: 'filterName',
roleArn: 'roleArn',
};
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_logs as logs
cfn_subscription_filter_props = logs.CfnSubscriptionFilterProps(
destination_arn="destinationArn",
filter_pattern="filterPattern",
log_group_name="logGroupName",
# the properties below are optional
apply_on_transformed_logs=False,
distribution="distribution",
emit_system_fields=["emitSystemFields"],
field_selection_criteria="fieldSelectionCriteria",
filter_name="filterName",
role_arn="roleArn"
)
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.logs.*;
CfnSubscriptionFilterProps cfnSubscriptionFilterProps = CfnSubscriptionFilterProps.builder()
.destinationArn("destinationArn")
.filterPattern("filterPattern")
.logGroupName("logGroupName")
// the properties below are optional
.applyOnTransformedLogs(false)
.distribution("distribution")
.emitSystemFields(List.of("emitSystemFields"))
.fieldSelectionCriteria("fieldSelectionCriteria")
.filterName("filterName")
.roleArn("roleArn")
.build();
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Logs;
var cfnSubscriptionFilterProps = new CfnSubscriptionFilterProps {
DestinationArn = "destinationArn",
FilterPattern = "filterPattern",
LogGroupName = "logGroupName",
// the properties below are optional
ApplyOnTransformedLogs = false,
Distribution = "distribution",
EmitSystemFields = new [] { "emitSystemFields" },
FieldSelectionCriteria = "fieldSelectionCriteria",
FilterName = "filterName",
RoleArn = "roleArn"
};
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// 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
ApplyOnTransformedLogs: jsii.Boolean(false),
Distribution: jsii.String("distribution"),
EmitSystemFields: []*string{
jsii.String("emitSystemFields"),
},
FieldSelectionCriteria: jsii.String("fieldSelectionCriteria"),
FilterName: jsii.String("filterName"),
RoleArn: jsii.String("roleArn"),
}
Properties
applyOnTransformedLogsoptionalboolean | IResolvableapply_on_transformed_logsoptionaltyping.Union[bool, IResolvable]applyOnTransformedLogsoptionalBooleanApplyOnTransformedLogsoptionalboolApplyOnTransformedLogsoptionalinterface{} #notes
For more information about log transformers, see PutTransformer .
If this value is true , the subscription filter is applied on the transformed version of the log events instead of the original ingested log events.
destinationArnstring | IStreamRef | IDeliveryStreamRef | IFunctionRefdestination_arntyping.Union[str, IStreamRef, IDeliveryStreamRef, IFunctionRef]destinationArnStringDestinationArnstringDestinationArninterface{} required #distributionoptionalstringdistributionoptionalstrdistributionoptionalStringDistributionoptionalstringDistributionoptional*string #emitSystemFieldsoptionalstring[]emit_system_fieldsoptionaltyping.List[str]emitSystemFieldsoptionalList<String>EmitSystemFieldsoptionalstring[]EmitSystemFieldsoptional*[]*string #Returns the emitSystemFields value if it was specified when the subscription filter was created.
fieldSelectionCriteriaoptionalstringfield_selection_criteriaoptionalstrfieldSelectionCriteriaoptionalStringFieldSelectionCriteriaoptionalstringFieldSelectionCriteriaoptional*string #Returns the fieldSelectionCriteria value if it was specified when the subscription filter was created.
filterNameoptionalstringfilter_nameoptionalstrfilterNameoptionalStringFilterNameoptionalstringFilterNameoptional*string #filterPatternstringfilter_patternstrfilterPatternStringFilterPatternstringFilterPattern*string required #For more information about the filter pattern syntax, see Filter and Pattern Syntax .
logGroupNamestring | ILogGroupReflog_group_nametyping.Union[str, ILogGroupRef]logGroupNameStringLogGroupNamestringLogGroupNameinterface{} required #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.
roleArnoptionalstring | IRoleRefrole_arnoptionaltyping.Union[str, IRoleRef]roleArnoptionalStringRoleArnoptionalstringRoleArnoptionalinterface{} #You don't need to provide the ARN when you are working with a logical destination for cross-account delivery.