Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Creates an endpoint using the provided settings.
- createEndpoint :: Text -> ReplicationEndpointTypeValue -> Text -> CreateEndpoint
- data CreateEndpoint
- ceServerName :: Lens' CreateEndpoint (Maybe Text)
- ceCertificateARN :: Lens' CreateEndpoint (Maybe Text)
- ceServiceAccessRoleARN :: Lens' CreateEndpoint (Maybe Text)
- ceExtraConnectionAttributes :: Lens' CreateEndpoint (Maybe Text)
- ceUsername :: Lens' CreateEndpoint (Maybe Text)
- ceExternalTableDefinition :: Lens' CreateEndpoint (Maybe Text)
- ceKMSKeyId :: Lens' CreateEndpoint (Maybe Text)
- ceMongoDBSettings :: Lens' CreateEndpoint (Maybe MongoDBSettings)
- ceSSLMode :: Lens' CreateEndpoint (Maybe DmsSSLModeValue)
- cePassword :: Lens' CreateEndpoint (Maybe Text)
- ceDatabaseName :: Lens' CreateEndpoint (Maybe Text)
- ceS3Settings :: Lens' CreateEndpoint (Maybe S3Settings)
- ceDynamoDBSettings :: Lens' CreateEndpoint (Maybe DynamoDBSettings)
- ceTags :: Lens' CreateEndpoint [Tag]
- cePort :: Lens' CreateEndpoint (Maybe Int)
- ceEndpointIdentifier :: Lens' CreateEndpoint Text
- ceEndpointType :: Lens' CreateEndpoint ReplicationEndpointTypeValue
- ceEngineName :: Lens' CreateEndpoint Text
- createEndpointResponse :: Int -> CreateEndpointResponse
- data CreateEndpointResponse
- cersEndpoint :: Lens' CreateEndpointResponse (Maybe Endpoint)
- cersResponseStatus :: Lens' CreateEndpointResponse Int
Creating a Request
Creates a value of CreateEndpoint
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ceServerName
- The name of the server where the endpoint database resides.ceCertificateARN
- The Amazon Resource Name (ARN) for the certificate.ceServiceAccessRoleARN
- The Amazon Resource Name (ARN) for the service access role you want to use to create the endpoint.ceExtraConnectionAttributes
- Additional attributes associated with the connection.ceUsername
- The user name to be used to login to the endpoint database.ceExternalTableDefinition
- The external table definition.ceKMSKeyId
- The KMS key identifier that will be used to encrypt the connection parameters. If you do not specify a value for the KmsKeyId parameter, then AWS DMS will use your default encryption key. AWS KMS creates the default encryption key for your AWS account. Your AWS account has a different default encryption key for each AWS region.ceMongoDBSettings
- Settings in JSON format for the source MongoDB endpoint. For more information about the available settings, see the Configuration Properties When Using MongoDB as a Source for AWS Database Migration Service section at Using Amazon S3 as a Target for AWS Database Migration Service .ceSSLMode
- The SSL mode to use for the SSL connection. SSL mode can be one of four values: none, require, verify-ca, verify-full. The default value is none.cePassword
- The password to be used to login to the endpoint database.ceDatabaseName
- The name of the endpoint database.ceS3Settings
- Settings in JSON format for the target Amazon S3 endpoint. For more information about the available settings, see the Extra Connection Attributes section at Using Amazon S3 as a Target for AWS Database Migration Service .ceDynamoDBSettings
- Settings in JSON format for the target Amazon DynamoDB endpoint. For more information about the available settings, see the Using Object Mapping to Migrate Data to DynamoDB section at Using an Amazon DynamoDB Database as a Target for AWS Database Migration Service .ceTags
- Tags to be added to the endpoint.cePort
- The port used by the endpoint database.ceEndpointIdentifier
- The database endpoint identifier. Identifiers must begin with a letter; must contain only ASCII letters, digits, and hyphens; and must not end with a hyphen or contain two consecutive hyphens.ceEndpointType
- The type of endpoint.ceEngineName
- The type of engine for the endpoint. Valid values, depending on the EndPointType, include mysql, oracle, postgres, mariadb, aurora, aurora-postgresql, redshift, s3, db2, azuredb, sybase, dynamodb, mongodb, and sqlserver.
data CreateEndpoint Source #
See: createEndpoint
smart constructor.
Request Lenses
ceServerName :: Lens' CreateEndpoint (Maybe Text) Source #
The name of the server where the endpoint database resides.
ceCertificateARN :: Lens' CreateEndpoint (Maybe Text) Source #
The Amazon Resource Name (ARN) for the certificate.
ceServiceAccessRoleARN :: Lens' CreateEndpoint (Maybe Text) Source #
The Amazon Resource Name (ARN) for the service access role you want to use to create the endpoint.
ceExtraConnectionAttributes :: Lens' CreateEndpoint (Maybe Text) Source #
Additional attributes associated with the connection.
ceUsername :: Lens' CreateEndpoint (Maybe Text) Source #
The user name to be used to login to the endpoint database.
ceExternalTableDefinition :: Lens' CreateEndpoint (Maybe Text) Source #
The external table definition.
ceKMSKeyId :: Lens' CreateEndpoint (Maybe Text) Source #
The KMS key identifier that will be used to encrypt the connection parameters. If you do not specify a value for the KmsKeyId parameter, then AWS DMS will use your default encryption key. AWS KMS creates the default encryption key for your AWS account. Your AWS account has a different default encryption key for each AWS region.
ceMongoDBSettings :: Lens' CreateEndpoint (Maybe MongoDBSettings) Source #
Settings in JSON format for the source MongoDB endpoint. For more information about the available settings, see the Configuration Properties When Using MongoDB as a Source for AWS Database Migration Service section at Using Amazon S3 as a Target for AWS Database Migration Service .
ceSSLMode :: Lens' CreateEndpoint (Maybe DmsSSLModeValue) Source #
The SSL mode to use for the SSL connection. SSL mode can be one of four values: none, require, verify-ca, verify-full. The default value is none.
cePassword :: Lens' CreateEndpoint (Maybe Text) Source #
The password to be used to login to the endpoint database.
ceDatabaseName :: Lens' CreateEndpoint (Maybe Text) Source #
The name of the endpoint database.
ceS3Settings :: Lens' CreateEndpoint (Maybe S3Settings) Source #
Settings in JSON format for the target Amazon S3 endpoint. For more information about the available settings, see the Extra Connection Attributes section at Using Amazon S3 as a Target for AWS Database Migration Service .
ceDynamoDBSettings :: Lens' CreateEndpoint (Maybe DynamoDBSettings) Source #
Settings in JSON format for the target Amazon DynamoDB endpoint. For more information about the available settings, see the Using Object Mapping to Migrate Data to DynamoDB section at Using an Amazon DynamoDB Database as a Target for AWS Database Migration Service .
ceEndpointIdentifier :: Lens' CreateEndpoint Text Source #
The database endpoint identifier. Identifiers must begin with a letter; must contain only ASCII letters, digits, and hyphens; and must not end with a hyphen or contain two consecutive hyphens.
ceEndpointType :: Lens' CreateEndpoint ReplicationEndpointTypeValue Source #
The type of endpoint.
ceEngineName :: Lens' CreateEndpoint Text Source #
The type of engine for the endpoint. Valid values, depending on the EndPointType, include mysql, oracle, postgres, mariadb, aurora, aurora-postgresql, redshift, s3, db2, azuredb, sybase, dynamodb, mongodb, and sqlserver.
Destructuring the Response
createEndpointResponse Source #
Creates a value of CreateEndpointResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cersEndpoint
- The endpoint that was created.cersResponseStatus
- -- | The response status code.
data CreateEndpointResponse Source #
See: createEndpointResponse
smart constructor.
Response Lenses
cersEndpoint :: Lens' CreateEndpointResponse (Maybe Endpoint) Source #
The endpoint that was created.
cersResponseStatus :: Lens' CreateEndpointResponse Int Source #
- - | The response status code.