All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.awsnative.kinesisfirehose.kotlin.outputs.DeliveryStreamAmazonOpenSearchServerlessDestinationConfiguration.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.kinesisfirehose.kotlin.outputs

import com.pulumi.awsnative.kinesisfirehose.kotlin.enums.DeliveryStreamAmazonOpenSearchServerlessDestinationConfigurationS3BackupMode
import kotlin.String
import kotlin.Suppress

/**
 *
 * @property bufferingHints The buffering options. If no value is specified, the default values for AmazonopensearchserviceBufferingHints are used.
 * @property cloudWatchLoggingOptions
 * @property collectionEndpoint The endpoint to use when communicating with the collection in the Serverless offering for Amazon OpenSearch Service.
 * @property indexName The Serverless offering for Amazon OpenSearch Service index name.
 * @property processingConfiguration
 * @property retryOptions 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).
 * @property roleArn 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.
 * @property s3BackupMode Defines how documents should be delivered to Amazon S3. 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.
 * @property s3Configuration
 * @property vpcConfiguration
 */
public data class DeliveryStreamAmazonOpenSearchServerlessDestinationConfiguration(
    public val bufferingHints: DeliveryStreamAmazonOpenSearchServerlessBufferingHints? = null,
    public val cloudWatchLoggingOptions: DeliveryStreamCloudWatchLoggingOptions? = null,
    public val collectionEndpoint: String? = null,
    public val indexName: String,
    public val processingConfiguration: DeliveryStreamProcessingConfiguration? = null,
    public val retryOptions: DeliveryStreamAmazonOpenSearchServerlessRetryOptions? = null,
    public val roleArn: String,
    public val s3BackupMode: DeliveryStreamAmazonOpenSearchServerlessDestinationConfigurationS3BackupMode? = null,
    public val s3Configuration: DeliveryStreamS3DestinationConfiguration,
    public val vpcConfiguration: DeliveryStreamVpcConfiguration? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.kinesisfirehose.outputs.DeliveryStreamAmazonOpenSearchServerlessDestinationConfiguration): DeliveryStreamAmazonOpenSearchServerlessDestinationConfiguration =
            DeliveryStreamAmazonOpenSearchServerlessDestinationConfiguration(
                bufferingHints = javaType.bufferingHints().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.awsnative.kinesisfirehose.kotlin.outputs.DeliveryStreamAmazonOpenSearchServerlessBufferingHints.Companion.toKotlin(args0)
                    })
                }).orElse(null),
                cloudWatchLoggingOptions = javaType.cloudWatchLoggingOptions().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.awsnative.kinesisfirehose.kotlin.outputs.DeliveryStreamCloudWatchLoggingOptions.Companion.toKotlin(args0)
                    })
                }).orElse(null),
                collectionEndpoint = javaType.collectionEndpoint().map({ args0 -> args0 }).orElse(null),
                indexName = javaType.indexName(),
                processingConfiguration = javaType.processingConfiguration().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.awsnative.kinesisfirehose.kotlin.outputs.DeliveryStreamProcessingConfiguration.Companion.toKotlin(args0)
                    })
                }).orElse(null),
                retryOptions = javaType.retryOptions().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.awsnative.kinesisfirehose.kotlin.outputs.DeliveryStreamAmazonOpenSearchServerlessRetryOptions.Companion.toKotlin(args0)
                    })
                }).orElse(null),
                roleArn = javaType.roleArn(),
                s3BackupMode = javaType.s3BackupMode().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.awsnative.kinesisfirehose.kotlin.enums.DeliveryStreamAmazonOpenSearchServerlessDestinationConfigurationS3BackupMode.Companion.toKotlin(args0)
                    })
                }).orElse(null),
                s3Configuration = javaType.s3Configuration().let({ args0 ->
                    com.pulumi.awsnative.kinesisfirehose.kotlin.outputs.DeliveryStreamS3DestinationConfiguration.Companion.toKotlin(args0)
                }),
                vpcConfiguration = javaType.vpcConfiguration().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.awsnative.kinesisfirehose.kotlin.outputs.DeliveryStreamVpcConfiguration.Companion.toKotlin(args0)
                    })
                }).orElse(null),
            )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy