/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the dms-2016-01-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.DatabaseMigrationService.Model { /// /// Configuration parameters for provisioning an DMS Serverless replication. /// public partial class ComputeConfig { private string _availabilityZone; private string _dnsNameServers; private string _kmsKeyId; private int? _maxCapacityUnits; private int? _minCapacityUnits; private bool? _multiAZ; private string _preferredMaintenanceWindow; private string _replicationSubnetGroupId; private List _vpcSecurityGroupIds = new List(); /// /// Gets and sets the property AvailabilityZone. /// /// The Availability Zone where the DMS Serverless replication using this configuration /// will run. The default value is a random, system-chosen Availability Zone in the configuration's /// Amazon Web Services Region, for example, "us-west-2". You can't set this /// parameter if the MultiAZ parameter is set to true. /// /// public string AvailabilityZone { get { return this._availabilityZone; } set { this._availabilityZone = value; } } // Check to see if AvailabilityZone property is set internal bool IsSetAvailabilityZone() { return this._availabilityZone != null; } /// /// Gets and sets the property DnsNameServers. /// /// A list of custom DNS name servers supported for the DMS Serverless replication to /// access your source or target database. This list overrides the default name servers /// supported by the DMS Serverless replication. You can specify a comma-separated list /// of internet addresses for up to four DNS name servers. For example: "1.1.1.1,2.2.2.2,3.3.3.3,4.4.4.4" /// /// /// public string DnsNameServers { get { return this._dnsNameServers; } set { this._dnsNameServers = value; } } // Check to see if DnsNameServers property is set internal bool IsSetDnsNameServers() { return this._dnsNameServers != null; } /// /// Gets and sets the property KmsKeyId. /// /// An Key Management Service (KMS) key Amazon Resource Name (ARN) that is used to encrypt /// the data during DMS Serverless replication. /// /// /// /// If you don't specify a value for the KmsKeyId parameter, DMS uses your /// default encryption key. /// /// /// /// KMS creates the default encryption key for your Amazon Web Services account. Your /// Amazon Web Services account has a different default encryption key for each Amazon /// Web Services Region. /// /// public string KmsKeyId { get { return this._kmsKeyId; } set { this._kmsKeyId = value; } } // Check to see if KmsKeyId property is set internal bool IsSetKmsKeyId() { return this._kmsKeyId != null; } /// /// Gets and sets the property MaxCapacityUnits. /// /// Specifies the maximum value of the DMS capacity units (DCUs) for which a given DMS /// Serverless replication can be provisioned. A single DCU is 2GB of RAM, with 2 DCUs /// as the minimum value allowed. The list of valid DCU values includes 2, 4, 8, 16, 32, /// 64, 128, 192, 256, and 384. So, the maximum value that you can specify for DMS Serverless /// is 384. The MaxCapacityUnits parameter is the only DCU parameter you /// are required to specify. /// /// public int MaxCapacityUnits { get { return this._maxCapacityUnits.GetValueOrDefault(); } set { this._maxCapacityUnits = value; } } // Check to see if MaxCapacityUnits property is set internal bool IsSetMaxCapacityUnits() { return this._maxCapacityUnits.HasValue; } /// /// Gets and sets the property MinCapacityUnits. /// /// Specifies the minimum value of the DMS capacity units (DCUs) for which a given DMS /// Serverless replication can be provisioned. A single DCU is 2GB of RAM, with 2 DCUs /// as the minimum value allowed. The list of valid DCU values includes 2, 4, 8, 16, 32, /// 64, 128, 192, 256, and 384. So, the minimum DCU value that you can specify for DMS /// Serverless is 2. You don't have to specify a value for the MinCapacityUnits /// parameter. If you don't set this value, DMS scans the current activity of available /// source tables to identify an optimum setting for this parameter. If there is no current /// source activity or DMS can't otherwise identify a more appropriate value, it sets /// this parameter to the minimum DCU value allowed, 2. /// /// public int MinCapacityUnits { get { return this._minCapacityUnits.GetValueOrDefault(); } set { this._minCapacityUnits = value; } } // Check to see if MinCapacityUnits property is set internal bool IsSetMinCapacityUnits() { return this._minCapacityUnits.HasValue; } /// /// Gets and sets the property MultiAZ. /// /// Specifies whether the DMS Serverless replication is a Multi-AZ deployment. You can't /// set the AvailabilityZone parameter if the MultiAZ parameter /// is set to true. /// /// public bool MultiAZ { get { return this._multiAZ.GetValueOrDefault(); } set { this._multiAZ = value; } } // Check to see if MultiAZ property is set internal bool IsSetMultiAZ() { return this._multiAZ.HasValue; } /// /// Gets and sets the property PreferredMaintenanceWindow. /// /// The weekly time range during which system maintenance can occur for the DMS Serverless /// replication, in Universal Coordinated Time (UTC). The format is ddd:hh24:mi-ddd:hh24:mi. /// /// /// /// The default is a 30-minute window selected at random from an 8-hour block of time /// per Amazon Web Services Region. This maintenance occurs on a random day of the week. /// Valid values for days of the week include Mon, Tue, Wed, /// Thu, Fri, Sat, and Sun. /// /// /// /// Constraints include a minimum 30-minute window. /// /// public string PreferredMaintenanceWindow { get { return this._preferredMaintenanceWindow; } set { this._preferredMaintenanceWindow = value; } } // Check to see if PreferredMaintenanceWindow property is set internal bool IsSetPreferredMaintenanceWindow() { return this._preferredMaintenanceWindow != null; } /// /// Gets and sets the property ReplicationSubnetGroupId. /// /// Specifies a subnet group identifier to associate with the DMS Serverless replication. /// /// public string ReplicationSubnetGroupId { get { return this._replicationSubnetGroupId; } set { this._replicationSubnetGroupId = value; } } // Check to see if ReplicationSubnetGroupId property is set internal bool IsSetReplicationSubnetGroupId() { return this._replicationSubnetGroupId != null; } /// /// Gets and sets the property VpcSecurityGroupIds. /// /// Specifies the virtual private cloud (VPC) security group to use with the DMS Serverless /// replication. The VPC security group must work with the VPC containing the replication. /// /// public List VpcSecurityGroupIds { get { return this._vpcSecurityGroupIds; } set { this._vpcSecurityGroupIds = value; } } // Check to see if VpcSecurityGroupIds property is set internal bool IsSetVpcSecurityGroupIds() { return this._vpcSecurityGroupIds != null && this._vpcSecurityGroupIds.Count > 0; } } }