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

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

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 1.11.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

import com.pulumi.awsnative.kinesisfirehose.kotlin.enums.DeliveryStreamAmazonopensearchserviceDestinationConfigurationIndexRotationPeriod
import com.pulumi.awsnative.kinesisfirehose.kotlin.enums.DeliveryStreamAmazonopensearchserviceDestinationConfigurationS3BackupMode
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 Describes the Amazon CloudWatch logging options for your delivery stream.
 * @property clusterEndpoint The endpoint to use when communicating with the cluster. Specify either this ClusterEndpoint or the DomainARN field.
 * @property documentIdOptions Indicates the method for setting up document ID. The supported methods are Firehose generated document ID and OpenSearch Service generated document ID.
 * @property domainArn The ARN of the Amazon OpenSearch Service domain.
 * @property indexName The Amazon OpenSearch Service index name.
 * @property indexRotationPeriod The Amazon OpenSearch Service index rotation period. Index rotation appends a timestamp to the IndexName to facilitate the expiration of old data.
 * @property processingConfiguration Describes a data processing configuration.
 * @property retryOptions The retry behavior in case Kinesis Data Firehose is unable to deliver documents to 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 Kinesis Data Firehose for calling the Amazon OpenSearch Service Configuration API and for indexing documents.
 * @property s3BackupMode Defines how documents should be delivered to Amazon S3.
 * @property s3Configuration Describes the configuration of a destination in Amazon S3.
 * @property typeName The Amazon OpenSearch Service type name.
 * @property vpcConfiguration The details of the VPC of the Amazon OpenSearch Service destination.
 */
public data class DeliveryStreamAmazonopensearchserviceDestinationConfiguration(
    public val bufferingHints: DeliveryStreamAmazonopensearchserviceBufferingHints? = null,
    public val cloudWatchLoggingOptions: DeliveryStreamCloudWatchLoggingOptions? = null,
    public val clusterEndpoint: String? = null,
    public val documentIdOptions: DeliveryStreamDocumentIdOptions? = null,
    public val domainArn: String? = null,
    public val indexName: String,
    public val indexRotationPeriod: DeliveryStreamAmazonopensearchserviceDestinationConfigurationIndexRotationPeriod? = null,
    public val processingConfiguration: DeliveryStreamProcessingConfiguration? = null,
    public val retryOptions: DeliveryStreamAmazonopensearchserviceRetryOptions? = null,
    public val roleArn: String,
    public val s3BackupMode: DeliveryStreamAmazonopensearchserviceDestinationConfigurationS3BackupMode? = null,
    public val s3Configuration: DeliveryStreamS3DestinationConfiguration,
    public val typeName: String? = null,
    public val vpcConfiguration: DeliveryStreamVpcConfiguration? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.kinesisfirehose.outputs.DeliveryStreamAmazonopensearchserviceDestinationConfiguration): DeliveryStreamAmazonopensearchserviceDestinationConfiguration =
            DeliveryStreamAmazonopensearchserviceDestinationConfiguration(
                bufferingHints = javaType.bufferingHints().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.awsnative.kinesisfirehose.kotlin.outputs.DeliveryStreamAmazonopensearchserviceBufferingHints.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),
                clusterEndpoint = javaType.clusterEndpoint().map({ args0 -> args0 }).orElse(null),
                documentIdOptions = javaType.documentIdOptions().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.awsnative.kinesisfirehose.kotlin.outputs.DeliveryStreamDocumentIdOptions.Companion.toKotlin(args0)
                    })
                }).orElse(null),
                domainArn = javaType.domainArn().map({ args0 -> args0 }).orElse(null),
                indexName = javaType.indexName(),
                indexRotationPeriod = javaType.indexRotationPeriod().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.awsnative.kinesisfirehose.kotlin.enums.DeliveryStreamAmazonopensearchserviceDestinationConfigurationIndexRotationPeriod.Companion.toKotlin(args0)
                    })
                }).orElse(null),
                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.DeliveryStreamAmazonopensearchserviceRetryOptions.Companion.toKotlin(args0)
                    })
                }).orElse(null),
                roleArn = javaType.roleArn(),
                s3BackupMode = javaType.s3BackupMode().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.awsnative.kinesisfirehose.kotlin.enums.DeliveryStreamAmazonopensearchserviceDestinationConfigurationS3BackupMode.Companion.toKotlin(args0)
                    })
                }).orElse(null),
                s3Configuration = javaType.s3Configuration().let({ args0 ->
                    com.pulumi.awsnative.kinesisfirehose.kotlin.outputs.DeliveryStreamS3DestinationConfiguration.Companion.toKotlin(args0)
                }),
                typeName = javaType.typeName().map({ args0 -> args0 }).orElse(null),
                vpcConfiguration = javaType.vpcConfiguration().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.awsnative.kinesisfirehose.kotlin.outputs.DeliveryStreamVpcConfiguration.Companion.toKotlin(args0)
                    })
                }).orElse(null),
            )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy