import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { DescribeEnvironmentMembershipsRequest, DescribeEnvironmentMembershipsResult } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link DescribeEnvironmentMembershipsCommand}. */ export interface DescribeEnvironmentMembershipsCommandInput extends DescribeEnvironmentMembershipsRequest { } /** * @public * * The output of {@link DescribeEnvironmentMembershipsCommand}. */ export interface DescribeEnvironmentMembershipsCommandOutput extends DescribeEnvironmentMembershipsResult, __MetadataBearer { } declare const DescribeEnvironmentMembershipsCommand_base: { new (input: DescribeEnvironmentMembershipsCommandInput): import("@smithy/core/client").CommandImpl; new (...[input]: [] | [DescribeEnvironmentMembershipsCommandInput]): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Gets information about environment members for 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, DescribeEnvironmentMembershipsCommand } from "@aws-sdk/client-cloud9"; // ES Modules import * // const { Cloud9Client, DescribeEnvironmentMembershipsCommand } = 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 = { // DescribeEnvironmentMembershipsRequest * userArn: "STRING_VALUE", * environmentId: "STRING_VALUE", * permissions: [ // PermissionsList * "owner" || "read-write" || "read-only", * ], * nextToken: "STRING_VALUE", * maxResults: Number("int"), * }; * const command = new DescribeEnvironmentMembershipsCommand(input); * const response = await client.send(command); * // { // DescribeEnvironmentMembershipsResult * // memberships: [ // EnvironmentMembersList * // { // EnvironmentMember * // permissions: "owner" || "read-write" || "read-only", // required * // userId: "STRING_VALUE", // required * // userArn: "STRING_VALUE", // required * // environmentId: "STRING_VALUE", // required * // lastAccess: new Date("TIMESTAMP"), * // }, * // ], * // nextToken: "STRING_VALUE", * // }; * * ``` * * @param DescribeEnvironmentMembershipsCommandInput - {@link DescribeEnvironmentMembershipsCommandInput} * @returns {@link DescribeEnvironmentMembershipsCommandOutput} * @see {@link DescribeEnvironmentMembershipsCommandInput} for command's `input` shape. * @see {@link DescribeEnvironmentMembershipsCommandOutput} 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 DescribeEnvironmentMemberships2 * ```javascript * // The following example gets information about the owner of the specified development environment. * const input = { * environmentId: "8d9967e2f0624182b74e7690ad69ebEX", * permissions: [ * "owner" * ] * }; * const command = new DescribeEnvironmentMembershipsCommand(input); * const response = await client.send(command); * /* response is * { * memberships: [ * { * environmentId: "8d9967e2f0624182b74e7690ad69ebEX", * permissions: "owner", * userArn: "arn:aws:iam::123456789012:user/MyDemoUser", * userId: "AIDAJNUEDQAQWFELJDLEX" * } * ] * } * *\/ * ``` * * @example DescribeEnvironmentMemberships3 * ```javascript * // The following example gets development environment membership information for the specified user. * const input = { * userArn: "arn:aws:iam::123456789012:user/MyDemoUser" * }; * const command = new DescribeEnvironmentMembershipsCommand(input); * const response = await client.send(command); * /* response is * { * memberships: [ * { * environmentId: "10a75714bd494714929e7f5ec4125aEX", * lastAccess: "2018-01-19T11:06:13Z", * permissions: "owner", * userArn: "arn:aws:iam::123456789012:user/MyDemoUser", * userId: "AIDAJNUEDQAQWFELJDLEX" * }, * { * environmentId: "12bfc3cd537f41cb9776f8af5525c9EX", * lastAccess: "2018-01-19T11:39:19Z", * permissions: "owner", * userArn: "arn:aws:iam::123456789012:user/MyDemoUser", * userId: "AIDAJNUEDQAQWFELJDLEX" * } * ] * } * *\/ * ``` * * @example DescribeEnvironmentMemberships1 * ```javascript * // The following example gets information about all of the environment members for the specified development environment. * const input = { * environmentId: "8d9967e2f0624182b74e7690ad69ebEX" * }; * const command = new DescribeEnvironmentMembershipsCommand(input); * const response = await client.send(command); * /* response is * { * memberships: [ * { * environmentId: "8d9967e2f0624182b74e7690ad69ebEX", * permissions: "read-write", * userArn: "arn:aws:iam::123456789012:user/AnotherDemoUser", * userId: "AIDAJ3BA6O2FMJWCWXHEX" * }, * { * environmentId: "8d9967e2f0624182b74e7690ad69ebEX", * permissions: "owner", * userArn: "arn:aws:iam::123456789012:user/MyDemoUser", * userId: "AIDAJNUEDQAQWFELJDLEX" * } * ] * } * *\/ * ``` * * @public */ export declare class DescribeEnvironmentMembershipsCommand extends DescribeEnvironmentMembershipsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DescribeEnvironmentMembershipsRequest; output: DescribeEnvironmentMembershipsResult; }; sdk: { input: DescribeEnvironmentMembershipsCommandInput; output: DescribeEnvironmentMembershipsCommandOutput; }; }; }