AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

A complex type that contains information about the specified service.

Inheritance Hierarchy

System.Object
  Amazon.ServiceDiscovery.Model.Service

Namespace: Amazon.ServiceDiscovery.Model
Assembly: AWSSDK.ServiceDiscovery.dll
Version: 3.x.y.z

Syntax

C#
public class Service

The Service type exposes the following members

Constructors

NameDescription
Public Method Service()

Properties

NameTypeDescription
Public Property Arn System.String

Gets and sets the property Arn.

The Amazon Resource Name (ARN) that Cloud Map assigns to the service when you create it.

Public Property CreateDate System.DateTime

Gets and sets the property CreateDate.

The date and time that the service was created, in Unix format and Coordinated Universal Time (UTC). The value of CreateDate is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.

Public Property CreatorRequestId System.String

Gets and sets the property CreatorRequestId.

A unique string that identifies the request and that allows failed requests to be retried without the risk of running the operation twice. CreatorRequestId can be any unique string (for example, a date/timestamp).

Public Property Description System.String

Gets and sets the property Description.

The description of the service.

Public Property DnsConfig Amazon.ServiceDiscovery.Model.DnsConfig

Gets and sets the property DnsConfig.

A complex type that contains information about the RouteĀ 53 DNS records that you want Cloud Map to create when you register an instance.

The record types of a service can only be changed by deleting the service and recreating it with a new Dnsconfig.

Public Property HealthCheckConfig Amazon.ServiceDiscovery.Model.HealthCheckConfig

Gets and sets the property HealthCheckConfig.

Public DNS and HTTP namespaces only. A complex type that contains settings for an optional health check. If you specify settings for a health check, Cloud Map associates the health check with the records that you specify in DnsConfig.

For information about the charges for health checks, see Amazon RouteĀ 53 Pricing.

Public Property HealthCheckCustomConfig Amazon.ServiceDiscovery.Model.HealthCheckCustomConfig

Gets and sets the property HealthCheckCustomConfig.

A complex type that contains information about an optional custom health check.

If you specify a health check configuration, you can specify either HealthCheckCustomConfig or HealthCheckConfig but not both.

Public Property Id System.String

Gets and sets the property Id.

The ID that Cloud Map assigned to the service when you created it.

Public Property InstanceCount System.Int32

Gets and sets the property InstanceCount.

The number of instances that are currently associated with the service. Instances that were previously associated with the service but that are deleted aren't included in the count. The count might not reflect pending registrations and deregistrations.

Public Property Name System.String

Gets and sets the property Name.

The name of the service.

Public Property NamespaceId System.String

Gets and sets the property NamespaceId.

The ID of the namespace that was used to create the service.

Public Property Type Amazon.ServiceDiscovery.ServiceType

Gets and sets the property Type.

Describes the systems that can be used to discover the service instances.

DNS_HTTP

The service instances can be discovered using either DNS queries or the DiscoverInstances API operation.

HTTP

The service instances can only be discovered using the DiscoverInstances API operation.

DNS

Reserved.

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5, 4.0, 3.5