import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CreateEnvironmentMembershipRequest, CreateEnvironmentMembershipResult } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link CreateEnvironmentMembershipCommand}. */ export interface CreateEnvironmentMembershipCommandInput extends CreateEnvironmentMembershipRequest { } /** * @public * * The output of {@link CreateEnvironmentMembershipCommand}. */ export interface CreateEnvironmentMembershipCommandOutput extends CreateEnvironmentMembershipResult, __MetadataBearer { } declare const CreateEnvironmentMembershipCommand_base: { new (input: CreateEnvironmentMembershipCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreateEnvironmentMembershipCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Adds an environment member to an Cloud9 development environment.

* *

Cloud9 is no longer available to new customers. Existing customers of * Cloud9 can continue to use the service as normal. * Learn more" *

*
* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { Cloud9Client, CreateEnvironmentMembershipCommand } from "@aws-sdk/client-cloud9"; // ES Modules import * // const { Cloud9Client, CreateEnvironmentMembershipCommand } = require("@aws-sdk/client-cloud9"); // CommonJS import * // import type { Cloud9ClientConfig } from "@aws-sdk/client-cloud9"; * const config = {}; // type is Cloud9ClientConfig * const client = new Cloud9Client(config); * const input = { // CreateEnvironmentMembershipRequest * environmentId: "STRING_VALUE", // required * userArn: "STRING_VALUE", // required * permissions: "read-write" || "read-only", // required * }; * const command = new CreateEnvironmentMembershipCommand(input); * const response = await client.send(command); * // { // CreateEnvironmentMembershipResult * // membership: { // EnvironmentMember * // permissions: "owner" || "read-write" || "read-only", // required * // userId: "STRING_VALUE", // required * // userArn: "STRING_VALUE", // required * // environmentId: "STRING_VALUE", // required * // lastAccess: new Date("TIMESTAMP"), * // }, * // }; * * ``` * * @param CreateEnvironmentMembershipCommandInput - {@link CreateEnvironmentMembershipCommandInput} * @returns {@link CreateEnvironmentMembershipCommandOutput} * @see {@link CreateEnvironmentMembershipCommandInput} for command's `input` shape. * @see {@link CreateEnvironmentMembershipCommandOutput} for command's `response` shape. * @see {@link Cloud9ClientResolvedConfig | config} for Cloud9Client's `config` shape. * * @throws {@link BadRequestException} (client fault) *

The target request is invalid.

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

A conflict occurred.

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

An access permissions issue occurred.

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

An internal server error occurred.

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

A service limit was exceeded.

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

The target resource cannot be found.

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

Too many service requests were made over the given time period.

* * @throws {@link Cloud9ServiceException} *

Base exception class for all service exceptions from Cloud9 service.

* * * @example CreateEnvironmentMembership * ```javascript * // * const input = { * environmentId: "8d9967e2f0624182b74e7690ad69ebEX", * permissions: "read-write", * userArn: "arn:aws:iam::123456789012:user/AnotherDemoUser" * }; * const command = new CreateEnvironmentMembershipCommand(input); * const response = await client.send(command); * /* response is * { * membership: { * environmentId: "8d9967e2f0624182b74e7690ad69ebEX", * permissions: "read-write", * userArn: "arn:aws:iam::123456789012:user/AnotherDemoUser", * userId: "AIDAJ3BA6O2FMJWCWXHEX" * } * } * *\/ * ``` * * @public */ export declare class CreateEnvironmentMembershipCommand extends CreateEnvironmentMembershipCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateEnvironmentMembershipRequest; output: CreateEnvironmentMembershipResult; }; sdk: { input: CreateEnvironmentMembershipCommandInput; output: CreateEnvironmentMembershipCommandOutput; }; }; }