AWS SDK Version 3 for .NET
API Reference

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.

Note:

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

Syntax

C#
public virtual ModifyEndpointResponse ModifyEndpoint(
         ModifyEndpointRequest request
)

Parameters

request
Type: Amazon.DatabaseMigrationService.Model.ModifyEndpointRequest

Container for the necessary parameters to execute the ModifyEndpoint service method.

Return Value


The response from the ModifyEndpoint service method, as returned by DatabaseMigrationService.

Exceptions

ExceptionCondition
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.

Examples

Modifies the specified endpoint.

Modify 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;

            

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5

See Also