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.
Container for the parameters to the GetService operation. Gets the settings for a specified service.
Namespace: Amazon.ServiceDiscovery.Model
Assembly: AWSSDK.ServiceDiscovery.dll
Version: 3.x.y.z
public class GetServiceRequest : AmazonServiceDiscoveryRequest IAmazonWebServiceRequest
The GetServiceRequest type exposes the following members
Name | Description | |
---|---|---|
![]() |
GetServiceRequest() |
Name | Type | Description | |
---|---|---|---|
![]() |
Id | System.String |
Gets and sets the property Id. The ID of the service that you want to get settings for. |
This example gets the settings for a specified service.
var client = new AmazonServiceDiscoveryClient(); var response = client.GetService(new GetServiceRequest { Id = "srv-e4anhexample0004" }); Service service = response.Service;
.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