import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CreateProfileRequest, ProfileDetailResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link CreateProfileCommand}. */ export interface CreateProfileCommandInput extends CreateProfileRequest { } /** * @public * * The output of {@link CreateProfileCommand}. */ export interface CreateProfileCommandOutput extends ProfileDetailResponse, __MetadataBearer { } declare const CreateProfileCommand_base: { new (input: CreateProfileCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreateProfileCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Creates a profile, a list of the roles that Roles Anywhere service is trusted to assume. You use profiles to intersect permissions with IAM managed policies.

Required permissions: rolesanywhere:CreateProfile.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { RolesAnywhereClient, CreateProfileCommand } from "@aws-sdk/client-rolesanywhere"; // ES Modules import * // const { RolesAnywhereClient, CreateProfileCommand } = require("@aws-sdk/client-rolesanywhere"); // CommonJS import * // import type { RolesAnywhereClientConfig } from "@aws-sdk/client-rolesanywhere"; * const config = {}; // type is RolesAnywhereClientConfig * const client = new RolesAnywhereClient(config); * const input = { // CreateProfileRequest * name: "STRING_VALUE", // required * requireInstanceProperties: true || false, * sessionPolicy: "STRING_VALUE", * roleArns: [ // RoleArnList // required * "STRING_VALUE", * ], * managedPolicyArns: [ // ManagedPolicyList * "STRING_VALUE", * ], * durationSeconds: Number("int"), * enabled: true || false, * tags: [ // TagList * { // Tag * key: "STRING_VALUE", // required * value: "STRING_VALUE", // required * }, * ], * acceptRoleSessionName: true || false, * }; * const command = new CreateProfileCommand(input); * const response = await client.send(command); * // { // ProfileDetailResponse * // profile: { // ProfileDetail * // profileId: "STRING_VALUE", * // profileArn: "STRING_VALUE", * // name: "STRING_VALUE", * // requireInstanceProperties: true || false, * // enabled: true || false, * // createdBy: "STRING_VALUE", * // sessionPolicy: "STRING_VALUE", * // roleArns: [ // RoleArnList * // "STRING_VALUE", * // ], * // managedPolicyArns: [ // ManagedPolicyList * // "STRING_VALUE", * // ], * // createdAt: new Date("TIMESTAMP"), * // updatedAt: new Date("TIMESTAMP"), * // durationSeconds: Number("int"), * // acceptRoleSessionName: true || false, * // attributeMappings: [ // AttributeMappings * // { // AttributeMapping * // certificateField: "STRING_VALUE", * // mappingRules: [ // MappingRules * // { // MappingRule * // specifier: "STRING_VALUE", // required * // }, * // ], * // }, * // ], * // }, * // }; * * ``` * * @param CreateProfileCommandInput - {@link CreateProfileCommandInput} * @returns {@link CreateProfileCommandOutput} * @see {@link CreateProfileCommandInput} for command's `input` shape. * @see {@link CreateProfileCommandOutput} for command's `response` shape. * @see {@link RolesAnywhereClientResolvedConfig | config} for RolesAnywhereClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

You do not have sufficient access to perform this action.

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

Validation exception error.

* * @throws {@link RolesAnywhereServiceException} *

Base exception class for all service exceptions from RolesAnywhere service.

* * * @public */ export declare class CreateProfileCommand extends CreateProfileCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateProfileRequest; output: ProfileDetailResponse; }; sdk: { input: CreateProfileCommandInput; output: CreateProfileCommandOutput; }; }; }