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.

Container for the parameters to the GetService operation. Gets the settings for a specified service.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.ServiceDiscovery.AmazonServiceDiscoveryRequest
      Amazon.ServiceDiscovery.Model.GetServiceRequest

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

Syntax

C#
public class GetServiceRequest : AmazonServiceDiscoveryRequest
         IAmazonWebServiceRequest

The GetServiceRequest type exposes the following members

Constructors

NameDescription
Public Method GetServiceRequest()

Properties

NameTypeDescription
Public Property Id System.String

Gets and sets the property Id.

The ID of the service that you want to get settings for.

Examples

This example gets the settings for a specified service.

GetService Example


var client = new AmazonServiceDiscoveryClient();
var response = client.GetService(new GetServiceRequest 
{
    Id = "srv-e4anhexample0004"
});

Service service = response.Service;

            

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