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

io.burkard.cdk.services.opensearchservice.CfnDomain.scala Maven / Gradle / Ivy

The newest version!
package io.burkard.cdk.services.opensearchservice

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,
    clusterConfig: Option[software.amazon.awscdk.services.opensearchservice.CfnDomain.ClusterConfigProperty] = None,
    tags: Option[List[_ <: software.amazon.awscdk.CfnTag]] = None,
    domainName: Option[String] = None,
    nodeToNodeEncryptionOptions: Option[software.amazon.awscdk.services.opensearchservice.CfnDomain.NodeToNodeEncryptionOptionsProperty] = None,
    ebsOptions: Option[software.amazon.awscdk.services.opensearchservice.CfnDomain.EBSOptionsProperty] = None,
    cognitoOptions: Option[software.amazon.awscdk.services.opensearchservice.CfnDomain.CognitoOptionsProperty] = None,
    vpcOptions: Option[software.amazon.awscdk.services.opensearchservice.CfnDomain.VPCOptionsProperty] = None,
    domainEndpointOptions: Option[software.amazon.awscdk.services.opensearchservice.CfnDomain.DomainEndpointOptionsProperty] = None,
    accessPolicies: Option[AnyRef] = None,
    advancedSecurityOptions: Option[software.amazon.awscdk.services.opensearchservice.CfnDomain.AdvancedSecurityOptionsInputProperty] = None,
    encryptionAtRestOptions: Option[software.amazon.awscdk.services.opensearchservice.CfnDomain.EncryptionAtRestOptionsProperty] = None,
    snapshotOptions: Option[software.amazon.awscdk.services.opensearchservice.CfnDomain.SnapshotOptionsProperty] = None,
    advancedOptions: Option[Map[String, String]] = None,
    engineVersion: Option[String] = None
  )(implicit stackCtx: software.amazon.awscdk.Stack): software.amazon.awscdk.services.opensearchservice.CfnDomain =
    software.amazon.awscdk.services.opensearchservice.CfnDomain.Builder
      .create(stackCtx, internalResourceId)
      .logPublishingOptions(logPublishingOptions.map(_.asJava).orNull)
      .clusterConfig(clusterConfig.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)
      .advancedOptions(advancedOptions.map(_.asJava).orNull)
      .engineVersion(engineVersion.orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy