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.

CreateDeploymentInput

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

type CreateDeploymentInput struct { AppId *string `type:"string"` Command *DeploymentCommand `type:"structure" required:"true"` Comment *string `type:"string"` CustomJson *string `type:"string"` InstanceIds []*string `type:"list"` LayerIds []*string `type:"list"` StackId *string `type:"string" required:"true"` }

AppId

Type: *string

The app ID. This parameter is required for app deployments, but not for other deployment commands.

Command

Used to specify a stack or deployment command.

Comment

Type: *string

A user-defined comment.

CustomJson

Type: *string

A string that contains user-defined, custom JSON. It is used to override the corresponding default stack configuration JSON values. The string should be in the following format:

"{\"key1\": \"value1\", \"key2\": \"value2\",...}"

For more information about custom JSON, see Use Custom JSON to Modify the Stack Configuration Attributes (https://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-json.html).

InstanceIds

Type: []*string

The instance IDs for the deployment targets.

LayerIds

Type: []*string

The layer IDs for the deployment targets.

StackId

Type: *string

The stack ID.

StackId is a required field

Method

GoString

func (s CreateDeploymentInput) GoString() string

GoString returns the string representation

SetAppId

func (s *CreateDeploymentInput) SetAppId(v string) *CreateDeploymentInput

SetAppId sets the AppId field's value.

SetCommand

func (s *CreateDeploymentInput) SetCommand(v *DeploymentCommand) *CreateDeploymentInput

SetCommand sets the Command field's value.

SetComment

func (s *CreateDeploymentInput) SetComment(v string) *CreateDeploymentInput

SetComment sets the Comment field's value.

SetCustomJson

func (s *CreateDeploymentInput) SetCustomJson(v string) *CreateDeploymentInput

SetCustomJson sets the CustomJson field's value.

SetInstanceIds

func (s *CreateDeploymentInput) SetInstanceIds(v []*string) *CreateDeploymentInput

SetInstanceIds sets the InstanceIds field's value.

SetLayerIds

func (s *CreateDeploymentInput) SetLayerIds(v []*string) *CreateDeploymentInput

SetLayerIds sets the LayerIds field's value.

SetStackId

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

SetStackId sets the StackId field's value.

String

func (s CreateDeploymentInput) String() string

String returns the string representation

Validate

func (s *CreateDeploymentInput) Validate() error

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

On this page: