Interface DatabaseInstanceSourceProps

All Superinterfaces:
DatabaseInstanceNewProps, software.amazon.jsii.JsiiSerializable
All Known Subinterfaces:
DatabaseInstanceFromSnapshotProps, DatabaseInstanceProps
All Known Implementing Classes:
DatabaseInstanceFromSnapshotProps.Jsii$Proxy, DatabaseInstanceProps.Jsii$Proxy, DatabaseInstanceSourceProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:49.162Z") @Stability(Stable) public interface DatabaseInstanceSourceProps extends software.amazon.jsii.JsiiSerializable, DatabaseInstanceNewProps
Construction properties for a DatabaseInstanceSource.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.ec2.*;
 import software.amazon.awscdk.services.iam.*;
 import software.amazon.awscdk.services.kms.*;
 import software.amazon.awscdk.services.logs.*;
 import software.amazon.awscdk.services.rds.*;
 import software.amazon.awscdk.services.s3.*;
 import software.amazon.awscdk.core.*;
 Bucket bucket;
 IInstanceEngine instanceEngine;
 InstanceType instanceType;
 Key key;
 OptionGroup optionGroup;
 ParameterGroup parameterGroup;
 Role role;
 SecurityGroup securityGroup;
 Subnet subnet;
 SubnetFilter subnetFilter;
 SubnetGroup subnetGroup;
 Vpc vpc;
 DatabaseInstanceSourceProps databaseInstanceSourceProps = DatabaseInstanceSourceProps.builder()
         .engine(instanceEngine)
         .vpc(vpc)
         // the properties below are optional
         .allocatedStorage(123)
         .allowMajorVersionUpgrade(false)
         .autoMinorVersionUpgrade(false)
         .availabilityZone("availabilityZone")
         .backupRetention(Duration.minutes(30))
         .cloudwatchLogsExports(List.of("cloudwatchLogsExports"))
         .cloudwatchLogsRetention(RetentionDays.ONE_DAY)
         .cloudwatchLogsRetentionRole(role)
         .copyTagsToSnapshot(false)
         .databaseName("databaseName")
         .deleteAutomatedBackups(false)
         .deletionProtection(false)
         .domain("domain")
         .domainRole(role)
         .enablePerformanceInsights(false)
         .iamAuthentication(false)
         .instanceIdentifier("instanceIdentifier")
         .instanceType(instanceType)
         .iops(123)
         .licenseModel(LicenseModel.LICENSE_INCLUDED)
         .maxAllocatedStorage(123)
         .monitoringInterval(Duration.minutes(30))
         .monitoringRole(role)
         .multiAz(false)
         .optionGroup(optionGroup)
         .parameterGroup(parameterGroup)
         .parameters(Map.of(
                 "parametersKey", "parameters"))
         .performanceInsightEncryptionKey(key)
         .performanceInsightRetention(PerformanceInsightRetention.DEFAULT)
         .port(123)
         .preferredBackupWindow("preferredBackupWindow")
         .preferredMaintenanceWindow("preferredMaintenanceWindow")
         .processorFeatures(ProcessorFeatures.builder()
                 .coreCount(123)
                 .threadsPerCore(123)
                 .build())
         .publiclyAccessible(false)
         .removalPolicy(RemovalPolicy.DESTROY)
         .s3ExportBuckets(List.of(bucket))
         .s3ExportRole(role)
         .s3ImportBuckets(List.of(bucket))
         .s3ImportRole(role)
         .securityGroups(List.of(securityGroup))
         .storageType(StorageType.STANDARD)
         .subnetGroup(subnetGroup)
         .timezone("timezone")
         .vpcPlacement(SubnetSelection.builder()
                 .availabilityZones(List.of("availabilityZones"))
                 .onePerAz(false)
                 .subnetFilters(List.of(subnetFilter))
                 .subnetGroupName("subnetGroupName")
                 .subnetName("subnetName")
                 .subnets(List.of(subnet))
                 .subnetType(SubnetType.ISOLATED)
                 .build())
         .vpcSubnets(SubnetSelection.builder()
                 .availabilityZones(List.of("availabilityZones"))
                 .onePerAz(false)
                 .subnetFilters(List.of(subnetFilter))
                 .subnetGroupName("subnetGroupName")
                 .subnetName("subnetName")
                 .subnets(List.of(subnet))
                 .subnetType(SubnetType.ISOLATED)
                 .build())
         .build();
 
  • Method Details

    • getEngine

      @Stability(Stable) @NotNull IInstanceEngine getEngine()
      The database engine.
    • getAllocatedStorage

      @Stability(Stable) @Nullable default Number getAllocatedStorage()
      The allocated storage size, specified in gigabytes (GB).

      Default: 100

    • getAllowMajorVersionUpgrade

      @Stability(Stable) @Nullable default Boolean getAllowMajorVersionUpgrade()
      Whether to allow major version upgrades.

      Default: false

    • getDatabaseName

      @Stability(Stable) @Nullable default String getDatabaseName()
      The name of the database.

      Default: - no name

    • getInstanceType

      @Stability(Stable) @Nullable default InstanceType getInstanceType()
      The name of the compute and memory capacity for the instance.

      Default: - m5.large (or, more specifically, db.m5.large)

    • getLicenseModel

      @Stability(Stable) @Nullable default LicenseModel getLicenseModel()
      The license model.

      Default: - RDS default license model

    • getParameters

      @Stability(Stable) @Nullable default Map<String,String> getParameters()
      The parameters in the DBParameterGroup to create automatically.

      You can only specify parameterGroup or parameters but not both. You need to use a versioned engine to auto-generate a DBParameterGroup.

      Default: - None

    • getTimezone

      @Stability(Stable) @Nullable default String getTimezone()
      The time zone of the instance.

      This is currently supported only by Microsoft Sql Server.

      Default: - RDS default timezone

    • builder

      @Stability(Stable) static DatabaseInstanceSourceProps.Builder builder()
      Returns:
      a DatabaseInstanceSourceProps.Builder of DatabaseInstanceSourceProps