Skip to content
v2.278.0

S3SourceConfigProperty Struct ​

Contains information about the configuration of the S3 bucket that contains source files.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lookoutmetrics as lookoutmetrics } from 'aws-cdk-lib';
const s3SourceConfigProperty: lookoutmetrics.CfnAnomalyDetector.S3SourceConfigProperty = {
  fileFormatDescriptor: {
    csvFormatDescriptor: {
      charset: 'charset',
      containsHeader: false,
      delimiter: 'delimiter',
      fileCompression: 'fileCompression',
      headerList: ['headerList'],
      quoteSymbol: 'quoteSymbol',
    },
    jsonFormatDescriptor: {
      charset: 'charset',
      fileCompression: 'fileCompression',
    },
  },
  roleArn: 'roleArn',

  // the properties below are optional
  historicalDataPathList: ['historicalDataPathList'],
  templatedPathList: ['templatedPathList'],
};
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_lookoutmetrics as lookoutmetrics

s3_source_config_property = lookoutmetrics.CfnAnomalyDetector.S3SourceConfigProperty(
    file_format_descriptor=lookoutmetrics.CfnAnomalyDetector.FileFormatDescriptorProperty(
        csv_format_descriptor=lookoutmetrics.CfnAnomalyDetector.CsvFormatDescriptorProperty(
            charset="charset",
            contains_header=False,
            delimiter="delimiter",
            file_compression="fileCompression",
            header_list=["headerList"],
            quote_symbol="quoteSymbol"
        ),
        json_format_descriptor=lookoutmetrics.CfnAnomalyDetector.JsonFormatDescriptorProperty(
            charset="charset",
            file_compression="fileCompression"
        )
    ),
    role_arn="roleArn",

    # the properties below are optional
    historical_data_path_list=["historicalDataPathList"],
    templated_path_list=["templatedPathList"]
)
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.lookoutmetrics.*;

S3SourceConfigProperty s3SourceConfigProperty = S3SourceConfigProperty.builder()
        .fileFormatDescriptor(FileFormatDescriptorProperty.builder()
                .csvFormatDescriptor(CsvFormatDescriptorProperty.builder()
                        .charset("charset")
                        .containsHeader(false)
                        .delimiter("delimiter")
                        .fileCompression("fileCompression")
                        .headerList(List.of("headerList"))
                        .quoteSymbol("quoteSymbol")
                        .build())
                .jsonFormatDescriptor(JsonFormatDescriptorProperty.builder()
                        .charset("charset")
                        .fileCompression("fileCompression")
                        .build())
                .build())
        .roleArn("roleArn")

        // the properties below are optional
        .historicalDataPathList(List.of("historicalDataPathList"))
        .templatedPathList(List.of("templatedPathList"))
        .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.LookoutMetrics;

var s3SourceConfigProperty = new S3SourceConfigProperty {
    FileFormatDescriptor = new FileFormatDescriptorProperty {
        CsvFormatDescriptor = new CsvFormatDescriptorProperty {
            Charset = "charset",
            ContainsHeader = false,
            Delimiter = "delimiter",
            FileCompression = "fileCompression",
            HeaderList = new [] { "headerList" },
            QuoteSymbol = "quoteSymbol"
        },
        JsonFormatDescriptor = new JsonFormatDescriptorProperty {
            Charset = "charset",
            FileCompression = "fileCompression"
        }
    },
    RoleArn = "roleArn",

    // the properties below are optional
    HistoricalDataPathList = new [] { "historicalDataPathList" },
    TemplatedPathList = new [] { "templatedPathList" }
};
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"

s3SourceConfigProperty := &S3SourceConfigProperty{
	FileFormatDescriptor: &FileFormatDescriptorProperty{
		CsvFormatDescriptor: &CsvFormatDescriptorProperty{
			Charset: jsii.String("charset"),
			ContainsHeader: jsii.Boolean(false),
			Delimiter: jsii.String("delimiter"),
			FileCompression: jsii.String("fileCompression"),
			HeaderList: []*string{
				jsii.String("headerList"),
			},
			QuoteSymbol: jsii.String("quoteSymbol"),
		},
		JsonFormatDescriptor: &JsonFormatDescriptorProperty{
			Charset: jsii.String("charset"),
			FileCompression: jsii.String("fileCompression"),
		},
	},
	RoleArn: jsii.String("roleArn"),

	// the properties below are optional
	HistoricalDataPathList: []*string{
		jsii.String("historicalDataPathList"),
	},
	TemplatedPathList: []*string{
		jsii.String("templatedPathList"),
	},
}

Properties ​

fileFormatDescriptorIResolvable | CfnAnomalyDetector.FileFormatDescriptorPropertyfile_format_descriptortyping.Union[IResolvable, FileFormatDescriptorProperty]fileFormatDescriptorIResolvableFileFormatDescriptorIResolvableFileFormatDescriptorinterface{} required #
Contains information about a source file's formatting.
historicalDataPathListoptionalstring[]historical_data_path_listoptionaltyping.List[str]historicalDataPathListoptionalList<String>HistoricalDataPathListoptionalstring[]HistoricalDataPathListoptional*[]*string #
A list of paths to the historical data files.
roleArnstringrole_arnstrroleArnStringRoleArnstringRoleArn*string required #
The ARN of an IAM role that has read and write access permissions to the source S3 bucket.
templatedPathListoptionalstring[]templated_path_listoptionaltyping.List[str]templatedPathListoptionalList<String>TemplatedPathListoptionalstring[]TemplatedPathListoptional*[]*string #
A list of templated paths to the source files.