Documentation ¶
Index ¶
- type Application
- type ApplicationAppversionLifecycle
- type ApplicationAppversionLifecycleArgs
- func (ApplicationAppversionLifecycleArgs) ElementType() reflect.Type
- func (i ApplicationAppversionLifecycleArgs) ToApplicationAppversionLifecycleOutput() ApplicationAppversionLifecycleOutput
- func (i ApplicationAppversionLifecycleArgs) ToApplicationAppversionLifecycleOutputWithContext(ctx context.Context) ApplicationAppversionLifecycleOutput
- func (i ApplicationAppversionLifecycleArgs) ToApplicationAppversionLifecyclePtrOutput() ApplicationAppversionLifecyclePtrOutput
- func (i ApplicationAppversionLifecycleArgs) ToApplicationAppversionLifecyclePtrOutputWithContext(ctx context.Context) ApplicationAppversionLifecyclePtrOutput
- type ApplicationAppversionLifecycleInput
- type ApplicationAppversionLifecycleOutput
- func (o ApplicationAppversionLifecycleOutput) DeleteSourceFromS3() pulumi.BoolPtrOutput
- func (ApplicationAppversionLifecycleOutput) ElementType() reflect.Type
- func (o ApplicationAppversionLifecycleOutput) MaxAgeInDays() pulumi.IntPtrOutput
- func (o ApplicationAppversionLifecycleOutput) MaxCount() pulumi.IntPtrOutput
- func (o ApplicationAppversionLifecycleOutput) ServiceRole() pulumi.StringOutput
- func (o ApplicationAppversionLifecycleOutput) ToApplicationAppversionLifecycleOutput() ApplicationAppversionLifecycleOutput
- func (o ApplicationAppversionLifecycleOutput) ToApplicationAppversionLifecycleOutputWithContext(ctx context.Context) ApplicationAppversionLifecycleOutput
- func (o ApplicationAppversionLifecycleOutput) ToApplicationAppversionLifecyclePtrOutput() ApplicationAppversionLifecyclePtrOutput
- func (o ApplicationAppversionLifecycleOutput) ToApplicationAppversionLifecyclePtrOutputWithContext(ctx context.Context) ApplicationAppversionLifecyclePtrOutput
- type ApplicationAppversionLifecyclePtrInput
- type ApplicationAppversionLifecyclePtrOutput
- func (o ApplicationAppversionLifecyclePtrOutput) DeleteSourceFromS3() pulumi.BoolPtrOutput
- func (o ApplicationAppversionLifecyclePtrOutput) Elem() ApplicationAppversionLifecycleOutput
- func (ApplicationAppversionLifecyclePtrOutput) ElementType() reflect.Type
- func (o ApplicationAppversionLifecyclePtrOutput) MaxAgeInDays() pulumi.IntPtrOutput
- func (o ApplicationAppversionLifecyclePtrOutput) MaxCount() pulumi.IntPtrOutput
- func (o ApplicationAppversionLifecyclePtrOutput) ServiceRole() pulumi.StringPtrOutput
- func (o ApplicationAppversionLifecyclePtrOutput) ToApplicationAppversionLifecyclePtrOutput() ApplicationAppversionLifecyclePtrOutput
- func (o ApplicationAppversionLifecyclePtrOutput) ToApplicationAppversionLifecyclePtrOutputWithContext(ctx context.Context) ApplicationAppversionLifecyclePtrOutput
- type ApplicationArgs
- type ApplicationState
- type ApplicationVersion
- type ApplicationVersionArgs
- type ApplicationVersionState
- type ConfigurationTemplate
- type ConfigurationTemplateArgs
- type ConfigurationTemplateSetting
- type ConfigurationTemplateSettingArgs
- func (ConfigurationTemplateSettingArgs) ElementType() reflect.Type
- func (i ConfigurationTemplateSettingArgs) ToConfigurationTemplateSettingOutput() ConfigurationTemplateSettingOutput
- func (i ConfigurationTemplateSettingArgs) ToConfigurationTemplateSettingOutputWithContext(ctx context.Context) ConfigurationTemplateSettingOutput
- type ConfigurationTemplateSettingArray
- func (ConfigurationTemplateSettingArray) ElementType() reflect.Type
- func (i ConfigurationTemplateSettingArray) ToConfigurationTemplateSettingArrayOutput() ConfigurationTemplateSettingArrayOutput
- func (i ConfigurationTemplateSettingArray) ToConfigurationTemplateSettingArrayOutputWithContext(ctx context.Context) ConfigurationTemplateSettingArrayOutput
- type ConfigurationTemplateSettingArrayInput
- type ConfigurationTemplateSettingArrayOutput
- func (ConfigurationTemplateSettingArrayOutput) ElementType() reflect.Type
- func (o ConfigurationTemplateSettingArrayOutput) Index(i pulumi.IntInput) ConfigurationTemplateSettingOutput
- func (o ConfigurationTemplateSettingArrayOutput) ToConfigurationTemplateSettingArrayOutput() ConfigurationTemplateSettingArrayOutput
- func (o ConfigurationTemplateSettingArrayOutput) ToConfigurationTemplateSettingArrayOutputWithContext(ctx context.Context) ConfigurationTemplateSettingArrayOutput
- type ConfigurationTemplateSettingInput
- type ConfigurationTemplateSettingOutput
- func (ConfigurationTemplateSettingOutput) ElementType() reflect.Type
- func (o ConfigurationTemplateSettingOutput) Name() pulumi.StringOutput
- func (o ConfigurationTemplateSettingOutput) Namespace() pulumi.StringOutput
- func (o ConfigurationTemplateSettingOutput) Resource() pulumi.StringPtrOutput
- func (o ConfigurationTemplateSettingOutput) ToConfigurationTemplateSettingOutput() ConfigurationTemplateSettingOutput
- func (o ConfigurationTemplateSettingOutput) ToConfigurationTemplateSettingOutputWithContext(ctx context.Context) ConfigurationTemplateSettingOutput
- func (o ConfigurationTemplateSettingOutput) Value() pulumi.StringOutput
- type ConfigurationTemplateState
- type Environment
- type EnvironmentAllSetting
- type EnvironmentAllSettingArgs
- type EnvironmentAllSettingArray
- func (EnvironmentAllSettingArray) ElementType() reflect.Type
- func (i EnvironmentAllSettingArray) ToEnvironmentAllSettingArrayOutput() EnvironmentAllSettingArrayOutput
- func (i EnvironmentAllSettingArray) ToEnvironmentAllSettingArrayOutputWithContext(ctx context.Context) EnvironmentAllSettingArrayOutput
- type EnvironmentAllSettingArrayInput
- type EnvironmentAllSettingArrayOutput
- func (EnvironmentAllSettingArrayOutput) ElementType() reflect.Type
- func (o EnvironmentAllSettingArrayOutput) Index(i pulumi.IntInput) EnvironmentAllSettingOutput
- func (o EnvironmentAllSettingArrayOutput) ToEnvironmentAllSettingArrayOutput() EnvironmentAllSettingArrayOutput
- func (o EnvironmentAllSettingArrayOutput) ToEnvironmentAllSettingArrayOutputWithContext(ctx context.Context) EnvironmentAllSettingArrayOutput
- type EnvironmentAllSettingInput
- type EnvironmentAllSettingOutput
- func (EnvironmentAllSettingOutput) ElementType() reflect.Type
- func (o EnvironmentAllSettingOutput) Name() pulumi.StringOutput
- func (o EnvironmentAllSettingOutput) Namespace() pulumi.StringOutput
- func (o EnvironmentAllSettingOutput) Resource() pulumi.StringPtrOutput
- func (o EnvironmentAllSettingOutput) ToEnvironmentAllSettingOutput() EnvironmentAllSettingOutput
- func (o EnvironmentAllSettingOutput) ToEnvironmentAllSettingOutputWithContext(ctx context.Context) EnvironmentAllSettingOutput
- func (o EnvironmentAllSettingOutput) Value() pulumi.StringOutput
- type EnvironmentArgs
- type EnvironmentSetting
- type EnvironmentSettingArgs
- type EnvironmentSettingArray
- type EnvironmentSettingArrayInput
- type EnvironmentSettingArrayOutput
- func (EnvironmentSettingArrayOutput) ElementType() reflect.Type
- func (o EnvironmentSettingArrayOutput) Index(i pulumi.IntInput) EnvironmentSettingOutput
- func (o EnvironmentSettingArrayOutput) ToEnvironmentSettingArrayOutput() EnvironmentSettingArrayOutput
- func (o EnvironmentSettingArrayOutput) ToEnvironmentSettingArrayOutputWithContext(ctx context.Context) EnvironmentSettingArrayOutput
- type EnvironmentSettingInput
- type EnvironmentSettingOutput
- func (EnvironmentSettingOutput) ElementType() reflect.Type
- func (o EnvironmentSettingOutput) Name() pulumi.StringOutput
- func (o EnvironmentSettingOutput) Namespace() pulumi.StringOutput
- func (o EnvironmentSettingOutput) Resource() pulumi.StringPtrOutput
- func (o EnvironmentSettingOutput) ToEnvironmentSettingOutput() EnvironmentSettingOutput
- func (o EnvironmentSettingOutput) ToEnvironmentSettingOutputWithContext(ctx context.Context) EnvironmentSettingOutput
- func (o EnvironmentSettingOutput) Value() pulumi.StringOutput
- type EnvironmentState
- type GetApplicationAppversionLifecycle
- type GetApplicationAppversionLifecycleArgs
- func (GetApplicationAppversionLifecycleArgs) ElementType() reflect.Type
- func (i GetApplicationAppversionLifecycleArgs) ToGetApplicationAppversionLifecycleOutput() GetApplicationAppversionLifecycleOutput
- func (i GetApplicationAppversionLifecycleArgs) ToGetApplicationAppversionLifecycleOutputWithContext(ctx context.Context) GetApplicationAppversionLifecycleOutput
- type GetApplicationAppversionLifecycleInput
- type GetApplicationAppversionLifecycleOutput
- func (o GetApplicationAppversionLifecycleOutput) DeleteSourceFromS3() pulumi.BoolOutput
- func (GetApplicationAppversionLifecycleOutput) ElementType() reflect.Type
- func (o GetApplicationAppversionLifecycleOutput) MaxAgeInDays() pulumi.IntOutput
- func (o GetApplicationAppversionLifecycleOutput) MaxCount() pulumi.IntOutput
- func (o GetApplicationAppversionLifecycleOutput) ServiceRole() pulumi.StringOutput
- func (o GetApplicationAppversionLifecycleOutput) ToGetApplicationAppversionLifecycleOutput() GetApplicationAppversionLifecycleOutput
- func (o GetApplicationAppversionLifecycleOutput) ToGetApplicationAppversionLifecycleOutputWithContext(ctx context.Context) GetApplicationAppversionLifecycleOutput
- type GetHostedZoneArgs
- type GetHostedZoneResult
- type GetSolutionStackArgs
- type GetSolutionStackResult
- type LookupApplicationArgs
- type LookupApplicationResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct { pulumi.CustomResourceState AppversionLifecycle ApplicationAppversionLifecyclePtrOutput `pulumi:"appversionLifecycle"` // The ARN assigned by AWS for this Elastic Beanstalk Application. Arn pulumi.StringOutput `pulumi:"arn"` // Short description of the application Description pulumi.StringPtrOutput `pulumi:"description"` // The name of the application, must be unique within your account Name pulumi.StringOutput `pulumi:"name"` // Key-value map of tags for the Elastic Beanstalk Application. Tags pulumi.StringMapOutput `pulumi:"tags"` }
Provides an Elastic Beanstalk Application Resource. Elastic Beanstalk allows you to deploy and manage applications in the AWS cloud without worrying about the infrastructure that runs those applications.
This resource creates an application that has one configuration template named `default`, and no application versions
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/elasticbeanstalk" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := elasticbeanstalk.NewApplication(ctx, "tftest", &elasticbeanstalk.ApplicationArgs{ AppversionLifecycle: &elasticbeanstalk.ApplicationAppversionLifecycleArgs{ DeleteSourceFromS3: pulumi.Bool(true), MaxCount: pulumi.Int(128), ServiceRole: pulumi.String(aws_iam_role.Beanstalk_service.Arn), }, Description: pulumi.String("tf-test-desc"), }) if err != nil { return err } return nil }) }
```
func GetApplication ¶
func GetApplication(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ApplicationState, opts ...pulumi.ResourceOption) (*Application, error)
GetApplication gets an existing Application resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewApplication ¶
func NewApplication(ctx *pulumi.Context, name string, args *ApplicationArgs, opts ...pulumi.ResourceOption) (*Application, error)
NewApplication registers a new resource with the given unique name, arguments, and options.
type ApplicationAppversionLifecycle ¶
type ApplicationAppversionLifecycle struct { // Set to `true` to delete a version's source bundle from S3 when the application version is deleted. DeleteSourceFromS3 *bool `pulumi:"deleteSourceFromS3"` // The number of days to retain an application version ('max_age_in_days' and 'max_count' cannot be enabled simultaneously.). MaxAgeInDays *int `pulumi:"maxAgeInDays"` // The maximum number of application versions to retain ('max_age_in_days' and 'max_count' cannot be enabled simultaneously.). MaxCount *int `pulumi:"maxCount"` // The ARN of an IAM service role under which the application version is deleted. Elastic Beanstalk must have permission to assume this role. ServiceRole string `pulumi:"serviceRole"` }
type ApplicationAppversionLifecycleArgs ¶
type ApplicationAppversionLifecycleArgs struct { // Set to `true` to delete a version's source bundle from S3 when the application version is deleted. DeleteSourceFromS3 pulumi.BoolPtrInput `pulumi:"deleteSourceFromS3"` // The number of days to retain an application version ('max_age_in_days' and 'max_count' cannot be enabled simultaneously.). MaxAgeInDays pulumi.IntPtrInput `pulumi:"maxAgeInDays"` // The maximum number of application versions to retain ('max_age_in_days' and 'max_count' cannot be enabled simultaneously.). MaxCount pulumi.IntPtrInput `pulumi:"maxCount"` // The ARN of an IAM service role under which the application version is deleted. Elastic Beanstalk must have permission to assume this role. ServiceRole pulumi.StringInput `pulumi:"serviceRole"` }
func (ApplicationAppversionLifecycleArgs) ElementType ¶
func (ApplicationAppversionLifecycleArgs) ElementType() reflect.Type
func (ApplicationAppversionLifecycleArgs) ToApplicationAppversionLifecycleOutput ¶
func (i ApplicationAppversionLifecycleArgs) ToApplicationAppversionLifecycleOutput() ApplicationAppversionLifecycleOutput
func (ApplicationAppversionLifecycleArgs) ToApplicationAppversionLifecycleOutputWithContext ¶
func (i ApplicationAppversionLifecycleArgs) ToApplicationAppversionLifecycleOutputWithContext(ctx context.Context) ApplicationAppversionLifecycleOutput
func (ApplicationAppversionLifecycleArgs) ToApplicationAppversionLifecyclePtrOutput ¶
func (i ApplicationAppversionLifecycleArgs) ToApplicationAppversionLifecyclePtrOutput() ApplicationAppversionLifecyclePtrOutput
func (ApplicationAppversionLifecycleArgs) ToApplicationAppversionLifecyclePtrOutputWithContext ¶
func (i ApplicationAppversionLifecycleArgs) ToApplicationAppversionLifecyclePtrOutputWithContext(ctx context.Context) ApplicationAppversionLifecyclePtrOutput
type ApplicationAppversionLifecycleInput ¶
type ApplicationAppversionLifecycleInput interface { pulumi.Input ToApplicationAppversionLifecycleOutput() ApplicationAppversionLifecycleOutput ToApplicationAppversionLifecycleOutputWithContext(context.Context) ApplicationAppversionLifecycleOutput }
ApplicationAppversionLifecycleInput is an input type that accepts ApplicationAppversionLifecycleArgs and ApplicationAppversionLifecycleOutput values. You can construct a concrete instance of `ApplicationAppversionLifecycleInput` via:
ApplicationAppversionLifecycleArgs{...}
type ApplicationAppversionLifecycleOutput ¶
type ApplicationAppversionLifecycleOutput struct{ *pulumi.OutputState }
func (ApplicationAppversionLifecycleOutput) DeleteSourceFromS3 ¶
func (o ApplicationAppversionLifecycleOutput) DeleteSourceFromS3() pulumi.BoolPtrOutput
Set to `true` to delete a version's source bundle from S3 when the application version is deleted.
func (ApplicationAppversionLifecycleOutput) ElementType ¶
func (ApplicationAppversionLifecycleOutput) ElementType() reflect.Type
func (ApplicationAppversionLifecycleOutput) MaxAgeInDays ¶
func (o ApplicationAppversionLifecycleOutput) MaxAgeInDays() pulumi.IntPtrOutput
The number of days to retain an application version ('max_age_in_days' and 'max_count' cannot be enabled simultaneously.).
func (ApplicationAppversionLifecycleOutput) MaxCount ¶
func (o ApplicationAppversionLifecycleOutput) MaxCount() pulumi.IntPtrOutput
The maximum number of application versions to retain ('max_age_in_days' and 'max_count' cannot be enabled simultaneously.).
func (ApplicationAppversionLifecycleOutput) ServiceRole ¶
func (o ApplicationAppversionLifecycleOutput) ServiceRole() pulumi.StringOutput
The ARN of an IAM service role under which the application version is deleted. Elastic Beanstalk must have permission to assume this role.
func (ApplicationAppversionLifecycleOutput) ToApplicationAppversionLifecycleOutput ¶
func (o ApplicationAppversionLifecycleOutput) ToApplicationAppversionLifecycleOutput() ApplicationAppversionLifecycleOutput
func (ApplicationAppversionLifecycleOutput) ToApplicationAppversionLifecycleOutputWithContext ¶
func (o ApplicationAppversionLifecycleOutput) ToApplicationAppversionLifecycleOutputWithContext(ctx context.Context) ApplicationAppversionLifecycleOutput
func (ApplicationAppversionLifecycleOutput) ToApplicationAppversionLifecyclePtrOutput ¶
func (o ApplicationAppversionLifecycleOutput) ToApplicationAppversionLifecyclePtrOutput() ApplicationAppversionLifecyclePtrOutput
func (ApplicationAppversionLifecycleOutput) ToApplicationAppversionLifecyclePtrOutputWithContext ¶
func (o ApplicationAppversionLifecycleOutput) ToApplicationAppversionLifecyclePtrOutputWithContext(ctx context.Context) ApplicationAppversionLifecyclePtrOutput
type ApplicationAppversionLifecyclePtrInput ¶
type ApplicationAppversionLifecyclePtrInput interface { pulumi.Input ToApplicationAppversionLifecyclePtrOutput() ApplicationAppversionLifecyclePtrOutput ToApplicationAppversionLifecyclePtrOutputWithContext(context.Context) ApplicationAppversionLifecyclePtrOutput }
ApplicationAppversionLifecyclePtrInput is an input type that accepts ApplicationAppversionLifecycleArgs, ApplicationAppversionLifecyclePtr and ApplicationAppversionLifecyclePtrOutput values. You can construct a concrete instance of `ApplicationAppversionLifecyclePtrInput` via:
ApplicationAppversionLifecycleArgs{...} or: nil
func ApplicationAppversionLifecyclePtr ¶
func ApplicationAppversionLifecyclePtr(v *ApplicationAppversionLifecycleArgs) ApplicationAppversionLifecyclePtrInput
type ApplicationAppversionLifecyclePtrOutput ¶
type ApplicationAppversionLifecyclePtrOutput struct{ *pulumi.OutputState }
func (ApplicationAppversionLifecyclePtrOutput) DeleteSourceFromS3 ¶
func (o ApplicationAppversionLifecyclePtrOutput) DeleteSourceFromS3() pulumi.BoolPtrOutput
Set to `true` to delete a version's source bundle from S3 when the application version is deleted.
func (ApplicationAppversionLifecyclePtrOutput) ElementType ¶
func (ApplicationAppversionLifecyclePtrOutput) ElementType() reflect.Type
func (ApplicationAppversionLifecyclePtrOutput) MaxAgeInDays ¶
func (o ApplicationAppversionLifecyclePtrOutput) MaxAgeInDays() pulumi.IntPtrOutput
The number of days to retain an application version ('max_age_in_days' and 'max_count' cannot be enabled simultaneously.).
func (ApplicationAppversionLifecyclePtrOutput) MaxCount ¶
func (o ApplicationAppversionLifecyclePtrOutput) MaxCount() pulumi.IntPtrOutput
The maximum number of application versions to retain ('max_age_in_days' and 'max_count' cannot be enabled simultaneously.).
func (ApplicationAppversionLifecyclePtrOutput) ServiceRole ¶
func (o ApplicationAppversionLifecyclePtrOutput) ServiceRole() pulumi.StringPtrOutput
The ARN of an IAM service role under which the application version is deleted. Elastic Beanstalk must have permission to assume this role.
func (ApplicationAppversionLifecyclePtrOutput) ToApplicationAppversionLifecyclePtrOutput ¶
func (o ApplicationAppversionLifecyclePtrOutput) ToApplicationAppversionLifecyclePtrOutput() ApplicationAppversionLifecyclePtrOutput
func (ApplicationAppversionLifecyclePtrOutput) ToApplicationAppversionLifecyclePtrOutputWithContext ¶
func (o ApplicationAppversionLifecyclePtrOutput) ToApplicationAppversionLifecyclePtrOutputWithContext(ctx context.Context) ApplicationAppversionLifecyclePtrOutput
type ApplicationArgs ¶
type ApplicationArgs struct { AppversionLifecycle ApplicationAppversionLifecyclePtrInput // Short description of the application Description pulumi.StringPtrInput // The name of the application, must be unique within your account Name pulumi.StringPtrInput // Key-value map of tags for the Elastic Beanstalk Application. Tags pulumi.StringMapInput }
The set of arguments for constructing a Application resource.
func (ApplicationArgs) ElementType ¶
func (ApplicationArgs) ElementType() reflect.Type
type ApplicationState ¶
type ApplicationState struct { AppversionLifecycle ApplicationAppversionLifecyclePtrInput // The ARN assigned by AWS for this Elastic Beanstalk Application. Arn pulumi.StringPtrInput // Short description of the application Description pulumi.StringPtrInput // The name of the application, must be unique within your account Name pulumi.StringPtrInput // Key-value map of tags for the Elastic Beanstalk Application. Tags pulumi.StringMapInput }
func (ApplicationState) ElementType ¶
func (ApplicationState) ElementType() reflect.Type
type ApplicationVersion ¶
type ApplicationVersion struct { pulumi.CustomResourceState // Name of the Beanstalk Application the version is associated with. Application pulumi.StringOutput `pulumi:"application"` // The ARN assigned by AWS for this Elastic Beanstalk Application. Arn pulumi.StringOutput `pulumi:"arn"` // S3 bucket that contains the Application Version source bundle. Bucket pulumi.StringOutput `pulumi:"bucket"` // Short description of the Application Version. Description pulumi.StringPtrOutput `pulumi:"description"` // On delete, force an Application Version to be deleted when it may be in use // by multiple Elastic Beanstalk Environments. ForceDelete pulumi.BoolPtrOutput `pulumi:"forceDelete"` // S3 object that is the Application Version source bundle. Key pulumi.StringOutput `pulumi:"key"` // A unique name for the this Application Version. Name pulumi.StringOutput `pulumi:"name"` // Key-value map of tags for the Elastic Beanstalk Application Version. Tags pulumi.StringMapOutput `pulumi:"tags"` }
Provides an Elastic Beanstalk Application Version Resource. Elastic Beanstalk allows you to deploy and manage applications in the AWS cloud without worrying about the infrastructure that runs those applications.
This resource creates a Beanstalk Application Version that can be deployed to a Beanstalk Environment.
> **NOTE on Application Version Resource:** When using the Application Version resource with multiple Elastic Beanstalk Environments it is possible that an error may be returned when attempting to delete an Application Version while it is still in use by a different environment. To work around this you can either create each environment in a separate AWS account or create your `elasticbeanstalk.ApplicationVersion` resources with a unique names in your Elastic Beanstalk Application. For example <revision>-<environment>.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/elasticbeanstalk" "github.com/pulumi/pulumi-aws/sdk/v2/go/aws/s3" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { defaultBucket, err := s3.NewBucket(ctx, "defaultBucket", nil) if err != nil { return err } defaultBucketObject, err := s3.NewBucketObject(ctx, "defaultBucketObject", &s3.BucketObjectArgs{ Bucket: defaultBucket.ID(), Key: pulumi.String("beanstalk/go-v1.zip"), Source: pulumi.NewFileAsset("go-v1.zip"), }) if err != nil { return err } _, err = elasticbeanstalk.NewApplication(ctx, "defaultApplication", &elasticbeanstalk.ApplicationArgs{ Description: pulumi.String("tf-test-desc"), }) if err != nil { return err } _, err = elasticbeanstalk.NewApplicationVersion(ctx, "defaultApplicationVersion", &elasticbeanstalk.ApplicationVersionArgs{ Application: pulumi.String("tf-test-name"), Bucket: defaultBucket.ID(), Description: pulumi.String("application version"), Key: defaultBucketObject.ID(), }) if err != nil { return err } return nil }) }
```
func GetApplicationVersion ¶
func GetApplicationVersion(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ApplicationVersionState, opts ...pulumi.ResourceOption) (*ApplicationVersion, error)
GetApplicationVersion gets an existing ApplicationVersion resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewApplicationVersion ¶
func NewApplicationVersion(ctx *pulumi.Context, name string, args *ApplicationVersionArgs, opts ...pulumi.ResourceOption) (*ApplicationVersion, error)
NewApplicationVersion registers a new resource with the given unique name, arguments, and options.
type ApplicationVersionArgs ¶
type ApplicationVersionArgs struct { // Name of the Beanstalk Application the version is associated with. Application pulumi.Input // S3 bucket that contains the Application Version source bundle. Bucket pulumi.Input // Short description of the Application Version. Description pulumi.StringPtrInput // On delete, force an Application Version to be deleted when it may be in use // by multiple Elastic Beanstalk Environments. ForceDelete pulumi.BoolPtrInput // S3 object that is the Application Version source bundle. Key pulumi.StringInput // A unique name for the this Application Version. Name pulumi.StringPtrInput // Key-value map of tags for the Elastic Beanstalk Application Version. Tags pulumi.StringMapInput }
The set of arguments for constructing a ApplicationVersion resource.
func (ApplicationVersionArgs) ElementType ¶
func (ApplicationVersionArgs) ElementType() reflect.Type
type ApplicationVersionState ¶
type ApplicationVersionState struct { // Name of the Beanstalk Application the version is associated with. Application pulumi.StringPtrInput // The ARN assigned by AWS for this Elastic Beanstalk Application. Arn pulumi.StringPtrInput // S3 bucket that contains the Application Version source bundle. Bucket pulumi.StringPtrInput // Short description of the Application Version. Description pulumi.StringPtrInput // On delete, force an Application Version to be deleted when it may be in use // by multiple Elastic Beanstalk Environments. ForceDelete pulumi.BoolPtrInput // S3 object that is the Application Version source bundle. Key pulumi.StringPtrInput // A unique name for the this Application Version. Name pulumi.StringPtrInput // Key-value map of tags for the Elastic Beanstalk Application Version. Tags pulumi.StringMapInput }
func (ApplicationVersionState) ElementType ¶
func (ApplicationVersionState) ElementType() reflect.Type
type ConfigurationTemplate ¶
type ConfigurationTemplate struct { pulumi.CustomResourceState // name of the application to associate with this configuration template Application pulumi.StringOutput `pulumi:"application"` // Short description of the Template Description pulumi.StringPtrOutput `pulumi:"description"` // The ID of the environment used with this configuration template EnvironmentId pulumi.StringPtrOutput `pulumi:"environmentId"` // A unique name for this Template. Name pulumi.StringOutput `pulumi:"name"` // 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 ConfigurationTemplateSettingArrayOutput `pulumi:"settings"` // A solution stack to base your Template // 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.StringPtrOutput `pulumi:"solutionStackName"` }
Provides an Elastic Beanstalk Configuration Template, which are associated with a specific application and are used to deploy different versions of the application with the same configuration settings.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/elasticbeanstalk" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { tftest, err := elasticbeanstalk.NewApplication(ctx, "tftest", &elasticbeanstalk.ApplicationArgs{ Description: pulumi.String("tf-test-desc"), }) if err != nil { return err } _, err = elasticbeanstalk.NewConfigurationTemplate(ctx, "tfTemplate", &elasticbeanstalk.ConfigurationTemplateArgs{ Application: tftest.Name, SolutionStackName: pulumi.String("64bit Amazon Linux 2015.09 v2.0.8 running Go 1.4"), }) if err != nil { return err } return nil }) }
``` ## Option Settings
The `setting` field supports the following format:
* `namespace` - unique namespace identifying the option's associated AWS resource * `name` - name of the configuration option * `value` - value for the configuration option * `resource` - (Optional) resource name for [scheduled action](https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/command-options-general.html#command-options-general-autoscalingscheduledaction)
func GetConfigurationTemplate ¶
func GetConfigurationTemplate(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ConfigurationTemplateState, opts ...pulumi.ResourceOption) (*ConfigurationTemplate, error)
GetConfigurationTemplate gets an existing ConfigurationTemplate resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewConfigurationTemplate ¶
func NewConfigurationTemplate(ctx *pulumi.Context, name string, args *ConfigurationTemplateArgs, opts ...pulumi.ResourceOption) (*ConfigurationTemplate, error)
NewConfigurationTemplate registers a new resource with the given unique name, arguments, and options.
type ConfigurationTemplateArgs ¶
type ConfigurationTemplateArgs struct { // name of the application to associate with this configuration template Application pulumi.StringInput // Short description of the Template Description pulumi.StringPtrInput // The ID of the environment used with this configuration template EnvironmentId pulumi.StringPtrInput // A unique name for this Template. Name pulumi.StringPtrInput // 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 ConfigurationTemplateSettingArrayInput // A solution stack to base your Template // 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.StringPtrInput }
The set of arguments for constructing a ConfigurationTemplate resource.
func (ConfigurationTemplateArgs) ElementType ¶
func (ConfigurationTemplateArgs) ElementType() reflect.Type
type ConfigurationTemplateSettingArgs ¶
type ConfigurationTemplateSettingArgs struct { // A unique name for this Template. Name pulumi.StringInput `pulumi:"name"` Namespace pulumi.StringInput `pulumi:"namespace"` Resource pulumi.StringPtrInput `pulumi:"resource"` Value pulumi.StringInput `pulumi:"value"` }
func (ConfigurationTemplateSettingArgs) ElementType ¶
func (ConfigurationTemplateSettingArgs) ElementType() reflect.Type
func (ConfigurationTemplateSettingArgs) ToConfigurationTemplateSettingOutput ¶
func (i ConfigurationTemplateSettingArgs) ToConfigurationTemplateSettingOutput() ConfigurationTemplateSettingOutput
func (ConfigurationTemplateSettingArgs) ToConfigurationTemplateSettingOutputWithContext ¶
func (i ConfigurationTemplateSettingArgs) ToConfigurationTemplateSettingOutputWithContext(ctx context.Context) ConfigurationTemplateSettingOutput
type ConfigurationTemplateSettingArray ¶
type ConfigurationTemplateSettingArray []ConfigurationTemplateSettingInput
func (ConfigurationTemplateSettingArray) ElementType ¶
func (ConfigurationTemplateSettingArray) ElementType() reflect.Type
func (ConfigurationTemplateSettingArray) ToConfigurationTemplateSettingArrayOutput ¶
func (i ConfigurationTemplateSettingArray) ToConfigurationTemplateSettingArrayOutput() ConfigurationTemplateSettingArrayOutput
func (ConfigurationTemplateSettingArray) ToConfigurationTemplateSettingArrayOutputWithContext ¶
func (i ConfigurationTemplateSettingArray) ToConfigurationTemplateSettingArrayOutputWithContext(ctx context.Context) ConfigurationTemplateSettingArrayOutput
type ConfigurationTemplateSettingArrayInput ¶
type ConfigurationTemplateSettingArrayInput interface { pulumi.Input ToConfigurationTemplateSettingArrayOutput() ConfigurationTemplateSettingArrayOutput ToConfigurationTemplateSettingArrayOutputWithContext(context.Context) ConfigurationTemplateSettingArrayOutput }
ConfigurationTemplateSettingArrayInput is an input type that accepts ConfigurationTemplateSettingArray and ConfigurationTemplateSettingArrayOutput values. You can construct a concrete instance of `ConfigurationTemplateSettingArrayInput` via:
ConfigurationTemplateSettingArray{ ConfigurationTemplateSettingArgs{...} }
type ConfigurationTemplateSettingArrayOutput ¶
type ConfigurationTemplateSettingArrayOutput struct{ *pulumi.OutputState }
func (ConfigurationTemplateSettingArrayOutput) ElementType ¶
func (ConfigurationTemplateSettingArrayOutput) ElementType() reflect.Type
func (ConfigurationTemplateSettingArrayOutput) ToConfigurationTemplateSettingArrayOutput ¶
func (o ConfigurationTemplateSettingArrayOutput) ToConfigurationTemplateSettingArrayOutput() ConfigurationTemplateSettingArrayOutput
func (ConfigurationTemplateSettingArrayOutput) ToConfigurationTemplateSettingArrayOutputWithContext ¶
func (o ConfigurationTemplateSettingArrayOutput) ToConfigurationTemplateSettingArrayOutputWithContext(ctx context.Context) ConfigurationTemplateSettingArrayOutput
type ConfigurationTemplateSettingInput ¶
type ConfigurationTemplateSettingInput interface { pulumi.Input ToConfigurationTemplateSettingOutput() ConfigurationTemplateSettingOutput ToConfigurationTemplateSettingOutputWithContext(context.Context) ConfigurationTemplateSettingOutput }
ConfigurationTemplateSettingInput is an input type that accepts ConfigurationTemplateSettingArgs and ConfigurationTemplateSettingOutput values. You can construct a concrete instance of `ConfigurationTemplateSettingInput` via:
ConfigurationTemplateSettingArgs{...}
type ConfigurationTemplateSettingOutput ¶
type ConfigurationTemplateSettingOutput struct{ *pulumi.OutputState }
func (ConfigurationTemplateSettingOutput) ElementType ¶
func (ConfigurationTemplateSettingOutput) ElementType() reflect.Type
func (ConfigurationTemplateSettingOutput) Name ¶
func (o ConfigurationTemplateSettingOutput) Name() pulumi.StringOutput
A unique name for this Template.
func (ConfigurationTemplateSettingOutput) Namespace ¶
func (o ConfigurationTemplateSettingOutput) Namespace() pulumi.StringOutput
func (ConfigurationTemplateSettingOutput) Resource ¶
func (o ConfigurationTemplateSettingOutput) Resource() pulumi.StringPtrOutput
func (ConfigurationTemplateSettingOutput) ToConfigurationTemplateSettingOutput ¶
func (o ConfigurationTemplateSettingOutput) ToConfigurationTemplateSettingOutput() ConfigurationTemplateSettingOutput
func (ConfigurationTemplateSettingOutput) ToConfigurationTemplateSettingOutputWithContext ¶
func (o ConfigurationTemplateSettingOutput) ToConfigurationTemplateSettingOutputWithContext(ctx context.Context) ConfigurationTemplateSettingOutput
func (ConfigurationTemplateSettingOutput) Value ¶
func (o ConfigurationTemplateSettingOutput) Value() pulumi.StringOutput
type ConfigurationTemplateState ¶
type ConfigurationTemplateState struct { // name of the application to associate with this configuration template Application pulumi.StringPtrInput // Short description of the Template Description pulumi.StringPtrInput // The ID of the environment used with this configuration template EnvironmentId pulumi.StringPtrInput // A unique name for this Template. Name pulumi.StringPtrInput // 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 ConfigurationTemplateSettingArrayInput // A solution stack to base your Template // 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.StringPtrInput }
func (ConfigurationTemplateState) ElementType ¶
func (ConfigurationTemplateState) ElementType() reflect.Type
type Environment ¶
type Environment struct { pulumi.CustomResourceState // 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 EnvironmentAllSettingArrayOutput `pulumi:"allSettings"` // Name of the application that contains the version // to be deployed Application pulumi.StringOutput `pulumi:"application"` Arn pulumi.StringOutput `pulumi:"arn"` // The autoscaling groups used by this Environment. AutoscalingGroups pulumi.StringArrayOutput `pulumi:"autoscalingGroups"` // Fully qualified DNS name for this Environment. Cname pulumi.StringOutput `pulumi:"cname"` // Prefix to use for the fully qualified DNS name of // the Environment. CnamePrefix pulumi.StringOutput `pulumi:"cnamePrefix"` // Short description of the Environment Description pulumi.StringPtrOutput `pulumi:"description"` // The URL to the Load Balancer for this Environment EndpointUrl pulumi.StringOutput `pulumi:"endpointUrl"` // Instances used by this Environment. Instances pulumi.StringArrayOutput `pulumi:"instances"` // Launch configurations in use by this Environment. LaunchConfigurations pulumi.StringArrayOutput `pulumi:"launchConfigurations"` // Elastic load balancers in use by this Environment. LoadBalancers pulumi.StringArrayOutput `pulumi:"loadBalancers"` // A unique name for this Environment. This name is used // in the application URL Name pulumi.StringOutput `pulumi:"name"` // 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.StringOutput `pulumi:"platformArn"` // 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.StringPtrOutput `pulumi:"pollInterval"` // SQS queues in use by this Environment. Queues pulumi.StringArrayOutput `pulumi:"queues"` // 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 EnvironmentSettingArrayOutput `pulumi:"settings"` // 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.StringOutput `pulumi:"solutionStackName"` // A set of tags to apply to the Environment. Tags pulumi.StringMapOutput `pulumi:"tags"` // The name of the Elastic Beanstalk Configuration // template to use in deployment TemplateName pulumi.StringPtrOutput `pulumi:"templateName"` // Elastic Beanstalk Environment tier. Valid values are `Worker` // or `WebServer`. If tier is left blank `WebServer` will be used. Tier pulumi.StringPtrOutput `pulumi:"tier"` // Autoscaling triggers in use by this Environment. Triggers pulumi.StringArrayOutput `pulumi:"triggers"` // The name of the Elastic Beanstalk Application Version // to use in deployment. Version pulumi.StringOutput `pulumi:"version"` // 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.StringPtrOutput `pulumi:"waitForReadyTimeout"` }
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
```go package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/elasticbeanstalk" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { tftest, err := elasticbeanstalk.NewApplication(ctx, "tftest", &elasticbeanstalk.ApplicationArgs{ Description: pulumi.String("tf-test-desc"), }) if err != nil { return err } _, err = elasticbeanstalk.NewEnvironment(ctx, "tfenvtest", &elasticbeanstalk.EnvironmentArgs{ Application: tftest.Name, SolutionStackName: pulumi.String("64bit Amazon Linux 2015.03 v2.0.3 running Go 1.4"), }) if err != nil { return err } return nil }) }
``` ## Option Settings
Some options can be stack-specific, check [AWS Docs](https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/command-options-general.html) for supported options and examples.
The `setting` and `allSettings` mappings support the following format:
* `namespace` - unique namespace identifying the option's associated AWS resource * `name` - name of the configuration option * `value` - value for the configuration option * `resource` - (Optional) resource name for [scheduled action](https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/command-options-general.html#command-options-general-autoscalingscheduledaction)
### Example With Options
```go package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/elasticbeanstalk" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { tftest, err := elasticbeanstalk.NewApplication(ctx, "tftest", &elasticbeanstalk.ApplicationArgs{ Description: pulumi.String("tf-test-desc"), }) if err != nil { return err } _, err = elasticbeanstalk.NewEnvironment(ctx, "tfenvtest", &elasticbeanstalk.EnvironmentArgs{ Application: tftest.Name, Settings: elasticbeanstalk.EnvironmentSettingArray{ &elasticbeanstalk.EnvironmentSettingArgs{ Name: pulumi.String("VPCId"), Namespace: pulumi.String("aws:ec2:vpc"), Value: pulumi.String("vpc-xxxxxxxx"), }, &elasticbeanstalk.EnvironmentSettingArgs{ Name: pulumi.String("Subnets"), Namespace: pulumi.String("aws:ec2:vpc"), Value: pulumi.String("subnet-xxxxxxxx"), }, }, SolutionStackName: pulumi.String("64bit Amazon Linux 2015.03 v2.0.3 running Go 1.4"), }) if err != nil { return err } return nil }) }
```
func GetEnvironment ¶
func GetEnvironment(ctx *pulumi.Context, name string, id pulumi.IDInput, state *EnvironmentState, opts ...pulumi.ResourceOption) (*Environment, error)
GetEnvironment gets an existing Environment resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewEnvironment ¶
func NewEnvironment(ctx *pulumi.Context, name string, args *EnvironmentArgs, opts ...pulumi.ResourceOption) (*Environment, error)
NewEnvironment registers a new resource with the given unique name, arguments, and options.
type EnvironmentAllSetting ¶
type EnvironmentAllSettingArgs ¶
type EnvironmentAllSettingArgs struct { // A unique name for this Environment. This name is used // in the application URL Name pulumi.StringInput `pulumi:"name"` Namespace pulumi.StringInput `pulumi:"namespace"` Resource pulumi.StringPtrInput `pulumi:"resource"` Value pulumi.StringInput `pulumi:"value"` }
func (EnvironmentAllSettingArgs) ElementType ¶
func (EnvironmentAllSettingArgs) ElementType() reflect.Type
func (EnvironmentAllSettingArgs) ToEnvironmentAllSettingOutput ¶
func (i EnvironmentAllSettingArgs) ToEnvironmentAllSettingOutput() EnvironmentAllSettingOutput
func (EnvironmentAllSettingArgs) ToEnvironmentAllSettingOutputWithContext ¶
func (i EnvironmentAllSettingArgs) ToEnvironmentAllSettingOutputWithContext(ctx context.Context) EnvironmentAllSettingOutput
type EnvironmentAllSettingArray ¶
type EnvironmentAllSettingArray []EnvironmentAllSettingInput
func (EnvironmentAllSettingArray) ElementType ¶
func (EnvironmentAllSettingArray) ElementType() reflect.Type
func (EnvironmentAllSettingArray) ToEnvironmentAllSettingArrayOutput ¶
func (i EnvironmentAllSettingArray) ToEnvironmentAllSettingArrayOutput() EnvironmentAllSettingArrayOutput
func (EnvironmentAllSettingArray) ToEnvironmentAllSettingArrayOutputWithContext ¶
func (i EnvironmentAllSettingArray) ToEnvironmentAllSettingArrayOutputWithContext(ctx context.Context) EnvironmentAllSettingArrayOutput
type EnvironmentAllSettingArrayInput ¶
type EnvironmentAllSettingArrayInput interface { pulumi.Input ToEnvironmentAllSettingArrayOutput() EnvironmentAllSettingArrayOutput ToEnvironmentAllSettingArrayOutputWithContext(context.Context) EnvironmentAllSettingArrayOutput }
EnvironmentAllSettingArrayInput is an input type that accepts EnvironmentAllSettingArray and EnvironmentAllSettingArrayOutput values. You can construct a concrete instance of `EnvironmentAllSettingArrayInput` via:
EnvironmentAllSettingArray{ EnvironmentAllSettingArgs{...} }
type EnvironmentAllSettingArrayOutput ¶
type EnvironmentAllSettingArrayOutput struct{ *pulumi.OutputState }
func (EnvironmentAllSettingArrayOutput) ElementType ¶
func (EnvironmentAllSettingArrayOutput) ElementType() reflect.Type
func (EnvironmentAllSettingArrayOutput) Index ¶
func (o EnvironmentAllSettingArrayOutput) Index(i pulumi.IntInput) EnvironmentAllSettingOutput
func (EnvironmentAllSettingArrayOutput) ToEnvironmentAllSettingArrayOutput ¶
func (o EnvironmentAllSettingArrayOutput) ToEnvironmentAllSettingArrayOutput() EnvironmentAllSettingArrayOutput
func (EnvironmentAllSettingArrayOutput) ToEnvironmentAllSettingArrayOutputWithContext ¶
func (o EnvironmentAllSettingArrayOutput) ToEnvironmentAllSettingArrayOutputWithContext(ctx context.Context) EnvironmentAllSettingArrayOutput
type EnvironmentAllSettingInput ¶
type EnvironmentAllSettingInput interface { pulumi.Input ToEnvironmentAllSettingOutput() EnvironmentAllSettingOutput ToEnvironmentAllSettingOutputWithContext(context.Context) EnvironmentAllSettingOutput }
EnvironmentAllSettingInput is an input type that accepts EnvironmentAllSettingArgs and EnvironmentAllSettingOutput values. You can construct a concrete instance of `EnvironmentAllSettingInput` via:
EnvironmentAllSettingArgs{...}
type EnvironmentAllSettingOutput ¶
type EnvironmentAllSettingOutput struct{ *pulumi.OutputState }
func (EnvironmentAllSettingOutput) ElementType ¶
func (EnvironmentAllSettingOutput) ElementType() reflect.Type
func (EnvironmentAllSettingOutput) Name ¶
func (o EnvironmentAllSettingOutput) Name() pulumi.StringOutput
A unique name for this Environment. This name is used in the application URL
func (EnvironmentAllSettingOutput) Namespace ¶
func (o EnvironmentAllSettingOutput) Namespace() pulumi.StringOutput
func (EnvironmentAllSettingOutput) Resource ¶
func (o EnvironmentAllSettingOutput) Resource() pulumi.StringPtrOutput
func (EnvironmentAllSettingOutput) ToEnvironmentAllSettingOutput ¶
func (o EnvironmentAllSettingOutput) ToEnvironmentAllSettingOutput() EnvironmentAllSettingOutput
func (EnvironmentAllSettingOutput) ToEnvironmentAllSettingOutputWithContext ¶
func (o EnvironmentAllSettingOutput) ToEnvironmentAllSettingOutputWithContext(ctx context.Context) EnvironmentAllSettingOutput
func (EnvironmentAllSettingOutput) Value ¶
func (o EnvironmentAllSettingOutput) Value() pulumi.StringOutput
type EnvironmentArgs ¶
type EnvironmentArgs struct { // 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.StringPtrInput // Short description of the Environment Description pulumi.StringPtrInput // A unique name for this Environment. This name is used // in the application URL Name pulumi.StringPtrInput // 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.StringPtrInput // 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.StringPtrInput // 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 EnvironmentSettingArrayInput // 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.StringPtrInput // A set of tags to apply to the Environment. Tags pulumi.StringMapInput // The name of the Elastic Beanstalk Configuration // template to use in deployment TemplateName pulumi.StringPtrInput // Elastic Beanstalk Environment tier. Valid values are `Worker` // or `WebServer`. If tier is left blank `WebServer` will be used. Tier pulumi.StringPtrInput // The name of the Elastic Beanstalk Application Version // to use in deployment. Version pulumi.StringPtrInput // 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.StringPtrInput }
The set of arguments for constructing a Environment resource.
func (EnvironmentArgs) ElementType ¶
func (EnvironmentArgs) ElementType() reflect.Type
type EnvironmentSetting ¶
type EnvironmentSettingArgs ¶
type EnvironmentSettingArgs struct { // A unique name for this Environment. This name is used // in the application URL Name pulumi.StringInput `pulumi:"name"` Namespace pulumi.StringInput `pulumi:"namespace"` Resource pulumi.StringPtrInput `pulumi:"resource"` Value pulumi.StringInput `pulumi:"value"` }
func (EnvironmentSettingArgs) ElementType ¶
func (EnvironmentSettingArgs) ElementType() reflect.Type
func (EnvironmentSettingArgs) ToEnvironmentSettingOutput ¶
func (i EnvironmentSettingArgs) ToEnvironmentSettingOutput() EnvironmentSettingOutput
func (EnvironmentSettingArgs) ToEnvironmentSettingOutputWithContext ¶
func (i EnvironmentSettingArgs) ToEnvironmentSettingOutputWithContext(ctx context.Context) EnvironmentSettingOutput
type EnvironmentSettingArray ¶
type EnvironmentSettingArray []EnvironmentSettingInput
func (EnvironmentSettingArray) ElementType ¶
func (EnvironmentSettingArray) ElementType() reflect.Type
func (EnvironmentSettingArray) ToEnvironmentSettingArrayOutput ¶
func (i EnvironmentSettingArray) ToEnvironmentSettingArrayOutput() EnvironmentSettingArrayOutput
func (EnvironmentSettingArray) ToEnvironmentSettingArrayOutputWithContext ¶
func (i EnvironmentSettingArray) ToEnvironmentSettingArrayOutputWithContext(ctx context.Context) EnvironmentSettingArrayOutput
type EnvironmentSettingArrayInput ¶
type EnvironmentSettingArrayInput interface { pulumi.Input ToEnvironmentSettingArrayOutput() EnvironmentSettingArrayOutput ToEnvironmentSettingArrayOutputWithContext(context.Context) EnvironmentSettingArrayOutput }
EnvironmentSettingArrayInput is an input type that accepts EnvironmentSettingArray and EnvironmentSettingArrayOutput values. You can construct a concrete instance of `EnvironmentSettingArrayInput` via:
EnvironmentSettingArray{ EnvironmentSettingArgs{...} }
type EnvironmentSettingArrayOutput ¶
type EnvironmentSettingArrayOutput struct{ *pulumi.OutputState }
func (EnvironmentSettingArrayOutput) ElementType ¶
func (EnvironmentSettingArrayOutput) ElementType() reflect.Type
func (EnvironmentSettingArrayOutput) Index ¶
func (o EnvironmentSettingArrayOutput) Index(i pulumi.IntInput) EnvironmentSettingOutput
func (EnvironmentSettingArrayOutput) ToEnvironmentSettingArrayOutput ¶
func (o EnvironmentSettingArrayOutput) ToEnvironmentSettingArrayOutput() EnvironmentSettingArrayOutput
func (EnvironmentSettingArrayOutput) ToEnvironmentSettingArrayOutputWithContext ¶
func (o EnvironmentSettingArrayOutput) ToEnvironmentSettingArrayOutputWithContext(ctx context.Context) EnvironmentSettingArrayOutput
type EnvironmentSettingInput ¶
type EnvironmentSettingInput interface { pulumi.Input ToEnvironmentSettingOutput() EnvironmentSettingOutput ToEnvironmentSettingOutputWithContext(context.Context) EnvironmentSettingOutput }
EnvironmentSettingInput is an input type that accepts EnvironmentSettingArgs and EnvironmentSettingOutput values. You can construct a concrete instance of `EnvironmentSettingInput` via:
EnvironmentSettingArgs{...}
type EnvironmentSettingOutput ¶
type EnvironmentSettingOutput struct{ *pulumi.OutputState }
func (EnvironmentSettingOutput) ElementType ¶
func (EnvironmentSettingOutput) ElementType() reflect.Type
func (EnvironmentSettingOutput) Name ¶
func (o EnvironmentSettingOutput) Name() pulumi.StringOutput
A unique name for this Environment. This name is used in the application URL
func (EnvironmentSettingOutput) Namespace ¶
func (o EnvironmentSettingOutput) Namespace() pulumi.StringOutput
func (EnvironmentSettingOutput) Resource ¶
func (o EnvironmentSettingOutput) Resource() pulumi.StringPtrOutput
func (EnvironmentSettingOutput) ToEnvironmentSettingOutput ¶
func (o EnvironmentSettingOutput) ToEnvironmentSettingOutput() EnvironmentSettingOutput
func (EnvironmentSettingOutput) ToEnvironmentSettingOutputWithContext ¶
func (o EnvironmentSettingOutput) ToEnvironmentSettingOutputWithContext(ctx context.Context) EnvironmentSettingOutput
func (EnvironmentSettingOutput) Value ¶
func (o EnvironmentSettingOutput) Value() pulumi.StringOutput
type EnvironmentState ¶
type EnvironmentState struct { // 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 EnvironmentAllSettingArrayInput // Name of the application that contains the version // to be deployed Application pulumi.StringPtrInput Arn pulumi.StringPtrInput // The autoscaling groups used by this Environment. AutoscalingGroups pulumi.StringArrayInput // Fully qualified DNS name for this Environment. Cname pulumi.StringPtrInput // Prefix to use for the fully qualified DNS name of // the Environment. CnamePrefix pulumi.StringPtrInput // Short description of the Environment Description pulumi.StringPtrInput // The URL to the Load Balancer for this Environment EndpointUrl pulumi.StringPtrInput // Instances used by this Environment. Instances pulumi.StringArrayInput // Launch configurations in use by this Environment. LaunchConfigurations pulumi.StringArrayInput // Elastic load balancers in use by this Environment. LoadBalancers pulumi.StringArrayInput // A unique name for this Environment. This name is used // in the application URL Name pulumi.StringPtrInput // 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.StringPtrInput // 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.StringPtrInput // SQS queues in use by this Environment. Queues pulumi.StringArrayInput // 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 EnvironmentSettingArrayInput // 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.StringPtrInput // A set of tags to apply to the Environment. Tags pulumi.StringMapInput // The name of the Elastic Beanstalk Configuration // template to use in deployment TemplateName pulumi.StringPtrInput // Elastic Beanstalk Environment tier. Valid values are `Worker` // or `WebServer`. If tier is left blank `WebServer` will be used. Tier pulumi.StringPtrInput // Autoscaling triggers in use by this Environment. Triggers pulumi.StringArrayInput // The name of the Elastic Beanstalk Application Version // to use in deployment. Version pulumi.StringPtrInput // 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.StringPtrInput }
func (EnvironmentState) ElementType ¶
func (EnvironmentState) ElementType() reflect.Type
type GetApplicationAppversionLifecycle ¶
type GetApplicationAppversionLifecycle struct { // Specifies whether delete a version's source bundle from S3 when the application version is deleted. DeleteSourceFromS3 bool `pulumi:"deleteSourceFromS3"` // The number of days to retain an application version. MaxAgeInDays int `pulumi:"maxAgeInDays"` // The maximum number of application versions to retain. MaxCount int `pulumi:"maxCount"` // The ARN of an IAM service role under which the application version is deleted. Elastic Beanstalk must have permission to assume this role. ServiceRole string `pulumi:"serviceRole"` }
type GetApplicationAppversionLifecycleArgs ¶
type GetApplicationAppversionLifecycleArgs struct { // Specifies whether delete a version's source bundle from S3 when the application version is deleted. DeleteSourceFromS3 pulumi.BoolInput `pulumi:"deleteSourceFromS3"` // The number of days to retain an application version. MaxAgeInDays pulumi.IntInput `pulumi:"maxAgeInDays"` // The maximum number of application versions to retain. MaxCount pulumi.IntInput `pulumi:"maxCount"` // The ARN of an IAM service role under which the application version is deleted. Elastic Beanstalk must have permission to assume this role. ServiceRole pulumi.StringInput `pulumi:"serviceRole"` }
func (GetApplicationAppversionLifecycleArgs) ElementType ¶
func (GetApplicationAppversionLifecycleArgs) ElementType() reflect.Type
func (GetApplicationAppversionLifecycleArgs) ToGetApplicationAppversionLifecycleOutput ¶
func (i GetApplicationAppversionLifecycleArgs) ToGetApplicationAppversionLifecycleOutput() GetApplicationAppversionLifecycleOutput
func (GetApplicationAppversionLifecycleArgs) ToGetApplicationAppversionLifecycleOutputWithContext ¶
func (i GetApplicationAppversionLifecycleArgs) ToGetApplicationAppversionLifecycleOutputWithContext(ctx context.Context) GetApplicationAppversionLifecycleOutput
type GetApplicationAppversionLifecycleInput ¶
type GetApplicationAppversionLifecycleInput interface { pulumi.Input ToGetApplicationAppversionLifecycleOutput() GetApplicationAppversionLifecycleOutput ToGetApplicationAppversionLifecycleOutputWithContext(context.Context) GetApplicationAppversionLifecycleOutput }
GetApplicationAppversionLifecycleInput is an input type that accepts GetApplicationAppversionLifecycleArgs and GetApplicationAppversionLifecycleOutput values. You can construct a concrete instance of `GetApplicationAppversionLifecycleInput` via:
GetApplicationAppversionLifecycleArgs{...}
type GetApplicationAppversionLifecycleOutput ¶
type GetApplicationAppversionLifecycleOutput struct{ *pulumi.OutputState }
func (GetApplicationAppversionLifecycleOutput) DeleteSourceFromS3 ¶
func (o GetApplicationAppversionLifecycleOutput) DeleteSourceFromS3() pulumi.BoolOutput
Specifies whether delete a version's source bundle from S3 when the application version is deleted.
func (GetApplicationAppversionLifecycleOutput) ElementType ¶
func (GetApplicationAppversionLifecycleOutput) ElementType() reflect.Type
func (GetApplicationAppversionLifecycleOutput) MaxAgeInDays ¶
func (o GetApplicationAppversionLifecycleOutput) MaxAgeInDays() pulumi.IntOutput
The number of days to retain an application version.
func (GetApplicationAppversionLifecycleOutput) MaxCount ¶
func (o GetApplicationAppversionLifecycleOutput) MaxCount() pulumi.IntOutput
The maximum number of application versions to retain.
func (GetApplicationAppversionLifecycleOutput) ServiceRole ¶
func (o GetApplicationAppversionLifecycleOutput) ServiceRole() pulumi.StringOutput
The ARN of an IAM service role under which the application version is deleted. Elastic Beanstalk must have permission to assume this role.
func (GetApplicationAppversionLifecycleOutput) ToGetApplicationAppversionLifecycleOutput ¶
func (o GetApplicationAppversionLifecycleOutput) ToGetApplicationAppversionLifecycleOutput() GetApplicationAppversionLifecycleOutput
func (GetApplicationAppversionLifecycleOutput) ToGetApplicationAppversionLifecycleOutputWithContext ¶
func (o GetApplicationAppversionLifecycleOutput) ToGetApplicationAppversionLifecycleOutputWithContext(ctx context.Context) GetApplicationAppversionLifecycleOutput
type GetHostedZoneArgs ¶
type GetHostedZoneArgs struct { // The region you'd like the zone for. By default, fetches the current region. Region *string `pulumi:"region"` }
A collection of arguments for invoking getHostedZone.
type GetHostedZoneResult ¶
type GetHostedZoneResult struct { // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // The region of the hosted zone. Region *string `pulumi:"region"` }
A collection of values returned by getHostedZone.
func GetHostedZone ¶
func GetHostedZone(ctx *pulumi.Context, args *GetHostedZoneArgs, opts ...pulumi.InvokeOption) (*GetHostedZoneResult, error)
Use this data source to get the ID of an [elastic beanstalk hosted zone](http://docs.aws.amazon.com/general/latest/gr/rande.html#elasticbeanstalk_region).
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/elasticbeanstalk" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := elasticbeanstalk.GetHostedZone(ctx, nil, nil) if err != nil { return err } return nil }) }
```
type GetSolutionStackArgs ¶
type GetSolutionStackArgs struct { // If more than one result is returned, use the most // recent solution stack. MostRecent *bool `pulumi:"mostRecent"` // A regex string to apply to the solution stack list returned // by AWS. See [Elastic Beanstalk Supported Platforms][beanstalk-platforms] from // AWS documentation for reference solution stack names. NameRegex string `pulumi:"nameRegex"` }
A collection of arguments for invoking getSolutionStack.
type GetSolutionStackResult ¶
type GetSolutionStackResult struct { // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` MostRecent *bool `pulumi:"mostRecent"` // The name of the solution stack. Name string `pulumi:"name"` NameRegex string `pulumi:"nameRegex"` }
A collection of values returned by getSolutionStack.
func GetSolutionStack ¶
func GetSolutionStack(ctx *pulumi.Context, args *GetSolutionStackArgs, opts ...pulumi.InvokeOption) (*GetSolutionStackResult, error)
Use this data source to get the name of a elastic beanstalk solution stack.
## Example Usage
```go package main
import (
"fmt" "github.com/pulumi/pulumi-aws/sdk/v2/go/aws/elasticbeanstalk" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { opt0 := true _, err := elasticbeanstalk.GetSolutionStack(ctx, &elasticbeanstalk.GetSolutionStackArgs{ MostRecent: &opt0, NameRegex: fmt.Sprintf("%v%v", "^64bit Amazon Linux (.*) Multi-container Docker (.*)", "$"), }, nil) if err != nil { return err } return nil }) }
```
type LookupApplicationArgs ¶
type LookupApplicationArgs struct { // The name of the application Name string `pulumi:"name"` }
A collection of arguments for invoking getApplication.
type LookupApplicationResult ¶
type LookupApplicationResult struct { AppversionLifecycle GetApplicationAppversionLifecycle `pulumi:"appversionLifecycle"` // The Amazon Resource Name (ARN) of the application. Arn string `pulumi:"arn"` // Short description of the application Description string `pulumi:"description"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` Name string `pulumi:"name"` }
A collection of values returned by getApplication.
func LookupApplication ¶
func LookupApplication(ctx *pulumi.Context, args *LookupApplicationArgs, opts ...pulumi.InvokeOption) (*LookupApplicationResult, error)
Retrieve information about an Elastic Beanstalk Application.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/elasticbeanstalk" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { example, err := elasticbeanstalk.LookupApplication(ctx, &elasticbeanstalk.LookupApplicationArgs{ Name: "example", }, nil) if err != nil { return err } ctx.Export("arn", example.Arn) ctx.Export("description", example.Description) return nil }) }
```