AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Modifies the specified endpoint.
For a MySQL source or target endpoint, don't explicitly specify the database using
the DatabaseName
request parameter on the ModifyEndpoint
API call. Specifying
DatabaseName
when you modify a MySQL endpoint replicates all the task tables
to this single database. For MySQL endpoints, you specify the database only when you
specify the schema in the table-mapping rules of the DMS task.
For .NET Core this operation is only available in asynchronous form. Please refer to ModifyEndpointAsync.
Namespace: Amazon.DatabaseMigrationService
Assembly: AWSSDK.DatabaseMigrationService.dll
Version: 3.x.y.z
public virtual ModifyEndpointResponse ModifyEndpoint( ModifyEndpointRequest request )
Container for the necessary parameters to execute the ModifyEndpoint service method.
Exception | Condition |
---|---|
AccessDeniedException | DMS was denied access to the endpoint. Check that the role is correctly configured. |
InvalidResourceStateException | The resource is in a state that prevents it from being used for database migration. |
KMSKeyNotAccessibleException | DMS cannot access the KMS key. |
ResourceAlreadyExistsException | The resource you are attempting to create already exists. |
ResourceNotFoundException | The resource could not be found. |
Modifies the specified endpoint.
var client = new AmazonDatabaseMigrationServiceClient(); var response = client.ModifyEndpoint(new ModifyEndpointRequest { CertificateArn = "", DatabaseName = "", EndpointArn = "", EndpointIdentifier = "", EndpointType = "source", EngineName = "", ExtraConnectionAttributes = "", Password = "", Port = 123, ServerName = "", SslMode = "require", Username = "" }); Endpoint endpoint = response.Endpoint;
.NET Framework:
Supported in: 4.5 and newer, 3.5