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

io.burkard.cdk.services.rds.CfnDBInstance.scala Maven / Gradle / Ivy

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

import scala.collection.JavaConverters._

@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object CfnDBInstance {

  def apply(
    internalResourceId: String,
    dbInstanceClass: String,
    vpcSecurityGroups: Option[List[String]] = None,
    dbParameterGroupName: Option[String] = None,
    monitoringRoleArn: Option[String] = None,
    storageEncrypted: Option[Boolean] = None,
    dbClusterIdentifier: Option[String] = None,
    multiAz: Option[Boolean] = None,
    performanceInsightsRetentionPeriod: Option[Number] = None,
    dbName: Option[String] = None,
    masterUserPassword: Option[String] = None,
    tags: Option[List[_ <: software.amazon.awscdk.CfnTag]] = None,
    domain: Option[String] = None,
    timezone: Option[String] = None,
    optionGroupName: Option[String] = None,
    availabilityZone: Option[String] = None,
    dbSnapshotIdentifier: Option[String] = None,
    storageType: Option[String] = None,
    caCertificateIdentifier: Option[String] = None,
    preferredMaintenanceWindow: Option[String] = None,
    autoMinorVersionUpgrade: Option[Boolean] = None,
    processorFeatures: Option[List[_]] = None,
    characterSetName: Option[String] = None,
    maxAllocatedStorage: Option[Number] = None,
    performanceInsightsKmsKeyId: Option[String] = None,
    associatedRoles: Option[List[_]] = None,
    domainIamRoleName: Option[String] = None,
    deletionProtection: Option[Boolean] = None,
    copyTagsToSnapshot: Option[Boolean] = None,
    allocatedStorage: Option[String] = None,
    allowMajorVersionUpgrade: Option[Boolean] = None,
    port: Option[String] = None,
    sourceRegion: Option[String] = None,
    backupRetentionPeriod: Option[Number] = None,
    iops: Option[Number] = None,
    deleteAutomatedBackups: Option[Boolean] = None,
    dbInstanceIdentifier: Option[String] = None,
    dbSubnetGroupName: Option[String] = None,
    licenseModel: Option[String] = None,
    kmsKeyId: Option[String] = None,
    enableCloudwatchLogsExports: Option[List[String]] = None,
    publiclyAccessible: Option[Boolean] = None,
    useDefaultProcessorFeatures: Option[Boolean] = None,
    masterUsername: Option[String] = None,
    preferredBackupWindow: Option[String] = None,
    engineVersion: Option[String] = None,
    promotionTier: Option[Number] = None,
    enableIamDatabaseAuthentication: Option[Boolean] = None,
    sourceDbInstanceIdentifier: Option[String] = None,
    engine: Option[String] = None,
    dbSecurityGroups: Option[List[String]] = None,
    monitoringInterval: Option[Number] = None,
    enablePerformanceInsights: Option[Boolean] = None
  )(implicit stackCtx: software.amazon.awscdk.Stack): software.amazon.awscdk.services.rds.CfnDBInstance =
    software.amazon.awscdk.services.rds.CfnDBInstance.Builder
      .create(stackCtx, internalResourceId)
      .dbInstanceClass(dbInstanceClass)
      .vpcSecurityGroups(vpcSecurityGroups.map(_.asJava).orNull)
      .dbParameterGroupName(dbParameterGroupName.orNull)
      .monitoringRoleArn(monitoringRoleArn.orNull)
      .storageEncrypted(storageEncrypted.map(Boolean.box).orNull)
      .dbClusterIdentifier(dbClusterIdentifier.orNull)
      .multiAz(multiAz.map(Boolean.box).orNull)
      .performanceInsightsRetentionPeriod(performanceInsightsRetentionPeriod.orNull)
      .dbName(dbName.orNull)
      .masterUserPassword(masterUserPassword.orNull)
      .tags(tags.map(_.asJava).orNull)
      .domain(domain.orNull)
      .timezone(timezone.orNull)
      .optionGroupName(optionGroupName.orNull)
      .availabilityZone(availabilityZone.orNull)
      .dbSnapshotIdentifier(dbSnapshotIdentifier.orNull)
      .storageType(storageType.orNull)
      .caCertificateIdentifier(caCertificateIdentifier.orNull)
      .preferredMaintenanceWindow(preferredMaintenanceWindow.orNull)
      .autoMinorVersionUpgrade(autoMinorVersionUpgrade.map(Boolean.box).orNull)
      .processorFeatures(processorFeatures.map(_.asJava).orNull)
      .characterSetName(characterSetName.orNull)
      .maxAllocatedStorage(maxAllocatedStorage.orNull)
      .performanceInsightsKmsKeyId(performanceInsightsKmsKeyId.orNull)
      .associatedRoles(associatedRoles.map(_.asJava).orNull)
      .domainIamRoleName(domainIamRoleName.orNull)
      .deletionProtection(deletionProtection.map(Boolean.box).orNull)
      .copyTagsToSnapshot(copyTagsToSnapshot.map(Boolean.box).orNull)
      .allocatedStorage(allocatedStorage.orNull)
      .allowMajorVersionUpgrade(allowMajorVersionUpgrade.map(Boolean.box).orNull)
      .port(port.orNull)
      .sourceRegion(sourceRegion.orNull)
      .backupRetentionPeriod(backupRetentionPeriod.orNull)
      .iops(iops.orNull)
      .deleteAutomatedBackups(deleteAutomatedBackups.map(Boolean.box).orNull)
      .dbInstanceIdentifier(dbInstanceIdentifier.orNull)
      .dbSubnetGroupName(dbSubnetGroupName.orNull)
      .licenseModel(licenseModel.orNull)
      .kmsKeyId(kmsKeyId.orNull)
      .enableCloudwatchLogsExports(enableCloudwatchLogsExports.map(_.asJava).orNull)
      .publiclyAccessible(publiclyAccessible.map(Boolean.box).orNull)
      .useDefaultProcessorFeatures(useDefaultProcessorFeatures.map(Boolean.box).orNull)
      .masterUsername(masterUsername.orNull)
      .preferredBackupWindow(preferredBackupWindow.orNull)
      .engineVersion(engineVersion.orNull)
      .promotionTier(promotionTier.orNull)
      .enableIamDatabaseAuthentication(enableIamDatabaseAuthentication.map(Boolean.box).orNull)
      .sourceDbInstanceIdentifier(sourceDbInstanceIdentifier.orNull)
      .engine(engine.orNull)
      .dbSecurityGroups(dbSecurityGroups.map(_.asJava).orNull)
      .monitoringInterval(monitoringInterval.orNull)
      .enablePerformanceInsights(enablePerformanceInsights.map(Boolean.box).orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy