Skip to content
v2.278.0

S3Property ​

Struct External

Options for Amazon S3 as a logging destination.

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 s3Property: ec2.CfnVerifiedAccessInstance.S3Property = {
  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

s3_property = 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.*;

S3Property s3Property = S3Property.builder()
        .bucketName("bucketName")
        .bucketOwner("bucketOwner")
        .enabled(false)
        .prefix("prefix")
        .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 s3Property = 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"

s3Property := &S3Property{
	BucketName: jsii.String("bucketName"),
	BucketOwner: jsii.String("bucketOwner"),
	Enabled: jsii.Boolean(false),
	Prefix: jsii.String("prefix"),
}

Properties ​

bucketNameoptionalstringbucket_nameoptionalstrbucketNameoptionalStringBucketNameoptionalstringBucketNameoptional*string #
The bucket name.
bucketOwneroptionalstringbucket_owneroptionalstrbucketOwneroptionalStringBucketOwneroptionalstringBucketOwneroptional*string #
The AWS account number that owns the bucket.
enabledoptionalboolean | IResolvableenabledoptionaltyping.Union[bool, IResolvable]enabledoptionalBooleanEnabledoptionalboolEnabledoptionalinterface{} #
Indicates whether logging is enabled.
prefixoptionalstringprefixoptionalstrprefixoptionalStringPrefixoptionalstringPrefixoptional*string #
The bucket prefix.