import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; import { Application, ApplicationVersion } from "./index"; /** * Provides an Elastic Beanstalk Environment Resource. Elastic Beanstalk allows * you to deploy and manage applications in the AWS cloud without worrying about * the infrastructure that runs those applications. * * Environments are often things such as `development`, `integration`, or * `production`. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const exampleApplication = new aws.elasticbeanstalk.Application("example", { * name: "tf-test-name", * description: "tf-test-desc", * }); * const example = new aws.elasticbeanstalk.Environment("example", { * name: "tf-test-name", * application: exampleApplication.name, * solutionStackName: "64bit Amazon Linux 2015.03 v2.0.3 running Go 1.4", * }); * ``` * * ## Import * * Using `pulumi import`, import Elastic Beanstalk Environments using the `id`. For example: * * ```sh * $ pulumi import aws:elasticbeanstalk/environment:Environment prodenv e-rpqsewtp2j * ``` */ export declare class Environment extends pulumi.CustomResource { /** * Get an existing Environment resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: EnvironmentState, opts?: pulumi.CustomResourceOptions): Environment; /** * Returns true if the given object is an instance of Environment. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Environment; /** * List of all option settings configured in this Environment. These * are a combination of default settings and their overrides from `setting` in * the configuration. */ readonly allSettings: pulumi.Output; /** * Name of the application that contains the version * to be deployed */ readonly application: pulumi.Output; readonly arn: pulumi.Output; /** * The autoscaling groups used by this Environment. */ readonly autoscalingGroups: pulumi.Output; /** * Fully qualified DNS name for this Environment. */ readonly cname: pulumi.Output; /** * Prefix to use for the fully qualified DNS name of * the Environment. */ readonly cnamePrefix: pulumi.Output; /** * Short description of the Environment */ readonly description: pulumi.Output; /** * The URL to the Load Balancer for this Environment */ readonly endpointUrl: pulumi.Output; /** * Instances used by this Environment. */ readonly instances: pulumi.Output; /** * Launch configurations in use by this Environment. */ readonly launchConfigurations: pulumi.Output; /** * Elastic load balancers in use by this Environment. */ readonly loadBalancers: pulumi.Output; /** * A unique name for this Environment. This name is used * in the application URL */ readonly name: pulumi.Output; /** * The [ARN](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) of the Elastic Beanstalk [Platform](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-beanstalk-environment.html#cfn-beanstalk-environment-platformarn) * to use in deployment */ readonly platformArn: pulumi.Output; /** * The time between polling the AWS API to * check if changes have been applied. Use this to adjust the rate of API calls * for any `create` or `update` action. Minimum `10s`, maximum `180s`. Omit this to * use the default behavior, which is an exponential backoff */ readonly pollInterval: pulumi.Output; /** * SQS queues in use by this Environment. */ readonly queues: pulumi.Output; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ readonly region: pulumi.Output; /** * Option settings to configure the new Environment. These * override specific values that are set as defaults. The format is detailed * below in Option Settings */ readonly settings: pulumi.Output; /** * A solution stack to base your environment * off of. Example stacks can be found in the [Amazon API documentation](https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/concepts.platforms.html) */ readonly solutionStackName: pulumi.Output; /** * A set of tags to apply to the Environment. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. */ readonly tagsAll: pulumi.Output<{ [key: string]: string; }>; /** * The name of the Elastic Beanstalk Configuration * template to use in deployment */ readonly templateName: pulumi.Output; /** * Elastic Beanstalk Environment tier. Valid values are `Worker` * or `WebServer`. If tier is left blank `WebServer` will be used. */ readonly tier: pulumi.Output; /** * Autoscaling triggers in use by this Environment. */ readonly triggers: pulumi.Output; /** * The name of the Elastic Beanstalk Application Version * to use in deployment. */ readonly version: pulumi.Output; /** * The maximum * [duration](https://golang.org/pkg/time/#ParseDuration) that this provider should * wait for an Elastic Beanstalk Environment to be in a ready state before timing * out. */ readonly waitForReadyTimeout: pulumi.Output; /** * Create a Environment resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: EnvironmentArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Environment resources. */ export interface EnvironmentState { /** * List of all option settings configured in this Environment. These * are a combination of default settings and their overrides from `setting` in * the configuration. */ allSettings?: pulumi.Input[] | undefined>; /** * Name of the application that contains the version * to be deployed */ application?: pulumi.Input; arn?: pulumi.Input; /** * The autoscaling groups used by this Environment. */ autoscalingGroups?: pulumi.Input[] | undefined>; /** * Fully qualified DNS name for this Environment. */ cname?: pulumi.Input; /** * Prefix to use for the fully qualified DNS name of * the Environment. */ cnamePrefix?: pulumi.Input; /** * Short description of the Environment */ description?: pulumi.Input; /** * The URL to the Load Balancer for this Environment */ endpointUrl?: pulumi.Input; /** * Instances used by this Environment. */ instances?: pulumi.Input[] | undefined>; /** * Launch configurations in use by this Environment. */ launchConfigurations?: pulumi.Input[] | undefined>; /** * Elastic load balancers in use by this Environment. */ loadBalancers?: pulumi.Input[] | undefined>; /** * A unique name for this Environment. This name is used * in the application URL */ name?: pulumi.Input; /** * The [ARN](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) of the Elastic Beanstalk [Platform](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-beanstalk-environment.html#cfn-beanstalk-environment-platformarn) * to use in deployment */ platformArn?: pulumi.Input; /** * The time between polling the AWS API to * check if changes have been applied. Use this to adjust the rate of API calls * for any `create` or `update` action. Minimum `10s`, maximum `180s`. Omit this to * use the default behavior, which is an exponential backoff */ pollInterval?: pulumi.Input; /** * SQS queues in use by this Environment. */ queues?: pulumi.Input[] | undefined>; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input; /** * Option settings to configure the new Environment. These * override specific values that are set as defaults. The format is detailed * below in Option Settings */ settings?: pulumi.Input[] | undefined>; /** * A solution stack to base your environment * off of. Example stacks can be found in the [Amazon API documentation](https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/concepts.platforms.html) */ solutionStackName?: pulumi.Input; /** * A set of tags to apply to the Environment. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. */ tagsAll?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * The name of the Elastic Beanstalk Configuration * template to use in deployment */ templateName?: pulumi.Input; /** * Elastic Beanstalk Environment tier. Valid values are `Worker` * or `WebServer`. If tier is left blank `WebServer` will be used. */ tier?: pulumi.Input; /** * Autoscaling triggers in use by this Environment. */ triggers?: pulumi.Input[] | undefined>; /** * The name of the Elastic Beanstalk Application Version * to use in deployment. */ version?: pulumi.Input; /** * The maximum * [duration](https://golang.org/pkg/time/#ParseDuration) that this provider should * wait for an Elastic Beanstalk Environment to be in a ready state before timing * out. */ waitForReadyTimeout?: pulumi.Input; } /** * The set of arguments for constructing a Environment resource. */ export interface EnvironmentArgs { /** * Name of the application that contains the version * to be deployed */ application: pulumi.Input; /** * Prefix to use for the fully qualified DNS name of * the Environment. */ cnamePrefix?: pulumi.Input; /** * Short description of the Environment */ description?: pulumi.Input; /** * A unique name for this Environment. This name is used * in the application URL */ name?: pulumi.Input; /** * The [ARN](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) of the Elastic Beanstalk [Platform](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-beanstalk-environment.html#cfn-beanstalk-environment-platformarn) * to use in deployment */ platformArn?: pulumi.Input; /** * The time between polling the AWS API to * check if changes have been applied. Use this to adjust the rate of API calls * for any `create` or `update` action. Minimum `10s`, maximum `180s`. Omit this to * use the default behavior, which is an exponential backoff */ pollInterval?: pulumi.Input; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input; /** * Option settings to configure the new Environment. These * override specific values that are set as defaults. The format is detailed * below in Option Settings */ settings?: pulumi.Input[] | undefined>; /** * A solution stack to base your environment * off of. Example stacks can be found in the [Amazon API documentation](https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/concepts.platforms.html) */ solutionStackName?: pulumi.Input; /** * A set of tags to apply to the Environment. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * The name of the Elastic Beanstalk Configuration * template to use in deployment */ templateName?: pulumi.Input; /** * Elastic Beanstalk Environment tier. Valid values are `Worker` * or `WebServer`. If tier is left blank `WebServer` will be used. */ tier?: pulumi.Input; /** * The name of the Elastic Beanstalk Application Version * to use in deployment. */ version?: pulumi.Input; /** * The maximum * [duration](https://golang.org/pkg/time/#ParseDuration) that this provider should * wait for an Elastic Beanstalk Environment to be in a ready state before timing * out. */ waitForReadyTimeout?: pulumi.Input; } //# sourceMappingURL=environment.d.ts.map