AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

ElasticBeanstalk

import "github.com/aws/aws-sdk-go/service/elasticbeanstalk"

type ElasticBeanstalk struct { *client.Client }

ElasticBeanstalk provides the API operation methods for making requests to AWS Elastic Beanstalk. See this package's package overview docs for details on the service.

ElasticBeanstalk methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.

Client

Type: *client.Client

Method

AbortEnvironmentUpdate

func (c *ElasticBeanstalk) AbortEnvironmentUpdate(input *AbortEnvironmentUpdateInput) (*AbortEnvironmentUpdateOutput, error)

AbortEnvironmentUpdate API operation for AWS Elastic Beanstalk.

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

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Elastic Beanstalk's API operation AbortEnvironmentUpdate for usage and error information.

Returned Error Codes:

  • ErrCodeInsufficientPrivilegesException "InsufficientPrivilegesException" The specified account does not have sufficient privileges for one or more AWS services.

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/AbortEnvironmentUpdate

Example

ElasticBeanstalk AbortEnvironmentUpdate shared00

To abort a deployment

The following code aborts a running application version deployment for an environment named my-env:

{ svc := elasticbeanstalk.New(session.New()) input := &elasticbeanstalk.AbortEnvironmentUpdateInput{ EnvironmentName: aws.String("my-env"), } result, err := svc.AbortEnvironmentUpdate(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case elasticbeanstalk.ErrCodeInsufficientPrivilegesException: fmt.Println(elasticbeanstalk.ErrCodeInsufficientPrivilegesException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

AbortEnvironmentUpdateRequest

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

AbortEnvironmentUpdateRequest generates a "aws/request.Request" representing the client's request for the AbortEnvironmentUpdate operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See AbortEnvironmentUpdate for more information on using the AbortEnvironmentUpdate API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the AbortEnvironmentUpdateRequest method. req, resp := client.AbortEnvironmentUpdateRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/AbortEnvironmentUpdate

AbortEnvironmentUpdateWithContext

func (c *ElasticBeanstalk) AbortEnvironmentUpdateWithContext(ctx aws.Context, input *AbortEnvironmentUpdateInput, opts ...request.Option) (*AbortEnvironmentUpdateOutput, error)

AbortEnvironmentUpdateWithContext is the same as AbortEnvironmentUpdate with the addition of the ability to pass a context and additional request options.

See AbortEnvironmentUpdate for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ApplyEnvironmentManagedAction

func (c *ElasticBeanstalk) ApplyEnvironmentManagedAction(input *ApplyEnvironmentManagedActionInput) (*ApplyEnvironmentManagedActionOutput, error)

ApplyEnvironmentManagedAction API operation for AWS Elastic Beanstalk.

Applies a scheduled managed action immediately. A managed action can be applied only if its status is Scheduled. Get the status and action ID of a managed action with DescribeEnvironmentManagedActions.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Elastic Beanstalk's API operation ApplyEnvironmentManagedAction for usage and error information.

Returned Error Codes:

  • ErrCodeServiceException "ElasticBeanstalkServiceException" A generic service exception has occurred.

  • ErrCodeManagedActionInvalidStateException "ManagedActionInvalidStateException" Cannot modify the managed action in its current state.

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/ApplyEnvironmentManagedAction

ApplyEnvironmentManagedActionRequest

func (c *ElasticBeanstalk) ApplyEnvironmentManagedActionRequest(input *ApplyEnvironmentManagedActionInput) (req *request.Request, output *ApplyEnvironmentManagedActionOutput)

ApplyEnvironmentManagedActionRequest generates a "aws/request.Request" representing the client's request for the ApplyEnvironmentManagedAction operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ApplyEnvironmentManagedAction for more information on using the ApplyEnvironmentManagedAction API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ApplyEnvironmentManagedActionRequest method. req, resp := client.ApplyEnvironmentManagedActionRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/ApplyEnvironmentManagedAction

ApplyEnvironmentManagedActionWithContext

func (c *ElasticBeanstalk) ApplyEnvironmentManagedActionWithContext(ctx aws.Context, input *ApplyEnvironmentManagedActionInput, opts ...request.Option) (*ApplyEnvironmentManagedActionOutput, error)

ApplyEnvironmentManagedActionWithContext is the same as ApplyEnvironmentManagedAction with the addition of the ability to pass a context and additional request options.

See ApplyEnvironmentManagedAction for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

CheckDNSAvailability

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

CheckDNSAvailability API operation for AWS Elastic Beanstalk.

Checks if the specified CNAME is available.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Elastic Beanstalk's API operation CheckDNSAvailability for usage and error information. See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/CheckDNSAvailability

Example

ElasticBeanstalk CheckDNSAvailability shared00

To check the availability of a CNAME

The following operation checks the availability of the subdomain my-cname:

{ svc := elasticbeanstalk.New(session.New()) input := &elasticbeanstalk.CheckDNSAvailabilityInput{ CNAMEPrefix: aws.String("my-cname"), } result, err := svc.CheckDNSAvailability(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

CheckDNSAvailabilityRequest

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

CheckDNSAvailabilityRequest generates a "aws/request.Request" representing the client's request for the CheckDNSAvailability operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CheckDNSAvailability for more information on using the CheckDNSAvailability API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CheckDNSAvailabilityRequest method. req, resp := client.CheckDNSAvailabilityRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/CheckDNSAvailability

CheckDNSAvailabilityWithContext

func (c *ElasticBeanstalk) CheckDNSAvailabilityWithContext(ctx aws.Context, input *CheckDNSAvailabilityInput, opts ...request.Option) (*CheckDNSAvailabilityOutput, error)

CheckDNSAvailabilityWithContext is the same as CheckDNSAvailability with the addition of the ability to pass a context and additional request options.

See CheckDNSAvailability for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ComposeEnvironments

func (c *ElasticBeanstalk) ComposeEnvironments(input *ComposeEnvironmentsInput) (*EnvironmentDescriptionsMessage, error)

ComposeEnvironments API operation for AWS Elastic Beanstalk.

Create or update a group of environments that each run a separate component of a single application. Takes a list of version labels that specify application source bundles for each of the environments to create or update. The name of each environment and other required information must be included in the source bundles in an environment manifest named env.yaml. See Compose Environments (https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/environment-mgmt-compose.html) for details.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Elastic Beanstalk's API operation ComposeEnvironments for usage and error information.

Returned Error Codes:

  • ErrCodeTooManyEnvironmentsException "TooManyEnvironmentsException" The specified account has reached its limit of environments.

  • ErrCodeInsufficientPrivilegesException "InsufficientPrivilegesException" The specified account does not have sufficient privileges for one or more AWS services.

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/ComposeEnvironments

ComposeEnvironmentsRequest

func (c *ElasticBeanstalk) ComposeEnvironmentsRequest(input *ComposeEnvironmentsInput) (req *request.Request, output *EnvironmentDescriptionsMessage)

ComposeEnvironmentsRequest generates a "aws/request.Request" representing the client's request for the ComposeEnvironments operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ComposeEnvironments for more information on using the ComposeEnvironments API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ComposeEnvironmentsRequest method. req, resp := client.ComposeEnvironmentsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/ComposeEnvironments

ComposeEnvironmentsWithContext

func (c *ElasticBeanstalk) ComposeEnvironmentsWithContext(ctx aws.Context, input *ComposeEnvironmentsInput, opts ...request.Option) (*EnvironmentDescriptionsMessage, error)

ComposeEnvironmentsWithContext is the same as ComposeEnvironments with the addition of the ability to pass a context and additional request options.

See ComposeEnvironments for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

CreateApplication

func (c *ElasticBeanstalk) CreateApplication(input *CreateApplicationInput) (*ApplicationDescriptionMessage, error)

CreateApplication API operation for AWS Elastic Beanstalk.

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

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Elastic Beanstalk's API operation CreateApplication for usage and error information.

Returned Error Codes:

  • ErrCodeTooManyApplicationsException "TooManyApplicationsException" The specified account has reached its limit of applications.

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/CreateApplication

Example

ElasticBeanstalk CreateApplication shared00

To create a new application

The following operation creates a new application named my-app:

{ svc := elasticbeanstalk.New(session.New()) input := &elasticbeanstalk.CreateApplicationInput{ ApplicationName: aws.String("my-app"), Description: aws.String("my application"), } result, err := svc.CreateApplication(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case elasticbeanstalk.ErrCodeTooManyApplicationsException: fmt.Println(elasticbeanstalk.ErrCodeTooManyApplicationsException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

CreateApplicationRequest

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

CreateApplicationRequest generates a "aws/request.Request" representing the client's request for the CreateApplication operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateApplication for more information on using the CreateApplication API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateApplicationRequest method. req, resp := client.CreateApplicationRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/CreateApplication

CreateApplicationVersion

func (c *ElasticBeanstalk) CreateApplicationVersion(input *CreateApplicationVersionInput) (*ApplicationVersionDescriptionMessage, error)

CreateApplicationVersion API operation for AWS Elastic Beanstalk.

Creates an application version for the specified application. You can create an application version from a source bundle in Amazon S3, a commit in AWS CodeCommit, or the output of an AWS CodeBuild build as follows:

Specify a commit in an AWS CodeCommit repository with SourceBuildInformation.

Specify a build in an AWS CodeBuild with SourceBuildInformation and BuildConfiguration.

Specify a source bundle in S3 with SourceBundle

Omit both SourceBuildInformation and SourceBundle to use the default sample 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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Elastic Beanstalk's API operation CreateApplicationVersion for usage and error information.

Returned Error Codes:

  • ErrCodeTooManyApplicationsException "TooManyApplicationsException" The specified account has reached its limit of applications.

  • ErrCodeTooManyApplicationVersionsException "TooManyApplicationVersionsException" The specified account has reached its limit of application versions.

  • ErrCodeInsufficientPrivilegesException "InsufficientPrivilegesException" The specified account does not have sufficient privileges for one or more AWS services.

  • ErrCodeS3LocationNotInServiceRegionException "S3LocationNotInServiceRegionException" The specified S3 bucket does not belong to the S3 region in which the service is running. The following regions are supported:

  • IAD/us-east-1

  • PDX/us-west-2

  • DUB/eu-west-1

  • ErrCodeCodeBuildNotInServiceRegionException "CodeBuildNotInServiceRegionException" AWS CodeBuild is not available in the specified region.

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/CreateApplicationVersion

Example

ElasticBeanstalk CreateApplicationVersion shared00

To create a new application

The following operation creates a new version (v1) of an application named my-app:

{ svc := elasticbeanstalk.New(session.New()) input := &elasticbeanstalk.CreateApplicationVersionInput{ ApplicationName: aws.String("my-app"), AutoCreateApplication: aws.Bool(true), Description: aws.String("my-app-v1"), Process: aws.Bool(true), SourceBundle: &elasticbeanstalk.S3Location{ S3Bucket: aws.String("my-bucket"), S3Key: aws.String("sample.war"), }, VersionLabel: aws.String("v1"), } result, err := svc.CreateApplicationVersion(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case elasticbeanstalk.ErrCodeTooManyApplicationsException: fmt.Println(elasticbeanstalk.ErrCodeTooManyApplicationsException, aerr.Error()) case elasticbeanstalk.ErrCodeTooManyApplicationVersionsException: fmt.Println(elasticbeanstalk.ErrCodeTooManyApplicationVersionsException, aerr.Error()) case elasticbeanstalk.ErrCodeInsufficientPrivilegesException: fmt.Println(elasticbeanstalk.ErrCodeInsufficientPrivilegesException, aerr.Error()) case elasticbeanstalk.ErrCodeS3LocationNotInServiceRegionException: fmt.Println(elasticbeanstalk.ErrCodeS3LocationNotInServiceRegionException, aerr.Error()) case elasticbeanstalk.ErrCodeCodeBuildNotInServiceRegionException: fmt.Println(elasticbeanstalk.ErrCodeCodeBuildNotInServiceRegionException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

CreateApplicationVersionRequest

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

CreateApplicationVersionRequest generates a "aws/request.Request" representing the client's request for the CreateApplicationVersion operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateApplicationVersion for more information on using the CreateApplicationVersion API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateApplicationVersionRequest method. req, resp := client.CreateApplicationVersionRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/CreateApplicationVersion

CreateApplicationVersionWithContext

func (c *ElasticBeanstalk) CreateApplicationVersionWithContext(ctx aws.Context, input *CreateApplicationVersionInput, opts ...request.Option) (*ApplicationVersionDescriptionMessage, error)

CreateApplicationVersionWithContext is the same as CreateApplicationVersion with the addition of the ability to pass a context and additional request options.

See CreateApplicationVersion for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

CreateApplicationWithContext

func (c *ElasticBeanstalk) CreateApplicationWithContext(ctx aws.Context, input *CreateApplicationInput, opts ...request.Option) (*ApplicationDescriptionMessage, error)

CreateApplicationWithContext is the same as CreateApplication with the addition of the ability to pass a context and additional request options.

See CreateApplication for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

CreateConfigurationTemplate

func (c *ElasticBeanstalk) CreateConfigurationTemplate(input *CreateConfigurationTemplateInput) (*ConfigurationSettingsDescription, error)

CreateConfigurationTemplate API operation for AWS Elastic Beanstalk.

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.

Templates aren't associated with any environment. The EnvironmentName response element is always null.

Related Topics

  • DescribeConfigurationOptions

  • DescribeConfigurationSettings

  • ListAvailableSolutionStacks

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Elastic Beanstalk's API operation CreateConfigurationTemplate for usage and error information.

Returned Error Codes:

  • ErrCodeInsufficientPrivilegesException "InsufficientPrivilegesException" The specified account does not have sufficient privileges for one or more AWS services.

  • ErrCodeTooManyBucketsException "TooManyBucketsException" The specified account has reached its limit of Amazon S3 buckets.

  • ErrCodeTooManyConfigurationTemplatesException "TooManyConfigurationTemplatesException" The specified account has reached its limit of configuration templates.

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/CreateConfigurationTemplate

Example

ElasticBeanstalk CreateConfigurationTemplate shared00

To create a configuration template

The following operation creates a configuration template named my-app-v1 from the settings applied to an environment with the id e-rpqsewtp2j:

{ svc := elasticbeanstalk.New(session.New()) input := &elasticbeanstalk.CreateConfigurationTemplateInput{ ApplicationName: aws.String("my-app"), EnvironmentId: aws.String("e-rpqsewtp2j"), TemplateName: aws.String("my-app-v1"), } result, err := svc.CreateConfigurationTemplate(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case elasticbeanstalk.ErrCodeInsufficientPrivilegesException: fmt.Println(elasticbeanstalk.ErrCodeInsufficientPrivilegesException, aerr.Error()) case elasticbeanstalk.ErrCodeTooManyBucketsException: fmt.Println(elasticbeanstalk.ErrCodeTooManyBucketsException, aerr.Error()) case elasticbeanstalk.ErrCodeTooManyConfigurationTemplatesException: fmt.Println(elasticbeanstalk.ErrCodeTooManyConfigurationTemplatesException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

CreateConfigurationTemplateRequest

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

CreateConfigurationTemplateRequest generates a "aws/request.Request" representing the client's request for the CreateConfigurationTemplate operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateConfigurationTemplate for more information on using the CreateConfigurationTemplate API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateConfigurationTemplateRequest method. req, resp := client.CreateConfigurationTemplateRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/CreateConfigurationTemplate

CreateConfigurationTemplateWithContext

func (c *ElasticBeanstalk) CreateConfigurationTemplateWithContext(ctx aws.Context, input *CreateConfigurationTemplateInput, opts ...request.Option) (*ConfigurationSettingsDescription, error)

CreateConfigurationTemplateWithContext is the same as CreateConfigurationTemplate with the addition of the ability to pass a context and additional request options.

See CreateConfigurationTemplate for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

CreateEnvironment

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

CreateEnvironment API operation for AWS Elastic Beanstalk.

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

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Elastic Beanstalk's API operation CreateEnvironment for usage and error information.

Returned Error Codes:

  • ErrCodeTooManyEnvironmentsException "TooManyEnvironmentsException" The specified account has reached its limit of environments.

  • ErrCodeInsufficientPrivilegesException "InsufficientPrivilegesException" The specified account does not have sufficient privileges for one or more AWS services.

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/CreateEnvironment

Example

ElasticBeanstalk CreateEnvironment shared00

To create a new environment for an application

The following operation creates a new environment for version v1 of a java application named my-app:

{ svc := elasticbeanstalk.New(session.New()) input := &elasticbeanstalk.CreateEnvironmentInput{ ApplicationName: aws.String("my-app"), CNAMEPrefix: aws.String("my-app"), EnvironmentName: aws.String("my-env"), SolutionStackName: aws.String("64bit Amazon Linux 2015.03 v2.0.0 running Tomcat 8 Java 8"), VersionLabel: aws.String("v1"), } result, err := svc.CreateEnvironment(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case elasticbeanstalk.ErrCodeTooManyEnvironmentsException: fmt.Println(elasticbeanstalk.ErrCodeTooManyEnvironmentsException, aerr.Error()) case elasticbeanstalk.ErrCodeInsufficientPrivilegesException: fmt.Println(elasticbeanstalk.ErrCodeInsufficientPrivilegesException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

CreateEnvironmentRequest

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

CreateEnvironmentRequest generates a "aws/request.Request" representing the client's request for the CreateEnvironment operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateEnvironment for more information on using the CreateEnvironment API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateEnvironmentRequest method. req, resp := client.CreateEnvironmentRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/CreateEnvironment

CreateEnvironmentWithContext

func (c *ElasticBeanstalk) CreateEnvironmentWithContext(ctx aws.Context, input *CreateEnvironmentInput, opts ...request.Option) (*EnvironmentDescription, error)

CreateEnvironmentWithContext is the same as CreateEnvironment with the addition of the ability to pass a context and additional request options.

See CreateEnvironment for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

CreatePlatformVersion

func (c *ElasticBeanstalk) CreatePlatformVersion(input *CreatePlatformVersionInput) (*CreatePlatformVersionOutput, error)

CreatePlatformVersion API operation for AWS Elastic Beanstalk.

Create a new version of your custom platform.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Elastic Beanstalk's API operation CreatePlatformVersion for usage and error information.

Returned Error Codes:

  • ErrCodeInsufficientPrivilegesException "InsufficientPrivilegesException" The specified account does not have sufficient privileges for one or more AWS services.

  • ErrCodeServiceException "ElasticBeanstalkServiceException" A generic service exception has occurred.

  • ErrCodeTooManyPlatformsException "TooManyPlatformsException" You have exceeded the maximum number of allowed platforms associated with the account.

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/CreatePlatformVersion

CreatePlatformVersionRequest

func (c *ElasticBeanstalk) CreatePlatformVersionRequest(input *CreatePlatformVersionInput) (req *request.Request, output *CreatePlatformVersionOutput)

CreatePlatformVersionRequest generates a "aws/request.Request" representing the client's request for the CreatePlatformVersion operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreatePlatformVersion for more information on using the CreatePlatformVersion API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreatePlatformVersionRequest method. req, resp := client.CreatePlatformVersionRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/CreatePlatformVersion

CreatePlatformVersionWithContext

func (c *ElasticBeanstalk) CreatePlatformVersionWithContext(ctx aws.Context, input *CreatePlatformVersionInput, opts ...request.Option) (*CreatePlatformVersionOutput, error)

CreatePlatformVersionWithContext is the same as CreatePlatformVersion with the addition of the ability to pass a context and additional request options.

See CreatePlatformVersion for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

CreateStorageLocation

func (c *ElasticBeanstalk) CreateStorageLocation(input *CreateStorageLocationInput) (*CreateStorageLocationOutput, error)

CreateStorageLocation API operation for AWS Elastic Beanstalk.

Creates a bucket in Amazon S3 to store application versions, logs, and other files used by Elastic Beanstalk environments. The Elastic Beanstalk console and EB CLI call this API the first time you create an environment in a region. If the storage location already exists, CreateStorageLocation still returns the bucket name but does not create a new bucket.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Elastic Beanstalk's API operation CreateStorageLocation for usage and error information.

Returned Error Codes:

  • ErrCodeTooManyBucketsException "TooManyBucketsException" The specified account has reached its limit of Amazon S3 buckets.

  • ErrCodeS3SubscriptionRequiredException "S3SubscriptionRequiredException" The specified account does not have a subscription to Amazon S3.

  • ErrCodeInsufficientPrivilegesException "InsufficientPrivilegesException" The specified account does not have sufficient privileges for one or more AWS services.

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/CreateStorageLocation

Example

ElasticBeanstalk CreateStorageLocation shared00

To create a new environment for an application

The following operation creates a new environment for version v1 of a java application named my-app:

{ svc := elasticbeanstalk.New(session.New()) input := &elasticbeanstalk.CreateStorageLocationInput{} result, err := svc.CreateStorageLocation(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case elasticbeanstalk.ErrCodeTooManyBucketsException: fmt.Println(elasticbeanstalk.ErrCodeTooManyBucketsException, aerr.Error()) case elasticbeanstalk.ErrCodeS3SubscriptionRequiredException: fmt.Println(elasticbeanstalk.ErrCodeS3SubscriptionRequiredException, aerr.Error()) case elasticbeanstalk.ErrCodeInsufficientPrivilegesException: fmt.Println(elasticbeanstalk.ErrCodeInsufficientPrivilegesException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

CreateStorageLocationRequest

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

CreateStorageLocationRequest generates a "aws/request.Request" representing the client's request for the CreateStorageLocation operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateStorageLocation for more information on using the CreateStorageLocation API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateStorageLocationRequest method. req, resp := client.CreateStorageLocationRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/CreateStorageLocation

CreateStorageLocationWithContext

func (c *ElasticBeanstalk) CreateStorageLocationWithContext(ctx aws.Context, input *CreateStorageLocationInput, opts ...request.Option) (*CreateStorageLocationOutput, error)

CreateStorageLocationWithContext is the same as CreateStorageLocation with the addition of the ability to pass a context and additional request options.

See CreateStorageLocation for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DeleteApplication

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

DeleteApplication API operation for AWS Elastic Beanstalk.

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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Elastic Beanstalk's API operation DeleteApplication for usage and error information.

Returned Error Codes:

  • ErrCodeOperationInProgressException "OperationInProgressFailure" Unable to perform the specified operation because another operation that effects an element in this activity is already in progress.

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DeleteApplication

Example

ElasticBeanstalk DeleteApplication shared00

To delete an application

The following operation deletes an application named my-app:

{ svc := elasticbeanstalk.New(session.New()) input := &elasticbeanstalk.DeleteApplicationInput{ ApplicationName: aws.String("my-app"), } result, err := svc.DeleteApplication(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case elasticbeanstalk.ErrCodeOperationInProgressException: fmt.Println(elasticbeanstalk.ErrCodeOperationInProgressException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

DeleteApplicationRequest

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

DeleteApplicationRequest generates a "aws/request.Request" representing the client's request for the DeleteApplication operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteApplication for more information on using the DeleteApplication API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteApplicationRequest method. req, resp := client.DeleteApplicationRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DeleteApplication

DeleteApplicationVersion

func (c *ElasticBeanstalk) DeleteApplicationVersion(input *DeleteApplicationVersionInput) (*DeleteApplicationVersionOutput, error)

DeleteApplicationVersion API operation for AWS Elastic Beanstalk.

Deletes the specified version from the specified application.

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

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Elastic Beanstalk's API operation DeleteApplicationVersion for usage and error information.

Returned Error Codes:

  • ErrCodeSourceBundleDeletionException "SourceBundleDeletionFailure" Unable to delete the Amazon S3 source bundle associated with the application version. The application version was deleted successfully.

  • ErrCodeInsufficientPrivilegesException "InsufficientPrivilegesException" The specified account does not have sufficient privileges for one or more AWS services.

  • ErrCodeOperationInProgressException "OperationInProgressFailure" Unable to perform the specified operation because another operation that effects an element in this activity is already in progress.

  • ErrCodeS3LocationNotInServiceRegionException "S3LocationNotInServiceRegionException" The specified S3 bucket does not belong to the S3 region in which the service is running. The following regions are supported:

  • IAD/us-east-1

  • PDX/us-west-2

  • DUB/eu-west-1

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DeleteApplicationVersion

Example

ElasticBeanstalk DeleteApplicationVersion shared00

To delete an application version

The following operation deletes an application version named 22a0-stage-150819_182129 for an application named my-app:

{ svc := elasticbeanstalk.New(session.New()) input := &elasticbeanstalk.DeleteApplicationVersionInput{ ApplicationName: aws.String("my-app"), DeleteSourceBundle: aws.Bool(true), VersionLabel: aws.String("22a0-stage-150819_182129"), } result, err := svc.DeleteApplicationVersion(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case elasticbeanstalk.ErrCodeSourceBundleDeletionException: fmt.Println(elasticbeanstalk.ErrCodeSourceBundleDeletionException, aerr.Error()) case elasticbeanstalk.ErrCodeInsufficientPrivilegesException: fmt.Println(elasticbeanstalk.ErrCodeInsufficientPrivilegesException, aerr.Error()) case elasticbeanstalk.ErrCodeOperationInProgressException: fmt.Println(elasticbeanstalk.ErrCodeOperationInProgressException, aerr.Error()) case elasticbeanstalk.ErrCodeS3LocationNotInServiceRegionException: fmt.Println(elasticbeanstalk.ErrCodeS3LocationNotInServiceRegionException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

DeleteApplicationVersionRequest

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

DeleteApplicationVersionRequest generates a "aws/request.Request" representing the client's request for the DeleteApplicationVersion operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteApplicationVersion for more information on using the DeleteApplicationVersion API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteApplicationVersionRequest method. req, resp := client.DeleteApplicationVersionRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DeleteApplicationVersion

DeleteApplicationVersionWithContext

func (c *ElasticBeanstalk) DeleteApplicationVersionWithContext(ctx aws.Context, input *DeleteApplicationVersionInput, opts ...request.Option) (*DeleteApplicationVersionOutput, error)

DeleteApplicationVersionWithContext is the same as DeleteApplicationVersion with the addition of the ability to pass a context and additional request options.

See DeleteApplicationVersion for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DeleteApplicationWithContext

func (c *ElasticBeanstalk) DeleteApplicationWithContext(ctx aws.Context, input *DeleteApplicationInput, opts ...request.Option) (*DeleteApplicationOutput, error)

DeleteApplicationWithContext is the same as DeleteApplication with the addition of the ability to pass a context and additional request options.

See DeleteApplication for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DeleteConfigurationTemplate

func (c *ElasticBeanstalk) DeleteConfigurationTemplate(input *DeleteConfigurationTemplateInput) (*DeleteConfigurationTemplateOutput, error)

DeleteConfigurationTemplate API operation for AWS Elastic Beanstalk.

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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Elastic Beanstalk's API operation DeleteConfigurationTemplate for usage and error information.

Returned Error Codes:

  • ErrCodeOperationInProgressException "OperationInProgressFailure" Unable to perform the specified operation because another operation that effects an element in this activity is already in progress.

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DeleteConfigurationTemplate

Example

ElasticBeanstalk DeleteConfigurationTemplate shared00

To delete a configuration template

The following operation deletes a configuration template named my-template for an application named my-app:

{ svc := elasticbeanstalk.New(session.New()) input := &elasticbeanstalk.DeleteConfigurationTemplateInput{ ApplicationName: aws.String("my-app"), TemplateName: aws.String("my-template"), } result, err := svc.DeleteConfigurationTemplate(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case elasticbeanstalk.ErrCodeOperationInProgressException: fmt.Println(elasticbeanstalk.ErrCodeOperationInProgressException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

DeleteConfigurationTemplateRequest

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

DeleteConfigurationTemplateRequest generates a "aws/request.Request" representing the client's request for the DeleteConfigurationTemplate operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteConfigurationTemplate for more information on using the DeleteConfigurationTemplate API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteConfigurationTemplateRequest method. req, resp := client.DeleteConfigurationTemplateRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DeleteConfigurationTemplate

DeleteConfigurationTemplateWithContext

func (c *ElasticBeanstalk) DeleteConfigurationTemplateWithContext(ctx aws.Context, input *DeleteConfigurationTemplateInput, opts ...request.Option) (*DeleteConfigurationTemplateOutput, error)

DeleteConfigurationTemplateWithContext is the same as DeleteConfigurationTemplate with the addition of the ability to pass a context and additional request options.

See DeleteConfigurationTemplate for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DeleteEnvironmentConfiguration

func (c *ElasticBeanstalk) DeleteEnvironmentConfiguration(input *DeleteEnvironmentConfigurationInput) (*DeleteEnvironmentConfigurationOutput, error)

DeleteEnvironmentConfiguration API operation for AWS Elastic Beanstalk.

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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Elastic Beanstalk's API operation DeleteEnvironmentConfiguration for usage and error information. See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DeleteEnvironmentConfiguration

Example

ElasticBeanstalk DeleteEnvironmentConfiguration shared00

To delete a draft configuration

The following operation deletes a draft configuration for an environment named my-env:

{ svc := elasticbeanstalk.New(session.New()) input := &elasticbeanstalk.DeleteEnvironmentConfigurationInput{ ApplicationName: aws.String("my-app"), EnvironmentName: aws.String("my-env"), } result, err := svc.DeleteEnvironmentConfiguration(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

DeleteEnvironmentConfigurationRequest

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

DeleteEnvironmentConfigurationRequest generates a "aws/request.Request" representing the client's request for the DeleteEnvironmentConfiguration operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteEnvironmentConfiguration for more information on using the DeleteEnvironmentConfiguration API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteEnvironmentConfigurationRequest method. req, resp := client.DeleteEnvironmentConfigurationRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DeleteEnvironmentConfiguration

DeleteEnvironmentConfigurationWithContext

func (c *ElasticBeanstalk) DeleteEnvironmentConfigurationWithContext(ctx aws.Context, input *DeleteEnvironmentConfigurationInput, opts ...request.Option) (*DeleteEnvironmentConfigurationOutput, error)

DeleteEnvironmentConfigurationWithContext is the same as DeleteEnvironmentConfiguration with the addition of the ability to pass a context and additional request options.

See DeleteEnvironmentConfiguration for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DeletePlatformVersion

func (c *ElasticBeanstalk) DeletePlatformVersion(input *DeletePlatformVersionInput) (*DeletePlatformVersionOutput, error)

DeletePlatformVersion API operation for AWS Elastic Beanstalk.

Deletes the specified version of a custom platform.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Elastic Beanstalk's API operation DeletePlatformVersion for usage and error information.

Returned Error Codes:

  • ErrCodeOperationInProgressException "OperationInProgressFailure" Unable to perform the specified operation because another operation that effects an element in this activity is already in progress.

  • ErrCodeInsufficientPrivilegesException "InsufficientPrivilegesException" The specified account does not have sufficient privileges for one or more AWS services.

  • ErrCodeServiceException "ElasticBeanstalkServiceException" A generic service exception has occurred.

  • ErrCodePlatformVersionStillReferencedException "PlatformVersionStillReferencedException" You cannot delete the platform version because there are still environments running on it.

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DeletePlatformVersion

DeletePlatformVersionRequest

func (c *ElasticBeanstalk) DeletePlatformVersionRequest(input *DeletePlatformVersionInput) (req *request.Request, output *DeletePlatformVersionOutput)

DeletePlatformVersionRequest generates a "aws/request.Request" representing the client's request for the DeletePlatformVersion operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeletePlatformVersion for more information on using the DeletePlatformVersion API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeletePlatformVersionRequest method. req, resp := client.DeletePlatformVersionRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DeletePlatformVersion

DeletePlatformVersionWithContext

func (c *ElasticBeanstalk) DeletePlatformVersionWithContext(ctx aws.Context, input *DeletePlatformVersionInput, opts ...request.Option) (*DeletePlatformVersionOutput, error)

DeletePlatformVersionWithContext is the same as DeletePlatformVersion with the addition of the ability to pass a context and additional request options.

See DeletePlatformVersion for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeAccountAttributes

func (c *ElasticBeanstalk) DescribeAccountAttributes(input *DescribeAccountAttributesInput) (*DescribeAccountAttributesOutput, error)

DescribeAccountAttributes API operation for AWS Elastic Beanstalk.

Returns attributes related to AWS Elastic Beanstalk that are associated with the calling AWS account.

The result currently has one set of attributes—resource quotas.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Elastic Beanstalk's API operation DescribeAccountAttributes for usage and error information.

Returned Error Codes:

  • ErrCodeInsufficientPrivilegesException "InsufficientPrivilegesException" The specified account does not have sufficient privileges for one or more AWS services.

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribeAccountAttributes

DescribeAccountAttributesRequest

func (c *ElasticBeanstalk) DescribeAccountAttributesRequest(input *DescribeAccountAttributesInput) (req *request.Request, output *DescribeAccountAttributesOutput)

DescribeAccountAttributesRequest generates a "aws/request.Request" representing the client's request for the DescribeAccountAttributes operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeAccountAttributes for more information on using the DescribeAccountAttributes API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeAccountAttributesRequest method. req, resp := client.DescribeAccountAttributesRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribeAccountAttributes

DescribeAccountAttributesWithContext

func (c *ElasticBeanstalk) DescribeAccountAttributesWithContext(ctx aws.Context, input *DescribeAccountAttributesInput, opts ...request.Option) (*DescribeAccountAttributesOutput, error)

DescribeAccountAttributesWithContext is the same as DescribeAccountAttributes with the addition of the ability to pass a context and additional request options.

See DescribeAccountAttributes for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeApplicationVersions

func (c *ElasticBeanstalk) DescribeApplicationVersions(input *DescribeApplicationVersionsInput) (*DescribeApplicationVersionsOutput, error)

DescribeApplicationVersions API operation for AWS Elastic Beanstalk.

Retrieve a list of application versions.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Elastic Beanstalk's API operation DescribeApplicationVersions for usage and error information. See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribeApplicationVersions

Example

ElasticBeanstalk DescribeApplicationVersions shared00

To view information about an application version

The following operation retrieves information about an application version labeled v2:

{ svc := elasticbeanstalk.New(session.New()) input := &elasticbeanstalk.DescribeApplicationVersionsInput{ ApplicationName: aws.String("my-app"), VersionLabels: []*string{ aws.String("v2"), }, } result, err := svc.DescribeApplicationVersions(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

DescribeApplicationVersionsRequest

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

DescribeApplicationVersionsRequest generates a "aws/request.Request" representing the client's request for the DescribeApplicationVersions operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeApplicationVersions for more information on using the DescribeApplicationVersions API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeApplicationVersionsRequest method. req, resp := client.DescribeApplicationVersionsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribeApplicationVersions

DescribeApplicationVersionsWithContext

func (c *ElasticBeanstalk) DescribeApplicationVersionsWithContext(ctx aws.Context, input *DescribeApplicationVersionsInput, opts ...request.Option) (*DescribeApplicationVersionsOutput, error)

DescribeApplicationVersionsWithContext is the same as DescribeApplicationVersions with the addition of the ability to pass a context and additional request options.

See DescribeApplicationVersions for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeApplications

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

DescribeApplications API operation for AWS Elastic Beanstalk.

Returns the descriptions of existing applications.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Elastic Beanstalk's API operation DescribeApplications for usage and error information. See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribeApplications

Example

ElasticBeanstalk DescribeApplications shared00

To view a list of applications

The following operation retrieves information about applications in the current region:

{ svc := elasticbeanstalk.New(session.New()) input := &elasticbeanstalk.DescribeApplicationsInput{} result, err := svc.DescribeApplications(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

DescribeApplicationsRequest

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

DescribeApplicationsRequest generates a "aws/request.Request" representing the client's request for the DescribeApplications operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeApplications for more information on using the DescribeApplications API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeApplicationsRequest method. req, resp := client.DescribeApplicationsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribeApplications

DescribeApplicationsWithContext

func (c *ElasticBeanstalk) DescribeApplicationsWithContext(ctx aws.Context, input *DescribeApplicationsInput, opts ...request.Option) (*DescribeApplicationsOutput, error)

DescribeApplicationsWithContext is the same as DescribeApplications with the addition of the ability to pass a context and additional request options.

See DescribeApplications for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeConfigurationOptions

func (c *ElasticBeanstalk) DescribeConfigurationOptions(input *DescribeConfigurationOptionsInput) (*DescribeConfigurationOptionsOutput, error)

DescribeConfigurationOptions API operation for AWS Elastic Beanstalk.

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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Elastic Beanstalk's API operation DescribeConfigurationOptions for usage and error information.

Returned Error Codes:

  • ErrCodeTooManyBucketsException "TooManyBucketsException" The specified account has reached its limit of Amazon S3 buckets.

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribeConfigurationOptions

Example

ElasticBeanstalk DescribeConfigurationOptions shared00

To view configuration options for an environment

The following operation retrieves descriptions of all available configuration options for an environment named my-env:

{ svc := elasticbeanstalk.New(session.New()) input := &elasticbeanstalk.DescribeConfigurationOptionsInput{ ApplicationName: aws.String("my-app"), EnvironmentName: aws.String("my-env"), } result, err := svc.DescribeConfigurationOptions(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case elasticbeanstalk.ErrCodeTooManyBucketsException: fmt.Println(elasticbeanstalk.ErrCodeTooManyBucketsException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

DescribeConfigurationOptionsRequest

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

DescribeConfigurationOptionsRequest generates a "aws/request.Request" representing the client's request for the DescribeConfigurationOptions operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeConfigurationOptions for more information on using the DescribeConfigurationOptions API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeConfigurationOptionsRequest method. req, resp := client.DescribeConfigurationOptionsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribeConfigurationOptions

DescribeConfigurationOptionsWithContext

func (c *ElasticBeanstalk) DescribeConfigurationOptionsWithContext(ctx aws.Context, input *DescribeConfigurationOptionsInput, opts ...request.Option) (*DescribeConfigurationOptionsOutput, error)

DescribeConfigurationOptionsWithContext is the same as DescribeConfigurationOptions with the addition of the ability to pass a context and additional request options.

See DescribeConfigurationOptions for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeConfigurationSettings

func (c *ElasticBeanstalk) DescribeConfigurationSettings(input *DescribeConfigurationSettingsInput) (*DescribeConfigurationSettingsOutput, error)

DescribeConfigurationSettings API operation for AWS Elastic Beanstalk.

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

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Elastic Beanstalk's API operation DescribeConfigurationSettings for usage and error information.

Returned Error Codes:

  • ErrCodeTooManyBucketsException "TooManyBucketsException" The specified account has reached its limit of Amazon S3 buckets.

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribeConfigurationSettings

Example

ElasticBeanstalk DescribeConfigurationSettings shared00

To view configurations settings for an environment

The following operation retrieves configuration settings for an environment named my-env:

{ svc := elasticbeanstalk.New(session.New()) input := &elasticbeanstalk.DescribeConfigurationSettingsInput{ ApplicationName: aws.String("my-app"), EnvironmentName: aws.String("my-env"), } result, err := svc.DescribeConfigurationSettings(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case elasticbeanstalk.ErrCodeTooManyBucketsException: fmt.Println(elasticbeanstalk.ErrCodeTooManyBucketsException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

DescribeConfigurationSettingsRequest

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

DescribeConfigurationSettingsRequest generates a "aws/request.Request" representing the client's request for the DescribeConfigurationSettings operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeConfigurationSettings for more information on using the DescribeConfigurationSettings API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeConfigurationSettingsRequest method. req, resp := client.DescribeConfigurationSettingsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribeConfigurationSettings

DescribeConfigurationSettingsWithContext

func (c *ElasticBeanstalk) DescribeConfigurationSettingsWithContext(ctx aws.Context, input *DescribeConfigurationSettingsInput, opts ...request.Option) (*DescribeConfigurationSettingsOutput, error)

DescribeConfigurationSettingsWithContext is the same as DescribeConfigurationSettings with the addition of the ability to pass a context and additional request options.

See DescribeConfigurationSettings for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeEnvironmentHealth

func (c *ElasticBeanstalk) DescribeEnvironmentHealth(input *DescribeEnvironmentHealthInput) (*DescribeEnvironmentHealthOutput, error)

DescribeEnvironmentHealth API operation for AWS Elastic Beanstalk.

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

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Elastic Beanstalk's API operation DescribeEnvironmentHealth for usage and error information.

Returned Error Codes:

  • ErrCodeInvalidRequestException "InvalidRequestException" One or more input parameters is not valid. Please correct the input parameters and try the operation again.

  • ErrCodeServiceException "ElasticBeanstalkServiceException" A generic service exception has occurred.

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribeEnvironmentHealth

Example

ElasticBeanstalk DescribeEnvironmentHealth shared00

To view environment health

The following operation retrieves overall health information for an environment named my-env:

{ svc := elasticbeanstalk.New(session.New()) input := &elasticbeanstalk.DescribeEnvironmentHealthInput{ AttributeNames: []*string{ aws.String("All"), }, EnvironmentName: aws.String("my-env"), } result, err := svc.DescribeEnvironmentHealth(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case elasticbeanstalk.ErrCodeInvalidRequestException: fmt.Println(elasticbeanstalk.ErrCodeInvalidRequestException, aerr.Error()) case elasticbeanstalk.ErrCodeServiceException: fmt.Println(elasticbeanstalk.ErrCodeServiceException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

DescribeEnvironmentHealthRequest

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

DescribeEnvironmentHealthRequest generates a "aws/request.Request" representing the client's request for the DescribeEnvironmentHealth operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeEnvironmentHealth for more information on using the DescribeEnvironmentHealth API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeEnvironmentHealthRequest method. req, resp := client.DescribeEnvironmentHealthRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribeEnvironmentHealth

DescribeEnvironmentHealthWithContext

func (c *ElasticBeanstalk) DescribeEnvironmentHealthWithContext(ctx aws.Context, input *DescribeEnvironmentHealthInput, opts ...request.Option) (*DescribeEnvironmentHealthOutput, error)

DescribeEnvironmentHealthWithContext is the same as DescribeEnvironmentHealth with the addition of the ability to pass a context and additional request options.

See DescribeEnvironmentHealth for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeEnvironmentManagedActionHistory

func (c *ElasticBeanstalk) DescribeEnvironmentManagedActionHistory(input *DescribeEnvironmentManagedActionHistoryInput) (*DescribeEnvironmentManagedActionHistoryOutput, error)

DescribeEnvironmentManagedActionHistory API operation for AWS Elastic Beanstalk.

Lists an environment's completed and failed managed actions.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Elastic Beanstalk's API operation DescribeEnvironmentManagedActionHistory for usage and error information.

Returned Error Codes:

  • ErrCodeServiceException "ElasticBeanstalkServiceException" A generic service exception has occurred.

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribeEnvironmentManagedActionHistory

DescribeEnvironmentManagedActionHistoryRequest

func (c *ElasticBeanstalk) DescribeEnvironmentManagedActionHistoryRequest(input *DescribeEnvironmentManagedActionHistoryInput) (req *request.Request, output *DescribeEnvironmentManagedActionHistoryOutput)

DescribeEnvironmentManagedActionHistoryRequest generates a "aws/request.Request" representing the client's request for the DescribeEnvironmentManagedActionHistory operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeEnvironmentManagedActionHistory for more information on using the DescribeEnvironmentManagedActionHistory API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeEnvironmentManagedActionHistoryRequest method. req, resp := client.DescribeEnvironmentManagedActionHistoryRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribeEnvironmentManagedActionHistory

DescribeEnvironmentManagedActionHistoryWithContext

func (c *ElasticBeanstalk) DescribeEnvironmentManagedActionHistoryWithContext(ctx aws.Context, input *DescribeEnvironmentManagedActionHistoryInput, opts ...request.Option) (*DescribeEnvironmentManagedActionHistoryOutput, error)

DescribeEnvironmentManagedActionHistoryWithContext is the same as DescribeEnvironmentManagedActionHistory with the addition of the ability to pass a context and additional request options.

See DescribeEnvironmentManagedActionHistory for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeEnvironmentManagedActions

func (c *ElasticBeanstalk) DescribeEnvironmentManagedActions(input *DescribeEnvironmentManagedActionsInput) (*DescribeEnvironmentManagedActionsOutput, error)

DescribeEnvironmentManagedActions API operation for AWS Elastic Beanstalk.

Lists an environment's upcoming and in-progress managed actions.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Elastic Beanstalk's API operation DescribeEnvironmentManagedActions for usage and error information.

Returned Error Codes:

  • ErrCodeServiceException "ElasticBeanstalkServiceException" A generic service exception has occurred.

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribeEnvironmentManagedActions

DescribeEnvironmentManagedActionsRequest

func (c *ElasticBeanstalk) DescribeEnvironmentManagedActionsRequest(input *DescribeEnvironmentManagedActionsInput) (req *request.Request, output *DescribeEnvironmentManagedActionsOutput)

DescribeEnvironmentManagedActionsRequest generates a "aws/request.Request" representing the client's request for the DescribeEnvironmentManagedActions operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeEnvironmentManagedActions for more information on using the DescribeEnvironmentManagedActions API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeEnvironmentManagedActionsRequest method. req, resp := client.DescribeEnvironmentManagedActionsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribeEnvironmentManagedActions

DescribeEnvironmentManagedActionsWithContext

func (c *ElasticBeanstalk) DescribeEnvironmentManagedActionsWithContext(ctx aws.Context, input *DescribeEnvironmentManagedActionsInput, opts ...request.Option) (*DescribeEnvironmentManagedActionsOutput, error)

DescribeEnvironmentManagedActionsWithContext is the same as DescribeEnvironmentManagedActions with the addition of the ability to pass a context and additional request options.

See DescribeEnvironmentManagedActions for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeEnvironmentResources

func (c *ElasticBeanstalk) DescribeEnvironmentResources(input *DescribeEnvironmentResourcesInput) (*DescribeEnvironmentResourcesOutput, error)

DescribeEnvironmentResources API operation for AWS Elastic Beanstalk.

Returns AWS resources for this environment.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Elastic Beanstalk's API operation DescribeEnvironmentResources for usage and error information.

Returned Error Codes:

  • ErrCodeInsufficientPrivilegesException "InsufficientPrivilegesException" The specified account does not have sufficient privileges for one or more AWS services.

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribeEnvironmentResources

Example

ElasticBeanstalk DescribeEnvironmentResources shared00

To view information about the AWS resources in your environment

The following operation retrieves information about resources in an environment named my-env:

{ svc := elasticbeanstalk.New(session.New()) input := &elasticbeanstalk.DescribeEnvironmentResourcesInput{ EnvironmentName: aws.String("my-env"), } result, err := svc.DescribeEnvironmentResources(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case elasticbeanstalk.ErrCodeInsufficientPrivilegesException: fmt.Println(elasticbeanstalk.ErrCodeInsufficientPrivilegesException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

DescribeEnvironmentResourcesRequest

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

DescribeEnvironmentResourcesRequest generates a "aws/request.Request" representing the client's request for the DescribeEnvironmentResources operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeEnvironmentResources for more information on using the DescribeEnvironmentResources API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeEnvironmentResourcesRequest method. req, resp := client.DescribeEnvironmentResourcesRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribeEnvironmentResources

DescribeEnvironmentResourcesWithContext

func (c *ElasticBeanstalk) DescribeEnvironmentResourcesWithContext(ctx aws.Context, input *DescribeEnvironmentResourcesInput, opts ...request.Option) (*DescribeEnvironmentResourcesOutput, error)

DescribeEnvironmentResourcesWithContext is the same as DescribeEnvironmentResources with the addition of the ability to pass a context and additional request options.

See DescribeEnvironmentResources for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeEnvironments

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

DescribeEnvironments API operation for AWS Elastic Beanstalk.

Returns descriptions for existing environments.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Elastic Beanstalk's API operation DescribeEnvironments for usage and error information. See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribeEnvironments

Example

ElasticBeanstalk DescribeEnvironments shared00

To view information about an environment

The following operation retrieves information about an environment named my-env:

{ svc := elasticbeanstalk.New(session.New()) input := &elasticbeanstalk.DescribeEnvironmentsInput{ EnvironmentNames: []*string{ aws.String("my-env"), }, } result, err := svc.DescribeEnvironments(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

DescribeEnvironmentsRequest

func (c *ElasticBeanstalk) DescribeEnvironmentsRequest(input *DescribeEnvironmentsInput) (req *request.Request, output *EnvironmentDescriptionsMessage)

DescribeEnvironmentsRequest generates a "aws/request.Request" representing the client's request for the DescribeEnvironments operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeEnvironments for more information on using the DescribeEnvironments API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeEnvironmentsRequest method. req, resp := client.DescribeEnvironmentsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribeEnvironments

DescribeEnvironmentsWithContext

func (c *ElasticBeanstalk) DescribeEnvironmentsWithContext(ctx aws.Context, input *DescribeEnvironmentsInput, opts ...request.Option) (*EnvironmentDescriptionsMessage, error)

DescribeEnvironmentsWithContext is the same as DescribeEnvironments with the addition of the ability to pass a context and additional request options.

See DescribeEnvironments for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeEvents

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

DescribeEvents API operation for AWS Elastic Beanstalk.

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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Elastic Beanstalk's API operation DescribeEvents for usage and error information. See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribeEvents

Example

ElasticBeanstalk DescribeEvents shared00

To view events for an environment

The following operation retrieves events for an environment named my-env:

{ svc := elasticbeanstalk.New(session.New()) input := &elasticbeanstalk.DescribeEventsInput{ EnvironmentName: aws.String("my-env"), } result, err := svc.DescribeEvents(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

DescribeEventsPages

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

DescribeEventsPages iterates over the pages of a DescribeEvents operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See DescribeEvents method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a DescribeEvents operation. pageNum := 0 err := client.DescribeEventsPages(params, func(page *DescribeEventsOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })

See Also

For more information about using this API, see AWS API Documentation.

DescribeEventsPagesWithContext

func (c *ElasticBeanstalk) DescribeEventsPagesWithContext(ctx aws.Context, input *DescribeEventsInput, fn func(*DescribeEventsOutput, bool) bool, opts ...request.Option) error

DescribeEventsPagesWithContext same as DescribeEventsPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeEventsRequest

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

DescribeEventsRequest generates a "aws/request.Request" representing the client's request for the DescribeEvents operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeEvents for more information on using the DescribeEvents API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeEventsRequest method. req, resp := client.DescribeEventsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribeEvents

DescribeEventsWithContext

func (c *ElasticBeanstalk) DescribeEventsWithContext(ctx aws.Context, input *DescribeEventsInput, opts ...request.Option) (*DescribeEventsOutput, error)

DescribeEventsWithContext is the same as DescribeEvents with the addition of the ability to pass a context and additional request options.

See DescribeEvents for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribeInstancesHealth

func (c *ElasticBeanstalk) DescribeInstancesHealth(input *DescribeInstancesHealthInput) (*DescribeInstancesHealthOutput, error)

DescribeInstancesHealth API operation for AWS Elastic Beanstalk.

Retrieves detailed information about the health of instances in your AWS Elastic Beanstalk. This operation requires enhanced health reporting (https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/health-enhanced.html).

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Elastic Beanstalk's API operation DescribeInstancesHealth for usage and error information.

Returned Error Codes:

  • ErrCodeInvalidRequestException "InvalidRequestException" One or more input parameters is not valid. Please correct the input parameters and try the operation again.

  • ErrCodeServiceException "ElasticBeanstalkServiceException" A generic service exception has occurred.

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribeInstancesHealth

Example

ElasticBeanstalk DescribeInstancesHealth shared00

To view environment health

The following operation retrieves health information for instances in an environment named my-env:

{ svc := elasticbeanstalk.New(session.New()) input := &elasticbeanstalk.DescribeInstancesHealthInput{ AttributeNames: []*string{ aws.String("All"), }, EnvironmentName: aws.String("my-env"), } result, err := svc.DescribeInstancesHealth(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case elasticbeanstalk.ErrCodeInvalidRequestException: fmt.Println(elasticbeanstalk.ErrCodeInvalidRequestException, aerr.Error()) case elasticbeanstalk.ErrCodeServiceException: fmt.Println(elasticbeanstalk.ErrCodeServiceException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

DescribeInstancesHealthRequest

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

DescribeInstancesHealthRequest generates a "aws/request.Request" representing the client's request for the DescribeInstancesHealth operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeInstancesHealth for more information on using the DescribeInstancesHealth API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeInstancesHealthRequest method. req, resp := client.DescribeInstancesHealthRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribeInstancesHealth

DescribeInstancesHealthWithContext

func (c *ElasticBeanstalk) DescribeInstancesHealthWithContext(ctx aws.Context, input *DescribeInstancesHealthInput, opts ...request.Option) (*DescribeInstancesHealthOutput, error)

DescribeInstancesHealthWithContext is the same as DescribeInstancesHealth with the addition of the ability to pass a context and additional request options.

See DescribeInstancesHealth for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DescribePlatformVersion

func (c *ElasticBeanstalk) DescribePlatformVersion(input *DescribePlatformVersionInput) (*DescribePlatformVersionOutput, error)

DescribePlatformVersion API operation for AWS Elastic Beanstalk.

Describes the version of the platform.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Elastic Beanstalk's API operation DescribePlatformVersion for usage and error information.

Returned Error Codes:

  • ErrCodeInsufficientPrivilegesException "InsufficientPrivilegesException" The specified account does not have sufficient privileges for one or more AWS services.

  • ErrCodeServiceException "ElasticBeanstalkServiceException" A generic service exception has occurred.

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribePlatformVersion

DescribePlatformVersionRequest

func (c *ElasticBeanstalk) DescribePlatformVersionRequest(input *DescribePlatformVersionInput) (req *request.Request, output *DescribePlatformVersionOutput)

DescribePlatformVersionRequest generates a "aws/request.Request" representing the client's request for the DescribePlatformVersion operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribePlatformVersion for more information on using the DescribePlatformVersion API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribePlatformVersionRequest method. req, resp := client.DescribePlatformVersionRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribePlatformVersion

DescribePlatformVersionWithContext

func (c *ElasticBeanstalk) DescribePlatformVersionWithContext(ctx aws.Context, input *DescribePlatformVersionInput, opts ...request.Option) (*DescribePlatformVersionOutput, error)

DescribePlatformVersionWithContext is the same as DescribePlatformVersion with the addition of the ability to pass a context and additional request options.

See DescribePlatformVersion for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListAvailableSolutionStacks

func (c *ElasticBeanstalk) ListAvailableSolutionStacks(input *ListAvailableSolutionStacksInput) (*ListAvailableSolutionStacksOutput, error)

ListAvailableSolutionStacks API operation for AWS Elastic Beanstalk.

Returns a list of the available solution stack names, with the public version first and then in reverse chronological order.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Elastic Beanstalk's API operation ListAvailableSolutionStacks for usage and error information. See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/ListAvailableSolutionStacks

Example

ElasticBeanstalk ListAvailableSolutionStacks shared00

To view solution stacks

The following operation lists solution stacks for all currently available platform configurations and any that you have used in the past:

{ svc := elasticbeanstalk.New(session.New()) input := &elasticbeanstalk.ListAvailableSolutionStacksInput{} result, err := svc.ListAvailableSolutionStacks(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

ListAvailableSolutionStacksRequest

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

ListAvailableSolutionStacksRequest generates a "aws/request.Request" representing the client's request for the ListAvailableSolutionStacks operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListAvailableSolutionStacks for more information on using the ListAvailableSolutionStacks API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListAvailableSolutionStacksRequest method. req, resp := client.ListAvailableSolutionStacksRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/ListAvailableSolutionStacks

ListAvailableSolutionStacksWithContext

func (c *ElasticBeanstalk) ListAvailableSolutionStacksWithContext(ctx aws.Context, input *ListAvailableSolutionStacksInput, opts ...request.Option) (*ListAvailableSolutionStacksOutput, error)

ListAvailableSolutionStacksWithContext is the same as ListAvailableSolutionStacks with the addition of the ability to pass a context and additional request options.

See ListAvailableSolutionStacks for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListPlatformVersions

func (c *ElasticBeanstalk) ListPlatformVersions(input *ListPlatformVersionsInput) (*ListPlatformVersionsOutput, error)

ListPlatformVersions API operation for AWS Elastic Beanstalk.

Lists the available platforms.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Elastic Beanstalk's API operation ListPlatformVersions for usage and error information.

Returned Error Codes:

  • ErrCodeInsufficientPrivilegesException "InsufficientPrivilegesException" The specified account does not have sufficient privileges for one or more AWS services.

  • ErrCodeServiceException "ElasticBeanstalkServiceException" A generic service exception has occurred.

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/ListPlatformVersions

ListPlatformVersionsRequest

func (c *ElasticBeanstalk) ListPlatformVersionsRequest(input *ListPlatformVersionsInput) (req *request.Request, output *ListPlatformVersionsOutput)

ListPlatformVersionsRequest generates a "aws/request.Request" representing the client's request for the ListPlatformVersions operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListPlatformVersions for more information on using the ListPlatformVersions API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListPlatformVersionsRequest method. req, resp := client.ListPlatformVersionsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/ListPlatformVersions

ListPlatformVersionsWithContext

func (c *ElasticBeanstalk) ListPlatformVersionsWithContext(ctx aws.Context, input *ListPlatformVersionsInput, opts ...request.Option) (*ListPlatformVersionsOutput, error)

ListPlatformVersionsWithContext is the same as ListPlatformVersions with the addition of the ability to pass a context and additional request options.

See ListPlatformVersions for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListTagsForResource

func (c *ElasticBeanstalk) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error)

ListTagsForResource API operation for AWS Elastic Beanstalk.

Returns the tags applied to an AWS Elastic Beanstalk resource. The response contains a list of tag key-value pairs.

Currently, Elastic Beanstalk only supports tagging of Elastic Beanstalk environments. For details about environment tagging, see Tagging Resources in Your Elastic Beanstalk Environment (https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features.tagging.html).

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Elastic Beanstalk's API operation ListTagsForResource for usage and error information.

Returned Error Codes:

  • ErrCodeInsufficientPrivilegesException "InsufficientPrivilegesException" The specified account does not have sufficient privileges for one or more AWS services.

  • ErrCodeResourceNotFoundException "ResourceNotFoundException" A resource doesn't exist for the specified Amazon Resource Name (ARN).

  • ErrCodeResourceTypeNotSupportedException "ResourceTypeNotSupportedException" The type of the specified Amazon Resource Name (ARN) isn't supported for this operation.

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/ListTagsForResource

ListTagsForResourceRequest

func (c *ElasticBeanstalk) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput)

ListTagsForResourceRequest generates a "aws/request.Request" representing the client's request for the ListTagsForResource operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListTagsForResource for more information on using the ListTagsForResource API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListTagsForResourceRequest method. req, resp := client.ListTagsForResourceRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/ListTagsForResource

ListTagsForResourceWithContext

func (c *ElasticBeanstalk) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error)

ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of the ability to pass a context and additional request options.

See ListTagsForResource for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

RebuildEnvironment

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

RebuildEnvironment API operation for AWS Elastic Beanstalk.

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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Elastic Beanstalk's API operation RebuildEnvironment for usage and error information.

Returned Error Codes:

  • ErrCodeInsufficientPrivilegesException "InsufficientPrivilegesException" The specified account does not have sufficient privileges for one or more AWS services.

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/RebuildEnvironment

Example

ElasticBeanstalk RebuildEnvironment shared00

To rebuild an environment

The following operation terminates and recreates the resources in an environment named my-env:

{ svc := elasticbeanstalk.New(session.New()) input := &elasticbeanstalk.RebuildEnvironmentInput{ EnvironmentName: aws.String("my-env"), } result, err := svc.RebuildEnvironment(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case elasticbeanstalk.ErrCodeInsufficientPrivilegesException: fmt.Println(elasticbeanstalk.ErrCodeInsufficientPrivilegesException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

RebuildEnvironmentRequest

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

RebuildEnvironmentRequest generates a "aws/request.Request" representing the client's request for the RebuildEnvironment operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See RebuildEnvironment for more information on using the RebuildEnvironment API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the RebuildEnvironmentRequest method. req, resp := client.RebuildEnvironmentRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/RebuildEnvironment

RebuildEnvironmentWithContext

func (c *ElasticBeanstalk) RebuildEnvironmentWithContext(ctx aws.Context, input *RebuildEnvironmentInput, opts ...request.Option) (*RebuildEnvironmentOutput, error)

RebuildEnvironmentWithContext is the same as RebuildEnvironment with the addition of the ability to pass a context and additional request options.

See RebuildEnvironment for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

RequestEnvironmentInfo

func (c *ElasticBeanstalk) RequestEnvironmentInfo(input *RequestEnvironmentInfoInput) (*RequestEnvironmentInfoOutput, error)

RequestEnvironmentInfo API operation for AWS Elastic Beanstalk.

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

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Elastic Beanstalk's API operation RequestEnvironmentInfo for usage and error information. See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/RequestEnvironmentInfo

Example

ElasticBeanstalk RequestEnvironmentInfo shared00

To request tailed logs

The following operation requests logs from an environment named my-env:

{ svc := elasticbeanstalk.New(session.New()) input := &elasticbeanstalk.RequestEnvironmentInfoInput{ EnvironmentName: aws.String("my-env"), InfoType: aws.String("tail"), } result, err := svc.RequestEnvironmentInfo(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

RequestEnvironmentInfoRequest

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

RequestEnvironmentInfoRequest generates a "aws/request.Request" representing the client's request for the RequestEnvironmentInfo operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See RequestEnvironmentInfo for more information on using the RequestEnvironmentInfo API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the RequestEnvironmentInfoRequest method. req, resp := client.RequestEnvironmentInfoRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/RequestEnvironmentInfo

RequestEnvironmentInfoWithContext

func (c *ElasticBeanstalk) RequestEnvironmentInfoWithContext(ctx aws.Context, input *RequestEnvironmentInfoInput, opts ...request.Option) (*RequestEnvironmentInfoOutput, error)

RequestEnvironmentInfoWithContext is the same as RequestEnvironmentInfo with the addition of the ability to pass a context and additional request options.

See RequestEnvironmentInfo for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

RestartAppServer

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

RestartAppServer API operation for AWS Elastic Beanstalk.

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

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Elastic Beanstalk's API operation RestartAppServer for usage and error information. See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/RestartAppServer

Example

ElasticBeanstalk RestartAppServer shared00

To restart application servers

The following operation restarts application servers on all instances in an environment named my-env:

{ svc := elasticbeanstalk.New(session.New()) input := &elasticbeanstalk.RestartAppServerInput{ EnvironmentName: aws.String("my-env"), } result, err := svc.RestartAppServer(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

RestartAppServerRequest

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

RestartAppServerRequest generates a "aws/request.Request" representing the client's request for the RestartAppServer operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See RestartAppServer for more information on using the RestartAppServer API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the RestartAppServerRequest method. req, resp := client.RestartAppServerRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/RestartAppServer

RestartAppServerWithContext

func (c *ElasticBeanstalk) RestartAppServerWithContext(ctx aws.Context, input *RestartAppServerInput, opts ...request.Option) (*RestartAppServerOutput, error)

RestartAppServerWithContext is the same as RestartAppServer with the addition of the ability to pass a context and additional request options.

See RestartAppServer for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

RetrieveEnvironmentInfo

func (c *ElasticBeanstalk) RetrieveEnvironmentInfo(input *RetrieveEnvironmentInfoInput) (*RetrieveEnvironmentInfoOutput, error)

RetrieveEnvironmentInfo API operation for AWS Elastic Beanstalk.

Retrieves the compiled information from a RequestEnvironmentInfo request.

Related Topics

  • RequestEnvironmentInfo

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Elastic Beanstalk's API operation RetrieveEnvironmentInfo for usage and error information. See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/RetrieveEnvironmentInfo

Example

ElasticBeanstalk RetrieveEnvironmentInfo shared00

To retrieve tailed logs

The following operation retrieves a link to logs from an environment named my-env:

{ svc := elasticbeanstalk.New(session.New()) input := &elasticbeanstalk.RetrieveEnvironmentInfoInput{ EnvironmentName: aws.String("my-env"), InfoType: aws.String("tail"), } result, err := svc.RetrieveEnvironmentInfo(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

RetrieveEnvironmentInfoRequest

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

RetrieveEnvironmentInfoRequest generates a "aws/request.Request" representing the client's request for the RetrieveEnvironmentInfo operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See RetrieveEnvironmentInfo for more information on using the RetrieveEnvironmentInfo API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the RetrieveEnvironmentInfoRequest method. req, resp := client.RetrieveEnvironmentInfoRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/RetrieveEnvironmentInfo

RetrieveEnvironmentInfoWithContext

func (c *ElasticBeanstalk) RetrieveEnvironmentInfoWithContext(ctx aws.Context, input *RetrieveEnvironmentInfoInput, opts ...request.Option) (*RetrieveEnvironmentInfoOutput, error)

RetrieveEnvironmentInfoWithContext is the same as RetrieveEnvironmentInfo with the addition of the ability to pass a context and additional request options.

See RetrieveEnvironmentInfo for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

SwapEnvironmentCNAMEs

func (c *ElasticBeanstalk) SwapEnvironmentCNAMEs(input *SwapEnvironmentCNAMEsInput) (*SwapEnvironmentCNAMEsOutput, error)

SwapEnvironmentCNAMEs API operation for AWS Elastic Beanstalk.

Swaps the CNAMEs of two environments.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Elastic Beanstalk's API operation SwapEnvironmentCNAMEs for usage and error information. See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/SwapEnvironmentCNAMEs

Example

ElasticBeanstalk SwapEnvironmentCNAMEs shared00

To swap environment CNAMES

The following operation swaps the assigned subdomains of two environments:

{ svc := elasticbeanstalk.New(session.New()) input := &elasticbeanstalk.SwapEnvironmentCNAMEsInput{ DestinationEnvironmentName: aws.String("my-env-green"), SourceEnvironmentName: aws.String("my-env-blue"), } result, err := svc.SwapEnvironmentCNAMEs(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

SwapEnvironmentCNAMEsRequest

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

SwapEnvironmentCNAMEsRequest generates a "aws/request.Request" representing the client's request for the SwapEnvironmentCNAMEs operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See SwapEnvironmentCNAMEs for more information on using the SwapEnvironmentCNAMEs API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the SwapEnvironmentCNAMEsRequest method. req, resp := client.SwapEnvironmentCNAMEsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/SwapEnvironmentCNAMEs

SwapEnvironmentCNAMEsWithContext

func (c *ElasticBeanstalk) SwapEnvironmentCNAMEsWithContext(ctx aws.Context, input *SwapEnvironmentCNAMEsInput, opts ...request.Option) (*SwapEnvironmentCNAMEsOutput, error)

SwapEnvironmentCNAMEsWithContext is the same as SwapEnvironmentCNAMEs with the addition of the ability to pass a context and additional request options.

See SwapEnvironmentCNAMEs for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

TerminateEnvironment

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

TerminateEnvironment API operation for AWS Elastic Beanstalk.

Terminates the specified environment.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Elastic Beanstalk's API operation TerminateEnvironment for usage and error information.

Returned Error Codes:

  • ErrCodeInsufficientPrivilegesException "InsufficientPrivilegesException" The specified account does not have sufficient privileges for one or more AWS services.

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/TerminateEnvironment

Example

ElasticBeanstalk TerminateEnvironment shared00

To terminate an environment

The following operation terminates an Elastic Beanstalk environment named my-env:

{ svc := elasticbeanstalk.New(session.New()) input := &elasticbeanstalk.TerminateEnvironmentInput{ EnvironmentName: aws.String("my-env"), } result, err := svc.TerminateEnvironment(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case elasticbeanstalk.ErrCodeInsufficientPrivilegesException: fmt.Println(elasticbeanstalk.ErrCodeInsufficientPrivilegesException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

TerminateEnvironmentRequest

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

TerminateEnvironmentRequest generates a "aws/request.Request" representing the client's request for the TerminateEnvironment operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See TerminateEnvironment for more information on using the TerminateEnvironment API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the TerminateEnvironmentRequest method. req, resp := client.TerminateEnvironmentRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/TerminateEnvironment

TerminateEnvironmentWithContext

func (c *ElasticBeanstalk) TerminateEnvironmentWithContext(ctx aws.Context, input *TerminateEnvironmentInput, opts ...request.Option) (*EnvironmentDescription, error)

TerminateEnvironmentWithContext is the same as TerminateEnvironment with the addition of the ability to pass a context and additional request options.

See TerminateEnvironment for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

UpdateApplication

func (c *ElasticBeanstalk) UpdateApplication(input *UpdateApplicationInput) (*ApplicationDescriptionMessage, error)

UpdateApplication API operation for AWS Elastic Beanstalk.

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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Elastic Beanstalk's API operation UpdateApplication for usage and error information. See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/UpdateApplication

Example

ElasticBeanstalk UpdateApplication shared00

To change an application's description

The following operation updates the description of an application named my-app:

{ svc := elasticbeanstalk.New(session.New()) input := &elasticbeanstalk.UpdateApplicationInput{ ApplicationName: aws.String("my-app"), Description: aws.String("my Elastic Beanstalk application"), } result, err := svc.UpdateApplication(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

UpdateApplicationRequest

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

UpdateApplicationRequest generates a "aws/request.Request" representing the client's request for the UpdateApplication operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See UpdateApplication for more information on using the UpdateApplication API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the UpdateApplicationRequest method. req, resp := client.UpdateApplicationRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/UpdateApplication

UpdateApplicationResourceLifecycle

func (c *ElasticBeanstalk) UpdateApplicationResourceLifecycle(input *UpdateApplicationResourceLifecycleInput) (*UpdateApplicationResourceLifecycleOutput, error)

UpdateApplicationResourceLifecycle API operation for AWS Elastic Beanstalk.

Modifies lifecycle settings for an application.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Elastic Beanstalk's API operation UpdateApplicationResourceLifecycle for usage and error information.

Returned Error Codes:

  • ErrCodeInsufficientPrivilegesException "InsufficientPrivilegesException" The specified account does not have sufficient privileges for one or more AWS services.

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/UpdateApplicationResourceLifecycle

UpdateApplicationResourceLifecycleRequest

func (c *ElasticBeanstalk) UpdateApplicationResourceLifecycleRequest(input *UpdateApplicationResourceLifecycleInput) (req *request.Request, output *UpdateApplicationResourceLifecycleOutput)

UpdateApplicationResourceLifecycleRequest generates a "aws/request.Request" representing the client's request for the UpdateApplicationResourceLifecycle operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See UpdateApplicationResourceLifecycle for more information on using the UpdateApplicationResourceLifecycle API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the UpdateApplicationResourceLifecycleRequest method. req, resp := client.UpdateApplicationResourceLifecycleRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/UpdateApplicationResourceLifecycle

UpdateApplicationResourceLifecycleWithContext

func (c *ElasticBeanstalk) UpdateApplicationResourceLifecycleWithContext(ctx aws.Context, input *UpdateApplicationResourceLifecycleInput, opts ...request.Option) (*UpdateApplicationResourceLifecycleOutput, error)

UpdateApplicationResourceLifecycleWithContext is the same as UpdateApplicationResourceLifecycle with the addition of the ability to pass a context and additional request options.

See UpdateApplicationResourceLifecycle for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

UpdateApplicationVersion

func (c *ElasticBeanstalk) UpdateApplicationVersion(input *UpdateApplicationVersionInput) (*ApplicationVersionDescriptionMessage, error)

UpdateApplicationVersion API operation for AWS Elastic Beanstalk.

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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Elastic Beanstalk's API operation UpdateApplicationVersion for usage and error information. See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/UpdateApplicationVersion

Example

ElasticBeanstalk UpdateApplicationVersion shared00

To change an application version's description

The following operation updates the description of an application version named 22a0-stage-150819_185942:

{ svc := elasticbeanstalk.New(session.New()) input := &elasticbeanstalk.UpdateApplicationVersionInput{ ApplicationName: aws.String("my-app"), Description: aws.String("new description"), VersionLabel: aws.String("22a0-stage-150819_185942"), } result, err := svc.UpdateApplicationVersion(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

UpdateApplicationVersionRequest

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

UpdateApplicationVersionRequest generates a "aws/request.Request" representing the client's request for the UpdateApplicationVersion operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See UpdateApplicationVersion for more information on using the UpdateApplicationVersion API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the UpdateApplicationVersionRequest method. req, resp := client.UpdateApplicationVersionRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/UpdateApplicationVersion

UpdateApplicationVersionWithContext

func (c *ElasticBeanstalk) UpdateApplicationVersionWithContext(ctx aws.Context, input *UpdateApplicationVersionInput, opts ...request.Option) (*ApplicationVersionDescriptionMessage, error)

UpdateApplicationVersionWithContext is the same as UpdateApplicationVersion with the addition of the ability to pass a context and additional request options.

See UpdateApplicationVersion for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

UpdateApplicationWithContext

func (c *ElasticBeanstalk) UpdateApplicationWithContext(ctx aws.Context, input *UpdateApplicationInput, opts ...request.Option) (*ApplicationDescriptionMessage, error)

UpdateApplicationWithContext is the same as UpdateApplication with the addition of the ability to pass a context and additional request options.

See UpdateApplication for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

UpdateConfigurationTemplate

func (c *ElasticBeanstalk) UpdateConfigurationTemplate(input *UpdateConfigurationTemplateInput) (*ConfigurationSettingsDescription, error)

UpdateConfigurationTemplate API operation for AWS Elastic Beanstalk.

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

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Elastic Beanstalk's API operation UpdateConfigurationTemplate for usage and error information.

Returned Error Codes:

  • ErrCodeInsufficientPrivilegesException "InsufficientPrivilegesException" The specified account does not have sufficient privileges for one or more AWS services.

  • ErrCodeTooManyBucketsException "TooManyBucketsException" The specified account has reached its limit of Amazon S3 buckets.

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/UpdateConfigurationTemplate

Example

ElasticBeanstalk UpdateConfigurationTemplate shared00

To update a configuration template

The following operation removes the configured CloudWatch custom health metrics configuration ConfigDocument from a saved configuration template named my-template:

{ svc := elasticbeanstalk.New(session.New()) input := &elasticbeanstalk.UpdateConfigurationTemplateInput{ ApplicationName: aws.String("my-app"), OptionsToRemove: []*elasticbeanstalk.OptionSpecification{ { Namespace: aws.String("aws:elasticbeanstalk:healthreporting:system"), OptionName: aws.String("ConfigDocument"), }, }, TemplateName: aws.String("my-template"), } result, err := svc.UpdateConfigurationTemplate(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case elasticbeanstalk.ErrCodeInsufficientPrivilegesException: fmt.Println(elasticbeanstalk.ErrCodeInsufficientPrivilegesException, aerr.Error()) case elasticbeanstalk.ErrCodeTooManyBucketsException: fmt.Println(elasticbeanstalk.ErrCodeTooManyBucketsException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

UpdateConfigurationTemplateRequest

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

UpdateConfigurationTemplateRequest generates a "aws/request.Request" representing the client's request for the UpdateConfigurationTemplate operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See UpdateConfigurationTemplate for more information on using the UpdateConfigurationTemplate API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the UpdateConfigurationTemplateRequest method. req, resp := client.UpdateConfigurationTemplateRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/UpdateConfigurationTemplate

UpdateConfigurationTemplateWithContext

func (c *ElasticBeanstalk) UpdateConfigurationTemplateWithContext(ctx aws.Context, input *UpdateConfigurationTemplateInput, opts ...request.Option) (*ConfigurationSettingsDescription, error)

UpdateConfigurationTemplateWithContext is the same as UpdateConfigurationTemplate with the addition of the ability to pass a context and additional request options.

See UpdateConfigurationTemplate for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

UpdateEnvironment

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

UpdateEnvironment API operation for AWS Elastic Beanstalk.

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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Elastic Beanstalk's API operation UpdateEnvironment for usage and error information.

Returned Error Codes:

  • ErrCodeInsufficientPrivilegesException "InsufficientPrivilegesException" The specified account does not have sufficient privileges for one or more AWS services.

  • ErrCodeTooManyBucketsException "TooManyBucketsException" The specified account has reached its limit of Amazon S3 buckets.

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/UpdateEnvironment

Examples

ElasticBeanstalk UpdateEnvironment shared00

To update an environment to a new version

The following operation updates an environment named "my-env" to version "v2" of the application to which it belongs:

{ svc := elasticbeanstalk.New(session.New()) input := &elasticbeanstalk.UpdateEnvironmentInput{ EnvironmentName: aws.String("my-env"), VersionLabel: aws.String("v2"), } result, err := svc.UpdateEnvironment(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case elasticbeanstalk.ErrCodeInsufficientPrivilegesException: fmt.Println(elasticbeanstalk.ErrCodeInsufficientPrivilegesException, aerr.Error()) case elasticbeanstalk.ErrCodeTooManyBucketsException: fmt.Println(elasticbeanstalk.ErrCodeTooManyBucketsException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }
ElasticBeanstalk UpdateEnvironment shared01

To configure option settings

The following operation configures several options in the aws:elb:loadbalancer namespace:

{ svc := elasticbeanstalk.New(session.New()) input := &elasticbeanstalk.UpdateEnvironmentInput{ EnvironmentName: aws.String("my-env"), OptionSettings: []*elasticbeanstalk.ConfigurationOptionSetting{ { Namespace: aws.String("aws:elb:healthcheck"), OptionName: aws.String("Interval"), Value: aws.String("15"), }, { Namespace: aws.String("aws:elb:healthcheck"), OptionName: aws.String("Timeout"), Value: aws.String("8"), }, { Namespace: aws.String("aws:elb:healthcheck"), OptionName: aws.String("HealthyThreshold"), Value: aws.String("2"), }, { Namespace: aws.String("aws:elb:healthcheck"), OptionName: aws.String("UnhealthyThreshold"), Value: aws.String("3"), }, }, } result, err := svc.UpdateEnvironment(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case elasticbeanstalk.ErrCodeInsufficientPrivilegesException: fmt.Println(elasticbeanstalk.ErrCodeInsufficientPrivilegesException, aerr.Error()) case elasticbeanstalk.ErrCodeTooManyBucketsException: fmt.Println(elasticbeanstalk.ErrCodeTooManyBucketsException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

UpdateEnvironmentRequest

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

UpdateEnvironmentRequest generates a "aws/request.Request" representing the client's request for the UpdateEnvironment operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See UpdateEnvironment for more information on using the UpdateEnvironment API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the UpdateEnvironmentRequest method. req, resp := client.UpdateEnvironmentRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/UpdateEnvironment

UpdateEnvironmentWithContext

func (c *ElasticBeanstalk) UpdateEnvironmentWithContext(ctx aws.Context, input *UpdateEnvironmentInput, opts ...request.Option) (*EnvironmentDescription, error)

UpdateEnvironmentWithContext is the same as UpdateEnvironment with the addition of the ability to pass a context and additional request options.

See UpdateEnvironment for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

UpdateTagsForResource

func (c *ElasticBeanstalk) UpdateTagsForResource(input *UpdateTagsForResourceInput) (*UpdateTagsForResourceOutput, error)

UpdateTagsForResource API operation for AWS Elastic Beanstalk.

Update the list of tags applied to an AWS Elastic Beanstalk resource. Two lists can be passed: TagsToAdd for tags to add or update, and TagsToRemove.

Currently, Elastic Beanstalk only supports tagging of Elastic Beanstalk environments. For details about environment tagging, see Tagging Resources in Your Elastic Beanstalk Environment (https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features.tagging.html).

If you create a custom IAM user policy to control permission to this operation, specify one of the following two virtual actions (or both) instead of the API operation name:

elasticbeanstalk:AddTagsControls permission to call UpdateTagsForResource and pass a list of tags to add in the TagsToAdd parameter.

elasticbeanstalk:RemoveTagsControls permission to call UpdateTagsForResource and pass a list of tag keys to remove in the TagsToRemove parameter.

For details about creating a custom user policy, see Creating a Custom User Policy (https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/AWSHowTo.iam.managed-policies.html#AWSHowTo.iam.policies).

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Elastic Beanstalk's API operation UpdateTagsForResource for usage and error information.

Returned Error Codes:

  • ErrCodeInsufficientPrivilegesException "InsufficientPrivilegesException" The specified account does not have sufficient privileges for one or more AWS services.

  • ErrCodeOperationInProgressException "OperationInProgressFailure" Unable to perform the specified operation because another operation that effects an element in this activity is already in progress.

  • ErrCodeTooManyTagsException "TooManyTagsException" The number of tags in the resource would exceed the number of tags that each resource can have.

To calculate this, the operation considers both the number of tags the resource already has and the tags this operation would add if it succeeded.
  • ErrCodeResourceNotFoundException "ResourceNotFoundException" A resource doesn't exist for the specified Amazon Resource Name (ARN).

  • ErrCodeResourceTypeNotSupportedException "ResourceTypeNotSupportedException" The type of the specified Amazon Resource Name (ARN) isn't supported for this operation.

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/UpdateTagsForResource

UpdateTagsForResourceRequest

func (c *ElasticBeanstalk) UpdateTagsForResourceRequest(input *UpdateTagsForResourceInput) (req *request.Request, output *UpdateTagsForResourceOutput)

UpdateTagsForResourceRequest generates a "aws/request.Request" representing the client's request for the UpdateTagsForResource operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See UpdateTagsForResource for more information on using the UpdateTagsForResource API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the UpdateTagsForResourceRequest method. req, resp := client.UpdateTagsForResourceRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/UpdateTagsForResource

UpdateTagsForResourceWithContext

func (c *ElasticBeanstalk) UpdateTagsForResourceWithContext(ctx aws.Context, input *UpdateTagsForResourceInput, opts ...request.Option) (*UpdateTagsForResourceOutput, error)

UpdateTagsForResourceWithContext is the same as UpdateTagsForResource with the addition of the ability to pass a context and additional request options.

See UpdateTagsForResource for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ValidateConfigurationSettings

func (c *ElasticBeanstalk) ValidateConfigurationSettings(input *ValidateConfigurationSettingsInput) (*ValidateConfigurationSettingsOutput, error)

ValidateConfigurationSettings API operation for AWS Elastic Beanstalk.

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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Elastic Beanstalk's API operation ValidateConfigurationSettings for usage and error information.

Returned Error Codes:

  • ErrCodeInsufficientPrivilegesException "InsufficientPrivilegesException" The specified account does not have sufficient privileges for one or more AWS services.

  • ErrCodeTooManyBucketsException "TooManyBucketsException" The specified account has reached its limit of Amazon S3 buckets.

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/ValidateConfigurationSettings

Example

ElasticBeanstalk ValidateConfigurationSettings shared00

To validate configuration settings

The following operation validates a CloudWatch custom metrics config document:

{ svc := elasticbeanstalk.New(session.New()) input := &elasticbeanstalk.ValidateConfigurationSettingsInput{ ApplicationName: aws.String("my-app"), EnvironmentName: aws.String("my-env"), OptionSettings: []*elasticbeanstalk.ConfigurationOptionSetting{ { Namespace: aws.String("aws:elasticbeanstalk:healthreporting:system"), OptionName: aws.String("ConfigDocument"), Value: aws.String("{\"CloudWatchMetrics\": {\"Environment\": {\"ApplicationLatencyP99.9\": null,\"InstancesSevere\": 60,\"ApplicationLatencyP90\": 60,\"ApplicationLatencyP99\": null,\"ApplicationLatencyP95\": 60,\"InstancesUnknown\": 60,\"ApplicationLatencyP85\": 60,\"InstancesInfo\": null,\"ApplicationRequests2xx\": null,\"InstancesDegraded\": null,\"InstancesWarning\": 60,\"ApplicationLatencyP50\": 60,\"ApplicationRequestsTotal\": null,\"InstancesNoData\": null,\"InstancesPending\": 60,\"ApplicationLatencyP10\": null,\"ApplicationRequests5xx\": null,\"ApplicationLatencyP75\": null,\"InstancesOk\": 60,\"ApplicationRequests3xx\": null,\"ApplicationRequests4xx\": null},\"Instance\": {\"ApplicationLatencyP99.9\": null,\"ApplicationLatencyP90\": 60,\"ApplicationLatencyP99\": null,\"ApplicationLatencyP95\": null,\"ApplicationLatencyP85\": null,\"CPUUser\": 60,\"ApplicationRequests2xx\": null,\"CPUIdle\": null,\"ApplicationLatencyP50\": null,\"ApplicationRequestsTotal\": 60,\"RootFilesystemUtil\": null,\"LoadAverage1min\": null,\"CPUIrq\": null,\"CPUNice\": 60,\"CPUIowait\": 60,\"ApplicationLatencyP10\": null,\"LoadAverage5min\": null,\"ApplicationRequests5xx\": null,\"ApplicationLatencyP75\": 60,\"CPUSystem\": 60,\"ApplicationRequests3xx\": 60,\"ApplicationRequests4xx\": null,\"InstanceHealth\": null,\"CPUSoftirq\": 60}},\"Version\": 1}"), }, }, } result, err := svc.ValidateConfigurationSettings(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case elasticbeanstalk.ErrCodeInsufficientPrivilegesException: fmt.Println(elasticbeanstalk.ErrCodeInsufficientPrivilegesException, aerr.Error()) case elasticbeanstalk.ErrCodeTooManyBucketsException: fmt.Println(elasticbeanstalk.ErrCodeTooManyBucketsException, aerr.Error()) default: fmt.Println(aerr.Error()) } } else { fmt.Println(err.Error()) } return } fmt.Println(result) }

ValidateConfigurationSettingsRequest

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

ValidateConfigurationSettingsRequest generates a "aws/request.Request" representing the client's request for the ValidateConfigurationSettings operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ValidateConfigurationSettings for more information on using the ValidateConfigurationSettings API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ValidateConfigurationSettingsRequest method. req, resp := client.ValidateConfigurationSettingsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/ValidateConfigurationSettings

ValidateConfigurationSettingsWithContext

func (c *ElasticBeanstalk) ValidateConfigurationSettingsWithContext(ctx aws.Context, input *ValidateConfigurationSettingsInput, opts ...request.Option) (*ValidateConfigurationSettingsOutput, error)

ValidateConfigurationSettingsWithContext is the same as ValidateConfigurationSettings with the addition of the ability to pass a context and additional request options.

See ValidateConfigurationSettings for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

On this page: