io.burkard.cdk.services.elasticsearch.CfnDomain.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.elasticsearch
import scala.collection.JavaConverters._
@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object CfnDomain {
def apply(
internalResourceId: String,
logPublishingOptions: Option[Map[String, _]] = None,
tags: Option[List[_ <: software.amazon.awscdk.CfnTag]] = None,
domainName: Option[String] = None,
nodeToNodeEncryptionOptions: Option[software.amazon.awscdk.services.elasticsearch.CfnDomain.NodeToNodeEncryptionOptionsProperty] = None,
ebsOptions: Option[software.amazon.awscdk.services.elasticsearch.CfnDomain.EBSOptionsProperty] = None,
cognitoOptions: Option[software.amazon.awscdk.services.elasticsearch.CfnDomain.CognitoOptionsProperty] = None,
vpcOptions: Option[software.amazon.awscdk.services.elasticsearch.CfnDomain.VPCOptionsProperty] = None,
domainEndpointOptions: Option[software.amazon.awscdk.services.elasticsearch.CfnDomain.DomainEndpointOptionsProperty] = None,
accessPolicies: Option[AnyRef] = None,
advancedSecurityOptions: Option[software.amazon.awscdk.services.elasticsearch.CfnDomain.AdvancedSecurityOptionsInputProperty] = None,
encryptionAtRestOptions: Option[software.amazon.awscdk.services.elasticsearch.CfnDomain.EncryptionAtRestOptionsProperty] = None,
snapshotOptions: Option[software.amazon.awscdk.services.elasticsearch.CfnDomain.SnapshotOptionsProperty] = None,
elasticsearchClusterConfig: Option[software.amazon.awscdk.services.elasticsearch.CfnDomain.ElasticsearchClusterConfigProperty] = None,
elasticsearchVersion: Option[String] = None,
advancedOptions: Option[Map[String, String]] = None
)(implicit stackCtx: software.amazon.awscdk.Stack): software.amazon.awscdk.services.elasticsearch.CfnDomain =
software.amazon.awscdk.services.elasticsearch.CfnDomain.Builder
.create(stackCtx, internalResourceId)
.logPublishingOptions(logPublishingOptions.map(_.asJava).orNull)
.tags(tags.map(_.asJava).orNull)
.domainName(domainName.orNull)
.nodeToNodeEncryptionOptions(nodeToNodeEncryptionOptions.orNull)
.ebsOptions(ebsOptions.orNull)
.cognitoOptions(cognitoOptions.orNull)
.vpcOptions(vpcOptions.orNull)
.domainEndpointOptions(domainEndpointOptions.orNull)
.accessPolicies(accessPolicies.orNull)
.advancedSecurityOptions(advancedSecurityOptions.orNull)
.encryptionAtRestOptions(encryptionAtRestOptions.orNull)
.snapshotOptions(snapshotOptions.orNull)
.elasticsearchClusterConfig(elasticsearchClusterConfig.orNull)
.elasticsearchVersion(elasticsearchVersion.orNull)
.advancedOptions(advancedOptions.map(_.asJava).orNull)
.build()
}