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.

CreateAppInput

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

type CreateAppInput struct { AppSource *Source `type:"structure"` Attributes map[string]*string `type:"map"` DataSources []*DataSource `type:"list"` Description *string `type:"string"` Domains []*string `type:"list"` EnableSsl *bool `type:"boolean"` Environment []*EnvironmentVariable `type:"list"` Name *string `type:"string" required:"true"` Shortname *string `type:"string"` SslConfiguration *SslConfiguration `type:"structure"` StackId *string `type:"string" required:"true"` Type *string `type:"string" required:"true" enum:"AppType"` }

AppSource

Contains the information required to retrieve an app or cookbook from a repository. For more information, see Creating Apps (https://docs.aws.amazon.com/opsworks/latest/userguide/workingapps-creating.html) or Custom Recipes and Cookbooks (https://docs.aws.amazon.com/opsworks/latest/userguide/workingcookbook.html).

Attributes

Type: map[string]*string

One or more user-defined key/value pairs to be added to the stack attributes.

DataSources

Describes an app's data source.

Description

Type: *string

A description of the app.

Domains

Type: []*string

The app virtual host settings, with multiple domains separated by commas. For example: 'www.example.com, example.com'

EnableSsl

Type: *bool

Whether to enable SSL for the app.

Environment

Represents an app's environment variable.

Name

Type: *string

The app name.

Name is a required field

Shortname

Type: *string

The app's short name.

SslConfiguration

Describes an app's SSL configuration.

StackId

Type: *string

The stack ID.

StackId is a required field

Type

Type: *string

The app type. Each supported type is associated with a particular layer. For example, PHP applications are associated with a PHP layer. AWS OpsWorks Stacks deploys an application to those instances that are members of the corresponding layer. If your app isn't one of the standard types, or you prefer to implement your own Deploy recipes, specify other.

Type is a required field

Method

GoString

func (s CreateAppInput) GoString() string

GoString returns the string representation

SetAppSource

func (s *CreateAppInput) SetAppSource(v *Source) *CreateAppInput

SetAppSource sets the AppSource field's value.

SetAttributes

func (s *CreateAppInput) SetAttributes(v map[string]*string) *CreateAppInput

SetAttributes sets the Attributes field's value.

SetDataSources

func (s *CreateAppInput) SetDataSources(v []*DataSource) *CreateAppInput

SetDataSources sets the DataSources field's value.

SetDescription

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

SetDescription sets the Description field's value.

SetDomains

func (s *CreateAppInput) SetDomains(v []*string) *CreateAppInput

SetDomains sets the Domains field's value.

SetEnableSsl

func (s *CreateAppInput) SetEnableSsl(v bool) *CreateAppInput

SetEnableSsl sets the EnableSsl field's value.

SetEnvironment

func (s *CreateAppInput) SetEnvironment(v []*EnvironmentVariable) *CreateAppInput

SetEnvironment sets the Environment field's value.

SetName

func (s *CreateAppInput) SetName(v string) *CreateAppInput

SetName sets the Name field's value.

SetShortname

func (s *CreateAppInput) SetShortname(v string) *CreateAppInput

SetShortname sets the Shortname field's value.

SetSslConfiguration

func (s *CreateAppInput) SetSslConfiguration(v *SslConfiguration) *CreateAppInput

SetSslConfiguration sets the SslConfiguration field's value.

SetStackId

func (s *CreateAppInput) SetStackId(v string) *CreateAppInput

SetStackId sets the StackId field's value.

SetType

func (s *CreateAppInput) SetType(v string) *CreateAppInput

SetType sets the Type field's value.

String

func (s CreateAppInput) String() string

String returns the string representation

Validate

func (s *CreateAppInput) Validate() error

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

On this page: