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 { AssociateRoleToGroupRequest, AssociateRoleToGroupResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link AssociateRoleToGroupCommand}. */ export interface AssociateRoleToGroupCommandInput extends AssociateRoleToGroupRequest { } /** * @public * * The output of {@link AssociateRoleToGroupCommand}. */ export interface AssociateRoleToGroupCommandOutput extends AssociateRoleToGroupResponse, __MetadataBearer { } declare const AssociateRoleToGroupCommand_base: { new (input: AssociateRoleToGroupCommandInput): import("@smithy/core/client").CommandImpl; new (input: AssociateRoleToGroupCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** * Associates a role with a group. Your Greengrass core will use the role to access AWS cloud services. The role's permissions should allow Greengrass core Lambda functions to perform actions against the cloud. * @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { GreengrassClient, AssociateRoleToGroupCommand } from "@aws-sdk/client-greengrass"; // ES Modules import * // const { GreengrassClient, AssociateRoleToGroupCommand } = 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 = { // AssociateRoleToGroupRequest * GroupId: "STRING_VALUE", // required * RoleArn: "STRING_VALUE", // required * }; * const command = new AssociateRoleToGroupCommand(input); * const response = await client.send(command); * // { // AssociateRoleToGroupResponse * // AssociatedAt: "STRING_VALUE", * // }; * * ``` * * @param AssociateRoleToGroupCommandInput - {@link AssociateRoleToGroupCommandInput} * @returns {@link AssociateRoleToGroupCommandOutput} * @see {@link AssociateRoleToGroupCommandInput} for command's `input` shape. * @see {@link AssociateRoleToGroupCommandOutput} for command's `response` shape. * @see {@link GreengrassClientResolvedConfig | config} for GreengrassClient's `config` shape. * * @throws {@link BadRequestException} (client fault) * General error information. * * @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 AssociateRoleToGroupCommand extends AssociateRoleToGroupCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: AssociateRoleToGroupRequest; output: AssociateRoleToGroupResponse; }; sdk: { input: AssociateRoleToGroupCommandInput; output: AssociateRoleToGroupCommandOutput; }; }; }