import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { RegisterCrossAccountAccessRoleRequest } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link RegisterCrossAccountAccessRoleCommand}. */ export interface RegisterCrossAccountAccessRoleCommandInput extends RegisterCrossAccountAccessRoleRequest { } /** * @public * * The output of {@link RegisterCrossAccountAccessRoleCommand}. */ export interface RegisterCrossAccountAccessRoleCommandOutput extends __MetadataBearer { } declare const RegisterCrossAccountAccessRoleCommand_base: { new (input: RegisterCrossAccountAccessRoleCommandInput): import("@smithy/core/client").CommandImpl; new (input: RegisterCrossAccountAccessRoleCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Registers the IAM role that grants Amazon Inspector access to AWS Services needed to * perform security assessments.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { InspectorClient, RegisterCrossAccountAccessRoleCommand } from "@aws-sdk/client-inspector"; // ES Modules import * // const { InspectorClient, RegisterCrossAccountAccessRoleCommand } = require("@aws-sdk/client-inspector"); // CommonJS import * // import type { InspectorClientConfig } from "@aws-sdk/client-inspector"; * const config = {}; // type is InspectorClientConfig * const client = new InspectorClient(config); * const input = { // RegisterCrossAccountAccessRoleRequest * roleArn: "STRING_VALUE", // required * }; * const command = new RegisterCrossAccountAccessRoleCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param RegisterCrossAccountAccessRoleCommandInput - {@link RegisterCrossAccountAccessRoleCommandInput} * @returns {@link RegisterCrossAccountAccessRoleCommandOutput} * @see {@link RegisterCrossAccountAccessRoleCommandInput} for command's `input` shape. * @see {@link RegisterCrossAccountAccessRoleCommandOutput} for command's `response` shape. * @see {@link InspectorClientResolvedConfig | config} for InspectorClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

You do not have required permissions to access the requested resource.

* * @throws {@link InternalException} (server fault) *

Internal server error.

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

Amazon Inspector cannot assume the cross-account role that it needs to list your EC2 * instances during the assessment run.

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

The request was rejected because an invalid or out-of-range value was supplied for an * input parameter.

* * @throws {@link ServiceTemporarilyUnavailableException} (server fault) *

The serice is temporary unavailable.

* * @throws {@link InspectorServiceException} *

Base exception class for all service exceptions from Inspector service.

* * * @example Register cross account access role * ```javascript * // Registers the IAM role that Amazon Inspector uses to list your EC2 instances at the start of the assessment run or when you call the PreviewAgents action. * const input = { * roleArn: "arn:aws:iam::123456789012:role/inspector" * }; * const command = new RegisterCrossAccountAccessRoleCommand(input); * const response = await client.send(command); * /* response is * { /* metadata only *\/ } * *\/ * ``` * * @public */ export declare class RegisterCrossAccountAccessRoleCommand extends RegisterCrossAccountAccessRoleCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: RegisterCrossAccountAccessRoleRequest; output: {}; }; sdk: { input: RegisterCrossAccountAccessRoleCommandInput; output: RegisterCrossAccountAccessRoleCommandOutput; }; }; }