/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the dms-2016-01-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.DatabaseMigrationService.Model { /// /// Provides information that defines a Redis target endpoint. /// public partial class RedisSettings { private string _authPassword; private RedisAuthTypeValue _authType; private string _authUserName; private int? _port; private string _serverName; private string _sslCaCertificateArn; private SslSecurityProtocolValue _sslSecurityProtocol; /// /// Gets and sets the property AuthPassword. /// /// The password provided with the auth-role and auth-token /// options of the AuthType setting for a Redis target endpoint. /// /// [AWSProperty(Sensitive=true)] public string AuthPassword { get { return this._authPassword; } set { this._authPassword = value; } } // Check to see if AuthPassword property is set internal bool IsSetAuthPassword() { return this._authPassword != null; } /// /// Gets and sets the property AuthType. /// /// The type of authentication to perform when connecting to a Redis target. Options include /// none, auth-token, and auth-role. The auth-token /// option requires an AuthPassword value to be provided. The auth-role /// option requires AuthUserName and AuthPassword values to /// be provided. /// /// public RedisAuthTypeValue AuthType { get { return this._authType; } set { this._authType = value; } } // Check to see if AuthType property is set internal bool IsSetAuthType() { return this._authType != null; } /// /// Gets and sets the property AuthUserName. /// /// The user name provided with the auth-role option of the AuthType /// setting for a Redis target endpoint. /// /// public string AuthUserName { get { return this._authUserName; } set { this._authUserName = value; } } // Check to see if AuthUserName property is set internal bool IsSetAuthUserName() { return this._authUserName != null; } /// /// Gets and sets the property Port. /// /// Transmission Control Protocol (TCP) port for the endpoint. /// /// [AWSProperty(Required=true)] public int Port { get { return this._port.GetValueOrDefault(); } set { this._port = value; } } // Check to see if Port property is set internal bool IsSetPort() { return this._port.HasValue; } /// /// Gets and sets the property ServerName. /// /// Fully qualified domain name of the endpoint. /// /// [AWSProperty(Required=true)] public string ServerName { get { return this._serverName; } set { this._serverName = value; } } // Check to see if ServerName property is set internal bool IsSetServerName() { return this._serverName != null; } /// /// Gets and sets the property SslCaCertificateArn. /// /// The Amazon Resource Name (ARN) for the certificate authority (CA) that DMS uses to /// connect to your Redis target endpoint. /// /// public string SslCaCertificateArn { get { return this._sslCaCertificateArn; } set { this._sslCaCertificateArn = value; } } // Check to see if SslCaCertificateArn property is set internal bool IsSetSslCaCertificateArn() { return this._sslCaCertificateArn != null; } /// /// Gets and sets the property SslSecurityProtocol. /// /// The connection to a Redis target endpoint using Transport Layer Security (TLS). Valid /// values include plaintext and ssl-encryption. The default /// is ssl-encryption. The ssl-encryption option makes an encrypted /// connection. Optionally, you can identify an Amazon Resource Name (ARN) for an SSL /// certificate authority (CA) using the SslCaCertificateArn setting. If /// an ARN isn't given for a CA, DMS uses the Amazon root CA. /// /// /// /// The plaintext option doesn't provide Transport Layer Security (TLS) encryption /// for traffic between endpoint and database. /// /// public SslSecurityProtocolValue SslSecurityProtocol { get { return this._sslSecurityProtocol; } set { this._sslSecurityProtocol = value; } } // Check to see if SslSecurityProtocol property is set internal bool IsSetSslSecurityProtocol() { return this._sslSecurityProtocol != null; } } }