/* * 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 rds-2014-10-31.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.RDS.Model { /// /// The data structure representing a proxy managed by the RDS Proxy. /// /// /// /// This data type is used as a response element in the DescribeDBProxies /// action. /// /// public partial class DBProxy { private List _auth = new List(); private DateTime? _createdDate; private string _dbProxyArn; private string _dbProxyName; private bool? _debugLogging; private string _endpoint; private string _engineFamily; private int? _idleClientTimeout; private bool? _requireTLS; private string _roleArn; private DBProxyStatus _status; private DateTime? _updatedDate; private string _vpcId; private List _vpcSecurityGroupIds = new List(); private List _vpcSubnetIds = new List(); /// /// Gets and sets the property Auth. /// /// One or more data structures specifying the authorization mechanism to connect to the /// associated RDS DB instance or Aurora DB cluster. /// /// public List Auth { get { return this._auth; } set { this._auth = value; } } // Check to see if Auth property is set internal bool IsSetAuth() { return this._auth != null && this._auth.Count > 0; } /// /// Gets and sets the property CreatedDate. /// /// The date and time when the proxy was first created. /// /// public DateTime CreatedDate { get { return this._createdDate.GetValueOrDefault(); } set { this._createdDate = value; } } // Check to see if CreatedDate property is set internal bool IsSetCreatedDate() { return this._createdDate.HasValue; } /// /// Gets and sets the property DBProxyArn. /// /// The Amazon Resource Name (ARN) for the proxy. /// /// public string DBProxyArn { get { return this._dbProxyArn; } set { this._dbProxyArn = value; } } // Check to see if DBProxyArn property is set internal bool IsSetDBProxyArn() { return this._dbProxyArn != null; } /// /// Gets and sets the property DBProxyName. /// /// The identifier for the proxy. This name must be unique for all proxies owned by your /// Amazon Web Services account in the specified Amazon Web Services Region. /// /// public string DBProxyName { get { return this._dbProxyName; } set { this._dbProxyName = value; } } // Check to see if DBProxyName property is set internal bool IsSetDBProxyName() { return this._dbProxyName != null; } /// /// Gets and sets the property DebugLogging. /// /// Whether the proxy includes detailed information about SQL statements in its logs. /// This information helps you to debug issues involving SQL behavior or the performance /// and scalability of the proxy connections. The debug information includes the text /// of SQL statements that you submit through the proxy. Thus, only enable this setting /// when needed for debugging, and only when you have security measures in place to safeguard /// any sensitive information that appears in the logs. /// /// public bool DebugLogging { get { return this._debugLogging.GetValueOrDefault(); } set { this._debugLogging = value; } } // Check to see if DebugLogging property is set internal bool IsSetDebugLogging() { return this._debugLogging.HasValue; } /// /// Gets and sets the property Endpoint. /// /// The endpoint that you can use to connect to the DB proxy. You include the endpoint /// value in the connection string for a database client application. /// /// public string Endpoint { get { return this._endpoint; } set { this._endpoint = value; } } // Check to see if Endpoint property is set internal bool IsSetEndpoint() { return this._endpoint != null; } /// /// Gets and sets the property EngineFamily. /// /// The kinds of databases that the proxy can connect to. This value determines which /// database network protocol the proxy recognizes when it interprets network traffic /// to and from the database. MYSQL supports Aurora MySQL, RDS for MariaDB, /// and RDS for MySQL databases. POSTGRESQL supports Aurora PostgreSQL and /// RDS for PostgreSQL databases. SQLSERVER supports RDS for Microsoft SQL /// Server databases. /// /// public string EngineFamily { get { return this._engineFamily; } set { this._engineFamily = value; } } // Check to see if EngineFamily property is set internal bool IsSetEngineFamily() { return this._engineFamily != null; } /// /// Gets and sets the property IdleClientTimeout. /// /// The number of seconds a connection to the proxy can have no activity before the proxy /// drops the client connection. The proxy keeps the underlying database connection open /// and puts it back into the connection pool for reuse by later connection requests. /// /// /// /// Default: 1800 (30 minutes) /// /// /// /// Constraints: 1 to 28,800 /// /// public int IdleClientTimeout { get { return this._idleClientTimeout.GetValueOrDefault(); } set { this._idleClientTimeout = value; } } // Check to see if IdleClientTimeout property is set internal bool IsSetIdleClientTimeout() { return this._idleClientTimeout.HasValue; } /// /// Gets and sets the property RequireTLS. /// /// Indicates whether Transport Layer Security (TLS) encryption is required for connections /// to the proxy. /// /// public bool RequireTLS { get { return this._requireTLS.GetValueOrDefault(); } set { this._requireTLS = value; } } // Check to see if RequireTLS property is set internal bool IsSetRequireTLS() { return this._requireTLS.HasValue; } /// /// Gets and sets the property RoleArn. /// /// The Amazon Resource Name (ARN) for the IAM role that the proxy uses to access Amazon /// Secrets Manager. /// /// public string RoleArn { get { return this._roleArn; } set { this._roleArn = value; } } // Check to see if RoleArn property is set internal bool IsSetRoleArn() { return this._roleArn != null; } /// /// Gets and sets the property Status. /// /// The current status of this proxy. A status of available means the proxy /// is ready to handle requests. Other values indicate that you must wait for the proxy /// to be ready, or take some action to resolve an issue. /// /// public DBProxyStatus Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } /// /// Gets and sets the property UpdatedDate. /// /// The date and time when the proxy was last updated. /// /// public DateTime UpdatedDate { get { return this._updatedDate.GetValueOrDefault(); } set { this._updatedDate = value; } } // Check to see if UpdatedDate property is set internal bool IsSetUpdatedDate() { return this._updatedDate.HasValue; } /// /// Gets and sets the property VpcId. /// /// Provides the VPC ID of the DB proxy. /// /// public string VpcId { get { return this._vpcId; } set { this._vpcId = value; } } // Check to see if VpcId property is set internal bool IsSetVpcId() { return this._vpcId != null; } /// /// Gets and sets the property VpcSecurityGroupIds. /// /// Provides a list of VPC security groups that the proxy belongs to. /// /// public List VpcSecurityGroupIds { get { return this._vpcSecurityGroupIds; } set { this._vpcSecurityGroupIds = value; } } // Check to see if VpcSecurityGroupIds property is set internal bool IsSetVpcSecurityGroupIds() { return this._vpcSecurityGroupIds != null && this._vpcSecurityGroupIds.Count > 0; } /// /// Gets and sets the property VpcSubnetIds. /// /// The EC2 subnet IDs for the proxy. /// /// public List VpcSubnetIds { get { return this._vpcSubnetIds; } set { this._vpcSubnetIds = value; } } // Check to see if VpcSubnetIds property is set internal bool IsSetVpcSubnetIds() { return this._vpcSubnetIds != null && this._vpcSubnetIds.Count > 0; } } }