import { Command as $Command } from "@smithy/core/client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { GreengrassClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GreengrassClient"; import type { GetServiceRoleForAccountRequest, GetServiceRoleForAccountResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link GetServiceRoleForAccountCommand}. */ export interface GetServiceRoleForAccountCommandInput extends GetServiceRoleForAccountRequest { } /** * @public * * The output of {@link GetServiceRoleForAccountCommand}. */ export interface GetServiceRoleForAccountCommandOutput extends GetServiceRoleForAccountResponse, __MetadataBearer { } declare const GetServiceRoleForAccountCommand_base: { new (input: GetServiceRoleForAccountCommandInput): import("@smithy/core/client").CommandImpl; new (...[input]: [] | [GetServiceRoleForAccountCommandInput]): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** * Retrieves the service role that is attached to your account. * @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { GreengrassClient, GetServiceRoleForAccountCommand } from "@aws-sdk/client-greengrass"; // ES Modules import * // const { GreengrassClient, GetServiceRoleForAccountCommand } = require("@aws-sdk/client-greengrass"); // CommonJS import * // import type { GreengrassClientConfig } from "@aws-sdk/client-greengrass"; * const config = {}; // type is GreengrassClientConfig * const client = new GreengrassClient(config); * const input = {}; * const command = new GetServiceRoleForAccountCommand(input); * const response = await client.send(command); * // { // GetServiceRoleForAccountResponse * // AssociatedAt: "STRING_VALUE", * // RoleArn: "STRING_VALUE", * // }; * * ``` * * @param GetServiceRoleForAccountCommandInput - {@link GetServiceRoleForAccountCommandInput} * @returns {@link GetServiceRoleForAccountCommandOutput} * @see {@link GetServiceRoleForAccountCommandInput} for command's `input` shape. * @see {@link GetServiceRoleForAccountCommandOutput} for command's `response` shape. * @see {@link GreengrassClientResolvedConfig | config} for GreengrassClient's `config` shape. * * @throws {@link InternalServerErrorException} (server fault) * General error information. * * @throws {@link GreengrassServiceException} *

Base exception class for all service exceptions from Greengrass service.

* * * @public */ export declare class GetServiceRoleForAccountCommand extends GetServiceRoleForAccountCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: {}; output: GetServiceRoleForAccountResponse; }; sdk: { input: GetServiceRoleForAccountCommandInput; output: GetServiceRoleForAccountCommandOutput; }; }; }