import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { GetServiceAttributesRequest, GetServiceAttributesResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link GetServiceAttributesCommand}. */ export interface GetServiceAttributesCommandInput extends GetServiceAttributesRequest { } /** * @public * * The output of {@link GetServiceAttributesCommand}. */ export interface GetServiceAttributesCommandOutput extends GetServiceAttributesResponse, __MetadataBearer { } declare const GetServiceAttributesCommand_base: { new (input: GetServiceAttributesCommandInput): import("@smithy/core/client").CommandImpl; new (input: GetServiceAttributesCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Returns the attributes associated with a specified service.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ServiceDiscoveryClient, GetServiceAttributesCommand } from "@aws-sdk/client-servicediscovery"; // ES Modules import * // const { ServiceDiscoveryClient, GetServiceAttributesCommand } = require("@aws-sdk/client-servicediscovery"); // CommonJS import * // import type { ServiceDiscoveryClientConfig } from "@aws-sdk/client-servicediscovery"; * const config = {}; // type is ServiceDiscoveryClientConfig * const client = new ServiceDiscoveryClient(config); * const input = { // GetServiceAttributesRequest * ServiceId: "STRING_VALUE", // required * }; * const command = new GetServiceAttributesCommand(input); * const response = await client.send(command); * // { // GetServiceAttributesResponse * // ServiceAttributes: { // ServiceAttributes * // ServiceArn: "STRING_VALUE", * // ResourceOwner: "STRING_VALUE", * // Attributes: { // ServiceAttributesMap * // "": "STRING_VALUE", * // }, * // }, * // }; * * ``` * * @param GetServiceAttributesCommandInput - {@link GetServiceAttributesCommandInput} * @returns {@link GetServiceAttributesCommandOutput} * @see {@link GetServiceAttributesCommandInput} for command's `input` shape. * @see {@link GetServiceAttributesCommandOutput} for command's `response` shape. * @see {@link ServiceDiscoveryClientResolvedConfig | config} for ServiceDiscoveryClient's `config` shape. * * @throws {@link InvalidInput} (client fault) *

One or more specified values aren't valid. For example, a required value might be missing, a * numeric value might be outside the allowed range, or a string value might exceed length * constraints.

* * @throws {@link ServiceNotFound} (client fault) *

No service exists with the specified ID.

* * @throws {@link ServiceDiscoveryServiceException} *

Base exception class for all service exceptions from ServiceDiscovery service.

* * * @example Get service attributes using service ARN * ```javascript * // Gets service attributes using a service ARN instead of service ID, useful when working with shared namespaces. Shows attributes for a service created by a sharee in a namespace owned by another account. * const input = { * ServiceId: "arn:aws:servicediscovery:us-west-2:123456789012:service/srv-abcd1234xmpl5678" * }; * const command = new GetServiceAttributesCommand(input); * const response = await client.send(command); * /* response is * { * ServiceAttributes: { * Attributes: { * Port: "80" * }, * ResourceOwner: "123456789012", * ServiceArn: "arn:aws:servicediscovery:us-west-2:123456789012:service/srv-abcd1234xmpl5678" * } * } * *\/ * ``` * * @example GetServiceAttributes Example * ```javascript * // This example gets the attributes for a specified service. * const input = { * ServiceId: "srv-e4anhexample0004" * }; * const command = new GetServiceAttributesCommand(input); * const response = await client.send(command); * /* response is * { * ServiceAttributes: { * Attributes: { * port: "80" * }, * ResourceOwner: "123456789012", * ServiceArn: "arn:aws:servicediscovery:us-west-2:123456789012:service/srv-e4anhexample0004" * } * } * *\/ * ``` * * @public */ export declare class GetServiceAttributesCommand extends GetServiceAttributesCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetServiceAttributesRequest; output: GetServiceAttributesResponse; }; sdk: { input: GetServiceAttributesCommandInput; output: GetServiceAttributesCommandOutput; }; }; }