/*
* 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 ecs-2014-11-13.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.ECS.Model
{
///
/// Each alias ("endpoint") is a fully-qualified name and port number that other tasks
/// ("clients") can use to connect to this service.
///
///
///
/// Each name and port mapping must be unique within the namespace.
///
///
///
/// Tasks that run in a namespace can use short names to connect to services in the namespace.
/// Tasks can connect to services across all of the clusters in the namespace. Tasks connect
/// through a managed proxy container that collects logs and metrics for increased visibility.
/// Only the tasks that Amazon ECS services create are supported with Service Connect.
/// For more information, see Service
/// Connect in the Amazon Elastic Container Service Developer Guide.
///
///
public partial class ServiceConnectClientAlias
{
private string _dnsName;
private int? _port;
///
/// Gets and sets the property DnsName.
///
/// The dnsName
is the name that you use in the applications of client tasks
/// to connect to this service. The name must be a valid DNS name but doesn't need to
/// be fully-qualified. The name can include up to 127 characters. The name can include
/// lowercase letters, numbers, underscores (_), hyphens (-), and periods (.). The name
/// can't start with a hyphen.
///
///
///
/// If this parameter isn't specified, the default value of discoveryName.namespace
/// is used. If the discoveryName
isn't specified, the port mapping name
/// from the task definition is used in portName.namespace
.
///
///
///
/// To avoid changing your applications in client Amazon ECS services, set this to the
/// same name that the client application uses by default. For example, a few common names
/// are database
, db
, or the lowercase name of a database, such
/// as mysql
or redis
. For more information, see Service
/// Connect in the Amazon Elastic Container Service Developer Guide.
///
///
public string DnsName
{
get { return this._dnsName; }
set { this._dnsName = value; }
}
// Check to see if DnsName property is set
internal bool IsSetDnsName()
{
return this._dnsName != null;
}
///
/// Gets and sets the property Port.
///
/// The listening port number for the Service Connect proxy. This port is available inside
/// of all of the tasks within the same namespace.
///
///
///
/// To avoid changing your applications in client Amazon ECS services, set this to the
/// same port that the client application uses by default. For more information, see Service
/// Connect in the Amazon Elastic Container Service Developer Guide.
///
///
[AWSProperty(Required=true, Min=0, Max=65535)]
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;
}
}
}