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.

CreateApplicationVersionInput

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

type CreateApplicationVersionInput struct { ApplicationName *string `min:"1" type:"string" required:"true"` AutoCreateApplication *bool `type:"boolean"` BuildConfiguration *BuildConfiguration `type:"structure"` Description *string `type:"string"` Process *bool `type:"boolean"` SourceBuildInformation *SourceBuildInformation `type:"structure"` SourceBundle *S3Location `type:"structure"` VersionLabel *string `min:"1" type:"string" required:"true"` }

ApplicationName

Type: *string

The name of the application. If no application is found with this name, and AutoCreateApplication is false, returns an InvalidParameterValue error.

ApplicationName is a required field

AutoCreateApplication

Type: *bool

Set to true to create an application with the specified name if it doesn't already exist.

BuildConfiguration

Settings for an AWS CodeBuild build.

Description

Type: *string

Describes this version.

Process

Type: *bool

Pre-processes and validates the environment manifest (env.yaml) and configuration files (*.config files in the .ebextensions folder) in the source bundle. Validating configuration files can identify issues prior to deploying the application version to an environment.

You must turn processing on for application versions that you create using AWS CodeBuild or AWS CodeCommit. For application versions built from a source bundle in Amazon S3, processing is optional.

The Process option validates Elastic Beanstalk configuration files. It doesn't validate your application's configuration files, like proxy server or Docker configuration.

SourceBuildInformation

Location of the source code for an application version.

SourceBundle

The bucket and key of an item stored in Amazon S3.

VersionLabel

Type: *string

A label identifying this version.

Constraint: Must be unique per application. If an application version already exists with this label for the specified application, AWS Elastic Beanstalk returns an InvalidParameterValue error.

VersionLabel is a required field

Method

GoString

func (s CreateApplicationVersionInput) GoString() string

GoString returns the string representation

SetApplicationName

func (s *CreateApplicationVersionInput) SetApplicationName(v string) *CreateApplicationVersionInput

SetApplicationName sets the ApplicationName field's value.

SetAutoCreateApplication

func (s *CreateApplicationVersionInput) SetAutoCreateApplication(v bool) *CreateApplicationVersionInput

SetAutoCreateApplication sets the AutoCreateApplication field's value.

SetBuildConfiguration

func (s *CreateApplicationVersionInput) SetBuildConfiguration(v *BuildConfiguration) *CreateApplicationVersionInput

SetBuildConfiguration sets the BuildConfiguration field's value.

SetDescription

func (s *CreateApplicationVersionInput) SetDescription(v string) *CreateApplicationVersionInput

SetDescription sets the Description field's value.

SetProcess

func (s *CreateApplicationVersionInput) SetProcess(v bool) *CreateApplicationVersionInput

SetProcess sets the Process field's value.

SetSourceBuildInformation

func (s *CreateApplicationVersionInput) SetSourceBuildInformation(v *SourceBuildInformation) *CreateApplicationVersionInput

SetSourceBuildInformation sets the SourceBuildInformation field's value.

SetSourceBundle

func (s *CreateApplicationVersionInput) SetSourceBundle(v *S3Location) *CreateApplicationVersionInput

SetSourceBundle sets the SourceBundle field's value.

SetVersionLabel

func (s *CreateApplicationVersionInput) SetVersionLabel(v string) *CreateApplicationVersionInput

SetVersionLabel sets the VersionLabel field's value.

String

func (s CreateApplicationVersionInput) String() string

String returns the string representation

Validate

func (s *CreateApplicationVersionInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: