Class CfnDeliveryStream.ElasticsearchDestinationConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.ElasticsearchDestinationConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDeliveryStream.ElasticsearchDestinationConfigurationProperty>
- Enclosing interface:
CfnDeliveryStream.ElasticsearchDestinationConfigurationProperty
@Stability(Stable)
public static final class CfnDeliveryStream.ElasticsearchDestinationConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDeliveryStream.ElasticsearchDestinationConfigurationProperty>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbufferingHints
(IResolvable bufferingHints) bufferingHints
(CfnDeliveryStream.ElasticsearchBufferingHintsProperty bufferingHints) build()
Builds the configured instance.cloudWatchLoggingOptions
(IResolvable cloudWatchLoggingOptions) cloudWatchLoggingOptions
(CfnDeliveryStream.CloudWatchLoggingOptionsProperty cloudWatchLoggingOptions) clusterEndpoint
(String clusterEndpoint) documentIdOptions
(IResolvable documentIdOptions) documentIdOptions
(CfnDeliveryStream.DocumentIdOptionsProperty documentIdOptions) indexRotationPeriod
(String indexRotationPeriod) processingConfiguration
(IResolvable processingConfiguration) processingConfiguration
(CfnDeliveryStream.ProcessingConfigurationProperty processingConfiguration) retryOptions
(IResolvable retryOptions) s3BackupMode
(String s3BackupMode) s3Configuration
(IResolvable s3Configuration) s3Configuration
(CfnDeliveryStream.S3DestinationConfigurationProperty s3Configuration) vpcConfiguration
(IResolvable vpcConfiguration) vpcConfiguration
(CfnDeliveryStream.VpcConfigurationProperty vpcConfiguration)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
indexName
@Stability(Stable) public CfnDeliveryStream.ElasticsearchDestinationConfigurationProperty.Builder indexName(String indexName) - Parameters:
indexName
- The name of the Elasticsearch index to which Kinesis Data Firehose adds data for indexing. This parameter is required.- Returns:
this
-
roleArn
@Stability(Stable) public CfnDeliveryStream.ElasticsearchDestinationConfigurationProperty.Builder roleArn(String roleArn) - Parameters:
roleArn
- The Amazon Resource Name (ARN) of the IAM role to be assumed by Kinesis Data Firehose for calling the Amazon ES Configuration API and for indexing documents. This parameter is required. For more information, see Controlling Access with Amazon Kinesis Data Firehose .- Returns:
this
-
s3Configuration
@Stability(Stable) public CfnDeliveryStream.ElasticsearchDestinationConfigurationProperty.Builder s3Configuration(IResolvable s3Configuration) Sets the value ofCfnDeliveryStream.ElasticsearchDestinationConfigurationProperty.getS3Configuration()
- Parameters:
s3Configuration
- The S3 bucket where Kinesis Data Firehose backs up incoming data. This parameter is required.- Returns:
this
-
s3Configuration
@Stability(Stable) public CfnDeliveryStream.ElasticsearchDestinationConfigurationProperty.Builder s3Configuration(CfnDeliveryStream.S3DestinationConfigurationProperty s3Configuration) Sets the value ofCfnDeliveryStream.ElasticsearchDestinationConfigurationProperty.getS3Configuration()
- Parameters:
s3Configuration
- The S3 bucket where Kinesis Data Firehose backs up incoming data. This parameter is required.- Returns:
this
-
bufferingHints
@Stability(Stable) public CfnDeliveryStream.ElasticsearchDestinationConfigurationProperty.Builder bufferingHints(IResolvable bufferingHints) Sets the value ofCfnDeliveryStream.ElasticsearchDestinationConfigurationProperty.getBufferingHints()
- Parameters:
bufferingHints
- Configures how Kinesis Data Firehose buffers incoming data while delivering it to the Amazon ES domain.- Returns:
this
-
bufferingHints
@Stability(Stable) public CfnDeliveryStream.ElasticsearchDestinationConfigurationProperty.Builder bufferingHints(CfnDeliveryStream.ElasticsearchBufferingHintsProperty bufferingHints) Sets the value ofCfnDeliveryStream.ElasticsearchDestinationConfigurationProperty.getBufferingHints()
- Parameters:
bufferingHints
- Configures how Kinesis Data Firehose buffers incoming data while delivering it to the Amazon ES domain.- Returns:
this
-
cloudWatchLoggingOptions
@Stability(Stable) public CfnDeliveryStream.ElasticsearchDestinationConfigurationProperty.Builder cloudWatchLoggingOptions(IResolvable cloudWatchLoggingOptions) Sets the value ofCfnDeliveryStream.ElasticsearchDestinationConfigurationProperty.getCloudWatchLoggingOptions()
- Parameters:
cloudWatchLoggingOptions
- The Amazon CloudWatch Logs logging options for the delivery stream.- Returns:
this
-
cloudWatchLoggingOptions
@Stability(Stable) public CfnDeliveryStream.ElasticsearchDestinationConfigurationProperty.Builder cloudWatchLoggingOptions(CfnDeliveryStream.CloudWatchLoggingOptionsProperty cloudWatchLoggingOptions) Sets the value ofCfnDeliveryStream.ElasticsearchDestinationConfigurationProperty.getCloudWatchLoggingOptions()
- Parameters:
cloudWatchLoggingOptions
- The Amazon CloudWatch Logs logging options for the delivery stream.- Returns:
this
-
clusterEndpoint
@Stability(Stable) public CfnDeliveryStream.ElasticsearchDestinationConfigurationProperty.Builder clusterEndpoint(String clusterEndpoint) Sets the value ofCfnDeliveryStream.ElasticsearchDestinationConfigurationProperty.getClusterEndpoint()
- Parameters:
clusterEndpoint
- The endpoint to use when communicating with the cluster. Specify either thisClusterEndpoint
or theDomainARN
field.- Returns:
this
-
documentIdOptions
@Stability(Stable) public CfnDeliveryStream.ElasticsearchDestinationConfigurationProperty.Builder documentIdOptions(IResolvable documentIdOptions) Sets the value ofCfnDeliveryStream.ElasticsearchDestinationConfigurationProperty.getDocumentIdOptions()
- Parameters:
documentIdOptions
- Indicates the method for setting up document ID. The supported methods are Firehose generated document ID and OpenSearch Service generated document ID.- Returns:
this
-
documentIdOptions
@Stability(Stable) public CfnDeliveryStream.ElasticsearchDestinationConfigurationProperty.Builder documentIdOptions(CfnDeliveryStream.DocumentIdOptionsProperty documentIdOptions) Sets the value ofCfnDeliveryStream.ElasticsearchDestinationConfigurationProperty.getDocumentIdOptions()
- Parameters:
documentIdOptions
- Indicates the method for setting up document ID. The supported methods are Firehose generated document ID and OpenSearch Service generated document ID.- Returns:
this
-
domainArn
@Stability(Stable) public CfnDeliveryStream.ElasticsearchDestinationConfigurationProperty.Builder domainArn(String domainArn) - Parameters:
domainArn
- The ARN of the Amazon ES domain. The IAM role must have permissions forDescribeElasticsearchDomain
,DescribeElasticsearchDomains
, andDescribeElasticsearchDomainConfig
after assuming the role specified in RoleARN .Specify either
ClusterEndpoint
orDomainARN
.- Returns:
this
-
indexRotationPeriod
@Stability(Stable) public CfnDeliveryStream.ElasticsearchDestinationConfigurationProperty.Builder indexRotationPeriod(String indexRotationPeriod) Sets the value ofCfnDeliveryStream.ElasticsearchDestinationConfigurationProperty.getIndexRotationPeriod()
- Parameters:
indexRotationPeriod
- The frequency of Elasticsearch index rotation. If you enable index rotation, Kinesis Data Firehose appends a portion of the UTC arrival timestamp to the specified index name, and rotates the appended timestamp accordingly. For more information, see Index Rotation for the Amazon ES Destination in the Amazon Kinesis Data Firehose Developer Guide .- Returns:
this
-
processingConfiguration
@Stability(Stable) public CfnDeliveryStream.ElasticsearchDestinationConfigurationProperty.Builder processingConfiguration(IResolvable processingConfiguration) Sets the value ofCfnDeliveryStream.ElasticsearchDestinationConfigurationProperty.getProcessingConfiguration()
- Parameters:
processingConfiguration
- The data processing configuration for the Kinesis Data Firehose delivery stream.- Returns:
this
-
processingConfiguration
@Stability(Stable) public CfnDeliveryStream.ElasticsearchDestinationConfigurationProperty.Builder processingConfiguration(CfnDeliveryStream.ProcessingConfigurationProperty processingConfiguration) Sets the value ofCfnDeliveryStream.ElasticsearchDestinationConfigurationProperty.getProcessingConfiguration()
- Parameters:
processingConfiguration
- The data processing configuration for the Kinesis Data Firehose delivery stream.- Returns:
this
-
retryOptions
@Stability(Stable) public CfnDeliveryStream.ElasticsearchDestinationConfigurationProperty.Builder retryOptions(IResolvable retryOptions) - Parameters:
retryOptions
- The retry behavior when Kinesis Data Firehose is unable to deliver data to Amazon ES.- Returns:
this
-
retryOptions
@Stability(Stable) public CfnDeliveryStream.ElasticsearchDestinationConfigurationProperty.Builder retryOptions(CfnDeliveryStream.ElasticsearchRetryOptionsProperty retryOptions) - Parameters:
retryOptions
- The retry behavior when Kinesis Data Firehose is unable to deliver data to Amazon ES.- Returns:
this
-
s3BackupMode
@Stability(Stable) public CfnDeliveryStream.ElasticsearchDestinationConfigurationProperty.Builder s3BackupMode(String s3BackupMode) - Parameters:
s3BackupMode
- The condition under which Kinesis Data Firehose delivers data to Amazon Simple Storage Service (Amazon S3). You can send Amazon S3 all documents (all data) or only the documents that Kinesis Data Firehose could not deliver to the Amazon ES destination. For more information and valid values, see theS3BackupMode
content for the ElasticsearchDestinationConfiguration data type in the Amazon Kinesis Data Firehose API Reference .- Returns:
this
-
typeName
@Stability(Stable) public CfnDeliveryStream.ElasticsearchDestinationConfigurationProperty.Builder typeName(String typeName) - Parameters:
typeName
- The Elasticsearch type name that Amazon ES adds to documents when indexing data.- Returns:
this
-
vpcConfiguration
@Stability(Stable) public CfnDeliveryStream.ElasticsearchDestinationConfigurationProperty.Builder vpcConfiguration(IResolvable vpcConfiguration) Sets the value ofCfnDeliveryStream.ElasticsearchDestinationConfigurationProperty.getVpcConfiguration()
- Parameters:
vpcConfiguration
- The details of the VPC of the Amazon ES destination.- Returns:
this
-
vpcConfiguration
@Stability(Stable) public CfnDeliveryStream.ElasticsearchDestinationConfigurationProperty.Builder vpcConfiguration(CfnDeliveryStream.VpcConfigurationProperty vpcConfiguration) Sets the value ofCfnDeliveryStream.ElasticsearchDestinationConfigurationProperty.getVpcConfiguration()
- Parameters:
vpcConfiguration
- The details of the VPC of the Amazon ES destination.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDeliveryStream.ElasticsearchDestinationConfigurationProperty>
- Returns:
- a new instance of
CfnDeliveryStream.ElasticsearchDestinationConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-