import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CreateMembershipRequest, CreateMembershipResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link CreateMembershipCommand}. */ export interface CreateMembershipCommandInput extends CreateMembershipRequest { } /** * @public * * The output of {@link CreateMembershipCommand}. */ export interface CreateMembershipCommandOutput extends CreateMembershipResponse, __MetadataBearer { } declare const CreateMembershipCommand_base: { new (input: CreateMembershipCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreateMembershipCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Creates a new membership, granting a user access to an agent space within an application.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { SecurityAgentClient, CreateMembershipCommand } from "@aws-sdk/client-securityagent"; // ES Modules import * // const { SecurityAgentClient, CreateMembershipCommand } = require("@aws-sdk/client-securityagent"); // CommonJS import * // import type { SecurityAgentClientConfig } from "@aws-sdk/client-securityagent"; * const config = {}; // type is SecurityAgentClientConfig * const client = new SecurityAgentClient(config); * const input = { // CreateMembershipRequest * applicationId: "STRING_VALUE", // required * agentSpaceId: "STRING_VALUE", // required * membershipId: "STRING_VALUE", // required * memberType: "USER", // required * config: { // MembershipConfig Union: only one key present * user: { // UserConfig * role: "MEMBER", * }, * }, * }; * const command = new CreateMembershipCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param CreateMembershipCommandInput - {@link CreateMembershipCommandInput} * @returns {@link CreateMembershipCommandOutput} * @see {@link CreateMembershipCommandInput} for command's `input` shape. * @see {@link CreateMembershipCommandOutput} for command's `response` shape. * @see {@link SecurityAgentClientResolvedConfig | config} for SecurityAgentClient's `config` shape. * * @throws {@link SecurityAgentServiceException} *

Base exception class for all service exceptions from SecurityAgent service.

* * * @public */ export declare class CreateMembershipCommand extends CreateMembershipCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateMembershipRequest; output: {}; }; sdk: { input: CreateMembershipCommandInput; output: CreateMembershipCommandOutput; }; }; }