Skip to content
v2.278.0

VerifiedAccessLogsProperty Struct ​

Describes the options for Verified Access logs.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
const verifiedAccessLogsProperty: ec2.CfnVerifiedAccessInstance.VerifiedAccessLogsProperty = {
  cloudWatchLogs: {
    enabled: false,
    logGroup: 'logGroup',
  },
  includeTrustContext: false,
  kinesisDataFirehose: {
    deliveryStream: 'deliveryStream',
    enabled: false,
  },
  logVersion: 'logVersion',
  s3: {
    bucketName: 'bucketName',
    bucketOwner: 'bucketOwner',
    enabled: false,
    prefix: 'prefix',
  },
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ec2 as ec2

verified_access_logs_property = ec2.CfnVerifiedAccessInstance.VerifiedAccessLogsProperty(
    cloud_watch_logs=ec2.CfnVerifiedAccessInstance.CloudWatchLogsProperty(
        enabled=False,
        log_group="logGroup"
    ),
    include_trust_context=False,
    kinesis_data_firehose=ec2.CfnVerifiedAccessInstance.KinesisDataFirehoseProperty(
        delivery_stream="deliveryStream",
        enabled=False
    ),
    log_version="logVersion",
    s3=ec2.CfnVerifiedAccessInstance.S3Property(
        bucket_name="bucketName",
        bucket_owner="bucketOwner",
        enabled=False,
        prefix="prefix"
    )
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ec2.*;

VerifiedAccessLogsProperty verifiedAccessLogsProperty = VerifiedAccessLogsProperty.builder()
        .cloudWatchLogs(CloudWatchLogsProperty.builder()
                .enabled(false)
                .logGroup("logGroup")
                .build())
        .includeTrustContext(false)
        .kinesisDataFirehose(KinesisDataFirehoseProperty.builder()
                .deliveryStream("deliveryStream")
                .enabled(false)
                .build())
        .logVersion("logVersion")
        .s3(S3Property.builder()
                .bucketName("bucketName")
                .bucketOwner("bucketOwner")
                .enabled(false)
                .prefix("prefix")
                .build())
        .build();
csharp
// 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.EC2;

var verifiedAccessLogsProperty = new VerifiedAccessLogsProperty {
    CloudWatchLogs = new CloudWatchLogsProperty {
        Enabled = false,
        LogGroup = "logGroup"
    },
    IncludeTrustContext = false,
    KinesisDataFirehose = new KinesisDataFirehoseProperty {
        DeliveryStream = "deliveryStream",
        Enabled = false
    },
    LogVersion = "logVersion",
    S3 = new S3Property {
        BucketName = "bucketName",
        BucketOwner = "bucketOwner",
        Enabled = false,
        Prefix = "prefix"
    }
};
go
// 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"

verifiedAccessLogsProperty := &VerifiedAccessLogsProperty{
	CloudWatchLogs: &CloudWatchLogsProperty{
		Enabled: jsii.Boolean(false),
		LogGroup: jsii.String("logGroup"),
	},
	IncludeTrustContext: jsii.Boolean(false),
	KinesisDataFirehose: &KinesisDataFirehoseProperty{
		DeliveryStream: jsii.String("deliveryStream"),
		Enabled: jsii.Boolean(false),
	},
	LogVersion: jsii.String("logVersion"),
	S3: &S3Property{
		BucketName: jsii.String("bucketName"),
		BucketOwner: jsii.String("bucketOwner"),
		Enabled: jsii.Boolean(false),
		Prefix: jsii.String("prefix"),
	},
}

Properties ​

cloudWatchLogsoptionalIResolvable | CfnVerifiedAccessInstance.CloudWatchLogsPropertycloud_watch_logsoptionaltyping.Union[IResolvable, CloudWatchLogsProperty]cloudWatchLogsoptionalIResolvableCloudWatchLogsoptionalIResolvableCloudWatchLogsoptionalinterface{} #
CloudWatch Logs logging destination.
includeTrustContextoptionalboolean | IResolvableinclude_trust_contextoptionaltyping.Union[bool, IResolvable]includeTrustContextoptionalBooleanIncludeTrustContextoptionalboolIncludeTrustContextoptionalinterface{} #
Indicates whether to include trust data sent by trust providers in the logs.
kinesisDataFirehoseoptionalIResolvable | CfnVerifiedAccessInstance.KinesisDataFirehosePropertykinesis_data_firehoseoptionaltyping.Union[IResolvable, KinesisDataFirehoseProperty]kinesisDataFirehoseoptionalIResolvableKinesisDataFirehoseoptionalIResolvableKinesisDataFirehoseoptionalinterface{} #
Kinesis logging destination.
logVersionoptionalstringlog_versionoptionalstrlogVersionoptionalStringLogVersionoptionalstringLogVersionoptional*string #
The logging version.

Valid values: ocsf-0.1 | ocsf-1.0.0-rc.2

s3optionalIResolvable | CfnVerifiedAccessInstance.S3Propertys3optionaltyping.Union[IResolvable, S3Property]s3optionalIResolvableS3optionalIResolvableS3optionalinterface{} #
Amazon S3 logging options.