import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { UpdateServiceAttributesRequest, UpdateServiceAttributesResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link UpdateServiceAttributesCommand}. */ export interface UpdateServiceAttributesCommandInput extends UpdateServiceAttributesRequest { } /** * @public * * The output of {@link UpdateServiceAttributesCommand}. */ export interface UpdateServiceAttributesCommandOutput extends UpdateServiceAttributesResponse, __MetadataBearer { } declare const UpdateServiceAttributesCommand_base: { new (input: UpdateServiceAttributesCommandInput): import("@smithy/core/client").CommandImpl; new (input: UpdateServiceAttributesCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Submits a request to update a specified service to add service-level attributes.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ServiceDiscoveryClient, UpdateServiceAttributesCommand } from "@aws-sdk/client-servicediscovery"; // ES Modules import * // const { ServiceDiscoveryClient, UpdateServiceAttributesCommand } = 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 = { // UpdateServiceAttributesRequest * ServiceId: "STRING_VALUE", // required * Attributes: { // ServiceAttributesMap // required * "": "STRING_VALUE", * }, * }; * const command = new UpdateServiceAttributesCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param UpdateServiceAttributesCommandInput - {@link UpdateServiceAttributesCommandInput} * @returns {@link UpdateServiceAttributesCommandOutput} * @see {@link UpdateServiceAttributesCommandInput} for command's `input` shape. * @see {@link UpdateServiceAttributesCommandOutput} 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 ServiceAttributesLimitExceededException} (client fault) *

The attribute can't be added to the service because you've exceeded the quota for the number * of attributes you can add to a service.

* * @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 Update service attributes using service ARN * ```javascript * // Updates service attributes using a service ARN instead of service ID, useful when working with shared namespaces. * const input = { * Attributes: { * Port: "8080", * Protocol: "HTTP" * }, * ServiceId: "arn:aws:servicediscovery:us-west-2:123456789012:service/srv-abcd1234xmpl5678" * }; * const command = new UpdateServiceAttributesCommand(input); * const response = await client.send(command); * /* response is * { /* empty *\/ } * *\/ * ``` * * @example UpdateServiceAttributes Example * ```javascript * // This example submits a request to update the specified service to add a port attribute with the value 80. * const input = { * Attributes: { * port: "80" * }, * ServiceId: "srv-e4anhexample0004" * }; * const command = new UpdateServiceAttributesCommand(input); * const response = await client.send(command); * /* response is * { /* empty *\/ } * *\/ * ``` * * @public */ export declare class UpdateServiceAttributesCommand extends UpdateServiceAttributesCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: UpdateServiceAttributesRequest; output: {}; }; sdk: { input: UpdateServiceAttributesCommandInput; output: UpdateServiceAttributesCommandOutput; }; }; }