elasticbeanstalk

package
v0.7.5-0...-1ba5d88 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2015 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package elasticbeanstalk provides a client for AWS Elastic Beanstalk.

Index

Examples

Constants

View Source
const (
	// @enum ConfigurationDeploymentStatus
	ConfigurationDeploymentStatusDeployed = "deployed"
	// @enum ConfigurationDeploymentStatus
	ConfigurationDeploymentStatusPending = "pending"
	// @enum ConfigurationDeploymentStatus
	ConfigurationDeploymentStatusFailed = "failed"
)
View Source
const (
	// @enum ConfigurationOptionValueType
	ConfigurationOptionValueTypeScalar = "Scalar"
	// @enum ConfigurationOptionValueType
	ConfigurationOptionValueTypeList = "List"
)
View Source
const (
	// @enum EnvironmentHealth
	EnvironmentHealthGreen = "Green"
	// @enum EnvironmentHealth
	EnvironmentHealthYellow = "Yellow"
	// @enum EnvironmentHealth
	EnvironmentHealthRed = "Red"
	// @enum EnvironmentHealth
	EnvironmentHealthGrey = "Grey"
)
View Source
const (
	// @enum EnvironmentHealthAttribute
	EnvironmentHealthAttributeStatus = "Status"
	// @enum EnvironmentHealthAttribute
	EnvironmentHealthAttributeColor = "Color"
	// @enum EnvironmentHealthAttribute
	EnvironmentHealthAttributeCauses = "Causes"
	// @enum EnvironmentHealthAttribute
	EnvironmentHealthAttributeApplicationMetrics = "ApplicationMetrics"
	// @enum EnvironmentHealthAttribute
	EnvironmentHealthAttributeInstancesHealth = "InstancesHealth"
	// @enum EnvironmentHealthAttribute
	EnvironmentHealthAttributeAll = "All"
	// @enum EnvironmentHealthAttribute
	EnvironmentHealthAttributeHealthStatus = "HealthStatus"
	// @enum EnvironmentHealthAttribute
	EnvironmentHealthAttributeRefreshedAt = "RefreshedAt"
)
View Source
const (
	// @enum EnvironmentHealthStatus
	EnvironmentHealthStatusNoData = "NoData"
	// @enum EnvironmentHealthStatus
	EnvironmentHealthStatusUnknown = "Unknown"
	// @enum EnvironmentHealthStatus
	EnvironmentHealthStatusPending = "Pending"
	// @enum EnvironmentHealthStatus
	EnvironmentHealthStatusOk = "Ok"
	// @enum EnvironmentHealthStatus
	EnvironmentHealthStatusInfo = "Info"
	// @enum EnvironmentHealthStatus
	EnvironmentHealthStatusWarning = "Warning"
	// @enum EnvironmentHealthStatus
	EnvironmentHealthStatusDegraded = "Degraded"
	// @enum EnvironmentHealthStatus
	EnvironmentHealthStatusSevere = "Severe"
)
View Source
const (
	// @enum EnvironmentInfoType
	EnvironmentInfoTypeTail = "tail"
	// @enum EnvironmentInfoType
	EnvironmentInfoTypeBundle = "bundle"
)
View Source
const (
	// @enum EnvironmentStatus
	EnvironmentStatusLaunching = "Launching"
	// @enum EnvironmentStatus
	EnvironmentStatusUpdating = "Updating"
	// @enum EnvironmentStatus
	EnvironmentStatusReady = "Ready"
	// @enum EnvironmentStatus
	EnvironmentStatusTerminating = "Terminating"
	// @enum EnvironmentStatus
	EnvironmentStatusTerminated = "Terminated"
)
View Source
const (
	// @enum EventSeverity
	EventSeverityTrace = "TRACE"
	// @enum EventSeverity
	EventSeverityDebug = "DEBUG"
	// @enum EventSeverity
	EventSeverityInfo = "INFO"
	// @enum EventSeverity
	EventSeverityWarn = "WARN"
	// @enum EventSeverity
	EventSeverityError = "ERROR"
	// @enum EventSeverity
	EventSeverityFatal = "FATAL"
)
View Source
const (
	// @enum InstancesHealthAttribute
	InstancesHealthAttributeHealthStatus = "HealthStatus"
	// @enum InstancesHealthAttribute
	InstancesHealthAttributeColor = "Color"
	// @enum InstancesHealthAttribute
	InstancesHealthAttributeCauses = "Causes"
	// @enum InstancesHealthAttribute
	InstancesHealthAttributeApplicationMetrics = "ApplicationMetrics"
	// @enum InstancesHealthAttribute
	InstancesHealthAttributeRefreshedAt = "RefreshedAt"
	// @enum InstancesHealthAttribute
	InstancesHealthAttributeLaunchedAt = "LaunchedAt"
	// @enum InstancesHealthAttribute
	InstancesHealthAttributeSystem = "System"
	// @enum InstancesHealthAttribute
	InstancesHealthAttributeAll = "All"
)
View Source
const (
	// @enum ValidationSeverity
	ValidationSeverityError = "error"
	// @enum ValidationSeverity
	ValidationSeverityWarning = "warning"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AbortEnvironmentUpdateInput

type AbortEnvironmentUpdateInput struct {
	// This specifies the ID of the environment with the in-progress update that
	// you want to cancel.
	EnvironmentId *string `type:"string"`

	// This specifies the name of the environment with the in-progress update that
	// you want to cancel.
	EnvironmentName *string `type:"string"`
	// contains filtered or unexported fields
}

func (AbortEnvironmentUpdateInput) GoString

func (s AbortEnvironmentUpdateInput) GoString() string

GoString returns the string representation

func (AbortEnvironmentUpdateInput) String

String returns the string representation

type AbortEnvironmentUpdateOutput

type AbortEnvironmentUpdateOutput struct {
	// contains filtered or unexported fields
}

func (AbortEnvironmentUpdateOutput) GoString

func (s AbortEnvironmentUpdateOutput) GoString() string

GoString returns the string representation

func (AbortEnvironmentUpdateOutput) String

String returns the string representation

type ApplicationDescription

type ApplicationDescription struct {
	// The name of the application.
	ApplicationName *string `type:"string"`

	// The names of the configuration templates associated with this application.
	ConfigurationTemplates []*string `type:"list"`

	// The date when the application was created.
	DateCreated *time.Time `type:"timestamp" timestampFormat:"iso8601"`

	// The date when the application was last modified.
	DateUpdated *time.Time `type:"timestamp" timestampFormat:"iso8601"`

	// User-defined description of the application.
	Description *string `type:"string"`

	// The names of the versions for this application.
	Versions []*string `type:"list"`
	// contains filtered or unexported fields
}

Describes the properties of an application.

func (ApplicationDescription) GoString

func (s ApplicationDescription) GoString() string

GoString returns the string representation

func (ApplicationDescription) String

func (s ApplicationDescription) String() string

String returns the string representation

type ApplicationDescriptionMessage

type ApplicationDescriptionMessage struct {
	// The ApplicationDescription of the application.
	Application *ApplicationDescription `type:"structure"`
	// contains filtered or unexported fields
}

Result message containing a single description of an application.

func (ApplicationDescriptionMessage) GoString

GoString returns the string representation

func (ApplicationDescriptionMessage) String

String returns the string representation

type ApplicationMetrics

type ApplicationMetrics struct {
	// The amount of time that the metrics cover (usually 10 seconds). For example,
	// you might have 5 requests (request_count) within the most recent time slice
	// of 10 seconds (duration).
	Duration *int64 `type:"integer"`

	// Represents the average latency for the slowest X percent of requests over
	// the last 10 seconds. Latencies are in seconds with one milisecond resolution.
	Latency *Latency `type:"structure"`

	// Average number of requests handled by the web server per second over the
	// last 10 seconds.
	RequestCount *int64 `type:"integer"`

	// Represents the percentage of requests over the last 10 seconds that resulted
	// in each type of status code response.
	StatusCodes *StatusCodes `type:"structure"`
	// contains filtered or unexported fields
}

Represents the application metrics for a specified environment.

func (ApplicationMetrics) GoString

func (s ApplicationMetrics) GoString() string

GoString returns the string representation

func (ApplicationMetrics) String

func (s ApplicationMetrics) String() string

String returns the string representation

type ApplicationVersionDescription

type ApplicationVersionDescription struct {
	// The name of the application associated with this release.
	ApplicationName *string `type:"string"`

	// The creation date of the application version.
	DateCreated *time.Time `type:"timestamp" timestampFormat:"iso8601"`

	// The last modified date of the application version.
	DateUpdated *time.Time `type:"timestamp" timestampFormat:"iso8601"`

	// The description of this application version.
	Description *string `type:"string"`

	// The location where the source bundle is located for this version.
	SourceBundle *S3Location `type:"structure"`

	// A label uniquely identifying the version for the associated application.
	VersionLabel *string `type:"string"`
	// contains filtered or unexported fields
}

Describes the properties of an application version.

func (ApplicationVersionDescription) GoString

GoString returns the string representation

func (ApplicationVersionDescription) String

String returns the string representation

type ApplicationVersionDescriptionMessage

type ApplicationVersionDescriptionMessage struct {
	// The ApplicationVersionDescription of the application version.
	ApplicationVersion *ApplicationVersionDescription `type:"structure"`
	// contains filtered or unexported fields
}

Result message wrapping a single description of an application version.

func (ApplicationVersionDescriptionMessage) GoString

GoString returns the string representation

func (ApplicationVersionDescriptionMessage) String

String returns the string representation

type AutoScalingGroup

type AutoScalingGroup struct {
	// The name of the AutoScalingGroup .
	Name *string `type:"string"`
	// contains filtered or unexported fields
}

Describes an Auto Scaling launch configuration.

func (AutoScalingGroup) GoString

func (s AutoScalingGroup) GoString() string

GoString returns the string representation

func (AutoScalingGroup) String

func (s AutoScalingGroup) String() string

String returns the string representation

type CPUUtilization

type CPUUtilization struct {
	// Percentage of time that the CPU has spent in the I/O Wait state over the
	// last 10 seconds.
	IOWait *float64 `type:"double"`

	// Percentage of time that the CPU has spent in the IRQ state over the last
	// 10 seconds.
	IRQ *float64 `type:"double"`

	// Percentage of time that the CPU has spent in the Idle state over the last
	// 10 seconds.
	Idle *float64 `type:"double"`

	// Percentage of time that the CPU has spent in the Nice state over the last
	// 10 seconds.
	Nice *float64 `type:"double"`

	// Percentage of time that the CPU has spent in the SoftIRQ state over the last
	// 10 seconds.
	SoftIRQ *float64 `type:"double"`

	// Percentage of time that the CPU has spent in the System state over the last
	// 10 seconds.
	System *float64 `type:"double"`

	// Percentage of time that the CPU has spent in the User state over the last
	// 10 seconds.
	User *float64 `type:"double"`
	// contains filtered or unexported fields
}

Represents CPU utilization information from the specified instance that belongs to the AWS Elastic Beanstalk environment. Use the instanceId property to specify the application instance for which you'd like to return data.

func (CPUUtilization) GoString

func (s CPUUtilization) GoString() string

GoString returns the string representation

func (CPUUtilization) String

func (s CPUUtilization) String() string

String returns the string representation

type CheckDNSAvailabilityInput

type CheckDNSAvailabilityInput struct {
	// The prefix used when this CNAME is reserved.
	CNAMEPrefix *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

Results message indicating whether a CNAME is available.

func (CheckDNSAvailabilityInput) GoString

func (s CheckDNSAvailabilityInput) GoString() string

GoString returns the string representation

func (CheckDNSAvailabilityInput) String

func (s CheckDNSAvailabilityInput) String() string

String returns the string representation

type CheckDNSAvailabilityOutput

type CheckDNSAvailabilityOutput struct {
	// Indicates if the specified CNAME is available:
	//
	//    true : The CNAME is available.
	//
	//    true : The CNAME is not available.
	//
	//      true : The CNAME is available.   false : The CNAME is not available.
	Available *bool `type:"boolean"`

	// The fully qualified CNAME to reserve when CreateEnvironment is called with
	// the provided prefix.
	FullyQualifiedCNAME *string `type:"string"`
	// contains filtered or unexported fields
}

Indicates if the specified CNAME is available.

func (CheckDNSAvailabilityOutput) GoString

func (s CheckDNSAvailabilityOutput) GoString() string

GoString returns the string representation

func (CheckDNSAvailabilityOutput) String

String returns the string representation

type ConfigurationOptionDescription

type ConfigurationOptionDescription struct {
	// An indication of which action is required if the value for this configuration
	// option changes:
	//
	//    NoInterruption - There is no interruption to the environment or application
	// availability.
	//
	//    RestartEnvironment - The environment is restarted, all AWS resources
	// are deleted and recreated, and the environment is unavailable during the
	// process.
	//
	//    RestartApplicationServer - The environment is available the entire time.
	// However, a short application outage occurs when the application servers on
	// the running Amazon EC2 instances are restarted.
	//
	//     NoInterruption : There is no interruption to the environment or application
	// availability.   RestartEnvironment : The environment is entirely restarted,
	// all AWS resources are deleted and recreated, and the environment is unavailable
	// during the process.   RestartApplicationServer : The environment is available
	// the entire time. However, a short application outage occurs when the application
	// servers on the running Amazon EC2 instances are restarted.
	ChangeSeverity *string `type:"string"`

	// The default value for this configuration option.
	DefaultValue *string `type:"string"`

	// If specified, the configuration option must be a string value no longer than
	// this value.
	MaxLength *int64 `type:"integer"`

	// If specified, the configuration option must be a numeric value less than
	// this value.
	MaxValue *int64 `type:"integer"`

	// If specified, the configuration option must be a numeric value greater than
	// this value.
	MinValue *int64 `type:"integer"`

	// The name of the configuration option.
	Name *string `type:"string"`

	// A unique namespace identifying the option's associated AWS resource.
	Namespace *string `type:"string"`

	// If specified, the configuration option must be a string value that satisfies
	// this regular expression.
	Regex *OptionRestrictionRegex `type:"structure"`

	// An indication of whether the user defined this configuration option:
	//
	//    true : This configuration option was defined by the user. It is a valid
	// choice for specifying this as an Option to Remove when updating configuration
	// settings.
	//
	//    false : This configuration was not defined by the user.
	//
	//      true : This configuration option was defined by the user. It is a valid
	// choice for specifying if this as an Option to Remove when updating configuration
	// settings.
	//
	//   false : This configuration was not defined by the user.    Constraint:
	// You can remove only UserDefined options from a configuration.
	//
	//  Valid Values: true | false
	UserDefined *bool `type:"boolean"`

	// If specified, values for the configuration option are selected from this
	// list.
	ValueOptions []*string `type:"list"`

	// An indication of which type of values this option has and whether it is allowable
	// to select one or more than one of the possible values:
	//
	//    Scalar : Values for this option are a single selection from the possible
	// values, or a unformatted string or numeric value governed by the MIN/MAX/Regex
	// constraints:
	//
	//    List : Values for this option are multiple selections of the possible
	// values.
	//
	//    Boolean : Values for this option are either true or false .
	//
	//    Json : Values for this option are a JSON representation of a ConfigDocument.
	//
	//      Scalar : Values for this option are a single selection from the possible
	// values, or an unformatted string, or numeric value governed by the MIN/MAX/Regex
	// constraints.   List : Values for this option are multiple selections from
	// the possible values.   Boolean : Values for this option are either true or
	// false .   Json : Values for this option are a JSON representation of a ConfigDocument.
	ValueType *string `type:"string" enum:"ConfigurationOptionValueType"`
	// contains filtered or unexported fields
}

Describes the possible values for a configuration option.

func (ConfigurationOptionDescription) GoString

GoString returns the string representation

func (ConfigurationOptionDescription) String

String returns the string representation

type ConfigurationOptionSetting

type ConfigurationOptionSetting struct {
	// A unique namespace identifying the option's associated AWS resource.
	Namespace *string `type:"string"`

	// The name of the configuration option.
	OptionName *string `type:"string"`

	// A unique resource name for a time-based scaling configuration option.
	ResourceName *string `type:"string"`

	// The current value for the configuration option.
	Value *string `type:"string"`
	// contains filtered or unexported fields
}

A specification identifying an individual configuration option along with its current value. For a list of possible option values, go to Option Values (http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/command-options.html) in the AWS Elastic Beanstalk Developer Guide.

func (ConfigurationOptionSetting) GoString

func (s ConfigurationOptionSetting) GoString() string

GoString returns the string representation

func (ConfigurationOptionSetting) String

String returns the string representation

type ConfigurationSettingsDescription

type ConfigurationSettingsDescription struct {
	// The name of the application associated with this configuration set.
	ApplicationName *string `type:"string"`

	// The date (in UTC time) when this configuration set was created.
	DateCreated *time.Time `type:"timestamp" timestampFormat:"iso8601"`

	// The date (in UTC time) when this configuration set was last modified.
	DateUpdated *time.Time `type:"timestamp" timestampFormat:"iso8601"`

	// If this configuration set is associated with an environment, the DeploymentStatus
	// parameter indicates the deployment status of this configuration set:
	//
	//    null: This configuration is not associated with a running environment.
	//
	//    pending: This is a draft configuration that is not deployed to the associated
	// environment but is in the process of deploying.
	//
	//    deployed: This is the configuration that is currently deployed to the
	// associated running environment.
	//
	//    failed: This is a draft configuration, that failed to successfully deploy.
	//
	//     null: This configuration is not associated with a running environment.
	//   pending: This is a draft configuration that is not deployed to the associated
	// environment but is in the process of deploying.   deployed: This is the configuration
	// that is currently deployed to the associated running environment.   failed:
	// This is a draft configuration that failed to successfully deploy.
	DeploymentStatus *string `type:"string" enum:"ConfigurationDeploymentStatus"`

	// Describes this configuration set.
	Description *string `type:"string"`

	// If not null, the name of the environment for this configuration set.
	EnvironmentName *string `type:"string"`

	// A list of the configuration options and their values in this configuration
	// set.
	OptionSettings []*ConfigurationOptionSetting `type:"list"`

	// The name of the solution stack this configuration set uses.
	SolutionStackName *string `type:"string"`

	// If not null, the name of the configuration template for this configuration
	// set.
	TemplateName *string `type:"string"`
	// contains filtered or unexported fields
}

Describes the settings for a configuration set.

func (ConfigurationSettingsDescription) GoString

GoString returns the string representation

func (ConfigurationSettingsDescription) String

String returns the string representation

type CreateApplicationInput

type CreateApplicationInput struct {
	// The name of the application.
	//
	//  Constraint: This name must be unique within your account. If the specified
	// name already exists, the action returns an InvalidParameterValue error.
	ApplicationName *string `type:"string" required:"true"`

	// Describes the application.
	Description *string `type:"string"`
	// contains filtered or unexported fields
}

This documentation target is not reported in the API reference.

func (CreateApplicationInput) GoString

func (s CreateApplicationInput) GoString() string

GoString returns the string representation

func (CreateApplicationInput) String

func (s CreateApplicationInput) String() string

String returns the string representation

type CreateApplicationVersionInput

type CreateApplicationVersionInput struct {
	// The name of the application. If no application is found with this name, and
	// AutoCreateApplication is false, returns an InvalidParameterValue error.
	ApplicationName *string `type:"string" required:"true"`

	// Determines how the system behaves if the specified application for this version
	// does not already exist:
	//
	//    true: Automatically creates the specified application for this version
	// if it does not already exist.
	//
	//    false: Returns an InvalidParameterValue if the specified application
	// for this version does not already exist.
	//
	//     true : Automatically creates the specified application for this release
	// if it does not already exist.   false : Throws an InvalidParameterValue if
	// the specified application for this release does not already exist.    Default:
	// false
	//
	//  Valid Values: true | false
	AutoCreateApplication *bool `type:"boolean"`

	// Describes this version.
	Description *string `type:"string"`

	// The Amazon S3 bucket and key that identify the location of the source bundle
	// for this version.
	//
	//  If data found at the Amazon S3 location exceeds the maximum allowed source
	// bundle size, AWS Elastic Beanstalk returns an InvalidParameterValue error.
	// The maximum size allowed is 512 MB.
	//
	// Default: If not specified, AWS Elastic Beanstalk uses a sample application.
	// If only partially specified (for example, a bucket is provided but not the
	// key) or if no data is found at the Amazon S3 location, AWS Elastic Beanstalk
	// returns an InvalidParameterCombination error.
	SourceBundle *S3Location `type:"structure"`

	// A label identifying this version.
	//
	// Constraint: Must be unique per application. If an application version already
	// exists with this label for the specified application, AWS Elastic Beanstalk
	// returns an InvalidParameterValue error.
	VersionLabel *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (CreateApplicationVersionInput) GoString

GoString returns the string representation

func (CreateApplicationVersionInput) String

String returns the string representation

type CreateConfigurationTemplateInput

type CreateConfigurationTemplateInput struct {
	// The name of the application to associate with this configuration template.
	// If no application is found with this name, AWS Elastic Beanstalk returns
	// an InvalidParameterValue error.
	ApplicationName *string `type:"string" required:"true"`

	// Describes this configuration.
	Description *string `type:"string"`

	// The ID of the environment used with this configuration template.
	EnvironmentId *string `type:"string"`

	// If specified, AWS Elastic Beanstalk sets the specified configuration option
	// to the requested value. The new value overrides the value obtained from the
	// solution stack or the source configuration template.
	OptionSettings []*ConfigurationOptionSetting `type:"list"`

	// The name of the solution stack used by this configuration. The solution stack
	// specifies the operating system, architecture, and application server for
	// a configuration template. It determines the set of configuration options
	// as well as the possible and default values.
	//
	//  Use ListAvailableSolutionStacks to obtain a list of available solution
	// stacks.
	//
	//  A solution stack name or a source configuration parameter must be specified,
	// otherwise AWS Elastic Beanstalk returns an InvalidParameterValue error.
	//
	//  If a solution stack name is not specified and the source configuration
	// parameter is specified, AWS Elastic Beanstalk uses the same solution stack
	// as the source configuration template.
	SolutionStackName *string `type:"string"`

	// If specified, AWS Elastic Beanstalk uses the configuration values from the
	// specified configuration template to create a new configuration.
	//
	//  Values specified in the OptionSettings parameter of this call overrides
	// any values obtained from the SourceConfiguration.
	//
	//  If no configuration template is found, returns an InvalidParameterValue
	// error.
	//
	//  Constraint: If both the solution stack name parameter and the source configuration
	// parameters are specified, the solution stack of the source configuration
	// template must match the specified solution stack name or else AWS Elastic
	// Beanstalk returns an InvalidParameterCombination error.
	SourceConfiguration *SourceConfiguration `type:"structure"`

	// The name of the configuration template.
	//
	// Constraint: This name must be unique per application.
	//
	// Default: If a configuration template already exists with this name, AWS
	// Elastic Beanstalk returns an InvalidParameterValue error.
	TemplateName *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

This documentation target is not reported in the API reference.

func (CreateConfigurationTemplateInput) GoString

GoString returns the string representation

func (CreateConfigurationTemplateInput) String

String returns the string representation

type CreateEnvironmentInput

type CreateEnvironmentInput struct {
	// The name of the application that contains the version to be deployed.
	//
	//  If no application is found with this name, CreateEnvironment returns an
	// InvalidParameterValue error.
	ApplicationName *string `type:"string" required:"true"`

	// If specified, the environment attempts to use this value as the prefix for
	// the CNAME. If not specified, the CNAME is generated automatically by appending
	// a random alphanumeric string to the environment name.
	CNAMEPrefix *string `type:"string"`

	// Describes this environment.
	Description *string `type:"string"`

	// A unique name for the deployment environment. Used in the application URL.
	//
	// Constraint: Must be from 4 to 23 characters in length. The name can contain
	// only letters, numbers, and hyphens. It cannot start or end with a hyphen.
	// This name must be unique in your account. If the specified name already exists,
	// AWS Elastic Beanstalk returns an InvalidParameterValue error.
	//
	// Default: If the CNAME parameter is not specified, the environment name becomes
	// part of the CNAME, and therefore part of the visible URL for your application.
	EnvironmentName *string `type:"string" required:"true"`

	// If specified, AWS Elastic Beanstalk sets the specified configuration options
	// to the requested value in the configuration set for the new environment.
	// These override the values obtained from the solution stack or the configuration
	// template.
	OptionSettings []*ConfigurationOptionSetting `type:"list"`

	// A list of custom user-defined configuration options to remove from the configuration
	// set for this new environment.
	OptionsToRemove []*OptionSpecification `type:"list"`

	// This is an alternative to specifying a configuration name. If specified,
	// AWS Elastic Beanstalk sets the configuration values to the default values
	// associated with the specified solution stack.
	//
	//  Condition: You must specify either this or a TemplateName, but not both.
	// If you specify both, AWS Elastic Beanstalk returns an InvalidParameterCombination
	// error. If you do not specify either, AWS Elastic Beanstalk returns a MissingRequiredParameter
	// error.
	SolutionStackName *string `type:"string"`

	// This specifies the tags applied to resources in the environment.
	Tags []*Tag `type:"list"`

	// The name of the configuration template to use in deployment. If no configuration
	// template is found with this name, AWS Elastic Beanstalk returns an InvalidParameterValue
	// error.
	//
	//  Condition: You must specify either this parameter or a SolutionStackName,
	// but not both. If you specify both, AWS Elastic Beanstalk returns an InvalidParameterCombination
	// error. If you do not specify either, AWS Elastic Beanstalk returns a MissingRequiredParameter
	// error.
	TemplateName *string `type:"string"`

	// This specifies the tier to use for creating this environment.
	Tier *EnvironmentTier `type:"structure"`

	// The name of the application version to deploy.
	//
	//  If the specified application has no associated application versions, AWS
	// Elastic Beanstalk UpdateEnvironment returns an InvalidParameterValue error.
	//
	//  Default: If not specified, AWS Elastic Beanstalk attempts to launch the
	// sample application in the container.
	VersionLabel *string `type:"string"`
	// contains filtered or unexported fields
}

func (CreateEnvironmentInput) GoString

func (s CreateEnvironmentInput) GoString() string

GoString returns the string representation

func (CreateEnvironmentInput) String

func (s CreateEnvironmentInput) String() string

String returns the string representation

type CreateStorageLocationInput

type CreateStorageLocationInput struct {
	// contains filtered or unexported fields
}

func (CreateStorageLocationInput) GoString

func (s CreateStorageLocationInput) GoString() string

GoString returns the string representation

func (CreateStorageLocationInput) String

String returns the string representation

type CreateStorageLocationOutput

type CreateStorageLocationOutput struct {
	// The name of the Amazon S3 bucket created.
	S3Bucket *string `type:"string"`
	// contains filtered or unexported fields
}

Results of a CreateStorageLocationResult call.

func (CreateStorageLocationOutput) GoString

func (s CreateStorageLocationOutput) GoString() string

GoString returns the string representation

func (CreateStorageLocationOutput) String

String returns the string representation

type DeleteApplicationInput

type DeleteApplicationInput struct {
	// The name of the application to delete.
	ApplicationName *string `type:"string" required:"true"`

	// When set to true, running environments will be terminated before deleting
	// the application.
	TerminateEnvByForce *bool `type:"boolean"`
	// contains filtered or unexported fields
}

This documentation target is not reported in the API reference.

func (DeleteApplicationInput) GoString

func (s DeleteApplicationInput) GoString() string

GoString returns the string representation

func (DeleteApplicationInput) String

func (s DeleteApplicationInput) String() string

String returns the string representation

type DeleteApplicationOutput

type DeleteApplicationOutput struct {
	// contains filtered or unexported fields
}

func (DeleteApplicationOutput) GoString

func (s DeleteApplicationOutput) GoString() string

GoString returns the string representation

func (DeleteApplicationOutput) String

func (s DeleteApplicationOutput) String() string

String returns the string representation

type DeleteApplicationVersionInput

type DeleteApplicationVersionInput struct {
	// The name of the application to delete releases from.
	ApplicationName *string `type:"string" required:"true"`

	// Indicates whether to delete the associated source bundle from Amazon S3:
	//
	//   true: An attempt is made to delete the associated Amazon S3 source bundle
	// specified at time of creation.   false: No action is taken on the Amazon
	// S3 source bundle specified at time of creation.    Valid Values: true | false
	DeleteSourceBundle *bool `type:"boolean"`

	// The label of the version to delete.
	VersionLabel *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

This documentation target is not reported in the API reference.

func (DeleteApplicationVersionInput) GoString

GoString returns the string representation

func (DeleteApplicationVersionInput) String

String returns the string representation

type DeleteApplicationVersionOutput

type DeleteApplicationVersionOutput struct {
	// contains filtered or unexported fields
}

func (DeleteApplicationVersionOutput) GoString

GoString returns the string representation

func (DeleteApplicationVersionOutput) String

String returns the string representation

type DeleteConfigurationTemplateInput

type DeleteConfigurationTemplateInput struct {
	// The name of the application to delete the configuration template from.
	ApplicationName *string `type:"string" required:"true"`

	// The name of the configuration template to delete.
	TemplateName *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

This documentation target is not reported in the API reference.

func (DeleteConfigurationTemplateInput) GoString

GoString returns the string representation

func (DeleteConfigurationTemplateInput) String

String returns the string representation

type DeleteConfigurationTemplateOutput

type DeleteConfigurationTemplateOutput struct {
	// contains filtered or unexported fields
}

func (DeleteConfigurationTemplateOutput) GoString

GoString returns the string representation

func (DeleteConfigurationTemplateOutput) String

String returns the string representation

type DeleteEnvironmentConfigurationInput

type DeleteEnvironmentConfigurationInput struct {
	// The name of the application the environment is associated with.
	ApplicationName *string `type:"string" required:"true"`

	// The name of the environment to delete the draft configuration from.
	EnvironmentName *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

This documentation target is not reported in the API reference.

func (DeleteEnvironmentConfigurationInput) GoString

GoString returns the string representation

func (DeleteEnvironmentConfigurationInput) String

String returns the string representation

type DeleteEnvironmentConfigurationOutput

type DeleteEnvironmentConfigurationOutput struct {
	// contains filtered or unexported fields
}

func (DeleteEnvironmentConfigurationOutput) GoString

GoString returns the string representation

func (DeleteEnvironmentConfigurationOutput) String

String returns the string representation

type DescribeApplicationVersionsInput

type DescribeApplicationVersionsInput struct {
	// If specified, AWS Elastic Beanstalk restricts the returned descriptions to
	// only include ones that are associated with the specified application.
	ApplicationName *string `type:"string"`

	// If specified, restricts the returned descriptions to only include ones that
	// have the specified version labels.
	VersionLabels []*string `type:"list"`
	// contains filtered or unexported fields
}

Result message containing a list of configuration descriptions.

func (DescribeApplicationVersionsInput) GoString

GoString returns the string representation

func (DescribeApplicationVersionsInput) String

String returns the string representation

type DescribeApplicationVersionsOutput

type DescribeApplicationVersionsOutput struct {
	// A list of ApplicationVersionDescription .
	ApplicationVersions []*ApplicationVersionDescription `type:"list"`
	// contains filtered or unexported fields
}

Result message wrapping a list of application version descriptions.

func (DescribeApplicationVersionsOutput) GoString

GoString returns the string representation

func (DescribeApplicationVersionsOutput) String

String returns the string representation

type DescribeApplicationsInput

type DescribeApplicationsInput struct {
	// If specified, AWS Elastic Beanstalk restricts the returned descriptions to
	// only include those with the specified names.
	ApplicationNames []*string `type:"list"`
	// contains filtered or unexported fields
}

This documentation target is not reported in the API reference.

func (DescribeApplicationsInput) GoString

func (s DescribeApplicationsInput) GoString() string

GoString returns the string representation

func (DescribeApplicationsInput) String

func (s DescribeApplicationsInput) String() string

String returns the string representation

type DescribeApplicationsOutput

type DescribeApplicationsOutput struct {
	// This parameter contains a list of ApplicationDescription.
	Applications []*ApplicationDescription `type:"list"`
	// contains filtered or unexported fields
}

Result message containing a list of application descriptions.

func (DescribeApplicationsOutput) GoString

func (s DescribeApplicationsOutput) GoString() string

GoString returns the string representation

func (DescribeApplicationsOutput) String

String returns the string representation

type DescribeConfigurationOptionsInput

type DescribeConfigurationOptionsInput struct {
	// The name of the application associated with the configuration template or
	// environment. Only needed if you want to describe the configuration options
	// associated with either the configuration template or environment.
	ApplicationName *string `type:"string"`

	// The name of the environment whose configuration options you want to describe.
	EnvironmentName *string `type:"string"`

	// If specified, restricts the descriptions to only the specified options.
	Options []*OptionSpecification `type:"list"`

	// The name of the solution stack whose configuration options you want to describe.
	SolutionStackName *string `type:"string"`

	// The name of the configuration template whose configuration options you want
	// to describe.
	TemplateName *string `type:"string"`
	// contains filtered or unexported fields
}

Result message containig a list of application version descriptions.

func (DescribeConfigurationOptionsInput) GoString

GoString returns the string representation

func (DescribeConfigurationOptionsInput) String

String returns the string representation

type DescribeConfigurationOptionsOutput

type DescribeConfigurationOptionsOutput struct {
	// A list of ConfigurationOptionDescription.
	Options []*ConfigurationOptionDescription `type:"list"`

	// The name of the solution stack these configuration options belong to.
	SolutionStackName *string `type:"string"`
	// contains filtered or unexported fields
}

Describes the settings for a specified configuration set.

func (DescribeConfigurationOptionsOutput) GoString

GoString returns the string representation

func (DescribeConfigurationOptionsOutput) String

String returns the string representation

type DescribeConfigurationSettingsInput

type DescribeConfigurationSettingsInput struct {
	// The application for the environment or configuration template.
	ApplicationName *string `type:"string" required:"true"`

	// The name of the environment to describe.
	//
	//  Condition: You must specify either this or a TemplateName, but not both.
	// If you specify both, AWS Elastic Beanstalk returns an InvalidParameterCombination
	// error. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter
	// error.
	EnvironmentName *string `type:"string"`

	// The name of the configuration template to describe.
	//
	//  Conditional: You must specify either this parameter or an EnvironmentName,
	// but not both. If you specify both, AWS Elastic Beanstalk returns an InvalidParameterCombination
	// error. If you do not specify either, AWS Elastic Beanstalk returns a MissingRequiredParameter
	// error.
	TemplateName *string `type:"string"`
	// contains filtered or unexported fields
}

Result message containing all of the configuration settings for a specified solution stack or configuration template.

func (DescribeConfigurationSettingsInput) GoString

GoString returns the string representation

func (DescribeConfigurationSettingsInput) String

String returns the string representation

type DescribeConfigurationSettingsOutput

type DescribeConfigurationSettingsOutput struct {
	// A list of ConfigurationSettingsDescription.
	ConfigurationSettings []*ConfigurationSettingsDescription `type:"list"`
	// contains filtered or unexported fields
}

The results from a request to change the configuration settings of an environment.

func (DescribeConfigurationSettingsOutput) GoString

GoString returns the string representation

func (DescribeConfigurationSettingsOutput) String

String returns the string representation

type DescribeEnvironmentHealthInput

type DescribeEnvironmentHealthInput struct {
	// Specifies the response elements you wish to receive. If no attribute names
	// are specified, AWS Elastic Beanstalk returns all response elements.
	AttributeNames []*string `type:"list"`

	// Specifies the AWS Elastic Beanstalk environment ID.
	EnvironmentId *string `type:"string"`

	// Specifies the AWS Elastic Beanstalk environment name.
	EnvironmentName *string `type:"string"`
	// contains filtered or unexported fields
}

See the example below to learn how to create a request body.

func (DescribeEnvironmentHealthInput) GoString

GoString returns the string representation

func (DescribeEnvironmentHealthInput) String

String returns the string representation

type DescribeEnvironmentHealthOutput

type DescribeEnvironmentHealthOutput struct {
	// Represents the application metrics for a specified environment.
	ApplicationMetrics *ApplicationMetrics `type:"structure"`

	// Returns potential causes for the reported status.
	Causes []*string `type:"list"`

	// Returns the color indicator that tells you information about the health of
	// the environment. For more information, see Health Colors and Statuses (http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/health-enhanced-status.html).
	Color *string `type:"string"`

	// The AWS Elastic Beanstalk environment name.
	EnvironmentName *string `type:"string"`

	// Contains the response body with information about the health of the environment.
	HealthStatus *string `type:"string"`

	// Represents summary information about the health of an instance. For more
	// information, see Health Colors and Statuses (http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/health-enhanced-status.html).
	InstancesHealth *InstanceHealthSummary `type:"structure"`

	// The date and time the information was last refreshed.
	RefreshedAt *time.Time `type:"timestamp" timestampFormat:"iso8601"`

	// Returns the health status value of the environment. For more information,
	// see Health Colors and Statuses (http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/health-enhanced-status.html).
	Status *string `type:"string" enum:"EnvironmentHealth"`
	// contains filtered or unexported fields
}

See the example below for a sample response.

func (DescribeEnvironmentHealthOutput) GoString

GoString returns the string representation

func (DescribeEnvironmentHealthOutput) String

String returns the string representation

type DescribeEnvironmentResourcesInput

type DescribeEnvironmentResourcesInput struct {
	// The ID of the environment to retrieve AWS resource usage data.
	//
	//  Condition: You must specify either this or an EnvironmentName, or both.
	// If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter
	// error.
	EnvironmentId *string `type:"string"`

	// The name of the environment to retrieve AWS resource usage data.
	//
	//  Condition: You must specify either this or an EnvironmentId, or both. If
	// you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter
	// error.
	EnvironmentName *string `type:"string"`
	// contains filtered or unexported fields
}

This documentation target is not reported in the API reference.

func (DescribeEnvironmentResourcesInput) GoString

GoString returns the string representation

func (DescribeEnvironmentResourcesInput) String

String returns the string representation

type DescribeEnvironmentResourcesOutput

type DescribeEnvironmentResourcesOutput struct {
	// A list of EnvironmentResourceDescription.
	EnvironmentResources *EnvironmentResourceDescription `type:"structure"`
	// contains filtered or unexported fields
}

Result message containing a list of environment resource descriptions.

func (DescribeEnvironmentResourcesOutput) GoString

GoString returns the string representation

func (DescribeEnvironmentResourcesOutput) String

String returns the string representation

type DescribeEnvironmentsInput

type DescribeEnvironmentsInput struct {
	// If specified, AWS Elastic Beanstalk restricts the returned descriptions to
	// include only those that are associated with this application.
	ApplicationName *string `type:"string"`

	// If specified, AWS Elastic Beanstalk restricts the returned descriptions to
	// include only those that have the specified IDs.
	EnvironmentIds []*string `type:"list"`

	// If specified, AWS Elastic Beanstalk restricts the returned descriptions to
	// include only those that have the specified names.
	EnvironmentNames []*string `type:"list"`

	// Indicates whether to include deleted environments:
	//
	//  true: Environments that have been deleted after IncludedDeletedBackTo are
	// displayed.
	//
	//  false: Do not include deleted environments.
	IncludeDeleted *bool `type:"boolean"`

	// If specified when IncludeDeleted is set to true, then environments deleted
	// after this date are displayed.
	IncludedDeletedBackTo *time.Time `type:"timestamp" timestampFormat:"iso8601"`

	// If specified, AWS Elastic Beanstalk restricts the returned descriptions to
	// include only those that are associated with this application version.
	VersionLabel *string `type:"string"`
	// contains filtered or unexported fields
}

This documentation target is not reported in the API reference.

func (DescribeEnvironmentsInput) GoString

func (s DescribeEnvironmentsInput) GoString() string

GoString returns the string representation

func (DescribeEnvironmentsInput) String

func (s DescribeEnvironmentsInput) String() string

String returns the string representation

type DescribeEnvironmentsOutput

type DescribeEnvironmentsOutput struct {
	// Returns an EnvironmentDescription list.
	Environments []*EnvironmentDescription `type:"list"`
	// contains filtered or unexported fields
}

Result message containing a list of environment descriptions.

func (DescribeEnvironmentsOutput) GoString

func (s DescribeEnvironmentsOutput) GoString() string

GoString returns the string representation

func (DescribeEnvironmentsOutput) String

String returns the string representation

type DescribeEventsInput

type DescribeEventsInput struct {
	// If specified, AWS Elastic Beanstalk restricts the returned descriptions to
	// include only those associated with this application.
	ApplicationName *string `type:"string"`

	// If specified, AWS Elastic Beanstalk restricts the returned descriptions to
	// those that occur up to, but not including, the EndTime.
	EndTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`

	// If specified, AWS Elastic Beanstalk restricts the returned descriptions to
	// those associated with this environment.
	EnvironmentId *string `type:"string"`

	// If specified, AWS Elastic Beanstalk restricts the returned descriptions to
	// those associated with this environment.
	EnvironmentName *string `type:"string"`

	// Specifies the maximum number of events that can be returned, beginning with
	// the most recent event.
	MaxRecords *int64 `type:"integer"`

	// Pagination token. If specified, the events return the next batch of results.
	NextToken *string `type:"string"`

	// If specified, AWS Elastic Beanstalk restricts the described events to include
	// only those associated with this request ID.
	RequestId *string `type:"string"`

	// If specified, limits the events returned from this call to include only those
	// with the specified severity or higher.
	Severity *string `type:"string" enum:"EventSeverity"`

	// If specified, AWS Elastic Beanstalk restricts the returned descriptions to
	// those that occur on or after this time.
	StartTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`

	// If specified, AWS Elastic Beanstalk restricts the returned descriptions to
	// those that are associated with this environment configuration.
	TemplateName *string `type:"string"`

	// If specified, AWS Elastic Beanstalk restricts the returned descriptions to
	// those associated with this application version.
	VersionLabel *string `type:"string"`
	// contains filtered or unexported fields
}

This documentation target is not reported in the API reference.

func (DescribeEventsInput) GoString

func (s DescribeEventsInput) GoString() string

GoString returns the string representation

func (DescribeEventsInput) String

func (s DescribeEventsInput) String() string

String returns the string representation

type DescribeEventsOutput

type DescribeEventsOutput struct {
	// A list of EventDescription.
	Events []*EventDescription `type:"list"`

	// If returned, this indicates that there are more results to obtain. Use this
	// token in the next DescribeEvents call to get the next batch of events.
	NextToken *string `type:"string"`
	// contains filtered or unexported fields
}

Result message wrapping a list of event descriptions.

func (DescribeEventsOutput) GoString

func (s DescribeEventsOutput) GoString() string

GoString returns the string representation

func (DescribeEventsOutput) String

func (s DescribeEventsOutput) String() string

String returns the string representation

type DescribeInstancesHealthInput

type DescribeInstancesHealthInput struct {
	// Specifies the response elements you wish to receive. If no attribute names
	// are specified, AWS Elastic Beanstalk returns all response elements.
	AttributeNames []*string `type:"list"`

	// Specifies the AWS Elastic Beanstalk environment ID.
	EnvironmentId *string `type:"string"`

	// Specifies the AWS Elastic Beanstalk environment name.
	EnvironmentName *string `type:"string"`

	// Specifies the next token of the request.
	NextToken *string `type:"string"`
	// contains filtered or unexported fields
}

See the example below to learn how to create a request body.

func (DescribeInstancesHealthInput) GoString

func (s DescribeInstancesHealthInput) GoString() string

GoString returns the string representation

func (DescribeInstancesHealthInput) String

String returns the string representation

type DescribeInstancesHealthOutput

type DescribeInstancesHealthOutput struct {
	// Contains the response body with information about the health of the instance.
	InstanceHealthList []*SingleInstanceHealth `type:"list"`

	// The next token.
	NextToken *string `type:"string"`

	// The date and time the information was last refreshed.
	RefreshedAt *time.Time `type:"timestamp" timestampFormat:"iso8601"`
	// contains filtered or unexported fields
}

See the example below for a sample response.

func (DescribeInstancesHealthOutput) GoString

GoString returns the string representation

func (DescribeInstancesHealthOutput) String

String returns the string representation

type ElasticBeanstalk

type ElasticBeanstalk struct {
	*service.Service
}

This is the AWS Elastic Beanstalk API Reference. This guide provides detailed information about AWS Elastic Beanstalk actions, data types, parameters, and errors.

AWS Elastic Beanstalk is a tool that makes it easy for you to create, deploy, and manage scalable, fault-tolerant applications running on Amazon Web Services cloud resources.

For more information about this product, go to the AWS Elastic Beanstalk

(http://aws.amazon.com/elasticbeanstalk/) details page. The location of the latest AWS Elastic Beanstalk WSDL is http://elasticbeanstalk.s3.amazonaws.com/doc/2010-12-01/AWSElasticBeanstalk.wsdl (http://elasticbeanstalk.s3.amazonaws.com/doc/2010-12-01/AWSElasticBeanstalk.wsdl). To install the Software Development Kits (SDKs), Integrated Development Environment (IDE) Toolkits, and command line tools that enable you to access the API, go to Tools for Amazon Web Services (https://aws.amazon.com/tools/).

Endpoints

For a list of region-specific endpoints that AWS Elastic Beanstalk supports, go to Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html#elasticbeanstalk_region) in the Amazon Web Services Glossary.

func New

func New(config *aws.Config) *ElasticBeanstalk

New returns a new ElasticBeanstalk client.

func (*ElasticBeanstalk) AbortEnvironmentUpdate

Cancels in-progress environment configuration update or application version deployment.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/elasticbeanstalk"
)

func main() {
	svc := elasticbeanstalk.New(nil)

	params := &elasticbeanstalk.AbortEnvironmentUpdateInput{
		EnvironmentId:   aws.String("EnvironmentId"),
		EnvironmentName: aws.String("EnvironmentName"),
	}
	resp, err := svc.AbortEnvironmentUpdate(params)

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, the SDK should always return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

	// Pretty-print the response data.
	fmt.Println(awsutil.Prettify(resp))
}
Output:

func (*ElasticBeanstalk) AbortEnvironmentUpdateRequest

func (c *ElasticBeanstalk) AbortEnvironmentUpdateRequest(input *AbortEnvironmentUpdateInput) (req *service.Request, output *AbortEnvironmentUpdateOutput)

AbortEnvironmentUpdateRequest generates a request for the AbortEnvironmentUpdate operation.

func (*ElasticBeanstalk) CheckDNSAvailability

func (c *ElasticBeanstalk) CheckDNSAvailability(input *CheckDNSAvailabilityInput) (*CheckDNSAvailabilityOutput, error)

Checks if the specified CNAME is available.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/elasticbeanstalk"
)

func main() {
	svc := elasticbeanstalk.New(nil)

	params := &elasticbeanstalk.CheckDNSAvailabilityInput{
		CNAMEPrefix: aws.String("DNSCnamePrefix"), // Required
	}
	resp, err := svc.CheckDNSAvailability(params)

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, the SDK should always return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

	// Pretty-print the response data.
	fmt.Println(awsutil.Prettify(resp))
}
Output:

func (*ElasticBeanstalk) CheckDNSAvailabilityRequest

func (c *ElasticBeanstalk) CheckDNSAvailabilityRequest(input *CheckDNSAvailabilityInput) (req *service.Request, output *CheckDNSAvailabilityOutput)

CheckDNSAvailabilityRequest generates a request for the CheckDNSAvailability operation.

func (*ElasticBeanstalk) CreateApplication

Creates an application that has one configuration template named default and no application versions.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/elasticbeanstalk"
)

func main() {
	svc := elasticbeanstalk.New(nil)

	params := &elasticbeanstalk.CreateApplicationInput{
		ApplicationName: aws.String("ApplicationName"), // Required
		Description:     aws.String("Description"),
	}
	resp, err := svc.CreateApplication(params)

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, the SDK should always return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

	// Pretty-print the response data.
	fmt.Println(awsutil.Prettify(resp))
}
Output:

func (*ElasticBeanstalk) CreateApplicationRequest

func (c *ElasticBeanstalk) CreateApplicationRequest(input *CreateApplicationInput) (req *service.Request, output *ApplicationDescriptionMessage)

CreateApplicationRequest generates a request for the CreateApplication operation.

func (*ElasticBeanstalk) CreateApplicationVersion

Creates an application version for the specified application.

Once you create an application version with a specified Amazon S3 bucket and key location, you cannot change that Amazon S3 location. If you change the Amazon S3 location, you receive an exception when you attempt to launch an environment from the application version.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/elasticbeanstalk"
)

func main() {
	svc := elasticbeanstalk.New(nil)

	params := &elasticbeanstalk.CreateApplicationVersionInput{
		ApplicationName:       aws.String("ApplicationName"), // Required
		VersionLabel:          aws.String("VersionLabel"),    // Required
		AutoCreateApplication: aws.Bool(true),
		Description:           aws.String("Description"),
		SourceBundle: &elasticbeanstalk.S3Location{
			S3Bucket: aws.String("S3Bucket"),
			S3Key:    aws.String("S3Key"),
		},
	}
	resp, err := svc.CreateApplicationVersion(params)

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, the SDK should always return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

	// Pretty-print the response data.
	fmt.Println(awsutil.Prettify(resp))
}
Output:

func (*ElasticBeanstalk) CreateApplicationVersionRequest

func (c *ElasticBeanstalk) CreateApplicationVersionRequest(input *CreateApplicationVersionInput) (req *service.Request, output *ApplicationVersionDescriptionMessage)

CreateApplicationVersionRequest generates a request for the CreateApplicationVersion operation.

func (*ElasticBeanstalk) CreateConfigurationTemplate

Creates a configuration template. Templates are associated with a specific application and are used to deploy different versions of the application with the same configuration settings.

Related Topics

DescribeConfigurationOptions   DescribeConfigurationSettings   ListAvailableSolutionStacks
Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/elasticbeanstalk"
)

func main() {
	svc := elasticbeanstalk.New(nil)

	params := &elasticbeanstalk.CreateConfigurationTemplateInput{
		ApplicationName: aws.String("ApplicationName"),           // Required
		TemplateName:    aws.String("ConfigurationTemplateName"), // Required
		Description:     aws.String("Description"),
		EnvironmentId:   aws.String("EnvironmentId"),
		OptionSettings: []*elasticbeanstalk.ConfigurationOptionSetting{
			{ // Required
				Namespace:    aws.String("OptionNamespace"),
				OptionName:   aws.String("ConfigurationOptionName"),
				ResourceName: aws.String("ResourceName"),
				Value:        aws.String("ConfigurationOptionValue"),
			},
			// More values...
		},
		SolutionStackName: aws.String("SolutionStackName"),
		SourceConfiguration: &elasticbeanstalk.SourceConfiguration{
			ApplicationName: aws.String("ApplicationName"),
			TemplateName:    aws.String("ConfigurationTemplateName"),
		},
	}
	resp, err := svc.CreateConfigurationTemplate(params)

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, the SDK should always return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

	// Pretty-print the response data.
	fmt.Println(awsutil.Prettify(resp))
}
Output:

func (*ElasticBeanstalk) CreateConfigurationTemplateRequest

func (c *ElasticBeanstalk) CreateConfigurationTemplateRequest(input *CreateConfigurationTemplateInput) (req *service.Request, output *ConfigurationSettingsDescription)

CreateConfigurationTemplateRequest generates a request for the CreateConfigurationTemplate operation.

func (*ElasticBeanstalk) CreateEnvironment

func (c *ElasticBeanstalk) CreateEnvironment(input *CreateEnvironmentInput) (*EnvironmentDescription, error)

Launches an environment for the specified application using the specified configuration.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/elasticbeanstalk"
)

func main() {
	svc := elasticbeanstalk.New(nil)

	params := &elasticbeanstalk.CreateEnvironmentInput{
		ApplicationName: aws.String("ApplicationName"), // Required
		EnvironmentName: aws.String("EnvironmentName"), // Required
		CNAMEPrefix:     aws.String("DNSCnamePrefix"),
		Description:     aws.String("Description"),
		OptionSettings: []*elasticbeanstalk.ConfigurationOptionSetting{
			{ // Required
				Namespace:    aws.String("OptionNamespace"),
				OptionName:   aws.String("ConfigurationOptionName"),
				ResourceName: aws.String("ResourceName"),
				Value:        aws.String("ConfigurationOptionValue"),
			},
			// More values...
		},
		OptionsToRemove: []*elasticbeanstalk.OptionSpecification{
			{ // Required
				Namespace:    aws.String("OptionNamespace"),
				OptionName:   aws.String("ConfigurationOptionName"),
				ResourceName: aws.String("ResourceName"),
			},
			// More values...
		},
		SolutionStackName: aws.String("SolutionStackName"),
		Tags: []*elasticbeanstalk.Tag{
			{ // Required
				Key:   aws.String("TagKey"),
				Value: aws.String("TagValue"),
			},
			// More values...
		},
		TemplateName: aws.String("ConfigurationTemplateName"),
		Tier: &elasticbeanstalk.EnvironmentTier{
			Name:    aws.String("String"),
			Type:    aws.String("String"),
			Version: aws.String("String"),
		},
		VersionLabel: aws.String("VersionLabel"),
	}
	resp, err := svc.CreateEnvironment(params)

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, the SDK should always return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

	// Pretty-print the response data.
	fmt.Println(awsutil.Prettify(resp))
}
Output:

func (*ElasticBeanstalk) CreateEnvironmentRequest

func (c *ElasticBeanstalk) CreateEnvironmentRequest(input *CreateEnvironmentInput) (req *service.Request, output *EnvironmentDescription)

CreateEnvironmentRequest generates a request for the CreateEnvironment operation.

func (*ElasticBeanstalk) CreateStorageLocation

Creates the Amazon S3 storage location for the account.

This location is used to store user log files.
Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/elasticbeanstalk"
)

func main() {
	svc := elasticbeanstalk.New(nil)

	var params *elasticbeanstalk.CreateStorageLocationInput
	resp, err := svc.CreateStorageLocation(params)

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, the SDK should always return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

	// Pretty-print the response data.
	fmt.Println(awsutil.Prettify(resp))
}
Output:

func (*ElasticBeanstalk) CreateStorageLocationRequest

func (c *ElasticBeanstalk) CreateStorageLocationRequest(input *CreateStorageLocationInput) (req *service.Request, output *CreateStorageLocationOutput)

CreateStorageLocationRequest generates a request for the CreateStorageLocation operation.

func (*ElasticBeanstalk) DeleteApplication

func (c *ElasticBeanstalk) DeleteApplication(input *DeleteApplicationInput) (*DeleteApplicationOutput, error)

Deletes the specified application along with all associated versions and configurations. The application versions will not be deleted from your Amazon S3 bucket.

You cannot delete an application that has a running environment.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/elasticbeanstalk"
)

func main() {
	svc := elasticbeanstalk.New(nil)

	params := &elasticbeanstalk.DeleteApplicationInput{
		ApplicationName:     aws.String("ApplicationName"), // Required
		TerminateEnvByForce: aws.Bool(true),
	}
	resp, err := svc.DeleteApplication(params)

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, the SDK should always return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

	// Pretty-print the response data.
	fmt.Println(awsutil.Prettify(resp))
}
Output:

func (*ElasticBeanstalk) DeleteApplicationRequest

func (c *ElasticBeanstalk) DeleteApplicationRequest(input *DeleteApplicationInput) (req *service.Request, output *DeleteApplicationOutput)

DeleteApplicationRequest generates a request for the DeleteApplication operation.

func (*ElasticBeanstalk) DeleteApplicationVersion

Deletes the specified version from the specified application.

You cannot delete an application version that is associated with a running environment.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/elasticbeanstalk"
)

func main() {
	svc := elasticbeanstalk.New(nil)

	params := &elasticbeanstalk.DeleteApplicationVersionInput{
		ApplicationName:    aws.String("ApplicationName"), // Required
		VersionLabel:       aws.String("VersionLabel"),    // Required
		DeleteSourceBundle: aws.Bool(true),
	}
	resp, err := svc.DeleteApplicationVersion(params)

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, the SDK should always return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

	// Pretty-print the response data.
	fmt.Println(awsutil.Prettify(resp))
}
Output:

func (*ElasticBeanstalk) DeleteApplicationVersionRequest

func (c *ElasticBeanstalk) DeleteApplicationVersionRequest(input *DeleteApplicationVersionInput) (req *service.Request, output *DeleteApplicationVersionOutput)

DeleteApplicationVersionRequest generates a request for the DeleteApplicationVersion operation.

func (*ElasticBeanstalk) DeleteConfigurationTemplate

Deletes the specified configuration template.

When you launch an environment using a configuration template, the environment gets a copy of the template. You can delete or modify the environment's copy of the template without affecting the running environment.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/elasticbeanstalk"
)

func main() {
	svc := elasticbeanstalk.New(nil)

	params := &elasticbeanstalk.DeleteConfigurationTemplateInput{
		ApplicationName: aws.String("ApplicationName"),           // Required
		TemplateName:    aws.String("ConfigurationTemplateName"), // Required
	}
	resp, err := svc.DeleteConfigurationTemplate(params)

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, the SDK should always return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

	// Pretty-print the response data.
	fmt.Println(awsutil.Prettify(resp))
}
Output:

func (*ElasticBeanstalk) DeleteConfigurationTemplateRequest

func (c *ElasticBeanstalk) DeleteConfigurationTemplateRequest(input *DeleteConfigurationTemplateInput) (req *service.Request, output *DeleteConfigurationTemplateOutput)

DeleteConfigurationTemplateRequest generates a request for the DeleteConfigurationTemplate operation.

func (*ElasticBeanstalk) DeleteEnvironmentConfiguration

Deletes the draft configuration associated with the running environment.

Updating a running environment with any configuration changes creates a

draft configuration set. You can get the draft configuration using DescribeConfigurationSettings while the update is in progress or if the update fails. The DeploymentStatus for the draft configuration indicates whether the deployment is in process or has failed. The draft configuration remains in existence until it is deleted with this action.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/elasticbeanstalk"
)

func main() {
	svc := elasticbeanstalk.New(nil)

	params := &elasticbeanstalk.DeleteEnvironmentConfigurationInput{
		ApplicationName: aws.String("ApplicationName"), // Required
		EnvironmentName: aws.String("EnvironmentName"), // Required
	}
	resp, err := svc.DeleteEnvironmentConfiguration(params)

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, the SDK should always return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

	// Pretty-print the response data.
	fmt.Println(awsutil.Prettify(resp))
}
Output:

func (*ElasticBeanstalk) DeleteEnvironmentConfigurationRequest

func (c *ElasticBeanstalk) DeleteEnvironmentConfigurationRequest(input *DeleteEnvironmentConfigurationInput) (req *service.Request, output *DeleteEnvironmentConfigurationOutput)

DeleteEnvironmentConfigurationRequest generates a request for the DeleteEnvironmentConfiguration operation.

func (*ElasticBeanstalk) DescribeApplicationVersions

Returns descriptions for existing application versions.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/elasticbeanstalk"
)

func main() {
	svc := elasticbeanstalk.New(nil)

	params := &elasticbeanstalk.DescribeApplicationVersionsInput{
		ApplicationName: aws.String("ApplicationName"),
		VersionLabels: []*string{
			aws.String("VersionLabel"), // Required
			// More values...
		},
	}
	resp, err := svc.DescribeApplicationVersions(params)

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, the SDK should always return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

	// Pretty-print the response data.
	fmt.Println(awsutil.Prettify(resp))
}
Output:

func (*ElasticBeanstalk) DescribeApplicationVersionsRequest

func (c *ElasticBeanstalk) DescribeApplicationVersionsRequest(input *DescribeApplicationVersionsInput) (req *service.Request, output *DescribeApplicationVersionsOutput)

DescribeApplicationVersionsRequest generates a request for the DescribeApplicationVersions operation.

func (*ElasticBeanstalk) DescribeApplications

func (c *ElasticBeanstalk) DescribeApplications(input *DescribeApplicationsInput) (*DescribeApplicationsOutput, error)

Returns the descriptions of existing applications.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/elasticbeanstalk"
)

func main() {
	svc := elasticbeanstalk.New(nil)

	params := &elasticbeanstalk.DescribeApplicationsInput{
		ApplicationNames: []*string{
			aws.String("ApplicationName"), // Required
			// More values...
		},
	}
	resp, err := svc.DescribeApplications(params)

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, the SDK should always return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

	// Pretty-print the response data.
	fmt.Println(awsutil.Prettify(resp))
}
Output:

func (*ElasticBeanstalk) DescribeApplicationsRequest

func (c *ElasticBeanstalk) DescribeApplicationsRequest(input *DescribeApplicationsInput) (req *service.Request, output *DescribeApplicationsOutput)

DescribeApplicationsRequest generates a request for the DescribeApplications operation.

func (*ElasticBeanstalk) DescribeConfigurationOptions

Describes the configuration options that are used in a particular configuration template or environment, or that a specified solution stack defines. The description includes the values the options, their default values, and an indication of the required action on a running environment if an option value is changed.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/elasticbeanstalk"
)

func main() {
	svc := elasticbeanstalk.New(nil)

	params := &elasticbeanstalk.DescribeConfigurationOptionsInput{
		ApplicationName: aws.String("ApplicationName"),
		EnvironmentName: aws.String("EnvironmentName"),
		Options: []*elasticbeanstalk.OptionSpecification{
			{ // Required
				Namespace:    aws.String("OptionNamespace"),
				OptionName:   aws.String("ConfigurationOptionName"),
				ResourceName: aws.String("ResourceName"),
			},
			// More values...
		},
		SolutionStackName: aws.String("SolutionStackName"),
		TemplateName:      aws.String("ConfigurationTemplateName"),
	}
	resp, err := svc.DescribeConfigurationOptions(params)

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, the SDK should always return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

	// Pretty-print the response data.
	fmt.Println(awsutil.Prettify(resp))
}
Output:

func (*ElasticBeanstalk) DescribeConfigurationOptionsRequest

func (c *ElasticBeanstalk) DescribeConfigurationOptionsRequest(input *DescribeConfigurationOptionsInput) (req *service.Request, output *DescribeConfigurationOptionsOutput)

DescribeConfigurationOptionsRequest generates a request for the DescribeConfigurationOptions operation.

func (*ElasticBeanstalk) DescribeConfigurationSettings

Returns a description of the settings for the specified configuration set, that is, either a configuration template or the configuration set associated with a running environment.

When describing the settings for the configuration set associated with

a running environment, it is possible to receive two sets of setting descriptions. One is the deployed configuration set, and the other is a draft configuration of an environment that is either in the process of deployment or that failed to deploy.

Related Topics

DeleteEnvironmentConfiguration
Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/elasticbeanstalk"
)

func main() {
	svc := elasticbeanstalk.New(nil)

	params := &elasticbeanstalk.DescribeConfigurationSettingsInput{
		ApplicationName: aws.String("ApplicationName"), // Required
		EnvironmentName: aws.String("EnvironmentName"),
		TemplateName:    aws.String("ConfigurationTemplateName"),
	}
	resp, err := svc.DescribeConfigurationSettings(params)

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, the SDK should always return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

	// Pretty-print the response data.
	fmt.Println(awsutil.Prettify(resp))
}
Output:

func (*ElasticBeanstalk) DescribeConfigurationSettingsRequest

func (c *ElasticBeanstalk) DescribeConfigurationSettingsRequest(input *DescribeConfigurationSettingsInput) (req *service.Request, output *DescribeConfigurationSettingsOutput)

DescribeConfigurationSettingsRequest generates a request for the DescribeConfigurationSettings operation.

func (*ElasticBeanstalk) DescribeEnvironmentHealth

Returns information about the overall health of the specified environment. The DescribeEnvironmentHealth operation is only available with AWS Elastic Beanstalk Enhanced Health.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/elasticbeanstalk"
)

func main() {
	svc := elasticbeanstalk.New(nil)

	params := &elasticbeanstalk.DescribeEnvironmentHealthInput{
		AttributeNames: []*string{
			aws.String("EnvironmentHealthAttribute"), // Required
			// More values...
		},
		EnvironmentId:   aws.String("EnvironmentId"),
		EnvironmentName: aws.String("EnvironmentName"),
	}
	resp, err := svc.DescribeEnvironmentHealth(params)

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, the SDK should always return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

	// Pretty-print the response data.
	fmt.Println(awsutil.Prettify(resp))
}
Output:

func (*ElasticBeanstalk) DescribeEnvironmentHealthRequest

func (c *ElasticBeanstalk) DescribeEnvironmentHealthRequest(input *DescribeEnvironmentHealthInput) (req *service.Request, output *DescribeEnvironmentHealthOutput)

DescribeEnvironmentHealthRequest generates a request for the DescribeEnvironmentHealth operation.

func (*ElasticBeanstalk) DescribeEnvironmentResources

Returns AWS resources for this environment.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/elasticbeanstalk"
)

func main() {
	svc := elasticbeanstalk.New(nil)

	params := &elasticbeanstalk.DescribeEnvironmentResourcesInput{
		EnvironmentId:   aws.String("EnvironmentId"),
		EnvironmentName: aws.String("EnvironmentName"),
	}
	resp, err := svc.DescribeEnvironmentResources(params)

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, the SDK should always return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

	// Pretty-print the response data.
	fmt.Println(awsutil.Prettify(resp))
}
Output:

func (*ElasticBeanstalk) DescribeEnvironmentResourcesRequest

func (c *ElasticBeanstalk) DescribeEnvironmentResourcesRequest(input *DescribeEnvironmentResourcesInput) (req *service.Request, output *DescribeEnvironmentResourcesOutput)

DescribeEnvironmentResourcesRequest generates a request for the DescribeEnvironmentResources operation.

func (*ElasticBeanstalk) DescribeEnvironments

func (c *ElasticBeanstalk) DescribeEnvironments(input *DescribeEnvironmentsInput) (*DescribeEnvironmentsOutput, error)

Returns descriptions for existing environments.

Example
package main

import (
	"fmt"
	"time"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/elasticbeanstalk"
)

func main() {
	svc := elasticbeanstalk.New(nil)

	params := &elasticbeanstalk.DescribeEnvironmentsInput{
		ApplicationName: aws.String("ApplicationName"),
		EnvironmentIds: []*string{
			aws.String("EnvironmentId"), // Required
			// More values...
		},
		EnvironmentNames: []*string{
			aws.String("EnvironmentName"), // Required
			// More values...
		},
		IncludeDeleted:        aws.Bool(true),
		IncludedDeletedBackTo: aws.Time(time.Now()),
		VersionLabel:          aws.String("VersionLabel"),
	}
	resp, err := svc.DescribeEnvironments(params)

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, the SDK should always return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

	// Pretty-print the response data.
	fmt.Println(awsutil.Prettify(resp))
}
Output:

func (*ElasticBeanstalk) DescribeEnvironmentsRequest

func (c *ElasticBeanstalk) DescribeEnvironmentsRequest(input *DescribeEnvironmentsInput) (req *service.Request, output *DescribeEnvironmentsOutput)

DescribeEnvironmentsRequest generates a request for the DescribeEnvironments operation.

func (*ElasticBeanstalk) DescribeEvents

func (c *ElasticBeanstalk) DescribeEvents(input *DescribeEventsInput) (*DescribeEventsOutput, error)

Returns list of event descriptions matching criteria up to the last 6 weeks.

This action returns the most recent 1,000 events from the specified NextToken.
Example
package main

import (
	"fmt"
	"time"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/elasticbeanstalk"
)

func main() {
	svc := elasticbeanstalk.New(nil)

	params := &elasticbeanstalk.DescribeEventsInput{
		ApplicationName: aws.String("ApplicationName"),
		EndTime:         aws.Time(time.Now()),
		EnvironmentId:   aws.String("EnvironmentId"),
		EnvironmentName: aws.String("EnvironmentName"),
		MaxRecords:      aws.Int64(1),
		NextToken:       aws.String("Token"),
		RequestId:       aws.String("RequestId"),
		Severity:        aws.String("EventSeverity"),
		StartTime:       aws.Time(time.Now()),
		TemplateName:    aws.String("ConfigurationTemplateName"),
		VersionLabel:    aws.String("VersionLabel"),
	}
	resp, err := svc.DescribeEvents(params)

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, the SDK should always return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

	// Pretty-print the response data.
	fmt.Println(awsutil.Prettify(resp))
}
Output:

func (*ElasticBeanstalk) DescribeEventsPages

func (c *ElasticBeanstalk) DescribeEventsPages(input *DescribeEventsInput, fn func(p *DescribeEventsOutput, lastPage bool) (shouldContinue bool)) error

func (*ElasticBeanstalk) DescribeEventsRequest

func (c *ElasticBeanstalk) DescribeEventsRequest(input *DescribeEventsInput) (req *service.Request, output *DescribeEventsOutput)

DescribeEventsRequest generates a request for the DescribeEvents operation.

func (*ElasticBeanstalk) DescribeInstancesHealth

Returns more detailed information about the health of the specified instances (for example, CPU utilization, load average, and causes). The DescribeInstancesHealth operation is only available with AWS Elastic Beanstalk Enhanced Health.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/elasticbeanstalk"
)

func main() {
	svc := elasticbeanstalk.New(nil)

	params := &elasticbeanstalk.DescribeInstancesHealthInput{
		AttributeNames: []*string{
			aws.String("InstancesHealthAttribute"), // Required
			// More values...
		},
		EnvironmentId:   aws.String("EnvironmentId"),
		EnvironmentName: aws.String("EnvironmentName"),
		NextToken:       aws.String("NextToken"),
	}
	resp, err := svc.DescribeInstancesHealth(params)

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, the SDK should always return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

	// Pretty-print the response data.
	fmt.Println(awsutil.Prettify(resp))
}
Output:

func (*ElasticBeanstalk) DescribeInstancesHealthRequest

func (c *ElasticBeanstalk) DescribeInstancesHealthRequest(input *DescribeInstancesHealthInput) (req *service.Request, output *DescribeInstancesHealthOutput)

DescribeInstancesHealthRequest generates a request for the DescribeInstancesHealth operation.

func (*ElasticBeanstalk) ListAvailableSolutionStacks

Returns a list of the available solution stack names.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/elasticbeanstalk"
)

func main() {
	svc := elasticbeanstalk.New(nil)

	var params *elasticbeanstalk.ListAvailableSolutionStacksInput
	resp, err := svc.ListAvailableSolutionStacks(params)

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, the SDK should always return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

	// Pretty-print the response data.
	fmt.Println(awsutil.Prettify(resp))
}
Output:

func (*ElasticBeanstalk) ListAvailableSolutionStacksRequest

func (c *ElasticBeanstalk) ListAvailableSolutionStacksRequest(input *ListAvailableSolutionStacksInput) (req *service.Request, output *ListAvailableSolutionStacksOutput)

ListAvailableSolutionStacksRequest generates a request for the ListAvailableSolutionStacks operation.

func (*ElasticBeanstalk) RebuildEnvironment

func (c *ElasticBeanstalk) RebuildEnvironment(input *RebuildEnvironmentInput) (*RebuildEnvironmentOutput, error)

Deletes and recreates all of the AWS resources (for example: the Auto Scaling group, load balancer, etc.) for a specified environment and forces a restart.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/elasticbeanstalk"
)

func main() {
	svc := elasticbeanstalk.New(nil)

	params := &elasticbeanstalk.RebuildEnvironmentInput{
		EnvironmentId:   aws.String("EnvironmentId"),
		EnvironmentName: aws.String("EnvironmentName"),
	}
	resp, err := svc.RebuildEnvironment(params)

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, the SDK should always return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

	// Pretty-print the response data.
	fmt.Println(awsutil.Prettify(resp))
}
Output:

func (*ElasticBeanstalk) RebuildEnvironmentRequest

func (c *ElasticBeanstalk) RebuildEnvironmentRequest(input *RebuildEnvironmentInput) (req *service.Request, output *RebuildEnvironmentOutput)

RebuildEnvironmentRequest generates a request for the RebuildEnvironment operation.

func (*ElasticBeanstalk) RequestEnvironmentInfo

Initiates a request to compile the specified type of information of the deployed environment.

Setting the InfoType to tail compiles the last lines from the application

server log files of every Amazon EC2 instance in your environment.

Setting the InfoType to bundle compresses the application server log files

for every Amazon EC2 instance into a .zip file. Legacy and .NET containers do not support bundle logs.

Use RetrieveEnvironmentInfo to obtain the set of logs.

Related Topics

RetrieveEnvironmentInfo
Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/elasticbeanstalk"
)

func main() {
	svc := elasticbeanstalk.New(nil)

	params := &elasticbeanstalk.RequestEnvironmentInfoInput{
		InfoType:        aws.String("EnvironmentInfoType"), // Required
		EnvironmentId:   aws.String("EnvironmentId"),
		EnvironmentName: aws.String("EnvironmentName"),
	}
	resp, err := svc.RequestEnvironmentInfo(params)

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, the SDK should always return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

	// Pretty-print the response data.
	fmt.Println(awsutil.Prettify(resp))
}
Output:

func (*ElasticBeanstalk) RequestEnvironmentInfoRequest

func (c *ElasticBeanstalk) RequestEnvironmentInfoRequest(input *RequestEnvironmentInfoInput) (req *service.Request, output *RequestEnvironmentInfoOutput)

RequestEnvironmentInfoRequest generates a request for the RequestEnvironmentInfo operation.

func (*ElasticBeanstalk) RestartAppServer

func (c *ElasticBeanstalk) RestartAppServer(input *RestartAppServerInput) (*RestartAppServerOutput, error)

Causes the environment to restart the application container server running on each Amazon EC2 instance.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/elasticbeanstalk"
)

func main() {
	svc := elasticbeanstalk.New(nil)

	params := &elasticbeanstalk.RestartAppServerInput{
		EnvironmentId:   aws.String("EnvironmentId"),
		EnvironmentName: aws.String("EnvironmentName"),
	}
	resp, err := svc.RestartAppServer(params)

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, the SDK should always return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

	// Pretty-print the response data.
	fmt.Println(awsutil.Prettify(resp))
}
Output:

func (*ElasticBeanstalk) RestartAppServerRequest

func (c *ElasticBeanstalk) RestartAppServerRequest(input *RestartAppServerInput) (req *service.Request, output *RestartAppServerOutput)

RestartAppServerRequest generates a request for the RestartAppServer operation.

func (*ElasticBeanstalk) RetrieveEnvironmentInfo

Retrieves the compiled information from a RequestEnvironmentInfo request.

Related Topics

RequestEnvironmentInfo
Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/elasticbeanstalk"
)

func main() {
	svc := elasticbeanstalk.New(nil)

	params := &elasticbeanstalk.RetrieveEnvironmentInfoInput{
		InfoType:        aws.String("EnvironmentInfoType"), // Required
		EnvironmentId:   aws.String("EnvironmentId"),
		EnvironmentName: aws.String("EnvironmentName"),
	}
	resp, err := svc.RetrieveEnvironmentInfo(params)

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, the SDK should always return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

	// Pretty-print the response data.
	fmt.Println(awsutil.Prettify(resp))
}
Output:

func (*ElasticBeanstalk) RetrieveEnvironmentInfoRequest

func (c *ElasticBeanstalk) RetrieveEnvironmentInfoRequest(input *RetrieveEnvironmentInfoInput) (req *service.Request, output *RetrieveEnvironmentInfoOutput)

RetrieveEnvironmentInfoRequest generates a request for the RetrieveEnvironmentInfo operation.

func (*ElasticBeanstalk) SwapEnvironmentCNAMEs

Swaps the CNAMEs of two environments.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/elasticbeanstalk"
)

func main() {
	svc := elasticbeanstalk.New(nil)

	params := &elasticbeanstalk.SwapEnvironmentCNAMEsInput{
		DestinationEnvironmentId:   aws.String("EnvironmentId"),
		DestinationEnvironmentName: aws.String("EnvironmentName"),
		SourceEnvironmentId:        aws.String("EnvironmentId"),
		SourceEnvironmentName:      aws.String("EnvironmentName"),
	}
	resp, err := svc.SwapEnvironmentCNAMEs(params)

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, the SDK should always return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

	// Pretty-print the response data.
	fmt.Println(awsutil.Prettify(resp))
}
Output:

func (*ElasticBeanstalk) SwapEnvironmentCNAMEsRequest

func (c *ElasticBeanstalk) SwapEnvironmentCNAMEsRequest(input *SwapEnvironmentCNAMEsInput) (req *service.Request, output *SwapEnvironmentCNAMEsOutput)

SwapEnvironmentCNAMEsRequest generates a request for the SwapEnvironmentCNAMEs operation.

func (*ElasticBeanstalk) TerminateEnvironment

func (c *ElasticBeanstalk) TerminateEnvironment(input *TerminateEnvironmentInput) (*EnvironmentDescription, error)

Terminates the specified environment.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/elasticbeanstalk"
)

func main() {
	svc := elasticbeanstalk.New(nil)

	params := &elasticbeanstalk.TerminateEnvironmentInput{
		EnvironmentId:      aws.String("EnvironmentId"),
		EnvironmentName:    aws.String("EnvironmentName"),
		TerminateResources: aws.Bool(true),
	}
	resp, err := svc.TerminateEnvironment(params)

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, the SDK should always return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

	// Pretty-print the response data.
	fmt.Println(awsutil.Prettify(resp))
}
Output:

func (*ElasticBeanstalk) TerminateEnvironmentRequest

func (c *ElasticBeanstalk) TerminateEnvironmentRequest(input *TerminateEnvironmentInput) (req *service.Request, output *EnvironmentDescription)

TerminateEnvironmentRequest generates a request for the TerminateEnvironment operation.

func (*ElasticBeanstalk) UpdateApplication

Updates the specified application to have the specified properties.

If a property (for example, description) is not provided, the value remains

unchanged. To clear these properties, specify an empty string.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/elasticbeanstalk"
)

func main() {
	svc := elasticbeanstalk.New(nil)

	params := &elasticbeanstalk.UpdateApplicationInput{
		ApplicationName: aws.String("ApplicationName"), // Required
		Description:     aws.String("Description"),
	}
	resp, err := svc.UpdateApplication(params)

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, the SDK should always return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

	// Pretty-print the response data.
	fmt.Println(awsutil.Prettify(resp))
}
Output:

func (*ElasticBeanstalk) UpdateApplicationRequest

func (c *ElasticBeanstalk) UpdateApplicationRequest(input *UpdateApplicationInput) (req *service.Request, output *ApplicationDescriptionMessage)

UpdateApplicationRequest generates a request for the UpdateApplication operation.

func (*ElasticBeanstalk) UpdateApplicationVersion

Updates the specified application version to have the specified properties.

If a property (for example, description) is not provided, the value remains

unchanged. To clear properties, specify an empty string.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/elasticbeanstalk"
)

func main() {
	svc := elasticbeanstalk.New(nil)

	params := &elasticbeanstalk.UpdateApplicationVersionInput{
		ApplicationName: aws.String("ApplicationName"), // Required
		VersionLabel:    aws.String("VersionLabel"),    // Required
		Description:     aws.String("Description"),
	}
	resp, err := svc.UpdateApplicationVersion(params)

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, the SDK should always return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

	// Pretty-print the response data.
	fmt.Println(awsutil.Prettify(resp))
}
Output:

func (*ElasticBeanstalk) UpdateApplicationVersionRequest

func (c *ElasticBeanstalk) UpdateApplicationVersionRequest(input *UpdateApplicationVersionInput) (req *service.Request, output *ApplicationVersionDescriptionMessage)

UpdateApplicationVersionRequest generates a request for the UpdateApplicationVersion operation.

func (*ElasticBeanstalk) UpdateConfigurationTemplate

Updates the specified configuration template to have the specified properties or configuration option values.

If a property (for example, ApplicationName) is not provided, its value

remains unchanged. To clear such properties, specify an empty string. Related Topics

DescribeConfigurationOptions
Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/elasticbeanstalk"
)

func main() {
	svc := elasticbeanstalk.New(nil)

	params := &elasticbeanstalk.UpdateConfigurationTemplateInput{
		ApplicationName: aws.String("ApplicationName"),           // Required
		TemplateName:    aws.String("ConfigurationTemplateName"), // Required
		Description:     aws.String("Description"),
		OptionSettings: []*elasticbeanstalk.ConfigurationOptionSetting{
			{ // Required
				Namespace:    aws.String("OptionNamespace"),
				OptionName:   aws.String("ConfigurationOptionName"),
				ResourceName: aws.String("ResourceName"),
				Value:        aws.String("ConfigurationOptionValue"),
			},
			// More values...
		},
		OptionsToRemove: []*elasticbeanstalk.OptionSpecification{
			{ // Required
				Namespace:    aws.String("OptionNamespace"),
				OptionName:   aws.String("ConfigurationOptionName"),
				ResourceName: aws.String("ResourceName"),
			},
			// More values...
		},
	}
	resp, err := svc.UpdateConfigurationTemplate(params)

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, the SDK should always return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

	// Pretty-print the response data.
	fmt.Println(awsutil.Prettify(resp))
}
Output:

func (*ElasticBeanstalk) UpdateConfigurationTemplateRequest

func (c *ElasticBeanstalk) UpdateConfigurationTemplateRequest(input *UpdateConfigurationTemplateInput) (req *service.Request, output *ConfigurationSettingsDescription)

UpdateConfigurationTemplateRequest generates a request for the UpdateConfigurationTemplate operation.

func (*ElasticBeanstalk) UpdateEnvironment

func (c *ElasticBeanstalk) UpdateEnvironment(input *UpdateEnvironmentInput) (*EnvironmentDescription, error)

Updates the environment description, deploys a new application version, updates the configuration settings to an entirely new configuration template, or updates select configuration option values in the running environment.

Attempting to update both the release and configuration is not allowed

and AWS Elastic Beanstalk returns an InvalidParameterCombination error.

When updating the configuration settings to a new template or individual

settings, a draft configuration is created and DescribeConfigurationSettings for this environment returns two setting descriptions with different DeploymentStatus values.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/elasticbeanstalk"
)

func main() {
	svc := elasticbeanstalk.New(nil)

	params := &elasticbeanstalk.UpdateEnvironmentInput{
		Description:     aws.String("Description"),
		EnvironmentId:   aws.String("EnvironmentId"),
		EnvironmentName: aws.String("EnvironmentName"),
		OptionSettings: []*elasticbeanstalk.ConfigurationOptionSetting{
			{ // Required
				Namespace:    aws.String("OptionNamespace"),
				OptionName:   aws.String("ConfigurationOptionName"),
				ResourceName: aws.String("ResourceName"),
				Value:        aws.String("ConfigurationOptionValue"),
			},
			// More values...
		},
		OptionsToRemove: []*elasticbeanstalk.OptionSpecification{
			{ // Required
				Namespace:    aws.String("OptionNamespace"),
				OptionName:   aws.String("ConfigurationOptionName"),
				ResourceName: aws.String("ResourceName"),
			},
			// More values...
		},
		SolutionStackName: aws.String("SolutionStackName"),
		TemplateName:      aws.String("ConfigurationTemplateName"),
		Tier: &elasticbeanstalk.EnvironmentTier{
			Name:    aws.String("String"),
			Type:    aws.String("String"),
			Version: aws.String("String"),
		},
		VersionLabel: aws.String("VersionLabel"),
	}
	resp, err := svc.UpdateEnvironment(params)

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, the SDK should always return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

	// Pretty-print the response data.
	fmt.Println(awsutil.Prettify(resp))
}
Output:

func (*ElasticBeanstalk) UpdateEnvironmentRequest

func (c *ElasticBeanstalk) UpdateEnvironmentRequest(input *UpdateEnvironmentInput) (req *service.Request, output *EnvironmentDescription)

UpdateEnvironmentRequest generates a request for the UpdateEnvironment operation.

func (*ElasticBeanstalk) ValidateConfigurationSettings

Takes a set of configuration settings and either a configuration template or environment, and determines whether those values are valid.

This action returns a list of messages indicating any errors or warnings

associated with the selection of option values.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/awsutil"
	"github.com/aws/aws-sdk-go/service/elasticbeanstalk"
)

func main() {
	svc := elasticbeanstalk.New(nil)

	params := &elasticbeanstalk.ValidateConfigurationSettingsInput{
		ApplicationName: aws.String("ApplicationName"), // Required
		OptionSettings: []*elasticbeanstalk.ConfigurationOptionSetting{ // Required
			{ // Required
				Namespace:    aws.String("OptionNamespace"),
				OptionName:   aws.String("ConfigurationOptionName"),
				ResourceName: aws.String("ResourceName"),
				Value:        aws.String("ConfigurationOptionValue"),
			},
			// More values...
		},
		EnvironmentName: aws.String("EnvironmentName"),
		TemplateName:    aws.String("ConfigurationTemplateName"),
	}
	resp, err := svc.ValidateConfigurationSettings(params)

	if err != nil {
		if awsErr, ok := err.(awserr.Error); ok {
			// Generic AWS error with Code, Message, and original error (if any)
			fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
			if reqErr, ok := err.(awserr.RequestFailure); ok {
				// A service error occurred
				fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID())
			}
		} else {
			// This case should never be hit, the SDK should always return an
			// error which satisfies the awserr.Error interface.
			fmt.Println(err.Error())
		}
	}

	// Pretty-print the response data.
	fmt.Println(awsutil.Prettify(resp))
}
Output:

func (*ElasticBeanstalk) ValidateConfigurationSettingsRequest

func (c *ElasticBeanstalk) ValidateConfigurationSettingsRequest(input *ValidateConfigurationSettingsInput) (req *service.Request, output *ValidateConfigurationSettingsOutput)

ValidateConfigurationSettingsRequest generates a request for the ValidateConfigurationSettings operation.

type EnvironmentDescription

type EnvironmentDescription struct {
	// Indicates if there is an in-progress environment configuration update or
	// application version deployment that you can cancel.
	//
	//  true: There is an update in progress.
	//
	//  false: There are no updates currently in progress.
	AbortableOperationInProgress *bool `type:"boolean"`

	// The name of the application associated with this environment.
	ApplicationName *string `type:"string"`

	// The URL to the CNAME for this environment.
	CNAME *string `type:"string"`

	// The creation date for this environment.
	DateCreated *time.Time `type:"timestamp" timestampFormat:"iso8601"`

	// The last modified date for this environment.
	DateUpdated *time.Time `type:"timestamp" timestampFormat:"iso8601"`

	// Describes this environment.
	Description *string `type:"string"`

	// For load-balanced, autoscaling environments, the URL to the LoadBalancer.
	// For single-instance environments, the IP address of the instance.
	EndpointURL *string `type:"string"`

	// The ID of this environment.
	EnvironmentId *string `type:"string"`

	// The name of this environment.
	EnvironmentName *string `type:"string"`

	// Describes the health status of the environment. AWS Elastic Beanstalk indicates
	// the failure levels for a running environment:
	//
	//    Red : Indicates the environment is not working.
	//
	//    Yellow: Indicates that something is wrong, the application might not
	// be available, but the instances appear running.
	//
	//    Green: Indicates the environment is healthy and fully functional.
	//
	//     Red: Indicates the environment is not responsive. Occurs when three
	// or more consecutive failures occur for an environment.   Yellow: Indicates
	// that something is wrong. Occurs when two consecutive failures occur for an
	// environment.   Green: Indicates the environment is healthy and fully functional.
	//   Grey: Default health for a new environment. The environment is not fully
	// launched and health checks have not started or health checks are suspended
	// during an UpdateEnvironment or RestartEnvironement request.    Default: Grey
	Health *string `type:"string" enum:"EnvironmentHealth"`

	// Returns the health status of the application running in your environment.
	// For more information, see Health Colors and Statuses (http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/health-enhanced-status.html).
	HealthStatus *string `type:"string" enum:"EnvironmentHealthStatus"`

	// The description of the AWS resources used by this environment.
	Resources *EnvironmentResourcesDescription `type:"structure"`

	// The name of the SolutionStack deployed with this environment.
	SolutionStackName *string `type:"string"`

	// The current operational status of the environment:
	//
	//   Launching: Environment is in the process of initial deployment.   Updating:
	// Environment is in the process of updating its configuration settings or application
	// version.   Ready: Environment is available to have an action performed on
	// it, such as update or terminate.   Terminating: Environment is in the shut-down
	// process.   Terminated: Environment is not running.
	Status *string `type:"string" enum:"EnvironmentStatus"`

	// The name of the configuration template used to originally launch this environment.
	TemplateName *string `type:"string"`

	// Describes the current tier of this environment.
	Tier *EnvironmentTier `type:"structure"`

	// The application version deployed in this environment.
	VersionLabel *string `type:"string"`
	// contains filtered or unexported fields
}

Describes the properties of an environment.

func (EnvironmentDescription) GoString

func (s EnvironmentDescription) GoString() string

GoString returns the string representation

func (EnvironmentDescription) String

func (s EnvironmentDescription) String() string

String returns the string representation

type EnvironmentInfoDescription

type EnvironmentInfoDescription struct {
	// The Amazon EC2 Instance ID for this information.
	Ec2InstanceId *string `type:"string"`

	// The type of information retrieved.
	InfoType *string `type:"string" enum:"EnvironmentInfoType"`

	// The retrieved information.
	Message *string `type:"string"`

	// The time stamp when this information was retrieved.
	SampleTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"`
	// contains filtered or unexported fields
}

The information retrieved from the Amazon EC2 instances.

func (EnvironmentInfoDescription) GoString

func (s EnvironmentInfoDescription) GoString() string

GoString returns the string representation

func (EnvironmentInfoDescription) String

String returns the string representation

type EnvironmentResourceDescription

type EnvironmentResourceDescription struct {
	// The AutoScalingGroups used by this environment.
	AutoScalingGroups []*AutoScalingGroup `type:"list"`

	// The name of the environment.
	EnvironmentName *string `type:"string"`

	// The Amazon EC2 instances used by this environment.
	Instances []*Instance `type:"list"`

	// The Auto Scaling launch configurations in use by this environment.
	LaunchConfigurations []*LaunchConfiguration `type:"list"`

	// The LoadBalancers in use by this environment.
	LoadBalancers []*LoadBalancer `type:"list"`

	// The queues used by this environment.
	Queues []*Queue `type:"list"`

	// The AutoScaling triggers in use by this environment.
	Triggers []*Trigger `type:"list"`
	// contains filtered or unexported fields
}

Describes the AWS resources in use by this environment. This data is live.

func (EnvironmentResourceDescription) GoString

GoString returns the string representation

func (EnvironmentResourceDescription) String

String returns the string representation

type EnvironmentResourcesDescription

type EnvironmentResourcesDescription struct {
	// Describes the LoadBalancer.
	LoadBalancer *LoadBalancerDescription `type:"structure"`
	// contains filtered or unexported fields
}

Describes the AWS resources in use by this environment. This data is not live data.

func (EnvironmentResourcesDescription) GoString

GoString returns the string representation

func (EnvironmentResourcesDescription) String

String returns the string representation

type EnvironmentTier

type EnvironmentTier struct {
	// The name of this environment tier.
	Name *string `type:"string"`

	// The type of this environment tier.
	Type *string `type:"string"`

	// The version of this environment tier.
	Version *string `type:"string"`
	// contains filtered or unexported fields
}

Describes the properties of an environment tier

func (EnvironmentTier) GoString

func (s EnvironmentTier) GoString() string

GoString returns the string representation

func (EnvironmentTier) String

func (s EnvironmentTier) String() string

String returns the string representation

type EventDescription

type EventDescription struct {
	// The application associated with the event.
	ApplicationName *string `type:"string"`

	// The name of the environment associated with this event.
	EnvironmentName *string `type:"string"`

	// The date when the event occurred.
	EventDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`

	// The event message.
	Message *string `type:"string"`

	// The web service request ID for the activity of this event.
	RequestId *string `type:"string"`

	// The severity level of this event.
	Severity *string `type:"string" enum:"EventSeverity"`

	// The name of the configuration associated with this event.
	TemplateName *string `type:"string"`

	// The release label for the application version associated with this event.
	VersionLabel *string `type:"string"`
	// contains filtered or unexported fields
}

Describes an event.

func (EventDescription) GoString

func (s EventDescription) GoString() string

GoString returns the string representation

func (EventDescription) String

func (s EventDescription) String() string

String returns the string representation

type Instance

type Instance struct {
	// The ID of the Amazon EC2 instance.
	Id *string `type:"string"`
	// contains filtered or unexported fields
}

The description of an Amazon EC2 instance.

func (Instance) GoString

func (s Instance) GoString() string

GoString returns the string representation

func (Instance) String

func (s Instance) String() string

String returns the string representation

type InstanceHealthSummary

type InstanceHealthSummary struct {
	// Red. The health agent is reporting a high number of request failures or other
	// issues for an instance or environment.
	Degraded *int64 `type:"integer"`

	// Green. An operation is in progress on an instance.
	Info *int64 `type:"integer"`

	// Grey. AWS Elastic Beanstalk and the health agent are reporting no data on
	// an instance.
	NoData *int64 `type:"integer"`

	// Green. An instance is passing health checks and the health agent is not reporting
	// any problems.
	Ok *int64 `type:"integer"`

	// Grey. An operation is in progress on an instance within the command timeout.
	Pending *int64 `type:"integer"`

	// Red. The health agent is reporting a very high number of request failures
	// or other issues for an instance or environment.
	Severe *int64 `type:"integer"`

	// Grey. AWS Elastic Beanstalk and the health agent are reporting an insufficient
	// amount of data on an instance.
	Unknown *int64 `type:"integer"`

	// Yellow. The health agent is reporting a moderate number of request failures
	// or other issues for an instance or environment.
	Warning *int64 `type:"integer"`
	// contains filtered or unexported fields
}

Represents summary information about the health of an instance. For more information, see Health Colors and Statuses (http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/health-enhanced-status.html).

func (InstanceHealthSummary) GoString

func (s InstanceHealthSummary) GoString() string

GoString returns the string representation

func (InstanceHealthSummary) String

func (s InstanceHealthSummary) String() string

String returns the string representation

type Latency

type Latency struct {
	// The average latency for the slowest 90 percent of requests over the last
	// 10 seconds.
	P10 *float64 `type:"double"`

	// The average latency for the slowest 50 percent of requests over the last
	// 10 seconds.
	P50 *float64 `type:"double"`

	// The average latency for the slowest 25 percent of requests over the last
	// 10 seconds.
	P75 *float64 `type:"double"`

	// The average latency for the slowest 15 percent of requests over the last
	// 10 seconds.
	P85 *float64 `type:"double"`

	// The average latency for the slowest 10 percent of requests over the last
	// 10 seconds.
	P90 *float64 `type:"double"`

	// The average latency for the slowest 5 percent of requests over the last 10
	// seconds.
	P95 *float64 `type:"double"`

	// The average latency for the slowest 1 percent of requests over the last 10
	// seconds.
	P99 *float64 `type:"double"`

	// The average latency for the slowest 0.1 percent of requests over the last
	// 10 seconds.
	P999 *float64 `type:"double"`
	// contains filtered or unexported fields
}

Represents the average latency for the slowest X percent of requests over the last 10 seconds.

func (Latency) GoString

func (s Latency) GoString() string

GoString returns the string representation

func (Latency) String

func (s Latency) String() string

String returns the string representation

type LaunchConfiguration

type LaunchConfiguration struct {
	// The name of the launch configuration.
	Name *string `type:"string"`
	// contains filtered or unexported fields
}

Describes an Auto Scaling launch configuration.

func (LaunchConfiguration) GoString

func (s LaunchConfiguration) GoString() string

GoString returns the string representation

func (LaunchConfiguration) String

func (s LaunchConfiguration) String() string

String returns the string representation

type ListAvailableSolutionStacksInput

type ListAvailableSolutionStacksInput struct {
	// contains filtered or unexported fields
}

func (ListAvailableSolutionStacksInput) GoString

GoString returns the string representation

func (ListAvailableSolutionStacksInput) String

String returns the string representation

type ListAvailableSolutionStacksOutput

type ListAvailableSolutionStacksOutput struct {
	// A list of available solution stacks and their SolutionStackDescription.
	SolutionStackDetails []*SolutionStackDescription `type:"list"`

	// A list of available solution stacks.
	SolutionStacks []*string `type:"list"`
	// contains filtered or unexported fields
}

A list of available AWS Elastic Beanstalk solution stacks.

func (ListAvailableSolutionStacksOutput) GoString

GoString returns the string representation

func (ListAvailableSolutionStacksOutput) String

String returns the string representation

type Listener

type Listener struct {
	// The port that is used by the Listener.
	Port *int64 `type:"integer"`

	// The protocol that is used by the Listener.
	Protocol *string `type:"string"`
	// contains filtered or unexported fields
}

Describes the properties of a Listener for the LoadBalancer.

func (Listener) GoString

func (s Listener) GoString() string

GoString returns the string representation

func (Listener) String

func (s Listener) String() string

String returns the string representation

type LoadBalancer

type LoadBalancer struct {
	// The name of the LoadBalancer.
	Name *string `type:"string"`
	// contains filtered or unexported fields
}

Describes a LoadBalancer.

func (LoadBalancer) GoString

func (s LoadBalancer) GoString() string

GoString returns the string representation

func (LoadBalancer) String

func (s LoadBalancer) String() string

String returns the string representation

type LoadBalancerDescription

type LoadBalancerDescription struct {
	// The domain name of the LoadBalancer.
	Domain *string `type:"string"`

	// A list of Listeners used by the LoadBalancer.
	Listeners []*Listener `type:"list"`

	// The name of the LoadBalancer.
	LoadBalancerName *string `type:"string"`
	// contains filtered or unexported fields
}

Describes the details of a LoadBalancer.

func (LoadBalancerDescription) GoString

func (s LoadBalancerDescription) GoString() string

GoString returns the string representation

func (LoadBalancerDescription) String

func (s LoadBalancerDescription) String() string

String returns the string representation

type OptionRestrictionRegex

type OptionRestrictionRegex struct {
	// A unique name representing this regular expression.
	Label *string `type:"string"`

	// The regular expression pattern that a string configuration option value with
	// this restriction must match.
	Pattern *string `type:"string"`
	// contains filtered or unexported fields
}

A regular expression representing a restriction on a string configuration option value.

func (OptionRestrictionRegex) GoString

func (s OptionRestrictionRegex) GoString() string

GoString returns the string representation

func (OptionRestrictionRegex) String

func (s OptionRestrictionRegex) String() string

String returns the string representation

type OptionSpecification

type OptionSpecification struct {
	// A unique namespace identifying the option's associated AWS resource.
	Namespace *string `type:"string"`

	// The name of the configuration option.
	OptionName *string `type:"string"`

	// A unique resource name for a time-based scaling configuration option.
	ResourceName *string `type:"string"`
	// contains filtered or unexported fields
}

A specification identifying an individual configuration option.

func (OptionSpecification) GoString

func (s OptionSpecification) GoString() string

GoString returns the string representation

func (OptionSpecification) String

func (s OptionSpecification) String() string

String returns the string representation

type Queue

type Queue struct {
	// The name of the queue.
	Name *string `type:"string"`

	// The URL of the queue.
	URL *string `type:"string"`
	// contains filtered or unexported fields
}

Describes a queue.

func (Queue) GoString

func (s Queue) GoString() string

GoString returns the string representation

func (Queue) String

func (s Queue) String() string

String returns the string representation

type RebuildEnvironmentInput

type RebuildEnvironmentInput struct {
	// The ID of the environment to rebuild.
	//
	//  Condition: You must specify either this or an EnvironmentName, or both.
	// If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter
	// error.
	EnvironmentId *string `type:"string"`

	// The name of the environment to rebuild.
	//
	//  Condition: You must specify either this or an EnvironmentId, or both. If
	// you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter
	// error.
	EnvironmentName *string `type:"string"`
	// contains filtered or unexported fields
}

func (RebuildEnvironmentInput) GoString

func (s RebuildEnvironmentInput) GoString() string

GoString returns the string representation

func (RebuildEnvironmentInput) String

func (s RebuildEnvironmentInput) String() string

String returns the string representation

type RebuildEnvironmentOutput

type RebuildEnvironmentOutput struct {
	// contains filtered or unexported fields
}

func (RebuildEnvironmentOutput) GoString

func (s RebuildEnvironmentOutput) GoString() string

GoString returns the string representation

func (RebuildEnvironmentOutput) String

func (s RebuildEnvironmentOutput) String() string

String returns the string representation

type RequestEnvironmentInfoInput

type RequestEnvironmentInfoInput struct {
	// The ID of the environment of the requested data.
	//
	//  If no such environment is found, RequestEnvironmentInfo returns an InvalidParameterValue
	// error.
	//
	//  Condition: You must specify either this or an EnvironmentName, or both.
	// If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter
	// error.
	EnvironmentId *string `type:"string"`

	// The name of the environment of the requested data.
	//
	//  If no such environment is found, RequestEnvironmentInfo returns an InvalidParameterValue
	// error.
	//
	//  Condition: You must specify either this or an EnvironmentId, or both. If
	// you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter
	// error.
	EnvironmentName *string `type:"string"`

	// The type of information to request.
	InfoType *string `type:"string" required:"true" enum:"EnvironmentInfoType"`
	// contains filtered or unexported fields
}

This documentation target is not reported in the API reference.

func (RequestEnvironmentInfoInput) GoString

func (s RequestEnvironmentInfoInput) GoString() string

GoString returns the string representation

func (RequestEnvironmentInfoInput) String

String returns the string representation

type RequestEnvironmentInfoOutput

type RequestEnvironmentInfoOutput struct {
	// contains filtered or unexported fields
}

func (RequestEnvironmentInfoOutput) GoString

func (s RequestEnvironmentInfoOutput) GoString() string

GoString returns the string representation

func (RequestEnvironmentInfoOutput) String

String returns the string representation

type RestartAppServerInput

type RestartAppServerInput struct {
	// The ID of the environment to restart the server for.
	//
	//  Condition: You must specify either this or an EnvironmentName, or both.
	// If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter
	// error.
	EnvironmentId *string `type:"string"`

	// The name of the environment to restart the server for.
	//
	//  Condition: You must specify either this or an EnvironmentId, or both. If
	// you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter
	// error.
	EnvironmentName *string `type:"string"`
	// contains filtered or unexported fields
}

func (RestartAppServerInput) GoString

func (s RestartAppServerInput) GoString() string

GoString returns the string representation

func (RestartAppServerInput) String

func (s RestartAppServerInput) String() string

String returns the string representation

type RestartAppServerOutput

type RestartAppServerOutput struct {
	// contains filtered or unexported fields
}

func (RestartAppServerOutput) GoString

func (s RestartAppServerOutput) GoString() string

GoString returns the string representation

func (RestartAppServerOutput) String

func (s RestartAppServerOutput) String() string

String returns the string representation

type RetrieveEnvironmentInfoInput

type RetrieveEnvironmentInfoInput struct {
	// The ID of the data's environment.
	//
	//  If no such environment is found, returns an InvalidParameterValue error.
	//
	//  Condition: You must specify either this or an EnvironmentName, or both.
	// If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter
	// error.
	EnvironmentId *string `type:"string"`

	// The name of the data's environment.
	//
	//  If no such environment is found, returns an InvalidParameterValue error.
	//
	//  Condition: You must specify either this or an EnvironmentId, or both. If
	// you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter
	// error.
	EnvironmentName *string `type:"string"`

	// The type of information to retrieve.
	InfoType *string `type:"string" required:"true" enum:"EnvironmentInfoType"`
	// contains filtered or unexported fields
}

This documentation target is not reported in the API reference.

func (RetrieveEnvironmentInfoInput) GoString

func (s RetrieveEnvironmentInfoInput) GoString() string

GoString returns the string representation

func (RetrieveEnvironmentInfoInput) String

String returns the string representation

type RetrieveEnvironmentInfoOutput

type RetrieveEnvironmentInfoOutput struct {
	// The EnvironmentInfoDescription of the environment.
	EnvironmentInfo []*EnvironmentInfoDescription `type:"list"`
	// contains filtered or unexported fields
}

Result message containing a description of the requested environment info.

func (RetrieveEnvironmentInfoOutput) GoString

GoString returns the string representation

func (RetrieveEnvironmentInfoOutput) String

String returns the string representation

type S3Location

type S3Location struct {
	// The Amazon S3 bucket where the data is located.
	S3Bucket *string `type:"string"`

	// The Amazon S3 key where the data is located.
	S3Key *string `type:"string"`
	// contains filtered or unexported fields
}

A specification of a location in Amazon S3.

func (S3Location) GoString

func (s S3Location) GoString() string

GoString returns the string representation

func (S3Location) String

func (s S3Location) String() string

String returns the string representation

type SingleInstanceHealth

type SingleInstanceHealth struct {
	// Represents the application metrics for a specified environment.
	ApplicationMetrics *ApplicationMetrics `type:"structure"`

	// Represents the causes, which provide more information about the current health
	// status.
	Causes []*string `type:"list"`

	// Represents the color indicator that gives you information about the health
	// of the EC2 instance. For more information, see Health Colors and Statuses
	// (http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/health-enhanced-status.html).
	Color *string `type:"string"`

	// Returns the health status of the specified instance. For more information,
	// see .
	HealthStatus *string `type:"string"`

	// The ID of the Amazon EC2 instance.
	InstanceId *string `type:"string"`

	// The time at which the EC2 instance was launched.
	LaunchedAt *time.Time `type:"timestamp" timestampFormat:"iso8601"`

	// Represents CPU utilization and load average information for applications
	// running in the specified environment.
	System *SystemStatus `type:"structure"`
	// contains filtered or unexported fields
}

Represents health information from the specified instance that belongs to the AWS Elastic Beanstalk environment. Use the InstanceId property to specify the application instance for which you'd like to return data.

func (SingleInstanceHealth) GoString

func (s SingleInstanceHealth) GoString() string

GoString returns the string representation

func (SingleInstanceHealth) String

func (s SingleInstanceHealth) String() string

String returns the string representation

type SolutionStackDescription

type SolutionStackDescription struct {
	// The permitted file types allowed for a solution stack.
	PermittedFileTypes []*string `type:"list"`

	// The name of the solution stack.
	SolutionStackName *string `type:"string"`
	// contains filtered or unexported fields
}

Describes the solution stack.

func (SolutionStackDescription) GoString

func (s SolutionStackDescription) GoString() string

GoString returns the string representation

func (SolutionStackDescription) String

func (s SolutionStackDescription) String() string

String returns the string representation

type SourceConfiguration

type SourceConfiguration struct {
	// The name of the application associated with the configuration.
	ApplicationName *string `type:"string"`

	// The name of the configuration template.
	TemplateName *string `type:"string"`
	// contains filtered or unexported fields
}

A specification for an environment configuration

func (SourceConfiguration) GoString

func (s SourceConfiguration) GoString() string

GoString returns the string representation

func (SourceConfiguration) String

func (s SourceConfiguration) String() string

String returns the string representation

type StatusCodes

type StatusCodes struct {
	// The percentage of requests over the last 10 seconds that resulted in a 2xx
	// (200, 201, etc.) status code.
	Status2xx *int64 `type:"integer"`

	// The percentage of requests over the last 10 seconds that resulted in a 3xx
	// (300, 301, etc.) status code.
	Status3xx *int64 `type:"integer"`

	// The percentage of requests over the last 10 seconds that resulted in a 4xx
	// (400, 401, etc.) status code.
	Status4xx *int64 `type:"integer"`

	// The percentage of requests over the last 10 seconds that resulted in a 5xx
	// (500, 501, etc.) status code.
	Status5xx *int64 `type:"integer"`
	// contains filtered or unexported fields
}

Represents the percentage of requests over the last 10 seconds that resulted in each type of status code response. For more information, see Status Code Definitions (http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html).

func (StatusCodes) GoString

func (s StatusCodes) GoString() string

GoString returns the string representation

func (StatusCodes) String

func (s StatusCodes) String() string

String returns the string representation

type SwapEnvironmentCNAMEsInput

type SwapEnvironmentCNAMEsInput struct {
	// The ID of the destination environment.
	//
	//  Condition: You must specify at least the DestinationEnvironmentID or the
	// DestinationEnvironmentName. You may also specify both. You must specify the
	// SourceEnvironmentId with the DestinationEnvironmentId.
	DestinationEnvironmentId *string `type:"string"`

	// The name of the destination environment.
	//
	//  Condition: You must specify at least the DestinationEnvironmentID or the
	// DestinationEnvironmentName. You may also specify both. You must specify the
	// SourceEnvironmentName with the DestinationEnvironmentName.
	DestinationEnvironmentName *string `type:"string"`

	// The ID of the source environment.
	//
	//  Condition: You must specify at least the SourceEnvironmentID or the SourceEnvironmentName.
	// You may also specify both. If you specify the SourceEnvironmentId, you must
	// specify the DestinationEnvironmentId.
	SourceEnvironmentId *string `type:"string"`

	// The name of the source environment.
	//
	//  Condition: You must specify at least the SourceEnvironmentID or the SourceEnvironmentName.
	// You may also specify both. If you specify the SourceEnvironmentName, you
	// must specify the DestinationEnvironmentName.
	SourceEnvironmentName *string `type:"string"`
	// contains filtered or unexported fields
}

Swaps the CNAMEs of two environments.

func (SwapEnvironmentCNAMEsInput) GoString

func (s SwapEnvironmentCNAMEsInput) GoString() string

GoString returns the string representation

func (SwapEnvironmentCNAMEsInput) String

String returns the string representation

type SwapEnvironmentCNAMEsOutput

type SwapEnvironmentCNAMEsOutput struct {
	// contains filtered or unexported fields
}

func (SwapEnvironmentCNAMEsOutput) GoString

func (s SwapEnvironmentCNAMEsOutput) GoString() string

GoString returns the string representation

func (SwapEnvironmentCNAMEsOutput) String

String returns the string representation

type SystemStatus

type SystemStatus struct {
	// Represents CPU utilization information from the specified instance that belongs
	// to the AWS Elastic Beanstalk environment. Use the instanceId property to
	// specify the application instance for which you'd like to return data.
	CPUUtilization *CPUUtilization `type:"structure"`

	// Load average in the last 1-minute and 5-minute periods. For more information,
	// see Operating System Metrics (http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/health-enhanced-metrics.html#health-enhanced-metrics-os).
	LoadAverage []*float64 `type:"list"`
	// contains filtered or unexported fields
}

Represents CPU utilization and load average information for applications running in the specified environment.

func (SystemStatus) GoString

func (s SystemStatus) GoString() string

GoString returns the string representation

func (SystemStatus) String

func (s SystemStatus) String() string

String returns the string representation

type Tag

type Tag struct {
	// The key of the tag.
	Key *string `type:"string"`

	// The value of the tag.
	Value *string `type:"string"`
	// contains filtered or unexported fields
}

Describes a tag applied to a resource in an environment.

func (Tag) GoString

func (s Tag) GoString() string

GoString returns the string representation

func (Tag) String

func (s Tag) String() string

String returns the string representation

type TerminateEnvironmentInput

type TerminateEnvironmentInput struct {
	// The ID of the environment to terminate.
	//
	//  Condition: You must specify either this or an EnvironmentName, or both.
	// If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter
	// error.
	EnvironmentId *string `type:"string"`

	// The name of the environment to terminate.
	//
	//  Condition: You must specify either this or an EnvironmentId, or both. If
	// you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter
	// error.
	EnvironmentName *string `type:"string"`

	// Indicates whether the associated AWS resources should shut down when the
	// environment is terminated:
	//
	//    true: (default) The user AWS resources (for example, the Auto Scaling
	// group, LoadBalancer, etc.) are terminated along with the environment.
	//
	//    false: The environment is removed from the AWS Elastic Beanstalk but
	// the AWS resources continue to operate.
	//
	//     true: The specified environment as well as the associated AWS resources,
	// such as Auto Scaling group and LoadBalancer, are terminated.   false: AWS
	// Elastic Beanstalk resource management is removed from the environment, but
	// the AWS resources continue to operate.    For more information, see the
	// AWS Elastic Beanstalk User Guide.  (http://docs.aws.amazon.com/elasticbeanstalk/latest/ug/)
	//
	//  Default: true
	//
	//  Valid Values: true | false
	TerminateResources *bool `type:"boolean"`
	// contains filtered or unexported fields
}

This documentation target is not reported in the API reference.

func (TerminateEnvironmentInput) GoString

func (s TerminateEnvironmentInput) GoString() string

GoString returns the string representation

func (TerminateEnvironmentInput) String

func (s TerminateEnvironmentInput) String() string

String returns the string representation

type Trigger

type Trigger struct {
	// The name of the trigger.
	Name *string `type:"string"`
	// contains filtered or unexported fields
}

Describes a trigger.

func (Trigger) GoString

func (s Trigger) GoString() string

GoString returns the string representation

func (Trigger) String

func (s Trigger) String() string

String returns the string representation

type UpdateApplicationInput

type UpdateApplicationInput struct {
	// The name of the application to update. If no such application is found, UpdateApplication
	// returns an InvalidParameterValue error.
	ApplicationName *string `type:"string" required:"true"`

	// A new description for the application.
	//
	// Default: If not specified, AWS Elastic Beanstalk does not update the description.
	Description *string `type:"string"`
	// contains filtered or unexported fields
}

This documentation target is not reported in the API reference.

func (UpdateApplicationInput) GoString

func (s UpdateApplicationInput) GoString() string

GoString returns the string representation

func (UpdateApplicationInput) String

func (s UpdateApplicationInput) String() string

String returns the string representation

type UpdateApplicationVersionInput

type UpdateApplicationVersionInput struct {
	// The name of the application associated with this version.
	//
	//  If no application is found with this name, UpdateApplication returns an
	// InvalidParameterValue error.
	ApplicationName *string `type:"string" required:"true"`

	// A new description for this release.
	Description *string `type:"string"`

	// The name of the version to update.
	//
	//  If no application version is found with this label, UpdateApplication returns
	// an InvalidParameterValue error.
	VersionLabel *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (UpdateApplicationVersionInput) GoString

GoString returns the string representation

func (UpdateApplicationVersionInput) String

String returns the string representation

type UpdateConfigurationTemplateInput

type UpdateConfigurationTemplateInput struct {
	// The name of the application associated with the configuration template to
	// update.
	//
	//  If no application is found with this name, UpdateConfigurationTemplate
	// returns an InvalidParameterValue error.
	ApplicationName *string `type:"string" required:"true"`

	// A new description for the configuration.
	Description *string `type:"string"`

	// A list of configuration option settings to update with the new specified
	// option value.
	OptionSettings []*ConfigurationOptionSetting `type:"list"`

	// A list of configuration options to remove from the configuration set.
	//
	//  Constraint: You can remove only UserDefined configuration options.
	OptionsToRemove []*OptionSpecification `type:"list"`

	// The name of the configuration template to update.
	//
	//  If no configuration template is found with this name, UpdateConfigurationTemplate
	// returns an InvalidParameterValue error.
	TemplateName *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

The result message containing the options for the specified solution stack.

func (UpdateConfigurationTemplateInput) GoString

GoString returns the string representation

func (UpdateConfigurationTemplateInput) String

String returns the string representation

type UpdateEnvironmentInput

type UpdateEnvironmentInput struct {
	// If this parameter is specified, AWS Elastic Beanstalk updates the description
	// of this environment.
	Description *string `type:"string"`

	// The ID of the environment to update.
	//
	//  If no environment with this ID exists, AWS Elastic Beanstalk returns an
	// InvalidParameterValue error.
	//
	//  Condition: You must specify either this or an EnvironmentName, or both.
	// If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter
	// error.
	EnvironmentId *string `type:"string"`

	// The name of the environment to update. If no environment with this name exists,
	// AWS Elastic Beanstalk returns an InvalidParameterValue error.
	//
	//  Condition: You must specify either this or an EnvironmentId, or both. If
	// you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter
	// error.
	EnvironmentName *string `type:"string"`

	// If specified, AWS Elastic Beanstalk updates the configuration set associated
	// with the running environment and sets the specified configuration options
	// to the requested value.
	OptionSettings []*ConfigurationOptionSetting `type:"list"`

	// A list of custom user-defined configuration options to remove from the configuration
	// set for this environment.
	OptionsToRemove []*OptionSpecification `type:"list"`

	// This specifies the platform version that the environment will run after the
	// environment is updated.
	SolutionStackName *string `type:"string"`

	// If this parameter is specified, AWS Elastic Beanstalk deploys this configuration
	// template to the environment. If no such configuration template is found,
	// AWS Elastic Beanstalk returns an InvalidParameterValue error.
	TemplateName *string `type:"string"`

	// This specifies the tier to use to update the environment.
	//
	//  Condition: At this time, if you change the tier version, name, or type,
	// AWS Elastic Beanstalk returns InvalidParameterValue error.
	Tier *EnvironmentTier `type:"structure"`

	// If this parameter is specified, AWS Elastic Beanstalk deploys the named application
	// version to the environment. If no such application version is found, returns
	// an InvalidParameterValue error.
	VersionLabel *string `type:"string"`
	// contains filtered or unexported fields
}

This documentation target is not reported in the API reference.

func (UpdateEnvironmentInput) GoString

func (s UpdateEnvironmentInput) GoString() string

GoString returns the string representation

func (UpdateEnvironmentInput) String

func (s UpdateEnvironmentInput) String() string

String returns the string representation

type ValidateConfigurationSettingsInput

type ValidateConfigurationSettingsInput struct {
	// The name of the application that the configuration template or environment
	// belongs to.
	ApplicationName *string `type:"string" required:"true"`

	// The name of the environment to validate the settings against.
	//
	//  Condition: You cannot specify both this and a configuration template name.
	EnvironmentName *string `type:"string"`

	// A list of the options and desired values to evaluate.
	OptionSettings []*ConfigurationOptionSetting `type:"list" required:"true"`

	// The name of the configuration template to validate the settings against.
	//
	//  Condition: You cannot specify both this and an environment name.
	TemplateName *string `type:"string"`
	// contains filtered or unexported fields
}

A list of validation messages for a specified configuration template.

func (ValidateConfigurationSettingsInput) GoString

GoString returns the string representation

func (ValidateConfigurationSettingsInput) String

String returns the string representation

type ValidateConfigurationSettingsOutput

type ValidateConfigurationSettingsOutput struct {
	// A list of ValidationMessage.
	Messages []*ValidationMessage `type:"list"`
	// contains filtered or unexported fields
}

Provides a list of validation messages.

func (ValidateConfigurationSettingsOutput) GoString

GoString returns the string representation

func (ValidateConfigurationSettingsOutput) String

String returns the string representation

type ValidationMessage

type ValidationMessage struct {
	// A message describing the error or warning.
	Message *string `type:"string"`

	Namespace *string `type:"string"`

	OptionName *string `type:"string"`

	// An indication of the severity of this message:
	//
	//    error: This message indicates that this is not a valid setting for an
	// option.
	//
	//    warning: This message is providing information you should take into account.
	//
	//     error: This message indicates that this is not a valid setting for an
	// option.   warning: This message is providing information you should take
	// into account.
	Severity *string `type:"string" enum:"ValidationSeverity"`
	// contains filtered or unexported fields
}

An error or warning for a desired configuration option value.

func (ValidationMessage) GoString

func (s ValidationMessage) GoString() string

GoString returns the string representation

func (ValidationMessage) String

func (s ValidationMessage) String() string

String returns the string representation

Directories

Path Synopsis
Package elasticbeanstalkiface provides an interface for the AWS Elastic Beanstalk.
Package elasticbeanstalkiface provides an interface for the AWS Elastic Beanstalk.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL