CfnSubscriptionFilterProps Struct
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 { 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',
};
Properties
applyOnTransformedLogsboolean | IResolvableapply_on_transformed_logstyping.Union[bool, IResolvable]applyOnTransformedLogsBooleanApplyOnTransformedLogsboolApplyOnTransformedLogsinterface{}#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#emitSystemFieldsstring[]emit_system_fieldstyping.List[str]emitSystemFieldsList<String>EmitSystemFieldsstring[]EmitSystemFields*[]*string#Returns the emitSystemFields value if it was specified when the subscription filter was created.
fieldSelectionCriteriastringfield_selection_criteriastrfieldSelectionCriteriaStringFieldSelectionCriteriastringFieldSelectionCriteria*string#Returns the fieldSelectionCriteria value if it was specified when the subscription filter was created.
filterPatternstringfilter_patternstrfilterPatternStringFilterPatternstringFilterPattern*stringrequired#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.
roleArnstring | IRoleRefrole_arntyping.Union[str, IRoleRef]roleArnStringRoleArnstringRoleArninterface{}#You don't need to provide the ARN when you are working with a logical destination for cross-account delivery.