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.
Implementation for accessing ServiceDiscovery
Cloud MapWith Cloud Map, you can configure public DNS, private DNS, or HTTP namespaces that your microservice applications run in. When an instance becomes available, you can call the Cloud Map API to register the instance with Cloud Map. For public or private DNS namespaces, Cloud Map automatically creates DNS records and an optional health check. Clients that submit public or private DNS queries, or HTTP requests, for the service receive an answer that contains up to eight healthy records.
Namespace: Amazon.ServiceDiscovery
Assembly: AWSSDK.ServiceDiscovery.dll
Version: 3.x.y.z
public class AmazonServiceDiscoveryClient : AmazonServiceClient IAmazonService, IAmazonServiceDiscovery, IDisposable
The AmazonServiceDiscoveryClient type exposes the following members
Name | Description | |
---|---|---|
AmazonServiceDiscoveryClient() |
Constructs AmazonServiceDiscoveryClient with the credentials loaded from the application's default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. Example App.config with credentials set. <?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key="AWSProfileName" value="AWS Default"/> </appSettings> </configuration> |
|
AmazonServiceDiscoveryClient(RegionEndpoint) |
Constructs AmazonServiceDiscoveryClient with the credentials loaded from the application's default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. Example App.config with credentials set. <?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key="AWSProfileName" value="AWS Default"/> </appSettings> </configuration> |
|
AmazonServiceDiscoveryClient(AmazonServiceDiscoveryConfig) |
Constructs AmazonServiceDiscoveryClient with the credentials loaded from the application's default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. Example App.config with credentials set. <?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key="AWSProfileName" value="AWS Default"/> </appSettings> </configuration> |
|
AmazonServiceDiscoveryClient(AWSCredentials) |
Constructs AmazonServiceDiscoveryClient with AWS Credentials |
|
AmazonServiceDiscoveryClient(AWSCredentials, RegionEndpoint) |
Constructs AmazonServiceDiscoveryClient with AWS Credentials |
|
AmazonServiceDiscoveryClient(AWSCredentials, AmazonServiceDiscoveryConfig) |
Constructs AmazonServiceDiscoveryClient with AWS Credentials and an AmazonServiceDiscoveryClient Configuration object. |
|
AmazonServiceDiscoveryClient(string, string) |
Constructs AmazonServiceDiscoveryClient with AWS Access Key ID and AWS Secret Key |
|
AmazonServiceDiscoveryClient(string, string, RegionEndpoint) |
Constructs AmazonServiceDiscoveryClient with AWS Access Key ID and AWS Secret Key |
|
AmazonServiceDiscoveryClient(string, string, AmazonServiceDiscoveryConfig) |
Constructs AmazonServiceDiscoveryClient with AWS Access Key ID, AWS Secret Key and an AmazonServiceDiscoveryClient Configuration object. |
|
AmazonServiceDiscoveryClient(string, string, string) |
Constructs AmazonServiceDiscoveryClient with AWS Access Key ID and AWS Secret Key |
|
AmazonServiceDiscoveryClient(string, string, string, RegionEndpoint) |
Constructs AmazonServiceDiscoveryClient with AWS Access Key ID and AWS Secret Key |
|
AmazonServiceDiscoveryClient(string, string, string, AmazonServiceDiscoveryConfig) |
Constructs AmazonServiceDiscoveryClient with AWS Access Key ID, AWS Secret Key and an AmazonServiceDiscoveryClient Configuration object. |
Name | Type | Description | |
---|---|---|---|
Config | Amazon.Runtime.IClientConfig | Inherited from Amazon.Runtime.AmazonServiceClient. | |
Paginators | Amazon.ServiceDiscovery.Model.IServiceDiscoveryPaginatorFactory |
Paginators for the service |
Name | Description | |
---|---|---|
CreateHttpNamespace(CreateHttpNamespaceRequest) |
Creates an HTTP namespace. Service instances registered using an HTTP namespace can
be discovered using a For the current quota on the number of namespaces that you can create using the same Amazon Web Services account, see Cloud Map quotas in the Cloud Map Developer Guide. |
|
CreateHttpNamespaceAsync(CreateHttpNamespaceRequest, CancellationToken) |
Creates an HTTP namespace. Service instances registered using an HTTP namespace can
be discovered using a For the current quota on the number of namespaces that you can create using the same Amazon Web Services account, see Cloud Map quotas in the Cloud Map Developer Guide. |
|
CreatePrivateDnsNamespace(CreatePrivateDnsNamespaceRequest) |
Creates a private namespace based on DNS, which is visible only inside a specified
Amazon VPC. The namespace defines your service naming scheme. For example, if you
name your namespace |
|
CreatePrivateDnsNamespaceAsync(CreatePrivateDnsNamespaceRequest, CancellationToken) |
Creates a private namespace based on DNS, which is visible only inside a specified
Amazon VPC. The namespace defines your service naming scheme. For example, if you
name your namespace |
|
CreatePublicDnsNamespace(CreatePublicDnsNamespaceRequest) |
Creates a public namespace based on DNS, which is visible on the internet. The namespace
defines your service naming scheme. For example, if you name your namespace
The |
|
CreatePublicDnsNamespaceAsync(CreatePublicDnsNamespaceRequest, CancellationToken) |
Creates a public namespace based on DNS, which is visible on the internet. The namespace
defines your service naming scheme. For example, if you name your namespace
The |
|
CreateService(CreateServiceRequest) |
Creates a service. This action defines the configuration for the following entities:
After you create the service, you can submit a RegisterInstance request, and Cloud Map uses the values in the configuration to create the specified entities. For the current quota on the number of instances that you can register using the same namespace and using the same service, see Cloud Map quotas in the Cloud Map Developer Guide. |
|
CreateServiceAsync(CreateServiceRequest, CancellationToken) |
Creates a service. This action defines the configuration for the following entities:
After you create the service, you can submit a RegisterInstance request, and Cloud Map uses the values in the configuration to create the specified entities. For the current quota on the number of instances that you can register using the same namespace and using the same service, see Cloud Map quotas in the Cloud Map Developer Guide. |
|
DeleteNamespace(DeleteNamespaceRequest) |
Deletes a namespace from the current account. If the namespace still contains one or more services, the request fails. |
|
DeleteNamespaceAsync(DeleteNamespaceRequest, CancellationToken) |
Deletes a namespace from the current account. If the namespace still contains one or more services, the request fails. |
|
DeleteService(DeleteServiceRequest) |
Deletes a specified service and all associated service attributes. If the service still contains one or more registered instances, the request fails. |
|
DeleteServiceAsync(DeleteServiceRequest, CancellationToken) |
Deletes a specified service and all associated service attributes. If the service still contains one or more registered instances, the request fails. |
|
DeleteServiceAttributes(DeleteServiceAttributesRequest) |
Deletes specific attributes associated with a service. |
|
DeleteServiceAttributesAsync(DeleteServiceAttributesRequest, CancellationToken) |
Deletes specific attributes associated with a service. |
|
DeregisterInstance(DeregisterInstanceRequest) |
Deletes the Amazon Route 53 DNS records and health check, if any, that Cloud Map created for the specified instance. |
|
DeregisterInstanceAsync(DeregisterInstanceRequest, CancellationToken) |
Deletes the Amazon Route 53 DNS records and health check, if any, that Cloud Map created for the specified instance. |
|
DetermineServiceOperationEndpoint(AmazonWebServiceRequest) |
Returns the endpoint that will be used for a particular request. |
|
DiscoverInstances(DiscoverInstancesRequest) |
Discovers registered instances for a specified namespace and service. You can use
|
|
DiscoverInstancesAsync(DiscoverInstancesRequest, CancellationToken) |
Discovers registered instances for a specified namespace and service. You can use
|
|
DiscoverInstancesRevision(DiscoverInstancesRevisionRequest) |
Discovers the increasing revision associated with an instance. |
|
DiscoverInstancesRevisionAsync(DiscoverInstancesRevisionRequest, CancellationToken) |
Discovers the increasing revision associated with an instance. |
|
Dispose() | Inherited from Amazon.Runtime.AmazonServiceClient. | |
GetInstance(GetInstanceRequest) |
Gets information about a specified instance. |
|
GetInstanceAsync(GetInstanceRequest, CancellationToken) |
Gets information about a specified instance. |
|
GetInstancesHealthStatus(GetInstancesHealthStatusRequest) |
Gets the current health status (
There's a brief delay between when you register an instance and when the health status
for the instance is available.
|
|
GetInstancesHealthStatusAsync(GetInstancesHealthStatusRequest, CancellationToken) |
Gets the current health status (
There's a brief delay between when you register an instance and when the health status
for the instance is available.
|
|
GetNamespace(GetNamespaceRequest) |
Gets information about a namespace. |
|
GetNamespaceAsync(GetNamespaceRequest, CancellationToken) |
Gets information about a namespace. |
|
GetOperation(GetOperationRequest) |
Gets information about any operation that returns an operation ID in the response,
such as a
To get a list of operations that match specified criteria, see ListOperations.
|
|
GetOperationAsync(GetOperationRequest, CancellationToken) |
Gets information about any operation that returns an operation ID in the response,
such as a
To get a list of operations that match specified criteria, see ListOperations.
|
|
GetService(GetServiceRequest) |
Gets the settings for a specified service. |
|
GetServiceAsync(GetServiceRequest, CancellationToken) |
Gets the settings for a specified service. |
|
GetServiceAttributes(GetServiceAttributesRequest) |
Returns the attributes associated with a specified service. |
|
GetServiceAttributesAsync(GetServiceAttributesRequest, CancellationToken) |
Returns the attributes associated with a specified service. |
|
ListInstances(ListInstancesRequest) |
Lists summary information about the instances that you registered by using a specified service. |
|
ListInstancesAsync(ListInstancesRequest, CancellationToken) |
Lists summary information about the instances that you registered by using a specified service. |
|
ListNamespaces(ListNamespacesRequest) |
Lists summary information about the namespaces that were created by the current Amazon Web Services account. |
|
ListNamespacesAsync(ListNamespacesRequest, CancellationToken) |
Lists summary information about the namespaces that were created by the current Amazon Web Services account. |
|
ListOperations(ListOperationsRequest) |
Lists operations that match the criteria that you specify. |
|
ListOperationsAsync(ListOperationsRequest, CancellationToken) |
Lists operations that match the criteria that you specify. |
|
ListServices(ListServicesRequest) |
Lists summary information for all the services that are associated with one or more namespaces. |
|
ListServicesAsync(ListServicesRequest, CancellationToken) |
Lists summary information for all the services that are associated with one or more namespaces. |
|
ListTagsForResource(ListTagsForResourceRequest) |
Lists tags for the specified resource. |
|
ListTagsForResourceAsync(ListTagsForResourceRequest, CancellationToken) |
Lists tags for the specified resource. |
|
RegisterInstance(RegisterInstanceRequest) |
Creates or updates one or more records and, optionally, creates a health check based
on the settings in a specified service. When you submit a
One For more information, see CreateService. When Cloud Map receives a DNS query for the specified DNS name, it returns the applicable value:
For the current quota on the number of instances that you can register using the same namespace and using the same service, see Cloud Map quotas in the Cloud Map Developer Guide. |
|
RegisterInstanceAsync(RegisterInstanceRequest, CancellationToken) |
Creates or updates one or more records and, optionally, creates a health check based
on the settings in a specified service. When you submit a
One For more information, see CreateService. When Cloud Map receives a DNS query for the specified DNS name, it returns the applicable value:
For the current quota on the number of instances that you can register using the same namespace and using the same service, see Cloud Map quotas in the Cloud Map Developer Guide. |
|
TagResource(TagResourceRequest) |
Adds one or more tags to the specified resource. |
|
TagResourceAsync(TagResourceRequest, CancellationToken) |
Adds one or more tags to the specified resource. |
|
UntagResource(UntagResourceRequest) |
Removes one or more tags from the specified resource. |
|
UntagResourceAsync(UntagResourceRequest, CancellationToken) |
Removes one or more tags from the specified resource. |
|
UpdateHttpNamespace(UpdateHttpNamespaceRequest) |
Updates an HTTP namespace. |
|
UpdateHttpNamespaceAsync(UpdateHttpNamespaceRequest, CancellationToken) |
Updates an HTTP namespace. |
|
UpdateInstanceCustomHealthStatus(UpdateInstanceCustomHealthStatusRequest) |
Submits a request to change the health status of a custom health check to healthy or unhealthy.
You can use For more information, see HealthCheckCustomConfig. |
|
UpdateInstanceCustomHealthStatusAsync(UpdateInstanceCustomHealthStatusRequest, CancellationToken) |
Submits a request to change the health status of a custom health check to healthy or unhealthy.
You can use For more information, see HealthCheckCustomConfig. |
|
UpdatePrivateDnsNamespace(UpdatePrivateDnsNamespaceRequest) |
Updates a private DNS namespace. |
|
UpdatePrivateDnsNamespaceAsync(UpdatePrivateDnsNamespaceRequest, CancellationToken) |
Updates a private DNS namespace. |
|
UpdatePublicDnsNamespace(UpdatePublicDnsNamespaceRequest) |
Updates a public DNS namespace. |
|
UpdatePublicDnsNamespaceAsync(UpdatePublicDnsNamespaceRequest, CancellationToken) |
Updates a public DNS namespace. |
|
UpdateService(UpdateServiceRequest) |
Submits a request to perform the following operations:
For public and private DNS namespaces, note the following:
When you update settings for a service, Cloud Map also updates the corresponding settings in all the records and health checks that were created by using the specified service. |
|
UpdateServiceAsync(UpdateServiceRequest, CancellationToken) |
Submits a request to perform the following operations:
For public and private DNS namespaces, note the following:
When you update settings for a service, Cloud Map also updates the corresponding settings in all the records and health checks that were created by using the specified service. |
|
UpdateServiceAttributes(UpdateServiceAttributesRequest) |
Submits a request to update a specified service to add service-level attributes. |
|
UpdateServiceAttributesAsync(UpdateServiceAttributesRequest, CancellationToken) |
Submits a request to update a specified service to add service-level attributes. |
Name | Description | |
---|---|---|
AfterResponseEvent | Inherited from Amazon.Runtime.AmazonServiceClient. | |
BeforeRequestEvent | Inherited from Amazon.Runtime.AmazonServiceClient. | |
ExceptionEvent | Inherited from Amazon.Runtime.AmazonServiceClient. |
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5 and newer, 3.5