ModifyReplicationInstance
Modifies the replication instance to apply new settings. You can change one or more parameters by specifying these parameters and the new values in the request.
Some settings are applied during the maintenance window.
Request Syntax
{
   "AllocatedStorage": number,
   "AllowMajorVersionUpgrade": boolean,
   "ApplyImmediately": boolean,
   "AutoMinorVersionUpgrade": boolean,
   "EngineVersion": "string",
   "KerberosAuthenticationSettings": { 
      "KeyCacheSecretIamArn": "string",
      "KeyCacheSecretId": "string",
      "Krb5FileContents": "string"
   },
   "MultiAZ": boolean,
   "NetworkType": "string",
   "PreferredMaintenanceWindow": "string",
   "ReplicationInstanceArn": "string",
   "ReplicationInstanceClass": "string",
   "ReplicationInstanceIdentifier": "string",
   "VpcSecurityGroupIds": [ "string" ]
}Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
The request accepts the following data in JSON format.
- AllocatedStorage
- 
               The amount of storage (in gigabytes) to be allocated for the replication instance. Type: Integer Required: No 
- AllowMajorVersionUpgrade
- 
               Indicates that major version upgrades are allowed. Changing this parameter does not result in an outage, and the change is asynchronously applied as soon as possible. This parameter must be set to truewhen specifying a value for theEngineVersionparameter that is a different major version than the replication instance's current version.Type: Boolean Required: No 
- ApplyImmediately
- 
               Indicates whether the changes should be applied immediately or during the next maintenance window. Type: Boolean Required: No 
- AutoMinorVersionUpgrade
- 
               A value that indicates that minor version upgrades are applied automatically to the replication instance during the maintenance window. Changing this parameter doesn't result in an outage, except in the case described following. The change is asynchronously applied as soon as possible. An outage does result if these factors apply: - 
                     This parameter is set to trueduring the maintenance window.
- 
                     A newer minor version is available. 
- 
                     Amazon DMS has enabled automatic patching for the given engine version. 
 Type: Boolean Required: No 
- 
                     
- EngineVersion
- 
               The engine version number of the replication instance. When modifying a major engine version of an instance, also set AllowMajorVersionUpgradetotrue.Type: String Required: No 
- KerberosAuthenticationSettings
- 
               Specifies the settings required for kerberos authentication when modifying a replication instance. Type: KerberosAuthenticationSettings object Required: No 
- MultiAZ
- 
               Specifies whether the replication instance is a Multi-AZ deployment. You can't set the AvailabilityZoneparameter if the Multi-AZ parameter is set totrue.Type: Boolean Required: No 
- NetworkType
- 
               The type of IP address protocol used by a replication instance, such as IPv4 only or Dual-stack that supports both IPv4 and IPv6 addressing. IPv6 only is not yet supported. Type: String Required: No 
- PreferredMaintenanceWindow
- 
               The weekly time range (in UTC) during which system maintenance can occur, which might result in an outage. Changing this parameter does not result in an outage, except in the following situation, and the change is asynchronously applied as soon as possible. If moving this window to the current time, there must be at least 30 minutes between the current time and end of the window to ensure pending changes are applied. Default: Uses existing setting Format: ddd:hh24:mi-ddd:hh24:mi Valid Days: Mon | Tue | Wed | Thu | Fri | Sat | Sun Constraints: Must be at least 30 minutes Type: String Required: No 
- ReplicationInstanceArn
- 
               The Amazon Resource Name (ARN) of the replication instance. Type: String Required: Yes 
- ReplicationInstanceClass
- 
               The compute and memory capacity of the replication instance as defined for the specified replication instance class. For example to specify the instance class dms.c4.large, set this parameter to "dms.c4.large".For more information on the settings and capacities for the available replication instance classes, see Selecting the right Amazon DMS replication instance for your migration. Type: String Length Constraints: Maximum length of 30. Required: No 
- ReplicationInstanceIdentifier
- 
               The replication instance identifier. This parameter is stored as a lowercase string. Type: String Required: No 
- VpcSecurityGroupIds
- 
               Specifies the VPC security group to be used with the replication instance. The VPC security group must work with the VPC containing the replication instance. Type: Array of strings Required: No 
Response Syntax
{
   "ReplicationInstance": { 
      "AllocatedStorage": number,
      "AutoMinorVersionUpgrade": boolean,
      "AvailabilityZone": "string",
      "DnsNameServers": "string",
      "EngineVersion": "string",
      "FreeUntil": number,
      "InstanceCreateTime": number,
      "KerberosAuthenticationSettings": { 
         "KeyCacheSecretIamArn": "string",
         "KeyCacheSecretId": "string",
         "Krb5FileContents": "string"
      },
      "KmsKeyId": "string",
      "MultiAZ": boolean,
      "NetworkType": "string",
      "PendingModifiedValues": { 
         "AllocatedStorage": number,
         "EngineVersion": "string",
         "MultiAZ": boolean,
         "NetworkType": "string",
         "ReplicationInstanceClass": "string"
      },
      "PreferredMaintenanceWindow": "string",
      "PubliclyAccessible": boolean,
      "ReplicationInstanceArn": "string",
      "ReplicationInstanceClass": "string",
      "ReplicationInstanceIdentifier": "string",
      "ReplicationInstanceIpv6Addresses": [ "string" ],
      "ReplicationInstancePrivateIpAddress": "string",
      "ReplicationInstancePrivateIpAddresses": [ "string" ],
      "ReplicationInstancePublicIpAddress": "string",
      "ReplicationInstancePublicIpAddresses": [ "string" ],
      "ReplicationInstanceStatus": "string",
      "ReplicationSubnetGroup": { 
         "ReplicationSubnetGroupDescription": "string",
         "ReplicationSubnetGroupIdentifier": "string",
         "SubnetGroupStatus": "string",
         "Subnets": [ 
            { 
               "SubnetAvailabilityZone": { 
                  "Name": "string"
               },
               "SubnetIdentifier": "string",
               "SubnetStatus": "string"
            }
         ],
         "SupportedNetworkTypes": [ "string" ],
         "VpcId": "string"
      },
      "SecondaryAvailabilityZone": "string",
      "VpcSecurityGroups": [ 
         { 
            "Status": "string",
            "VpcSecurityGroupId": "string"
         }
      ]
   }
}Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
- ReplicationInstance
- 
               The modified replication instance. Type: ReplicationInstance object 
Errors
For information about the errors that are common to all actions, see Common Errors.
- AccessDeniedFault
- 
               Amazon DMS was denied access to the endpoint. Check that the role is correctly configured. - message
 HTTP Status Code: 400 
- InsufficientResourceCapacityFault
- 
               There are not enough resources allocated to the database migration. - message
 HTTP Status Code: 400 
- InvalidResourceStateFault
- 
               The resource is in a state that prevents it from being used for database migration. - message
 HTTP Status Code: 400 
- ResourceAlreadyExistsFault
- 
               The resource you are attempting to create already exists. - message
- resourceArn
 HTTP Status Code: 400 
- ResourceNotFoundFault
- 
               The resource could not be found. - message
 HTTP Status Code: 400 
- StorageQuotaExceededFault
- 
               The storage quota has been exceeded. - message
 HTTP Status Code: 400 
- UpgradeDependencyFailureFault
- 
               An upgrade dependency is preventing the database migration. - message
 HTTP Status Code: 400 
Examples
Example
This example illustrates one usage of ModifyReplicationInstance.
Sample Request
   
POST / HTTP/1.1
Host: dms.<region>.<domain>
x-amz-Date: <Date>
Authorization: AWS4-HMAC-SHA256 
Credential=<Credential>, 
SignedHeaders=contenttype;date;host;user-
agent;x-amz-date;x-amz-target;x-amzn-
requestid,Signature=<Signature>
User-Agent: <UserAgentString>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Connection: Keep-Alive
X-Amz-Target: AmazonDMSv20160101.ModifyReplicationInstance
{
   "ReplicationInstanceArn":"arn:aws:dms:us-east-
1:123456789012:rep:PWEBBEUNOLU7VEB2OHTEH4I4GQ",
   "AllocatedStorage":0,
   "NetworkType":"IPv4",
   "ApplyImmediately":true,
   "ReplicationInstanceClass":"dms.t3.small",
   "PreferredMaintenanceWindow":"",
   "EngineVersion":"",
   "AllowMajorVersionUpgrade":true,
   "AutoMinorVersionUpgrade":true,
   "ReplicationInstanceIdentifier":""
}
 Sample Response
 HTTP/1.1 200 OK
x-amzn-RequestId: <RequestId>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Date: <Date>
{
   "ReplicationInstance":{
      "AvailabilityZone":"us-east-1c",
      "ReplicationInstancePrivateIpAddress":"172.31.6.45",
      "ReplicationInstanceArn":"arn:aws:dms:us-east-
1:123456789012:rep:PWEBBEUNOLU7VEB2OHTEH4I4GQ",
      "ReplicationInstanceClass":"dms.t2.micro",
      "ReplicationSubnetGroup":{
         "ReplicationSubnetGroupDescription":"default",
         "Subnets":[
            {
               "SubnetStatus":"Active",
               "SubnetIdentifier":"subnet-f6dd91af",
               "SubnetAvailabilityZone":{
                  "Name":"us-east-1d"
               }
            },
            {
               "SubnetStatus":"Active",
               "SubnetIdentifier":"subnet-3605751d",
               "SubnetAvailabilityZone":{
                  "Name":"us-east-1b"
               }
            },
            {
               "SubnetStatus":"Active",
               "SubnetIdentifier":"subnet-c2daefb5",
               "SubnetAvailabilityZone":{
                  "Name":"us-east-1c"
               }
            },
            {
               "SubnetStatus":"Active",
               "SubnetIdentifier":"subnet-85e90cb8",
               "SubnetAvailabilityZone":{
                  "Name":"us-east-1e"
               }
            }
         ],
         "VpcId":"vpc-6741a603",
         "SubnetGroupStatus":"Complete",
         "ReplicationSubnetGroupIdentifier":"default"
      },
      "AutoMinorVersionUpgrade":true,
      "ReplicationInstanceStatus":"available",
      "KmsKeyId":"arn:aws:kms:us-east-1:123456789012:key/4dc17316-5543-
4ded-b1e3-d53a7cfb411d",
      "InstanceCreateTime":1457645140.38,
      "ReplicationInstancePublicIpAddress":"52.87.66.36",
      "AllocatedStorage":5,
      "EngineVersion":"1.5.0",
      "ReplicationInstanceIdentifier":"test-rep-1",
      "PubliclyAccessible":true,
      "PreferredMaintenanceWindow":"sun:06:00-sun:14:00",
      "PendingModifiedValues":{
         "ReplicationInstanceClass":"dms.t2.small"
      }
   }
}
    
 See Also
For more information about using this API in one of the language-specific Amazon SDKs, see the following: