interface TlsDetails
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.S3.Events.AWSAPICallViaCloudTrail.TlsDetails |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awss3/events#AWSAPICallViaCloudTrail_TlsDetails |
Java | software.amazon.awscdk.mixins.preview.services.s3.events.AWSAPICallViaCloudTrail.TlsDetails |
Python | aws_cdk.mixins_preview.aws_s3.events.AWSAPICallViaCloudTrail.TlsDetails |
TypeScript | @aws-cdk/mixins-preview ยป aws_s3 ยป events ยป AWSAPICallViaCloudTrail ยป TlsDetails |
Type definition for TlsDetails.
Example
import { AWSAPICallViaCloudTrail, ObjectCreated, ObjectDeleted } from '@aws-cdk/mixins-preview/aws-s3/events';
import * as events from 'aws-cdk-lib/aws-events';
import * as targets from 'aws-cdk-lib/aws-events-targets';
declare const fn: lambda.Function;
// Works with L2 Rule
new events.Rule(scope, 'Rule', {
eventPattern: AWSAPICallViaCloudTrail.awsAPICallViaCloudTrailPattern({
tlsDetails: { tlsVersion: ['TLSv1.3'] },
eventMetadata: { region: ['us-east-1'] },
}),
targets: [new targets.LambdaFunction(fn)]
});
// Also works with L1 CfnRule
new events.CfnRule(scope, 'CfnRule', {
state: 'ENABLED',
eventPattern: AWSAPICallViaCloudTrail.awsAPICallViaCloudTrailPattern({
tlsDetails: { tlsVersion: ['TLSv1.3'] },
eventMetadata: { region: ['us-east-1'] },
}),
targets: [{ arn: fn.functionArn, id: 'L1' }]
});
Properties
| Name | Type | Description |
|---|---|---|
| cipher | string[] | cipherSuite property. |
| client | string[] | clientProvidedHostHeader property. |
| tls | string[] | tlsVersion property. |
cipherSuite?
Type:
string[]
(optional, default: Do not filter on this field)
cipherSuite property.
Specify an array of string values to match this event if the actual value of cipherSuite is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options.
clientProvidedHostHeader?
Type:
string[]
(optional, default: Do not filter on this field)
clientProvidedHostHeader property.
Specify an array of string values to match this event if the actual value of clientProvidedHostHeader is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options.
tlsVersion?
Type:
string[]
(optional, default: Do not filter on this field)
tlsVersion property.
Specify an array of string values to match this event if the actual value of tlsVersion is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options.

.NET
Go
Java
Python
TypeScript