import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { UpdateManagedInstanceRoleRequest, UpdateManagedInstanceRoleResult } from "../models/models_2"; import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link UpdateManagedInstanceRoleCommand}. */ export interface UpdateManagedInstanceRoleCommandInput extends UpdateManagedInstanceRoleRequest { } /** * @public * * The output of {@link UpdateManagedInstanceRoleCommand}. */ export interface UpdateManagedInstanceRoleCommandOutput extends UpdateManagedInstanceRoleResult, __MetadataBearer { } declare const UpdateManagedInstanceRoleCommand_base: { new (input: UpdateManagedInstanceRoleCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: UpdateManagedInstanceRoleCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Changes the Identity and Access Management (IAM) role that is assigned to the * on-premises server, edge device, or virtual machines (VM). IAM roles are first * assigned to these hybrid nodes during the activation process. For more information, see CreateActivation.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { SSMClient, UpdateManagedInstanceRoleCommand } from "@aws-sdk/client-ssm"; // ES Modules import * // const { SSMClient, UpdateManagedInstanceRoleCommand } = require("@aws-sdk/client-ssm"); // CommonJS import * const client = new SSMClient(config); * const input = { // UpdateManagedInstanceRoleRequest * InstanceId: "STRING_VALUE", // required * IamRole: "STRING_VALUE", // required * }; * const command = new UpdateManagedInstanceRoleCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param UpdateManagedInstanceRoleCommandInput - {@link UpdateManagedInstanceRoleCommandInput} * @returns {@link UpdateManagedInstanceRoleCommandOutput} * @see {@link UpdateManagedInstanceRoleCommandInput} for command's `input` shape. * @see {@link UpdateManagedInstanceRoleCommandOutput} for command's `response` shape. * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. * * @throws {@link InternalServerError} (server fault) *

An error occurred on the server side.

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

The following problems can cause this exception:

* * * @throws {@link SSMServiceException} *

Base exception class for all service exceptions from SSM service.

* * * @public */ export declare class UpdateManagedInstanceRoleCommand extends UpdateManagedInstanceRoleCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: UpdateManagedInstanceRoleRequest; output: {}; }; sdk: { input: UpdateManagedInstanceRoleCommandInput; output: UpdateManagedInstanceRoleCommandOutput; }; }; }