/* * 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 { /// /// The Service Connect resource. Each configuration maps a discovery name to a Cloud /// Map service name. The data is stored in Cloud Map as part of the Service Connect configuration /// for each discovery name of this Amazon ECS service. /// /// /// /// A task can resolve the dnsName for each of the clientAliases /// of a service. However a task can't resolve the discovery names. If you want to connect /// to a service, refer to the ServiceConnectConfiguration of that service /// for the list of clientAliases that you can use. /// /// public partial class ServiceConnectServiceResource { private string _discoveryArn; private string _discoveryName; /// /// Gets and sets the property DiscoveryArn. /// /// The Amazon Resource Name (ARN) for the namespace in Cloud Map that matches the discovery /// name for this Service Connect resource. You can use this ARN in other integrations /// with Cloud Map. However, Service Connect can't ensure connectivity outside of Amazon /// ECS. /// /// public string DiscoveryArn { get { return this._discoveryArn; } set { this._discoveryArn = value; } } // Check to see if DiscoveryArn property is set internal bool IsSetDiscoveryArn() { return this._discoveryArn != null; } /// /// Gets and sets the property DiscoveryName. /// /// The discovery name of this Service Connect resource. /// /// /// /// The discoveryName is the name of the new Cloud Map service that Amazon /// ECS creates for this Amazon ECS service. This must be unique within the Cloud Map /// namespace. The name can contain up to 64 characters. The name can include lowercase /// letters, numbers, underscores (_), and hyphens (-). The name can't start with a hyphen. /// /// /// /// If the discoveryName isn't specified, the port mapping name from the /// task definition is used in portName.namespace. /// /// public string DiscoveryName { get { return this._discoveryName; } set { this._discoveryName = value; } } // Check to see if DiscoveryName property is set internal bool IsSetDiscoveryName() { return this._discoveryName != null; } } }