Menu
AWS Database Migration Service
API Reference (API Version 2016-01-01)

DeleteEndpoint

Deletes the specified endpoint.

Note

All tasks associated with the endpoint must be deleted before you can delete the endpoint.

Request Syntax

{
   "EndpointArn": "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.

EndpointArn

The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.

Type: String

Required: Yes

Response Syntax

{
   "Endpoint": { 
      "CertificateArn": "string",
      "DatabaseName": "string",
      "DynamoDbSettings": { 
         "ServiceAccessRoleArn": "string"
      },
      "EndpointArn": "string",
      "EndpointIdentifier": "string",
      "EndpointType": "string",
      "EngineName": "string",
      "ExternalId": "string",
      "ExtraConnectionAttributes": "string",
      "KmsKeyId": "string",
      "MongoDbSettings": { 
         "AuthMechanism": "string",
         "AuthSource": "string",
         "AuthType": "string",
         "DatabaseName": "string",
         "DocsToInvestigate": "string",
         "ExtractDocId": "string",
         "NestingLevel": "string",
         "Password": "string",
         "Port": number,
         "ServerName": "string",
         "Username": "string"
      },
      "Port": number,
      "S3Settings": { 
         "BucketFolder": "string",
         "BucketName": "string",
         "CompressionType": "string",
         "CsvDelimiter": "string",
         "CsvRowDelimiter": "string",
         "ExternalTableDefinition": "string",
         "ServiceAccessRoleArn": "string"
      },
      "ServerName": "string",
      "SslMode": "string",
      "Status": "string",
      "Username": "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.

Endpoint

The endpoint that was deleted.

Type: Endpoint object

Errors

For information about the errors that are common to all actions, see Common Errors.

InvalidResourceStateFault

The resource is in a state that prevents it from being used for database migration.

HTTP Status Code: 400

ResourceNotFoundFault

The resource could not be found.

HTTP Status Code: 400

Example

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.DeleteEndpoint
{
"EndpointArn": "arn:aws:dms:us-east-
1:152683116123:endpoint:RAAR3R22XSH46S3PWLC3NJAWKM"
}
 

Sample Response


 HTTP/1.1 200 OK
x-amzn-RequestId: <RequestId>
Content-Type: application/x-amz-json-1.1
Content-Length: <PayloadSizeBytes>
Date: <Date>
{
   "Endpoint":{
      "Username":"username",
      "Status":"deleting",
      "EndpointArn":"arn:aws:dms:us-east-
1:152683116123:endpoint:RAAR3R22XSH46S3PWLC3NJAWKM",
      "ServerName":"apurvap-source.cxln7iyxx1lo.us-west-
2.rds.amazonaws.com",
      "EndpointType":"TARGET",
      "KmsKeyId":"arn:aws:kms:us-east-1:152683116123:key/4dc17316-5543-
4ded-b1e3-d53a7cfb411d",
      "ExtraConnectionAttributes":"parallelLoadThreads=1",
      "EngineName":"mysql",
      "EndpointIdentifier":"test-endpoint-1",
      "Port":3306
   }
}
    
 

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: