import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { DescribeEnvironmentsRequest, DescribeEnvironmentsResult } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link DescribeEnvironmentsCommand}. */ export interface DescribeEnvironmentsCommandInput extends DescribeEnvironmentsRequest { } /** * @public * * The output of {@link DescribeEnvironmentsCommand}. */ export interface DescribeEnvironmentsCommandOutput extends DescribeEnvironmentsResult, __MetadataBearer { } declare const DescribeEnvironmentsCommand_base: { new (input: DescribeEnvironmentsCommandInput): import("@smithy/core/client").CommandImpl; new (input: DescribeEnvironmentsCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Gets information about Cloud9 development environments.

* *

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, DescribeEnvironmentsCommand } from "@aws-sdk/client-cloud9"; // ES Modules import * // const { Cloud9Client, DescribeEnvironmentsCommand } = 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 = { // DescribeEnvironmentsRequest * environmentIds: [ // BoundedEnvironmentIdList // required * "STRING_VALUE", * ], * }; * const command = new DescribeEnvironmentsCommand(input); * const response = await client.send(command); * // { // DescribeEnvironmentsResult * // environments: [ // EnvironmentList * // { // Environment * // id: "STRING_VALUE", * // name: "STRING_VALUE", * // description: "STRING_VALUE", * // type: "ssh" || "ec2", // required * // connectionType: "CONNECT_SSH" || "CONNECT_SSM", * // arn: "STRING_VALUE", // required * // ownerArn: "STRING_VALUE", // required * // lifecycle: { // EnvironmentLifecycle * // status: "CREATING" || "CREATED" || "CREATE_FAILED" || "DELETING" || "DELETE_FAILED", * // reason: "STRING_VALUE", * // failureResource: "STRING_VALUE", * // }, * // managedCredentialsStatus: "ENABLED_ON_CREATE" || "ENABLED_BY_OWNER" || "DISABLED_BY_DEFAULT" || "DISABLED_BY_OWNER" || "DISABLED_BY_COLLABORATOR" || "PENDING_REMOVAL_BY_COLLABORATOR" || "PENDING_START_REMOVAL_BY_COLLABORATOR" || "PENDING_REMOVAL_BY_OWNER" || "PENDING_START_REMOVAL_BY_OWNER" || "FAILED_REMOVAL_BY_COLLABORATOR" || "FAILED_REMOVAL_BY_OWNER", * // }, * // ], * // }; * * ``` * * @param DescribeEnvironmentsCommandInput - {@link DescribeEnvironmentsCommandInput} * @returns {@link DescribeEnvironmentsCommandOutput} * @see {@link DescribeEnvironmentsCommandInput} for command's `input` shape. * @see {@link DescribeEnvironmentsCommandOutput} 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 DescribeEnvironments * ```javascript * // * const input = { * environmentIds: [ * "8d9967e2f0624182b74e7690ad69ebEX", * "349c86d4579e4e7298d500ff57a6b2EX" * ] * }; * const command = new DescribeEnvironmentsCommand(input); * const response = await client.send(command); * /* response is * { * environments: [ * { * arn: "arn:aws:cloud9:us-east-2:123456789012:environment:8d9967e2f0624182b74e7690ad69ebEX", * description: "This is my demonstration environment.", * id: "8d9967e2f0624182b74e7690ad69ebEX", * lifecycle: { * status: "CREATED" * }, * name: "my-demo-environment", * ownerArn: "arn:aws:iam::123456789012:user/MyDemoUser", * type: "ec2" * }, * { * arn: "arn:aws:cloud9:us-east-2:123456789012:environment:349c86d4579e4e7298d500ff57a6b2EX", * description: "", * id: "349c86d4579e4e7298d500ff57a6b2EX", * lifecycle: { * status: "CREATED" * }, * name: "another-demo-environment", * ownerArn: "arn:aws:sts::123456789012:assumed-role/AnotherDemoUser/AnotherDemoUser", * type: "ssh" * } * ] * } * *\/ * ``` * * @public */ export declare class DescribeEnvironmentsCommand extends DescribeEnvironmentsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DescribeEnvironmentsRequest; output: DescribeEnvironmentsResult; }; sdk: { input: DescribeEnvironmentsCommandInput; output: DescribeEnvironmentsCommandOutput; }; }; }