AmazonOpenSearchServerlessDestinationConfigurationProperty Struct
Describes the configuration of a destination in the Serverless offering for Amazon OpenSearch Service.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_kinesisfirehose as kinesisfirehose } from 'aws-cdk-lib';
const amazonOpenSearchServerlessDestinationConfigurationProperty: kinesisfirehose.CfnDeliveryStream.AmazonOpenSearchServerlessDestinationConfigurationProperty = {
indexName: 'indexName',
roleArn: 'roleArn',
s3Configuration: {
bucketArn: 'bucketArn',
roleArn: 'roleArn',
// the properties below are optional
bufferingHints: {
intervalInSeconds: 123,
sizeInMBs: 123,
},
cloudWatchLoggingOptions: {
enabled: false,
logGroupName: 'logGroupName',
logStreamName: 'logStreamName',
},
compressionFormat: 'compressionFormat',
encryptionConfiguration: {
kmsEncryptionConfig: {
awskmsKeyArn: 'awskmsKeyArn',
},
noEncryptionConfig: 'noEncryptionConfig',
},
errorOutputPrefix: 'errorOutputPrefix',
prefix: 'prefix',
},
// the properties below are optional
bufferingHints: {
intervalInSeconds: 123,
sizeInMBs: 123,
},
cloudWatchLoggingOptions: {
enabled: false,
logGroupName: 'logGroupName',
logStreamName: 'logStreamName',
},
collectionEndpoint: 'collectionEndpoint',
processingConfiguration: {
enabled: false,
processors: [{
type: 'type',
// the properties below are optional
parameters: [{
parameterName: 'parameterName',
parameterValue: 'parameterValue',
}],
}],
},
retryOptions: {
durationInSeconds: 123,
},
s3BackupMode: 's3BackupMode',
vpcConfiguration: {
roleArn: 'roleArn',
securityGroupIds: ['securityGroupIds'],
subnetIds: ['subnetIds'],
},
};
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_kinesisfirehose as kinesisfirehose
amazon_open_search_serverless_destination_configuration_property = kinesisfirehose.CfnDeliveryStream.AmazonOpenSearchServerlessDestinationConfigurationProperty(
index_name="indexName",
role_arn="roleArn",
s3_configuration=kinesisfirehose.CfnDeliveryStream.S3DestinationConfigurationProperty(
bucket_arn="bucketArn",
role_arn="roleArn",
# the properties below are optional
buffering_hints=kinesisfirehose.CfnDeliveryStream.BufferingHintsProperty(
interval_in_seconds=123,
size_in_m_bs=123
),
cloud_watch_logging_options=kinesisfirehose.CfnDeliveryStream.CloudWatchLoggingOptionsProperty(
enabled=False,
log_group_name="logGroupName",
log_stream_name="logStreamName"
),
compression_format="compressionFormat",
encryption_configuration=kinesisfirehose.CfnDeliveryStream.EncryptionConfigurationProperty(
kms_encryption_config=kinesisfirehose.CfnDeliveryStream.KMSEncryptionConfigProperty(
awskms_key_arn="awskmsKeyArn"
),
no_encryption_config="noEncryptionConfig"
),
error_output_prefix="errorOutputPrefix",
prefix="prefix"
),
# the properties below are optional
buffering_hints=kinesisfirehose.CfnDeliveryStream.AmazonOpenSearchServerlessBufferingHintsProperty(
interval_in_seconds=123,
size_in_m_bs=123
),
cloud_watch_logging_options=kinesisfirehose.CfnDeliveryStream.CloudWatchLoggingOptionsProperty(
enabled=False,
log_group_name="logGroupName",
log_stream_name="logStreamName"
),
collection_endpoint="collectionEndpoint",
processing_configuration=kinesisfirehose.CfnDeliveryStream.ProcessingConfigurationProperty(
enabled=False,
processors=[kinesisfirehose.CfnDeliveryStream.ProcessorProperty(
type="type",
# the properties below are optional
parameters=[kinesisfirehose.CfnDeliveryStream.ProcessorParameterProperty(
parameter_name="parameterName",
parameter_value="parameterValue"
)]
)]
),
retry_options=kinesisfirehose.CfnDeliveryStream.AmazonOpenSearchServerlessRetryOptionsProperty(
duration_in_seconds=123
),
s3_backup_mode="s3BackupMode",
vpc_configuration=kinesisfirehose.CfnDeliveryStream.VpcConfigurationProperty(
role_arn="roleArn",
security_group_ids=["securityGroupIds"],
subnet_ids=["subnetIds"]
)
)
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.kinesisfirehose.*;
AmazonOpenSearchServerlessDestinationConfigurationProperty amazonOpenSearchServerlessDestinationConfigurationProperty = AmazonOpenSearchServerlessDestinationConfigurationProperty.builder()
.indexName("indexName")
.roleArn("roleArn")
.s3Configuration(S3DestinationConfigurationProperty.builder()
.bucketArn("bucketArn")
.roleArn("roleArn")
// the properties below are optional
.bufferingHints(BufferingHintsProperty.builder()
.intervalInSeconds(123)
.sizeInMBs(123)
.build())
.cloudWatchLoggingOptions(CloudWatchLoggingOptionsProperty.builder()
.enabled(false)
.logGroupName("logGroupName")
.logStreamName("logStreamName")
.build())
.compressionFormat("compressionFormat")
.encryptionConfiguration(EncryptionConfigurationProperty.builder()
.kmsEncryptionConfig(KMSEncryptionConfigProperty.builder()
.awskmsKeyArn("awskmsKeyArn")
.build())
.noEncryptionConfig("noEncryptionConfig")
.build())
.errorOutputPrefix("errorOutputPrefix")
.prefix("prefix")
.build())
// the properties below are optional
.bufferingHints(AmazonOpenSearchServerlessBufferingHintsProperty.builder()
.intervalInSeconds(123)
.sizeInMBs(123)
.build())
.cloudWatchLoggingOptions(CloudWatchLoggingOptionsProperty.builder()
.enabled(false)
.logGroupName("logGroupName")
.logStreamName("logStreamName")
.build())
.collectionEndpoint("collectionEndpoint")
.processingConfiguration(ProcessingConfigurationProperty.builder()
.enabled(false)
.processors(List.of(ProcessorProperty.builder()
.type("type")
// the properties below are optional
.parameters(List.of(ProcessorParameterProperty.builder()
.parameterName("parameterName")
.parameterValue("parameterValue")
.build()))
.build()))
.build())
.retryOptions(AmazonOpenSearchServerlessRetryOptionsProperty.builder()
.durationInSeconds(123)
.build())
.s3BackupMode("s3BackupMode")
.vpcConfiguration(VpcConfigurationProperty.builder()
.roleArn("roleArn")
.securityGroupIds(List.of("securityGroupIds"))
.subnetIds(List.of("subnetIds"))
.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.KinesisFirehose;
var amazonOpenSearchServerlessDestinationConfigurationProperty = new AmazonOpenSearchServerlessDestinationConfigurationProperty {
IndexName = "indexName",
RoleArn = "roleArn",
S3Configuration = new S3DestinationConfigurationProperty {
BucketArn = "bucketArn",
RoleArn = "roleArn",
// the properties below are optional
BufferingHints = new BufferingHintsProperty {
IntervalInSeconds = 123,
SizeInMBs = 123
},
CloudWatchLoggingOptions = new CloudWatchLoggingOptionsProperty {
Enabled = false,
LogGroupName = "logGroupName",
LogStreamName = "logStreamName"
},
CompressionFormat = "compressionFormat",
EncryptionConfiguration = new EncryptionConfigurationProperty {
KmsEncryptionConfig = new KMSEncryptionConfigProperty {
AwskmsKeyArn = "awskmsKeyArn"
},
NoEncryptionConfig = "noEncryptionConfig"
},
ErrorOutputPrefix = "errorOutputPrefix",
Prefix = "prefix"
},
// the properties below are optional
BufferingHints = new AmazonOpenSearchServerlessBufferingHintsProperty {
IntervalInSeconds = 123,
SizeInMBs = 123
},
CloudWatchLoggingOptions = new CloudWatchLoggingOptionsProperty {
Enabled = false,
LogGroupName = "logGroupName",
LogStreamName = "logStreamName"
},
CollectionEndpoint = "collectionEndpoint",
ProcessingConfiguration = new ProcessingConfigurationProperty {
Enabled = false,
Processors = new [] { new ProcessorProperty {
Type = "type",
// the properties below are optional
Parameters = new [] { new ProcessorParameterProperty {
ParameterName = "parameterName",
ParameterValue = "parameterValue"
} }
} }
},
RetryOptions = new AmazonOpenSearchServerlessRetryOptionsProperty {
DurationInSeconds = 123
},
S3BackupMode = "s3BackupMode",
VpcConfiguration = new VpcConfigurationProperty {
RoleArn = "roleArn",
SecurityGroupIds = new [] { "securityGroupIds" },
SubnetIds = new [] { "subnetIds" }
}
};
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"
amazonOpenSearchServerlessDestinationConfigurationProperty := &AmazonOpenSearchServerlessDestinationConfigurationProperty{
IndexName: jsii.String("indexName"),
RoleArn: jsii.String("roleArn"),
S3Configuration: &S3DestinationConfigurationProperty{
BucketArn: jsii.String("bucketArn"),
RoleArn: jsii.String("roleArn"),
// the properties below are optional
BufferingHints: &BufferingHintsProperty{
IntervalInSeconds: jsii.Number(123),
SizeInMBs: jsii.Number(123),
},
CloudWatchLoggingOptions: &CloudWatchLoggingOptionsProperty{
Enabled: jsii.Boolean(false),
LogGroupName: jsii.String("logGroupName"),
LogStreamName: jsii.String("logStreamName"),
},
CompressionFormat: jsii.String("compressionFormat"),
EncryptionConfiguration: &EncryptionConfigurationProperty{
KmsEncryptionConfig: &KMSEncryptionConfigProperty{
AwskmsKeyArn: jsii.String("awskmsKeyArn"),
},
NoEncryptionConfig: jsii.String("noEncryptionConfig"),
},
ErrorOutputPrefix: jsii.String("errorOutputPrefix"),
Prefix: jsii.String("prefix"),
},
// the properties below are optional
BufferingHints: &AmazonOpenSearchServerlessBufferingHintsProperty{
IntervalInSeconds: jsii.Number(123),
SizeInMBs: jsii.Number(123),
},
CloudWatchLoggingOptions: &CloudWatchLoggingOptionsProperty{
Enabled: jsii.Boolean(false),
LogGroupName: jsii.String("logGroupName"),
LogStreamName: jsii.String("logStreamName"),
},
CollectionEndpoint: jsii.String("collectionEndpoint"),
ProcessingConfiguration: &ProcessingConfigurationProperty{
Enabled: jsii.Boolean(false),
Processors: []interface{}{
&ProcessorProperty{
Type: jsii.String("type"),
// the properties below are optional
Parameters: []interface{}{
&ProcessorParameterProperty{
ParameterName: jsii.String("parameterName"),
ParameterValue: jsii.String("parameterValue"),
},
},
},
},
},
RetryOptions: &AmazonOpenSearchServerlessRetryOptionsProperty{
DurationInSeconds: jsii.Number(123),
},
S3BackupMode: jsii.String("s3BackupMode"),
VpcConfiguration: &VpcConfigurationProperty{
RoleArn: jsii.String("roleArn"),
SecurityGroupIds: []*string{
jsii.String("securityGroupIds"),
},
SubnetIds: []*string{
jsii.String("subnetIds"),
},
},
}
Properties
bufferingHintsoptionalIResolvable | CfnDeliveryStream.buffering_hintsoptionaltyping.Union[IResolvable, AmazonOpenSearchServerlessBufferingHintsProperty]bufferingHintsoptionalIResolvableBufferingHintsoptionalIResolvableBufferingHintsoptionalinterface{} #The buffering options.
If no value is specified, the default values for AmazonopensearchserviceBufferingHints are used.
cloudWatchLoggingOptionsoptionalIResolvable | CfnDeliveryStream.cloud_watch_logging_optionsoptionaltyping.Union[IResolvable, CloudWatchLoggingOptionsProperty]cloudWatchLoggingOptionsoptionalIResolvableCloudWatchLoggingOptionsoptionalIResolvableCloudWatchLoggingOptionsoptionalinterface{} #collectionEndpointoptionalstringcollection_endpointoptionalstrcollectionEndpointoptionalStringCollectionEndpointoptionalstringCollectionEndpointoptional*string #The endpoint to use when communicating with the collection in the Serverless offering for Amazon OpenSearch Service.
The Serverless offering for Amazon OpenSearch Service index name.
processingConfigurationoptionalIResolvable | CfnDeliveryStream.processing_configurationoptionaltyping.Union[IResolvable, ProcessingConfigurationProperty]processingConfigurationoptionalIResolvableProcessingConfigurationoptionalIResolvableProcessingConfigurationoptionalinterface{} #retryOptionsoptionalIResolvable | CfnDeliveryStream.retry_optionsoptionaltyping.Union[IResolvable, AmazonOpenSearchServerlessRetryOptionsProperty]retryOptionsoptionalIResolvableRetryOptionsoptionalIResolvableRetryOptionsoptionalinterface{} #The retry behavior in case Firehose is unable to deliver documents to the Serverless offering for Amazon OpenSearch Service.
The default value is 300 (5 minutes).
The Amazon Resource Name (ARN) of the IAM role to be assumed by Firehose for calling the Serverless offering for Amazon OpenSearch Service Configuration API and for indexing documents.
s3BackupModeoptionalstrings3_backup_modeoptionalstrs3BackupModeoptionalStringS3BackupModeoptionalstringS3BackupModeoptional*string #Defines how documents should be delivered to Amazon S3.
notes
When it is set to FailedDocumentsOnly, Firehose writes any documents that could not be indexed to the configured Amazon S3 destination, with AmazonOpenSearchService-failed/ appended to the key prefix. When set to AllDocuments, Firehose delivers all incoming records to Amazon S3, and also writes failed documents with AmazonOpenSearchService-failed/ appended to the prefix.
s3ConfigurationIResolvable | CfnDeliveryStream.s3_configurationtyping.Union[IResolvable, S3DestinationConfigurationProperty]s3ConfigurationIResolvableS3ConfigurationIResolvableS3Configurationinterface{} required #vpcConfigurationoptionalIResolvable | CfnDeliveryStream.vpc_configurationoptionaltyping.Union[IResolvable, VpcConfigurationProperty]vpcConfigurationoptionalIResolvableVpcConfigurationoptionalIResolvableVpcConfigurationoptionalinterface{} #