interface OnCloudTrailBucketEventOptions
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.S3.OnCloudTrailBucketEventOptions |
Java | software.amazon.awscdk.services.s3.OnCloudTrailBucketEventOptions |
Python | aws_cdk.aws_s3.OnCloudTrailBucketEventOptions |
TypeScript (source) | @aws-cdk/aws-s3 » OnCloudTrailBucketEventOptions |
Options for the onCloudTrailPutObject method.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as events from '@aws-cdk/aws-events';
import * as s3 from '@aws-cdk/aws-s3';
declare const detail: any;
declare const ruleTarget: events.IRuleTarget;
const onCloudTrailBucketEventOptions: s3.OnCloudTrailBucketEventOptions = {
description: 'description',
eventPattern: {
account: ['account'],
detail: {
detailKey: detail,
},
detailType: ['detailType'],
id: ['id'],
region: ['region'],
resources: ['resources'],
source: ['source'],
time: ['time'],
version: ['version'],
},
paths: ['paths'],
ruleName: 'ruleName',
target: ruleTarget,
};
Properties
Name | Type | Description |
---|---|---|
description? | string | A description of the rule's purpose. |
event | Event | Additional restrictions for the event to route to the specified target. |
paths? | string[] | Only watch changes to these object paths. |
rule | string | A name for the rule. |
target? | IRule | The target to register for the event. |
description?
Type:
string
(optional, default: No description)
A description of the rule's purpose.
eventPattern?
Type:
Event
(optional, default: No additional filtering based on an event pattern.)
Additional restrictions for the event to route to the specified target.
The method that generates the rule probably imposes some type of event filtering. The filtering implied by what you pass here is added on top of that filtering.
paths?
Type:
string[]
(optional, default: Watch changes to all objects)
Only watch changes to these object paths.
ruleName?
Type:
string
(optional, default: AWS CloudFormation generates a unique physical ID.)
A name for the rule.
target?
Type:
IRule
(optional, default: No target is added to the rule. Use addTarget()
to add a target.)
The target to register for the event.