Skip to content
v2.278.0

S3PathProperty Struct ​

Information required to find a specific file in an Amazon S3 bucket.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_kendra as kendra } from 'aws-cdk-lib';
const s3PathProperty: kendra.CfnDataSource.S3PathProperty = {
  bucket: 'bucket',
  key: 'key',
};
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_kendra as kendra

s3_path_property = kendra.CfnDataSource.S3PathProperty(
    bucket="bucket",
    key="key"
)
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.kendra.*;

S3PathProperty s3PathProperty = S3PathProperty.builder()
        .bucket("bucket")
        .key("key")
        .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.Kendra;

var s3PathProperty = new S3PathProperty {
    Bucket = "bucket",
    Key = "key"
};
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"

s3PathProperty := &S3PathProperty{
	Bucket: jsii.String("bucket"),
	Key: jsii.String("key"),
}

Properties ​

bucketstringbucketstrbucketStringBucketstringBucket*string required #
The name of the S3 bucket that contains the file.
keystringkeystrkeyStringKeystringKey*string required #
The name of the file.