opsworks

package
v1.4.16-0...-c0d7d32 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2016 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package opsworks provides a client for AWS OpsWorks.

Index

Examples

Constants

View Source
const (
	// AppAttributesKeysDocumentRoot is a AppAttributesKeys enum value
	AppAttributesKeysDocumentRoot = "DocumentRoot"

	// AppAttributesKeysRailsEnv is a AppAttributesKeys enum value
	AppAttributesKeysRailsEnv = "RailsEnv"

	// AppAttributesKeysAutoBundleOnDeploy is a AppAttributesKeys enum value
	AppAttributesKeysAutoBundleOnDeploy = "AutoBundleOnDeploy"

	// AppAttributesKeysAwsFlowRubySettings is a AppAttributesKeys enum value
	AppAttributesKeysAwsFlowRubySettings = "AwsFlowRubySettings"
)
View Source
const (
	// AppTypeAwsFlowRuby is a AppType enum value
	AppTypeAwsFlowRuby = "aws-flow-ruby"

	// AppTypeJava is a AppType enum value
	AppTypeJava = "java"

	// AppTypeRails is a AppType enum value
	AppTypeRails = "rails"

	// AppTypePhp is a AppType enum value
	AppTypePhp = "php"

	// AppTypeNodejs is a AppType enum value
	AppTypeNodejs = "nodejs"

	// AppTypeStatic is a AppType enum value
	AppTypeStatic = "static"

	// AppTypeOther is a AppType enum value
	AppTypeOther = "other"
)
View Source
const (
	// ArchitectureX8664 is a Architecture enum value
	ArchitectureX8664 = "x86_64"

	// ArchitectureI386 is a Architecture enum value
	ArchitectureI386 = "i386"
)
View Source
const (
	// AutoScalingTypeLoad is a AutoScalingType enum value
	AutoScalingTypeLoad = "load"

	// AutoScalingTypeTimer is a AutoScalingType enum value
	AutoScalingTypeTimer = "timer"
)
View Source
const (
	// DeploymentCommandNameInstallDependencies is a DeploymentCommandName enum value
	DeploymentCommandNameInstallDependencies = "install_dependencies"

	// DeploymentCommandNameUpdateDependencies is a DeploymentCommandName enum value
	DeploymentCommandNameUpdateDependencies = "update_dependencies"

	// DeploymentCommandNameUpdateCustomCookbooks is a DeploymentCommandName enum value
	DeploymentCommandNameUpdateCustomCookbooks = "update_custom_cookbooks"

	// DeploymentCommandNameExecuteRecipes is a DeploymentCommandName enum value
	DeploymentCommandNameExecuteRecipes = "execute_recipes"

	// DeploymentCommandNameConfigure is a DeploymentCommandName enum value
	DeploymentCommandNameConfigure = "configure"

	// DeploymentCommandNameSetup is a DeploymentCommandName enum value
	DeploymentCommandNameSetup = "setup"

	// DeploymentCommandNameDeploy is a DeploymentCommandName enum value
	DeploymentCommandNameDeploy = "deploy"

	// DeploymentCommandNameRollback is a DeploymentCommandName enum value
	DeploymentCommandNameRollback = "rollback"

	// DeploymentCommandNameStart is a DeploymentCommandName enum value
	DeploymentCommandNameStart = "start"

	// DeploymentCommandNameStop is a DeploymentCommandName enum value
	DeploymentCommandNameStop = "stop"

	// DeploymentCommandNameRestart is a DeploymentCommandName enum value
	DeploymentCommandNameRestart = "restart"

	// DeploymentCommandNameUndeploy is a DeploymentCommandName enum value
	DeploymentCommandNameUndeploy = "undeploy"
)
View Source
const (
	// LayerAttributesKeysEcsClusterArn is a LayerAttributesKeys enum value
	LayerAttributesKeysEcsClusterArn = "EcsClusterArn"

	// LayerAttributesKeysEnableHaproxyStats is a LayerAttributesKeys enum value
	LayerAttributesKeysEnableHaproxyStats = "EnableHaproxyStats"

	// LayerAttributesKeysHaproxyStatsUrl is a LayerAttributesKeys enum value
	LayerAttributesKeysHaproxyStatsUrl = "HaproxyStatsUrl"

	// LayerAttributesKeysHaproxyStatsUser is a LayerAttributesKeys enum value
	LayerAttributesKeysHaproxyStatsUser = "HaproxyStatsUser"

	// LayerAttributesKeysHaproxyStatsPassword is a LayerAttributesKeys enum value
	LayerAttributesKeysHaproxyStatsPassword = "HaproxyStatsPassword"

	// LayerAttributesKeysHaproxyHealthCheckUrl is a LayerAttributesKeys enum value
	LayerAttributesKeysHaproxyHealthCheckUrl = "HaproxyHealthCheckUrl"

	// LayerAttributesKeysHaproxyHealthCheckMethod is a LayerAttributesKeys enum value
	LayerAttributesKeysHaproxyHealthCheckMethod = "HaproxyHealthCheckMethod"

	// LayerAttributesKeysMysqlRootPassword is a LayerAttributesKeys enum value
	LayerAttributesKeysMysqlRootPassword = "MysqlRootPassword"

	// LayerAttributesKeysMysqlRootPasswordUbiquitous is a LayerAttributesKeys enum value
	LayerAttributesKeysMysqlRootPasswordUbiquitous = "MysqlRootPasswordUbiquitous"

	// LayerAttributesKeysGangliaUrl is a LayerAttributesKeys enum value
	LayerAttributesKeysGangliaUrl = "GangliaUrl"

	// LayerAttributesKeysGangliaUser is a LayerAttributesKeys enum value
	LayerAttributesKeysGangliaUser = "GangliaUser"

	// LayerAttributesKeysGangliaPassword is a LayerAttributesKeys enum value
	LayerAttributesKeysGangliaPassword = "GangliaPassword"

	// LayerAttributesKeysMemcachedMemory is a LayerAttributesKeys enum value
	LayerAttributesKeysMemcachedMemory = "MemcachedMemory"

	// LayerAttributesKeysNodejsVersion is a LayerAttributesKeys enum value
	LayerAttributesKeysNodejsVersion = "NodejsVersion"

	// LayerAttributesKeysRubyVersion is a LayerAttributesKeys enum value
	LayerAttributesKeysRubyVersion = "RubyVersion"

	// LayerAttributesKeysRubygemsVersion is a LayerAttributesKeys enum value
	LayerAttributesKeysRubygemsVersion = "RubygemsVersion"

	// LayerAttributesKeysManageBundler is a LayerAttributesKeys enum value
	LayerAttributesKeysManageBundler = "ManageBundler"

	// LayerAttributesKeysBundlerVersion is a LayerAttributesKeys enum value
	LayerAttributesKeysBundlerVersion = "BundlerVersion"

	// LayerAttributesKeysRailsStack is a LayerAttributesKeys enum value
	LayerAttributesKeysRailsStack = "RailsStack"

	// LayerAttributesKeysPassengerVersion is a LayerAttributesKeys enum value
	LayerAttributesKeysPassengerVersion = "PassengerVersion"

	// LayerAttributesKeysJvm is a LayerAttributesKeys enum value
	LayerAttributesKeysJvm = "Jvm"

	// LayerAttributesKeysJvmVersion is a LayerAttributesKeys enum value
	LayerAttributesKeysJvmVersion = "JvmVersion"

	// LayerAttributesKeysJvmOptions is a LayerAttributesKeys enum value
	LayerAttributesKeysJvmOptions = "JvmOptions"

	// LayerAttributesKeysJavaAppServer is a LayerAttributesKeys enum value
	LayerAttributesKeysJavaAppServer = "JavaAppServer"

	// LayerAttributesKeysJavaAppServerVersion is a LayerAttributesKeys enum value
	LayerAttributesKeysJavaAppServerVersion = "JavaAppServerVersion"
)
View Source
const (
	// LayerTypeAwsFlowRuby is a LayerType enum value
	LayerTypeAwsFlowRuby = "aws-flow-ruby"

	// LayerTypeEcsCluster is a LayerType enum value
	LayerTypeEcsCluster = "ecs-cluster"

	// LayerTypeJavaApp is a LayerType enum value
	LayerTypeJavaApp = "java-app"

	// LayerTypeLb is a LayerType enum value
	LayerTypeLb = "lb"

	// LayerTypeWeb is a LayerType enum value
	LayerTypeWeb = "web"

	// LayerTypePhpApp is a LayerType enum value
	LayerTypePhpApp = "php-app"

	// LayerTypeRailsApp is a LayerType enum value
	LayerTypeRailsApp = "rails-app"

	// LayerTypeNodejsApp is a LayerType enum value
	LayerTypeNodejsApp = "nodejs-app"

	// LayerTypeMemcached is a LayerType enum value
	LayerTypeMemcached = "memcached"

	// LayerTypeDbMaster is a LayerType enum value
	LayerTypeDbMaster = "db-master"

	// LayerTypeMonitoringMaster is a LayerType enum value
	LayerTypeMonitoringMaster = "monitoring-master"

	// LayerTypeCustom is a LayerType enum value
	LayerTypeCustom = "custom"
)
View Source
const (
	// RootDeviceTypeEbs is a RootDeviceType enum value
	RootDeviceTypeEbs = "ebs"

	// RootDeviceTypeInstanceStore is a RootDeviceType enum value
	RootDeviceTypeInstanceStore = "instance-store"
)
View Source
const (
	// SourceTypeGit is a SourceType enum value
	SourceTypeGit = "git"

	// SourceTypeSvn is a SourceType enum value
	SourceTypeSvn = "svn"

	// SourceTypeArchive is a SourceType enum value
	SourceTypeArchive = "archive"

	// SourceTypeS3 is a SourceType enum value
	SourceTypeS3 = "s3"
)
View Source
const (
	// VirtualizationTypeParavirtual is a VirtualizationType enum value
	VirtualizationTypeParavirtual = "paravirtual"

	// VirtualizationTypeHvm is a VirtualizationType enum value
	VirtualizationTypeHvm = "hvm"
)
View Source
const (
	// VolumeTypeGp2 is a VolumeType enum value
	VolumeTypeGp2 = "gp2"

	// VolumeTypeIo1 is a VolumeType enum value
	VolumeTypeIo1 = "io1"

	// VolumeTypeStandard is a VolumeType enum value
	VolumeTypeStandard = "standard"
)
View Source
const ServiceName = "opsworks"

A ServiceName is the name of the service the client will make API calls to.

View Source
const (
	// StackAttributesKeysColor is a StackAttributesKeys enum value
	StackAttributesKeysColor = "Color"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentVersion

type AgentVersion struct {

	// The configuration manager.
	ConfigurationManager *StackConfigurationManager `type:"structure"`

	// The agent version.
	Version *string `type:"string"`
	// contains filtered or unexported fields
}

Describes an agent version.

func (AgentVersion) GoString

func (s AgentVersion) GoString() string

GoString returns the string representation

func (AgentVersion) String

func (s AgentVersion) String() string

String returns the string representation

type App

type App struct {

	// The app ID.
	AppId *string `type:"string"`

	// A Source object that describes the app repository.
	AppSource *Source `type:"structure"`

	// The stack attributes.
	Attributes map[string]*string `type:"map"`

	// When the app was created.
	CreatedAt *string `type:"string"`

	// The app's data sources.
	DataSources []*DataSource `type:"list"`

	// A description of the app.
	Description *string `type:"string"`

	// The app vhost settings with multiple domains separated by commas. For example:
	// 'www.example.com, example.com'
	Domains []*string `type:"list"`

	// Whether to enable SSL for the app.
	EnableSsl *bool `type:"boolean"`

	// An array of EnvironmentVariable objects that specify environment variables
	// to be associated with the app. After you deploy the app, these variables
	// are defined on the associated app server instances. For more information,
	// see  Environment Variables (http://docs.aws.amazon.com/opsworks/latest/userguide/workingapps-creating.html#workingapps-creating-environment).
	//
	//  There is no specific limit on the number of environment variables. However,
	// the size of the associated data structure - which includes the variable names,
	// values, and protected flag values - cannot exceed 10 KB (10240 Bytes). This
	// limit should accommodate most if not all use cases, but if you do exceed
	// it, you will cause an exception (API) with an "Environment: is too large
	// (maximum is 10KB)" message.
	Environment []*EnvironmentVariable `type:"list"`

	// The app name.
	Name *string `type:"string"`

	// The app's short name.
	Shortname *string `type:"string"`

	// An SslConfiguration object with the SSL configuration.
	SslConfiguration *SslConfiguration `type:"structure"`

	// The app stack ID.
	StackId *string `type:"string"`

	// The app type.
	Type *string `type:"string" enum:"AppType"`
	// contains filtered or unexported fields
}

A description of the app.

func (App) GoString

func (s App) GoString() string

GoString returns the string representation

func (App) String

func (s App) String() string

String returns the string representation

type AssignInstanceInput

type AssignInstanceInput struct {

	// The instance ID.
	//
	// InstanceId is a required field
	InstanceId *string `type:"string" required:"true"`

	// The layer ID, which must correspond to a custom layer. You cannot assign
	// a registered instance to a built-in layer.
	//
	// LayerIds is a required field
	LayerIds []*string `type:"list" required:"true"`
	// contains filtered or unexported fields
}

func (AssignInstanceInput) GoString

func (s AssignInstanceInput) GoString() string

GoString returns the string representation

func (AssignInstanceInput) String

func (s AssignInstanceInput) String() string

String returns the string representation

func (*AssignInstanceInput) Validate

func (s *AssignInstanceInput) Validate() error

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

type AssignInstanceOutput

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

func (AssignInstanceOutput) GoString

func (s AssignInstanceOutput) GoString() string

GoString returns the string representation

func (AssignInstanceOutput) String

func (s AssignInstanceOutput) String() string

String returns the string representation

type AssignVolumeInput

type AssignVolumeInput struct {

	// The instance ID.
	InstanceId *string `type:"string"`

	// The volume ID.
	//
	// VolumeId is a required field
	VolumeId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (AssignVolumeInput) GoString

func (s AssignVolumeInput) GoString() string

GoString returns the string representation

func (AssignVolumeInput) String

func (s AssignVolumeInput) String() string

String returns the string representation

func (*AssignVolumeInput) Validate

func (s *AssignVolumeInput) Validate() error

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

type AssignVolumeOutput

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

func (AssignVolumeOutput) GoString

func (s AssignVolumeOutput) GoString() string

GoString returns the string representation

func (AssignVolumeOutput) String

func (s AssignVolumeOutput) String() string

String returns the string representation

type AssociateElasticIpInput

type AssociateElasticIpInput struct {

	// The Elastic IP address.
	//
	// ElasticIp is a required field
	ElasticIp *string `type:"string" required:"true"`

	// The instance ID.
	InstanceId *string `type:"string"`
	// contains filtered or unexported fields
}

func (AssociateElasticIpInput) GoString

func (s AssociateElasticIpInput) GoString() string

GoString returns the string representation

func (AssociateElasticIpInput) String

func (s AssociateElasticIpInput) String() string

String returns the string representation

func (*AssociateElasticIpInput) Validate

func (s *AssociateElasticIpInput) Validate() error

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

type AssociateElasticIpOutput

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

func (AssociateElasticIpOutput) GoString

func (s AssociateElasticIpOutput) GoString() string

GoString returns the string representation

func (AssociateElasticIpOutput) String

func (s AssociateElasticIpOutput) String() string

String returns the string representation

type AttachElasticLoadBalancerInput

type AttachElasticLoadBalancerInput struct {

	// The Elastic Load Balancing instance's name.
	//
	// ElasticLoadBalancerName is a required field
	ElasticLoadBalancerName *string `type:"string" required:"true"`

	// The ID of the layer that the Elastic Load Balancing instance is to be attached
	// to.
	//
	// LayerId is a required field
	LayerId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (AttachElasticLoadBalancerInput) GoString

GoString returns the string representation

func (AttachElasticLoadBalancerInput) String

String returns the string representation

func (*AttachElasticLoadBalancerInput) Validate

func (s *AttachElasticLoadBalancerInput) Validate() error

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

type AttachElasticLoadBalancerOutput

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

func (AttachElasticLoadBalancerOutput) GoString

GoString returns the string representation

func (AttachElasticLoadBalancerOutput) String

String returns the string representation

type AutoScalingThresholds

type AutoScalingThresholds struct {

	// Custom Cloudwatch auto scaling alarms, to be used as thresholds. This parameter
	// takes a list of up to five alarm names, which are case sensitive and must
	// be in the same region as the stack.
	//
	//  To use custom alarms, you must update your service role to allow cloudwatch:DescribeAlarms.
	// You can either have AWS OpsWorks update the role for you when you first use
	// this feature or you can edit the role manually. For more information, see
	// Allowing AWS OpsWorks to Act on Your Behalf (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-servicerole.html).
	Alarms []*string `type:"list"`

	// The CPU utilization threshold, as a percent of the available CPU. A value
	// of -1 disables the threshold.
	CpuThreshold *float64 `type:"double"`

	// The amount of time (in minutes) after a scaling event occurs that AWS OpsWorks
	// should ignore metrics and suppress additional scaling events. For example,
	// AWS OpsWorks adds new instances following an upscaling event but the instances
	// won't start reducing the load until they have been booted and configured.
	// There is no point in raising additional scaling events during that operation,
	// which typically takes several minutes. IgnoreMetricsTime allows you to direct
	// AWS OpsWorks to suppress scaling events long enough to get the new instances
	// online.
	IgnoreMetricsTime *int64 `min:"1" type:"integer"`

	// The number of instances to add or remove when the load exceeds a threshold.
	InstanceCount *int64 `type:"integer"`

	// The load threshold. A value of -1 disables the threshold. For more information
	// about how load is computed, see Load (computing) (http://en.wikipedia.org/wiki/Load_%28computing%29).
	LoadThreshold *float64 `type:"double"`

	// The memory utilization threshold, as a percent of the available memory. A
	// value of -1 disables the threshold.
	MemoryThreshold *float64 `type:"double"`

	// The amount of time, in minutes, that the load must exceed a threshold before
	// more instances are added or removed.
	ThresholdsWaitTime *int64 `min:"1" type:"integer"`
	// contains filtered or unexported fields
}

Describes a load-based auto scaling upscaling or downscaling threshold configuration, which specifies when AWS OpsWorks starts or stops load-based instances.

func (AutoScalingThresholds) GoString

func (s AutoScalingThresholds) GoString() string

GoString returns the string representation

func (AutoScalingThresholds) String

func (s AutoScalingThresholds) String() string

String returns the string representation

func (*AutoScalingThresholds) Validate

func (s *AutoScalingThresholds) Validate() error

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

type BlockDeviceMapping

type BlockDeviceMapping struct {

	// The device name that is exposed to the instance, such as /dev/sdh. For the
	// root device, you can use the explicit device name or you can set this parameter
	// to ROOT_DEVICE and AWS OpsWorks will provide the correct device name.
	DeviceName *string `type:"string"`

	// An EBSBlockDevice that defines how to configure an Amazon EBS volume when
	// the instance is launched.
	Ebs *EbsBlockDevice `type:"structure"`

	// Suppresses the specified device included in the AMI's block device mapping.
	NoDevice *string `type:"string"`

	// The virtual device name. For more information, see BlockDeviceMapping (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_BlockDeviceMapping.html).
	VirtualName *string `type:"string"`
	// contains filtered or unexported fields
}

Describes a block device mapping. This data type maps directly to the Amazon EC2 BlockDeviceMapping (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_BlockDeviceMapping.html) data type.

func (BlockDeviceMapping) GoString

func (s BlockDeviceMapping) GoString() string

GoString returns the string representation

func (BlockDeviceMapping) String

func (s BlockDeviceMapping) String() string

String returns the string representation

type ChefConfiguration

type ChefConfiguration struct {

	// The Berkshelf version.
	BerkshelfVersion *string `type:"string"`

	// Whether to enable Berkshelf.
	ManageBerkshelf *bool `type:"boolean"`
	// contains filtered or unexported fields
}

Describes the Chef configuration.

func (ChefConfiguration) GoString

func (s ChefConfiguration) GoString() string

GoString returns the string representation

func (ChefConfiguration) String

func (s ChefConfiguration) String() string

String returns the string representation

type CloneStackInput

type CloneStackInput struct {

	// The default AWS OpsWorks agent version. You have the following options:
	//
	//   Auto-update - Set this parameter to LATEST. AWS OpsWorks automatically
	// installs new agent versions on the stack's instances as soon as they are
	// available.
	//
	//   Fixed version - Set this parameter to your preferred agent version. To
	// update the agent version, you must edit the stack configuration and specify
	// a new version. AWS OpsWorks then automatically installs that version on the
	// stack's instances.
	//
	//   The default setting is LATEST. To specify an agent version, you must use
	// the complete version number, not the abbreviated number shown on the console.
	// For a list of available agent version numbers, call DescribeAgentVersions.
	//
	//  You can also specify an agent version when you create or update an instance,
	// which overrides the stack's default setting.
	AgentVersion *string `type:"string"`

	// A list of stack attributes and values as key/value pairs to be added to the
	// cloned stack.
	Attributes map[string]*string `type:"map"`

	// A ChefConfiguration object that specifies whether to enable Berkshelf and
	// the Berkshelf version on Chef 11.10 stacks. For more information, see Create
	// a New Stack (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-creating.html).
	ChefConfiguration *ChefConfiguration `type:"structure"`

	// A list of source stack app IDs to be included in the cloned stack.
	CloneAppIds []*string `type:"list"`

	// Whether to clone the source stack's permissions.
	ClonePermissions *bool `type:"boolean"`

	// The configuration manager. When you clone a stack we recommend that you use
	// the configuration manager to specify the Chef version: 12, 11.10, or 11.4
	// for Linux stacks, or 12.2 for Windows stacks. The default value for Linux
	// stacks is currently 12.
	ConfigurationManager *StackConfigurationManager `type:"structure"`

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

	// 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 on custom JSON, see Use Custom JSON to Modify the Stack
	// Configuration Attributes (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-json.html)
	CustomJson *string `type:"string"`

	// The cloned stack's default Availability Zone, which must be in the specified
	// region. For more information, see Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html).
	// If you also specify a value for DefaultSubnetId, the subnet must be in the
	// same zone. For more information, see the VpcId parameter description.
	DefaultAvailabilityZone *string `type:"string"`

	// The Amazon Resource Name (ARN) of an IAM profile that is the default profile
	// for all of the stack's EC2 instances. For more information about IAM ARNs,
	// see Using Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html).
	DefaultInstanceProfileArn *string `type:"string"`

	// The stack's operating system, which must be set to one of the following.
	//
	//   A supported Linux operating system: An Amazon Linux version, such as Amazon
	// Linux 2016.03, Amazon Linux 2015.09, or Amazon Linux 2015.03.
	//
	//   A supported Ubuntu operating system, such as Ubuntu 16.04 LTS, Ubuntu
	// 14.04 LTS, or Ubuntu 12.04 LTS.
	//
	//    CentOS 7
	//
	//    Red Hat Enterprise Linux 7
	//
	//    Microsoft Windows Server 2012 R2 Base, Microsoft Windows Server 2012
	// R2 with SQL Server Express, Microsoft Windows Server 2012 R2 with SQL Server
	// Standard, or Microsoft Windows Server 2012 R2 with SQL Server Web.
	//
	//   A custom AMI: Custom. You specify the custom AMI you want to use when
	// you create instances. For more information on how to use custom AMIs with
	// OpsWorks, see Using Custom AMIs (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-custom-ami.html).
	//
	//   The default option is the parent stack's operating system. For more information
	// on the supported operating systems, see AWS OpsWorks Operating Systems (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-os.html).
	//
	//  You can specify a different Linux operating system for the cloned stack,
	// but you cannot change from Linux to Windows or Windows to Linux.
	DefaultOs *string `type:"string"`

	// The default root device type. This value is used by default for all instances
	// in the cloned stack, but you can override it when you create an instance.
	// For more information, see Storage for the Root Device (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ComponentsAMIs.html#storage-for-the-root-device).
	DefaultRootDeviceType *string `type:"string" enum:"RootDeviceType"`

	// A default Amazon EC2 key pair name. The default value is none. If you specify
	// a key pair name, AWS OpsWorks installs the public key on the instance and
	// you can use the private key with an SSH client to log in to the instance.
	// For more information, see  Using SSH to Communicate with an Instance (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-ssh.html)
	// and  Managing SSH Access (http://docs.aws.amazon.com/opsworks/latest/userguide/security-ssh-access.html).
	// You can override this setting by specifying a different key pair, or no key
	// pair, when you  create an instance (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-add.html).
	DefaultSshKeyName *string `type:"string"`

	// The stack's default VPC subnet ID. This parameter is required if you specify
	// a value for the VpcId parameter. All instances are launched into this subnet
	// unless you specify otherwise when you create the instance. If you also specify
	// a value for DefaultAvailabilityZone, the subnet must be in that zone. For
	// information on default values and when this parameter is required, see the
	// VpcId parameter description.
	DefaultSubnetId *string `type:"string"`

	// The stack's host name theme, with spaces are replaced by underscores. The
	// theme is used to generate host names for the stack's instances. By default,
	// HostnameTheme is set to Layer_Dependent, which creates host names by appending
	// integers to the layer's short name. The other themes are:
	//
	//    Baked_Goods
	//
	//    Clouds
	//
	//    Europe_Cities
	//
	//    Fruits
	//
	//    Greek_Deities
	//
	//    Legendary_creatures_from_Japan
	//
	//    Planets_and_Moons
	//
	//    Roman_Deities
	//
	//    Scottish_Islands
	//
	//    US_Cities
	//
	//    Wild_Cats
	//
	//   To obtain a generated host name, call GetHostNameSuggestion, which returns
	// a host name based on the current theme.
	HostnameTheme *string `type:"string"`

	// The cloned stack name.
	Name *string `type:"string"`

	// The cloned stack AWS region, such as "ap-northeast-2". For more information
	// about AWS regions, see Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html).
	Region *string `type:"string"`

	// The stack AWS Identity and Access Management (IAM) role, which allows AWS
	// OpsWorks to work with AWS resources on your behalf. You must set this parameter
	// to the Amazon Resource Name (ARN) for an existing IAM role. If you create
	// a stack by using the AWS OpsWorks console, it creates the role for you. You
	// can obtain an existing stack's IAM ARN programmatically by calling DescribePermissions.
	// For more information about IAM ARNs, see Using Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html).
	//
	//  You must set this parameter to a valid service role ARN or the action will
	// fail; there is no default value. You can specify the source stack's service
	// role ARN, if you prefer, but you must do so explicitly.
	//
	// ServiceRoleArn is a required field
	ServiceRoleArn *string `type:"string" required:"true"`

	// The source stack ID.
	//
	// SourceStackId is a required field
	SourceStackId *string `type:"string" required:"true"`

	// Whether to use custom cookbooks.
	UseCustomCookbooks *bool `type:"boolean"`

	// Whether to associate the AWS OpsWorks built-in security groups with the stack's
	// layers.
	//
	// AWS OpsWorks provides a standard set of built-in security groups, one for
	// each layer, which are associated with layers by default. With UseOpsworksSecurityGroups
	// you can instead provide your own custom security groups. UseOpsworksSecurityGroups
	// has the following settings:
	//
	//   True - AWS OpsWorks automatically associates the appropriate built-in
	// security group with each layer (default setting). You can associate additional
	// security groups with a layer after you create it but you cannot delete the
	// built-in security group.
	//
	//   False - AWS OpsWorks does not associate built-in security groups with
	// layers. You must create appropriate Amazon Elastic Compute Cloud (Amazon
	// EC2) security groups and associate a security group with each layer that
	// you create. However, you can still manually associate a built-in security
	// group with a layer on creation; custom security groups are required only
	// for those layers that need custom settings.
	//
	//   For more information, see Create a New Stack (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-creating.html).
	UseOpsworksSecurityGroups *bool `type:"boolean"`

	// The ID of the VPC that the cloned stack is to be launched into. It must be
	// in the specified region. All instances are launched into this VPC, and you
	// cannot change the ID later.
	//
	//   If your account supports EC2 Classic, the default value is no VPC.
	//
	//   If your account does not support EC2 Classic, the default value is the
	// default VPC for the specified region.
	//
	//   If the VPC ID corresponds to a default VPC and you have specified either
	// the DefaultAvailabilityZone or the DefaultSubnetId parameter only, AWS OpsWorks
	// infers the value of the other parameter. If you specify neither parameter,
	// AWS OpsWorks sets these parameters to the first valid Availability Zone for
	// the specified region and the corresponding default VPC subnet ID, respectively.
	//
	// If you specify a nondefault VPC ID, note the following:
	//
	//   It must belong to a VPC in your account that is in the specified region.
	//
	//   You must specify a value for DefaultSubnetId.
	//
	//   For more information on how to use AWS OpsWorks with a VPC, see Running
	// a Stack in a VPC (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-vpc.html).
	// For more information on default VPC and EC2 Classic, see Supported Platforms
	// (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-supported-platforms.html).
	VpcId *string `type:"string"`
	// contains filtered or unexported fields
}

func (CloneStackInput) GoString

func (s CloneStackInput) GoString() string

GoString returns the string representation

func (CloneStackInput) String

func (s CloneStackInput) String() string

String returns the string representation

func (*CloneStackInput) Validate

func (s *CloneStackInput) Validate() error

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

type CloneStackOutput

type CloneStackOutput struct {

	// The cloned stack ID.
	StackId *string `type:"string"`
	// contains filtered or unexported fields
}

Contains the response to a CloneStack request.

func (CloneStackOutput) GoString

func (s CloneStackOutput) GoString() string

GoString returns the string representation

func (CloneStackOutput) String

func (s CloneStackOutput) String() string

String returns the string representation

type Command

type Command struct {

	// Date and time when the command was acknowledged.
	AcknowledgedAt *string `type:"string"`

	// The command ID.
	CommandId *string `type:"string"`

	// Date when the command completed.
	CompletedAt *string `type:"string"`

	// Date and time when the command was run.
	CreatedAt *string `type:"string"`

	// The command deployment ID.
	DeploymentId *string `type:"string"`

	// The command exit code.
	ExitCode *int64 `type:"integer"`

	// The ID of the instance where the command was executed.
	InstanceId *string `type:"string"`

	// The URL of the command log.
	LogUrl *string `type:"string"`

	// The command status:
	//
	//   failed
	//
	//   successful
	//
	//   skipped
	//
	//   pending
	Status *string `type:"string"`

	// The command type:
	//
	//    deploy
	//
	//    rollback
	//
	//    start
	//
	//    stop
	//
	//    restart
	//
	//    undeploy
	//
	//    update_dependencies
	//
	//    install_dependencies
	//
	//    update_custom_cookbooks
	//
	//    execute_recipes
	Type *string `type:"string"`
	// contains filtered or unexported fields
}

Describes a command.

func (Command) GoString

func (s Command) GoString() string

GoString returns the string representation

func (Command) String

func (s Command) String() string

String returns the string representation

type CreateAppInput

type CreateAppInput struct {

	// A Source object that specifies the app repository.
	AppSource *Source `type:"structure"`

	// One or more user-defined key/value pairs to be added to the stack attributes.
	Attributes map[string]*string `type:"map"`

	// The app's data source.
	DataSources []*DataSource `type:"list"`

	// A description of the app.
	Description *string `type:"string"`

	// The app virtual host settings, with multiple domains separated by commas.
	// For example: 'www.example.com, example.com'
	Domains []*string `type:"list"`

	// Whether to enable SSL for the app.
	EnableSsl *bool `type:"boolean"`

	// An array of EnvironmentVariable objects that specify environment variables
	// to be associated with the app. After you deploy the app, these variables
	// are defined on the associated app server instance. For more information,
	// see  Environment Variables (http://docs.aws.amazon.com/opsworks/latest/userguide/workingapps-creating.html#workingapps-creating-environment).
	//
	// There is no specific limit on the number of environment variables. However,
	// the size of the associated data structure - which includes the variables'
	// names, values, and protected flag values - cannot exceed 10 KB (10240 Bytes).
	// This limit should accommodate most if not all use cases. Exceeding it will
	// cause an exception with the message, "Environment: is too large (maximum
	// is 10KB)."
	//
	//  This parameter is supported only by Chef 11.10 stacks. If you have specified
	// one or more environment variables, you cannot modify the stack's Chef version.
	Environment []*EnvironmentVariable `type:"list"`

	// The app name.
	//
	// Name is a required field
	Name *string `type:"string" required:"true"`

	// The app's short name.
	Shortname *string `type:"string"`

	// An SslConfiguration object with the SSL configuration.
	SslConfiguration *SslConfiguration `type:"structure"`

	// The stack ID.
	//
	// StackId is a required field
	StackId *string `type:"string" required:"true"`

	// The app type. Each supported type is associated with a particular layer.
	// For example, PHP applications are associated with a PHP layer. AWS OpsWorks
	// 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
	Type *string `type:"string" required:"true" enum:"AppType"`
	// contains filtered or unexported fields
}

func (CreateAppInput) GoString

func (s CreateAppInput) GoString() string

GoString returns the string representation

func (CreateAppInput) String

func (s CreateAppInput) String() string

String returns the string representation

func (*CreateAppInput) Validate

func (s *CreateAppInput) Validate() error

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

type CreateAppOutput

type CreateAppOutput struct {

	// The app ID.
	AppId *string `type:"string"`
	// contains filtered or unexported fields
}

Contains the response to a CreateApp request.

func (CreateAppOutput) GoString

func (s CreateAppOutput) GoString() string

GoString returns the string representation

func (CreateAppOutput) String

func (s CreateAppOutput) String() string

String returns the string representation

type CreateDeploymentInput

type CreateDeploymentInput struct {

	// The app ID. This parameter is required for app deployments, but not for other
	// deployment commands.
	AppId *string `type:"string"`

	// A DeploymentCommand object that specifies the deployment command and any
	// associated arguments.
	//
	// Command is a required field
	Command *DeploymentCommand `type:"structure" required:"true"`

	// A user-defined comment.
	Comment *string `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 on custom JSON, see Use Custom JSON to Modify the Stack
	// Configuration Attributes (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-json.html).
	CustomJson *string `type:"string"`

	// The instance IDs for the deployment targets.
	InstanceIds []*string `type:"list"`

	// The layer IDs for the deployment targets.
	LayerIds []*string `type:"list"`

	// The stack ID.
	//
	// StackId is a required field
	StackId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (CreateDeploymentInput) GoString

func (s CreateDeploymentInput) GoString() string

GoString returns the string representation

func (CreateDeploymentInput) String

func (s CreateDeploymentInput) String() string

String returns the string representation

func (*CreateDeploymentInput) Validate

func (s *CreateDeploymentInput) Validate() error

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

type CreateDeploymentOutput

type CreateDeploymentOutput struct {

	// The deployment ID, which can be used with other requests to identify the
	// deployment.
	DeploymentId *string `type:"string"`
	// contains filtered or unexported fields
}

Contains the response to a CreateDeployment request.

func (CreateDeploymentOutput) GoString

func (s CreateDeploymentOutput) GoString() string

GoString returns the string representation

func (CreateDeploymentOutput) String

func (s CreateDeploymentOutput) String() string

String returns the string representation

type CreateInstanceInput

type CreateInstanceInput struct {

	// The default AWS OpsWorks agent version. You have the following options:
	//
	//    INHERIT - Use the stack's default agent version setting.
	//
	//    version_number - Use the specified agent version. This value overrides
	// the stack's default setting. To update the agent version, edit the instance
	// configuration and specify a new version. AWS OpsWorks then automatically
	// installs that version on the instance.
	//
	//   The default setting is INHERIT. To specify an agent version, you must
	// use the complete version number, not the abbreviated number shown on the
	// console. For a list of available agent version numbers, call DescribeAgentVersions.
	AgentVersion *string `type:"string"`

	// A custom AMI ID to be used to create the instance. The AMI should be based
	// on one of the supported operating systems. For more information, see Using
	// Custom AMIs (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-custom-ami.html).
	//
	//  If you specify a custom AMI, you must set Os to Custom.
	AmiId *string `type:"string"`

	// The instance architecture. The default option is x86_64. Instance types do
	// not necessarily support both architectures. For a list of the architectures
	// that are supported by the different instance types, see Instance Families
	// and Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html).
	Architecture *string `type:"string" enum:"Architecture"`

	// For load-based or time-based instances, the type. Windows stacks can use
	// only time-based instances.
	AutoScalingType *string `type:"string" enum:"AutoScalingType"`

	// The instance Availability Zone. For more information, see Regions and Endpoints
	// (http://docs.aws.amazon.com/general/latest/gr/rande.html).
	AvailabilityZone *string `type:"string"`

	// An array of BlockDeviceMapping objects that specify the instance's block
	// devices. For more information, see Block Device Mapping (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-device-mapping-concepts.html).
	// Note that block device mappings are not supported for custom AMIs.
	BlockDeviceMappings []*BlockDeviceMapping `type:"list"`

	// Whether to create an Amazon EBS-optimized instance.
	EbsOptimized *bool `type:"boolean"`

	// The instance host name.
	Hostname *string `type:"string"`

	// Whether to install operating system and package updates when the instance
	// boots. The default value is true. To control when updates are installed,
	// set this value to false. You must then update your instances manually by
	// using CreateDeployment to run the update_dependencies stack command or by
	// manually running yum (Amazon Linux) or apt-get (Ubuntu) on the instances.
	//
	//  We strongly recommend using the default value of true to ensure that your
	// instances have the latest security updates.
	InstallUpdatesOnBoot *bool `type:"boolean"`

	// The instance type, such as t2.micro. For a list of supported instance types,
	// open the stack in the console, choose Instances, and choose + Instance. The
	// Size list contains the currently supported types. For more information, see
	// Instance Families and Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html).
	// The parameter values that you use to specify the various types are in the
	// API Name column of the Available Instance Types table.
	//
	// InstanceType is a required field
	InstanceType *string `type:"string" required:"true"`

	// An array that contains the instance's layer IDs.
	//
	// LayerIds is a required field
	LayerIds []*string `type:"list" required:"true"`

	// The instance's operating system, which must be set to one of the following.
	//
	//   A supported Linux operating system: An Amazon Linux version, such as Amazon
	// Linux 2016.03, Amazon Linux 2015.09, or Amazon Linux 2015.03.
	//
	//   A supported Ubuntu operating system, such as Ubuntu 16.04 LTS, Ubuntu
	// 14.04 LTS, or Ubuntu 12.04 LTS.
	//
	//    CentOS 7
	//
	//    Red Hat Enterprise Linux 7
	//
	//   A supported Windows operating system, such as Microsoft Windows Server
	// 2012 R2 Base, Microsoft Windows Server 2012 R2 with SQL Server Express, Microsoft
	// Windows Server 2012 R2 with SQL Server Standard, or Microsoft Windows Server
	// 2012 R2 with SQL Server Web.
	//
	//   A custom AMI: Custom.
	//
	//   For more information on the supported operating systems, see AWS OpsWorks
	// Operating Systems (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-os.html).
	//
	// The default option is the current Amazon Linux version. If you set this
	// parameter to Custom, you must use the CreateInstance action's AmiId parameter
	// to specify the custom AMI that you want to use. Block device mappings are
	// not supported if the value is Custom. For more information on the supported
	// operating systems, see Operating Systems (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-os.html)For
	// more information on how to use custom AMIs with AWS OpsWorks, see Using Custom
	// AMIs (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-custom-ami.html).
	Os *string `type:"string"`

	// The instance root device type. For more information, see Storage for the
	// Root Device (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ComponentsAMIs.html#storage-for-the-root-device).
	RootDeviceType *string `type:"string" enum:"RootDeviceType"`

	// The instance's Amazon EC2 key-pair name.
	SshKeyName *string `type:"string"`

	// The stack ID.
	//
	// StackId is a required field
	StackId *string `type:"string" required:"true"`

	// The ID of the instance's subnet. If the stack is running in a VPC, you can
	// use this parameter to override the stack's default subnet ID value and direct
	// AWS OpsWorks to launch the instance in a different subnet.
	SubnetId *string `type:"string"`

	// The instance's tenancy option. The default option is no tenancy, or if the
	// instance is running in a VPC, inherit tenancy settings from the VPC. The
	// following are valid values for this parameter: dedicated, default, or host.
	// Because there are costs associated with changes in tenancy options, we recommend
	// that you research tenancy options before choosing them for your instances.
	// For more information about dedicated hosts, see Dedicated Hosts Overview
	// (http://aws.amazon.com/ec2/dedicated-hosts/) and Amazon EC2 Dedicated Hosts
	// (http://aws.amazon.com/ec2/dedicated-hosts/). For more information about
	// dedicated instances, see Dedicated Instances (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/dedicated-instance.html)
	// and Amazon EC2 Dedicated Instances (http://aws.amazon.com/ec2/purchasing-options/dedicated-instances/).
	Tenancy *string `type:"string"`

	// The instance's virtualization type, paravirtual or hvm.
	VirtualizationType *string `type:"string"`
	// contains filtered or unexported fields
}

func (CreateInstanceInput) GoString

func (s CreateInstanceInput) GoString() string

GoString returns the string representation

func (CreateInstanceInput) String

func (s CreateInstanceInput) String() string

String returns the string representation

func (*CreateInstanceInput) Validate

func (s *CreateInstanceInput) Validate() error

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

type CreateInstanceOutput

type CreateInstanceOutput struct {

	// The instance ID.
	InstanceId *string `type:"string"`
	// contains filtered or unexported fields
}

Contains the response to a CreateInstance request.

func (CreateInstanceOutput) GoString

func (s CreateInstanceOutput) GoString() string

GoString returns the string representation

func (CreateInstanceOutput) String

func (s CreateInstanceOutput) String() string

String returns the string representation

type CreateLayerInput

type CreateLayerInput struct {

	// One or more user-defined key-value pairs to be added to the stack attributes.
	//
	// To create a cluster layer, set the EcsClusterArn attribute to the cluster's
	// ARN.
	Attributes map[string]*string `type:"map"`

	// Whether to automatically assign an Elastic IP address (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html)
	// to the layer's instances. For more information, see How to Edit a Layer (http://docs.aws.amazon.com/opsworks/latest/userguide/workinglayers-basics-edit.html).
	AutoAssignElasticIps *bool `type:"boolean"`

	// For stacks that are running in a VPC, whether to automatically assign a public
	// IP address to the layer's instances. For more information, see How to Edit
	// a Layer (http://docs.aws.amazon.com/opsworks/latest/userguide/workinglayers-basics-edit.html).
	AutoAssignPublicIps *bool `type:"boolean"`

	// The ARN of an IAM profile to be used for the layer's EC2 instances. For more
	// information about IAM ARNs, see Using Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html).
	CustomInstanceProfileArn *string `type:"string"`

	// A JSON-formatted string containing custom stack configuration and deployment
	// attributes to be installed on the layer's instances. For more information,
	// see  Using Custom JSON (http://docs.aws.amazon.com/opsworks/latest/userguide/workingcookbook-json-override.html).
	// This feature is supported as of version 1.7.42 of the AWS CLI.
	CustomJson *string `type:"string"`

	// A LayerCustomRecipes object that specifies the layer custom recipes.
	CustomRecipes *Recipes `type:"structure"`

	// An array containing the layer custom security group IDs.
	CustomSecurityGroupIds []*string `type:"list"`

	// Whether to disable auto healing for the layer.
	EnableAutoHealing *bool `type:"boolean"`

	// Whether to install operating system and package updates when the instance
	// boots. The default value is true. To control when updates are installed,
	// set this value to false. You must then update your instances manually by
	// using CreateDeployment to run the update_dependencies stack command or by
	// manually running yum (Amazon Linux) or apt-get (Ubuntu) on the instances.
	//
	//  To ensure that your instances have the latest security updates, we strongly
	// recommend using the default value of true.
	InstallUpdatesOnBoot *bool `type:"boolean"`

	// A LifeCycleEventConfiguration object that you can use to configure the Shutdown
	// event to specify an execution timeout and enable or disable Elastic Load
	// Balancer connection draining.
	LifecycleEventConfiguration *LifecycleEventConfiguration `type:"structure"`

	// The layer name, which is used by the console.
	//
	// Name is a required field
	Name *string `type:"string" required:"true"`

	// An array of Package objects that describes the layer packages.
	Packages []*string `type:"list"`

	// For custom layers only, use this parameter to specify the layer's short name,
	// which is used internally by AWS OpsWorks and by Chef recipes. The short name
	// is also used as the name for the directory where your app files are installed.
	// It can have a maximum of 200 characters, which are limited to the alphanumeric
	// characters, '-', '_', and '.'.
	//
	// The built-in layers' short names are defined by AWS OpsWorks. For more information,
	// see the Layer Reference (http://docs.aws.amazon.com/opsworks/latest/userguide/layers.html).
	//
	// Shortname is a required field
	Shortname *string `type:"string" required:"true"`

	// The layer stack ID.
	//
	// StackId is a required field
	StackId *string `type:"string" required:"true"`

	// The layer type. A stack cannot have more than one built-in layer of the same
	// type. It can have any number of custom layers. Built-in layers are not available
	// in Chef 12 stacks.
	//
	// Type is a required field
	Type *string `type:"string" required:"true" enum:"LayerType"`

	// Whether to use Amazon EBS-optimized instances.
	UseEbsOptimizedInstances *bool `type:"boolean"`

	// A VolumeConfigurations object that describes the layer's Amazon EBS volumes.
	VolumeConfigurations []*VolumeConfiguration `type:"list"`
	// contains filtered or unexported fields
}

func (CreateLayerInput) GoString

func (s CreateLayerInput) GoString() string

GoString returns the string representation

func (CreateLayerInput) String

func (s CreateLayerInput) String() string

String returns the string representation

func (*CreateLayerInput) Validate

func (s *CreateLayerInput) Validate() error

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

type CreateLayerOutput

type CreateLayerOutput struct {

	// The layer ID.
	LayerId *string `type:"string"`
	// contains filtered or unexported fields
}

Contains the response to a CreateLayer request.

func (CreateLayerOutput) GoString

func (s CreateLayerOutput) GoString() string

GoString returns the string representation

func (CreateLayerOutput) String

func (s CreateLayerOutput) String() string

String returns the string representation

type CreateStackInput

type CreateStackInput struct {

	// The default AWS OpsWorks agent version. You have the following options:
	//
	//   Auto-update - Set this parameter to LATEST. AWS OpsWorks automatically
	// installs new agent versions on the stack's instances as soon as they are
	// available.
	//
	//   Fixed version - Set this parameter to your preferred agent version. To
	// update the agent version, you must edit the stack configuration and specify
	// a new version. AWS OpsWorks then automatically installs that version on the
	// stack's instances.
	//
	//   The default setting is the most recent release of the agent. To specify
	// an agent version, you must use the complete version number, not the abbreviated
	// number shown on the console. For a list of available agent version numbers,
	// call DescribeAgentVersions.
	//
	//  You can also specify an agent version when you create or update an instance,
	// which overrides the stack's default setting.
	AgentVersion *string `type:"string"`

	// One or more user-defined key-value pairs to be added to the stack attributes.
	Attributes map[string]*string `type:"map"`

	// A ChefConfiguration object that specifies whether to enable Berkshelf and
	// the Berkshelf version on Chef 11.10 stacks. For more information, see Create
	// a New Stack (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-creating.html).
	ChefConfiguration *ChefConfiguration `type:"structure"`

	// The configuration manager. When you create a stack we recommend that you
	// use the configuration manager to specify the Chef version: 12, 11.10, or
	// 11.4 for Linux stacks, or 12.2 for Windows stacks. The default value for
	// Linux stacks is currently 11.4.
	ConfigurationManager *StackConfigurationManager `type:"structure"`

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

	// A string that contains user-defined, custom JSON. It can be used to override
	// the corresponding default stack configuration attribute values or to pass
	// data to recipes. The string should be in the following format:
	//
	//  "{\"key1\": \"value1\", \"key2\": \"value2\",...}"
	//
	// For more information on custom JSON, see Use Custom JSON to Modify the Stack
	// Configuration Attributes (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-json.html).
	CustomJson *string `type:"string"`

	// The stack's default Availability Zone, which must be in the specified region.
	// For more information, see Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html).
	// If you also specify a value for DefaultSubnetId, the subnet must be in the
	// same zone. For more information, see the VpcId parameter description.
	DefaultAvailabilityZone *string `type:"string"`

	// The Amazon Resource Name (ARN) of an IAM profile that is the default profile
	// for all of the stack's EC2 instances. For more information about IAM ARNs,
	// see Using Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html).
	//
	// DefaultInstanceProfileArn is a required field
	DefaultInstanceProfileArn *string `type:"string" required:"true"`

	// The stack's default operating system, which is installed on every instance
	// unless you specify a different operating system when you create the instance.
	// You can specify one of the following.
	//
	//   A supported Linux operating system: An Amazon Linux version, such as Amazon
	// Linux 2016.03, Amazon Linux 2015.09, or Amazon Linux 2015.03.
	//
	//   A supported Ubuntu operating system, such as Ubuntu 16.04 LTS, Ubuntu
	// 14.04 LTS, or Ubuntu 12.04 LTS.
	//
	//    CentOS 7
	//
	//    Red Hat Enterprise Linux 7
	//
	//   A supported Windows operating system, such as Microsoft Windows Server
	// 2012 R2 Base, Microsoft Windows Server 2012 R2 with SQL Server Express, Microsoft
	// Windows Server 2012 R2 with SQL Server Standard, or Microsoft Windows Server
	// 2012 R2 with SQL Server Web.
	//
	//   A custom AMI: Custom. You specify the custom AMI you want to use when
	// you create instances. For more information, see  Using Custom AMIs (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-custom-ami.html).
	//
	//   The default option is the current Amazon Linux version. For more information
	// on the supported operating systems, see AWS OpsWorks Operating Systems (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-os.html).
	DefaultOs *string `type:"string"`

	// The default root device type. This value is the default for all instances
	// in the stack, but you can override it when you create an instance. The default
	// option is instance-store. For more information, see Storage for the Root
	// Device (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ComponentsAMIs.html#storage-for-the-root-device).
	DefaultRootDeviceType *string `type:"string" enum:"RootDeviceType"`

	// A default Amazon EC2 key pair name. The default value is none. If you specify
	// a key pair name, AWS OpsWorks installs the public key on the instance and
	// you can use the private key with an SSH client to log in to the instance.
	// For more information, see  Using SSH to Communicate with an Instance (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-ssh.html)
	// and  Managing SSH Access (http://docs.aws.amazon.com/opsworks/latest/userguide/security-ssh-access.html).
	// You can override this setting by specifying a different key pair, or no key
	// pair, when you  create an instance (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-add.html).
	DefaultSshKeyName *string `type:"string"`

	// The stack's default VPC subnet ID. This parameter is required if you specify
	// a value for the VpcId parameter. All instances are launched into this subnet
	// unless you specify otherwise when you create the instance. If you also specify
	// a value for DefaultAvailabilityZone, the subnet must be in that zone. For
	// information on default values and when this parameter is required, see the
	// VpcId parameter description.
	DefaultSubnetId *string `type:"string"`

	// The stack's host name theme, with spaces replaced by underscores. The theme
	// is used to generate host names for the stack's instances. By default, HostnameTheme
	// is set to Layer_Dependent, which creates host names by appending integers
	// to the layer's short name. The other themes are:
	//
	//    Baked_Goods
	//
	//    Clouds
	//
	//    Europe_Cities
	//
	//    Fruits
	//
	//    Greek_Deities
	//
	//    Legendary_creatures_from_Japan
	//
	//    Planets_and_Moons
	//
	//    Roman_Deities
	//
	//    Scottish_Islands
	//
	//    US_Cities
	//
	//    Wild_Cats
	//
	//   To obtain a generated host name, call GetHostNameSuggestion, which returns
	// a host name based on the current theme.
	HostnameTheme *string `type:"string"`

	// The stack name.
	//
	// Name is a required field
	Name *string `type:"string" required:"true"`

	// The stack's AWS region, such as "ap-south-1". For more information about
	// Amazon regions, see Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html).
	//
	// Region is a required field
	Region *string `type:"string" required:"true"`

	// The stack's AWS Identity and Access Management (IAM) role, which allows AWS
	// OpsWorks to work with AWS resources on your behalf. You must set this parameter
	// to the Amazon Resource Name (ARN) for an existing IAM role. For more information
	// about IAM ARNs, see Using Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html).
	//
	// ServiceRoleArn is a required field
	ServiceRoleArn *string `type:"string" required:"true"`

	// Whether the stack uses custom cookbooks.
	UseCustomCookbooks *bool `type:"boolean"`

	// Whether to associate the AWS OpsWorks built-in security groups with the stack's
	// layers.
	//
	// AWS OpsWorks provides a standard set of built-in security groups, one for
	// each layer, which are associated with layers by default. With UseOpsworksSecurityGroups
	// you can instead provide your own custom security groups. UseOpsworksSecurityGroups
	// has the following settings:
	//
	//   True - AWS OpsWorks automatically associates the appropriate built-in
	// security group with each layer (default setting). You can associate additional
	// security groups with a layer after you create it, but you cannot delete the
	// built-in security group.
	//
	//   False - AWS OpsWorks does not associate built-in security groups with
	// layers. You must create appropriate EC2 security groups and associate a security
	// group with each layer that you create. However, you can still manually associate
	// a built-in security group with a layer on creation; custom security groups
	// are required only for those layers that need custom settings.
	//
	//   For more information, see Create a New Stack (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-creating.html).
	UseOpsworksSecurityGroups *bool `type:"boolean"`

	// The ID of the VPC that the stack is to be launched into. The VPC must be
	// in the stack's region. All instances are launched into this VPC. You cannot
	// change the ID later.
	//
	//   If your account supports EC2-Classic, the default value is no VPC.
	//
	//   If your account does not support EC2-Classic, the default value is the
	// default VPC for the specified region.
	//
	//   If the VPC ID corresponds to a default VPC and you have specified either
	// the DefaultAvailabilityZone or the DefaultSubnetId parameter only, AWS OpsWorks
	// infers the value of the other parameter. If you specify neither parameter,
	// AWS OpsWorks sets these parameters to the first valid Availability Zone for
	// the specified region and the corresponding default VPC subnet ID, respectively.
	//
	// If you specify a nondefault VPC ID, note the following:
	//
	//   It must belong to a VPC in your account that is in the specified region.
	//
	//   You must specify a value for DefaultSubnetId.
	//
	//   For more information on how to use AWS OpsWorks with a VPC, see Running
	// a Stack in a VPC (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-vpc.html).
	// For more information on default VPC and EC2-Classic, see Supported Platforms
	// (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-supported-platforms.html).
	VpcId *string `type:"string"`
	// contains filtered or unexported fields
}

func (CreateStackInput) GoString

func (s CreateStackInput) GoString() string

GoString returns the string representation

func (CreateStackInput) String

func (s CreateStackInput) String() string

String returns the string representation

func (*CreateStackInput) Validate

func (s *CreateStackInput) Validate() error

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

type CreateStackOutput

type CreateStackOutput struct {

	// The stack ID, which is an opaque string that you use to identify the stack
	// when performing actions such as DescribeStacks.
	StackId *string `type:"string"`
	// contains filtered or unexported fields
}

Contains the response to a CreateStack request.

func (CreateStackOutput) GoString

func (s CreateStackOutput) GoString() string

GoString returns the string representation

func (CreateStackOutput) String

func (s CreateStackOutput) String() string

String returns the string representation

type CreateUserProfileInput

type CreateUserProfileInput struct {

	// Whether users can specify their own SSH public key through the My Settings
	// page. For more information, see Setting an IAM User's Public SSH Key (http://docs.aws.amazon.com/opsworks/latest/userguide/security-settingsshkey.html).
	AllowSelfManagement *bool `type:"boolean"`

	// The user's IAM ARN; this can also be a federated user's ARN.
	//
	// IamUserArn is a required field
	IamUserArn *string `type:"string" required:"true"`

	// The user's public SSH key.
	SshPublicKey *string `type:"string"`

	// The user's SSH user name. The allowable characters are [a-z], [A-Z], [0-9],
	// '-', and '_'. If the specified name includes other punctuation marks, AWS
	// OpsWorks removes them. For example, my.name will be changed to myname. If
	// you do not specify an SSH user name, AWS OpsWorks generates one from the
	// IAM user name.
	SshUsername *string `type:"string"`
	// contains filtered or unexported fields
}

func (CreateUserProfileInput) GoString

func (s CreateUserProfileInput) GoString() string

GoString returns the string representation

func (CreateUserProfileInput) String

func (s CreateUserProfileInput) String() string

String returns the string representation

func (*CreateUserProfileInput) Validate

func (s *CreateUserProfileInput) Validate() error

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

type CreateUserProfileOutput

type CreateUserProfileOutput struct {

	// The user's IAM ARN.
	IamUserArn *string `type:"string"`
	// contains filtered or unexported fields
}

Contains the response to a CreateUserProfile request.

func (CreateUserProfileOutput) GoString

func (s CreateUserProfileOutput) GoString() string

GoString returns the string representation

func (CreateUserProfileOutput) String

func (s CreateUserProfileOutput) String() string

String returns the string representation

type DataSource

type DataSource struct {

	// The data source's ARN.
	Arn *string `type:"string"`

	// The database name.
	DatabaseName *string `type:"string"`

	// The data source's type, AutoSelectOpsworksMysqlInstance, OpsworksMysqlInstance,
	// or RdsDbInstance.
	Type *string `type:"string"`
	// contains filtered or unexported fields
}

Describes an app's data source.

func (DataSource) GoString

func (s DataSource) GoString() string

GoString returns the string representation

func (DataSource) String

func (s DataSource) String() string

String returns the string representation

type DeleteAppInput

type DeleteAppInput struct {

	// The app ID.
	//
	// AppId is a required field
	AppId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteAppInput) GoString

func (s DeleteAppInput) GoString() string

GoString returns the string representation

func (DeleteAppInput) String

func (s DeleteAppInput) String() string

String returns the string representation

func (*DeleteAppInput) Validate

func (s *DeleteAppInput) Validate() error

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

type DeleteAppOutput

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

func (DeleteAppOutput) GoString

func (s DeleteAppOutput) GoString() string

GoString returns the string representation

func (DeleteAppOutput) String

func (s DeleteAppOutput) String() string

String returns the string representation

type DeleteInstanceInput

type DeleteInstanceInput struct {

	// Whether to delete the instance Elastic IP address.
	DeleteElasticIp *bool `type:"boolean"`

	// Whether to delete the instance's Amazon EBS volumes.
	DeleteVolumes *bool `type:"boolean"`

	// The instance ID.
	//
	// InstanceId is a required field
	InstanceId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteInstanceInput) GoString

func (s DeleteInstanceInput) GoString() string

GoString returns the string representation

func (DeleteInstanceInput) String

func (s DeleteInstanceInput) String() string

String returns the string representation

func (*DeleteInstanceInput) Validate

func (s *DeleteInstanceInput) Validate() error

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

type DeleteInstanceOutput

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

func (DeleteInstanceOutput) GoString

func (s DeleteInstanceOutput) GoString() string

GoString returns the string representation

func (DeleteInstanceOutput) String

func (s DeleteInstanceOutput) String() string

String returns the string representation

type DeleteLayerInput

type DeleteLayerInput struct {

	// The layer ID.
	//
	// LayerId is a required field
	LayerId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteLayerInput) GoString

func (s DeleteLayerInput) GoString() string

GoString returns the string representation

func (DeleteLayerInput) String

func (s DeleteLayerInput) String() string

String returns the string representation

func (*DeleteLayerInput) Validate

func (s *DeleteLayerInput) Validate() error

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

type DeleteLayerOutput

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

func (DeleteLayerOutput) GoString

func (s DeleteLayerOutput) GoString() string

GoString returns the string representation

func (DeleteLayerOutput) String

func (s DeleteLayerOutput) String() string

String returns the string representation

type DeleteStackInput

type DeleteStackInput struct {

	// The stack ID.
	//
	// StackId is a required field
	StackId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteStackInput) GoString

func (s DeleteStackInput) GoString() string

GoString returns the string representation

func (DeleteStackInput) String

func (s DeleteStackInput) String() string

String returns the string representation

func (*DeleteStackInput) Validate

func (s *DeleteStackInput) Validate() error

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

type DeleteStackOutput

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

func (DeleteStackOutput) GoString

func (s DeleteStackOutput) GoString() string

GoString returns the string representation

func (DeleteStackOutput) String

func (s DeleteStackOutput) String() string

String returns the string representation

type DeleteUserProfileInput

type DeleteUserProfileInput struct {

	// The user's IAM ARN. This can also be a federated user's ARN.
	//
	// IamUserArn is a required field
	IamUserArn *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteUserProfileInput) GoString

func (s DeleteUserProfileInput) GoString() string

GoString returns the string representation

func (DeleteUserProfileInput) String

func (s DeleteUserProfileInput) String() string

String returns the string representation

func (*DeleteUserProfileInput) Validate

func (s *DeleteUserProfileInput) Validate() error

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

type DeleteUserProfileOutput

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

func (DeleteUserProfileOutput) GoString

func (s DeleteUserProfileOutput) GoString() string

GoString returns the string representation

func (DeleteUserProfileOutput) String

func (s DeleteUserProfileOutput) String() string

String returns the string representation

type Deployment

type Deployment struct {

	// The app ID.
	AppId *string `type:"string"`

	// Used to specify a stack or deployment command.
	Command *DeploymentCommand `type:"structure"`

	// A user-defined comment.
	Comment *string `type:"string"`

	// Date when the deployment completed.
	CompletedAt *string `type:"string"`

	// Date when the deployment was created.
	CreatedAt *string `type:"string"`

	// A string that contains user-defined custom JSON. It can be used to override
	// the corresponding default stack configuration attribute values for stack
	// or to pass data to recipes. The string should be in the following format:
	//
	//  "{\"key1\": \"value1\", \"key2\": \"value2\",...}"
	//
	// For more information on custom JSON, see Use Custom JSON to Modify the Stack
	// Configuration Attributes (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-json.html).
	CustomJson *string `type:"string"`

	// The deployment ID.
	DeploymentId *string `type:"string"`

	// The deployment duration.
	Duration *int64 `type:"integer"`

	// The user's IAM ARN.
	IamUserArn *string `type:"string"`

	// The IDs of the target instances.
	InstanceIds []*string `type:"list"`

	// The stack ID.
	StackId *string `type:"string"`

	// The deployment status:
	//
	//   running
	//
	//   successful
	//
	//   failed
	Status *string `type:"string"`
	// contains filtered or unexported fields
}

Describes a deployment of a stack or app.

func (Deployment) GoString

func (s Deployment) GoString() string

GoString returns the string representation

func (Deployment) String

func (s Deployment) String() string

String returns the string representation

type DeploymentCommand

type DeploymentCommand struct {

	// The arguments of those commands that take arguments. It should be set to
	// a JSON object with the following format:
	//
	//  {"arg_name1" : ["value1", "value2", ...], "arg_name2" : ["value1", "value2",
	// ...], ...}
	//
	// The update_dependencies command takes two arguments:
	//
	//    upgrade_os_to - Specifies the desired Amazon Linux version for instances
	// whose OS you want to upgrade, such as Amazon Linux 2014.09. You must also
	// set the allow_reboot argument to true.
	//
	//    allow_reboot - Specifies whether to allow AWS OpsWorks to reboot the
	// instances if necessary, after installing the updates. This argument can be
	// set to either true or false. The default value is false.
	//
	//   For example, to upgrade an instance to Amazon Linux 2014.09, set Args
	// to the following.
	//
	//   { "upgrade_os_to":["Amazon Linux 2014.09"], "allow_reboot":["true"] }
	Args map[string][]*string `type:"map"`

	// Specifies the operation. You can specify only one command.
	//
	// For stacks, the following commands are available:
	//
	//    execute_recipes: Execute one or more recipes. To specify the recipes,
	// set an Args parameter named recipes to the list of recipes to be executed.
	// For example, to execute phpapp::appsetup, set Args to {"recipes":["phpapp::appsetup"]}.
	//
	//    install_dependencies: Install the stack's dependencies.
	//
	//    update_custom_cookbooks: Update the stack's custom cookbooks.
	//
	//    update_dependencies: Update the stack's dependencies.
	//
	//    The update_dependencies and install_dependencies commands are supported
	// only for Linux instances. You can run the commands successfully on Windows
	// instances, but they do nothing.
	//
	//  For apps, the following commands are available:
	//
	//    deploy: Deploy an app. Ruby on Rails apps have an optional Args parameter
	// named migrate. Set Args to {"migrate":["true"]} to migrate the database.
	// The default setting is {"migrate":["false"]}.
	//
	//    rollback Roll the app back to the previous version. When you update an
	// app, AWS OpsWorks stores the previous version, up to a maximum of five versions.
	// You can use this command to roll an app back as many as four versions.
	//
	//    start: Start the app's web or application server.
	//
	//    stop: Stop the app's web or application server.
	//
	//    restart: Restart the app's web or application server.
	//
	//    undeploy: Undeploy the app.
	//
	// Name is a required field
	Name *string `type:"string" required:"true" enum:"DeploymentCommandName"`
	// contains filtered or unexported fields
}

Used to specify a stack or deployment command.

func (DeploymentCommand) GoString

func (s DeploymentCommand) GoString() string

GoString returns the string representation

func (DeploymentCommand) String

func (s DeploymentCommand) String() string

String returns the string representation

func (*DeploymentCommand) Validate

func (s *DeploymentCommand) Validate() error

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

type DeregisterEcsClusterInput

type DeregisterEcsClusterInput struct {

	// The cluster's ARN.
	//
	// EcsClusterArn is a required field
	EcsClusterArn *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeregisterEcsClusterInput) GoString

func (s DeregisterEcsClusterInput) GoString() string

GoString returns the string representation

func (DeregisterEcsClusterInput) String

func (s DeregisterEcsClusterInput) String() string

String returns the string representation

func (*DeregisterEcsClusterInput) Validate

func (s *DeregisterEcsClusterInput) Validate() error

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

type DeregisterEcsClusterOutput

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

func (DeregisterEcsClusterOutput) GoString

func (s DeregisterEcsClusterOutput) GoString() string

GoString returns the string representation

func (DeregisterEcsClusterOutput) String

String returns the string representation

type DeregisterElasticIpInput

type DeregisterElasticIpInput struct {

	// The Elastic IP address.
	//
	// ElasticIp is a required field
	ElasticIp *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeregisterElasticIpInput) GoString

func (s DeregisterElasticIpInput) GoString() string

GoString returns the string representation

func (DeregisterElasticIpInput) String

func (s DeregisterElasticIpInput) String() string

String returns the string representation

func (*DeregisterElasticIpInput) Validate

func (s *DeregisterElasticIpInput) Validate() error

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

type DeregisterElasticIpOutput

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

func (DeregisterElasticIpOutput) GoString

func (s DeregisterElasticIpOutput) GoString() string

GoString returns the string representation

func (DeregisterElasticIpOutput) String

func (s DeregisterElasticIpOutput) String() string

String returns the string representation

type DeregisterInstanceInput

type DeregisterInstanceInput struct {

	// The instance ID.
	//
	// InstanceId is a required field
	InstanceId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeregisterInstanceInput) GoString

func (s DeregisterInstanceInput) GoString() string

GoString returns the string representation

func (DeregisterInstanceInput) String

func (s DeregisterInstanceInput) String() string

String returns the string representation

func (*DeregisterInstanceInput) Validate

func (s *DeregisterInstanceInput) Validate() error

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

type DeregisterInstanceOutput

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

func (DeregisterInstanceOutput) GoString

func (s DeregisterInstanceOutput) GoString() string

GoString returns the string representation

func (DeregisterInstanceOutput) String

func (s DeregisterInstanceOutput) String() string

String returns the string representation

type DeregisterRdsDbInstanceInput

type DeregisterRdsDbInstanceInput struct {

	// The Amazon RDS instance's ARN.
	//
	// RdsDbInstanceArn is a required field
	RdsDbInstanceArn *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeregisterRdsDbInstanceInput) GoString

func (s DeregisterRdsDbInstanceInput) GoString() string

GoString returns the string representation

func (DeregisterRdsDbInstanceInput) String

String returns the string representation

func (*DeregisterRdsDbInstanceInput) Validate

func (s *DeregisterRdsDbInstanceInput) Validate() error

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

type DeregisterRdsDbInstanceOutput

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

func (DeregisterRdsDbInstanceOutput) GoString

GoString returns the string representation

func (DeregisterRdsDbInstanceOutput) String

String returns the string representation

type DeregisterVolumeInput

type DeregisterVolumeInput struct {

	// The AWS OpsWorks volume ID, which is the GUID that AWS OpsWorks assigned
	// to the instance when you registered the volume with the stack, not the Amazon
	// EC2 volume ID.
	//
	// VolumeId is a required field
	VolumeId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeregisterVolumeInput) GoString

func (s DeregisterVolumeInput) GoString() string

GoString returns the string representation

func (DeregisterVolumeInput) String

func (s DeregisterVolumeInput) String() string

String returns the string representation

func (*DeregisterVolumeInput) Validate

func (s *DeregisterVolumeInput) Validate() error

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

type DeregisterVolumeOutput

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

func (DeregisterVolumeOutput) GoString

func (s DeregisterVolumeOutput) GoString() string

GoString returns the string representation

func (DeregisterVolumeOutput) String

func (s DeregisterVolumeOutput) String() string

String returns the string representation

type DescribeAgentVersionsInput

type DescribeAgentVersionsInput struct {

	// The configuration manager.
	ConfigurationManager *StackConfigurationManager `type:"structure"`

	// The stack ID.
	StackId *string `type:"string"`
	// contains filtered or unexported fields
}

func (DescribeAgentVersionsInput) GoString

func (s DescribeAgentVersionsInput) GoString() string

GoString returns the string representation

func (DescribeAgentVersionsInput) String

String returns the string representation

type DescribeAgentVersionsOutput

type DescribeAgentVersionsOutput struct {

	// The agent versions for the specified stack or configuration manager. Note
	// that this value is the complete version number, not the abbreviated number
	// used by the console.
	AgentVersions []*AgentVersion `type:"list"`
	// contains filtered or unexported fields
}

Contains the response to a DescribeAgentVersions request.

func (DescribeAgentVersionsOutput) GoString

func (s DescribeAgentVersionsOutput) GoString() string

GoString returns the string representation

func (DescribeAgentVersionsOutput) String

String returns the string representation

type DescribeAppsInput

type DescribeAppsInput struct {

	// An array of app IDs for the apps to be described. If you use this parameter,
	// DescribeApps returns a description of the specified apps. Otherwise, it returns
	// a description of every app.
	AppIds []*string `type:"list"`

	// The app stack ID. If you use this parameter, DescribeApps returns a description
	// of the apps in the specified stack.
	StackId *string `type:"string"`
	// contains filtered or unexported fields
}

func (DescribeAppsInput) GoString

func (s DescribeAppsInput) GoString() string

GoString returns the string representation

func (DescribeAppsInput) String

func (s DescribeAppsInput) String() string

String returns the string representation

type DescribeAppsOutput

type DescribeAppsOutput struct {

	// An array of App objects that describe the specified apps.
	Apps []*App `type:"list"`
	// contains filtered or unexported fields
}

Contains the response to a DescribeApps request.

func (DescribeAppsOutput) GoString

func (s DescribeAppsOutput) GoString() string

GoString returns the string representation

func (DescribeAppsOutput) String

func (s DescribeAppsOutput) String() string

String returns the string representation

type DescribeCommandsInput

type DescribeCommandsInput struct {

	// An array of command IDs. If you include this parameter, DescribeCommands
	// returns a description of the specified commands. Otherwise, it returns a
	// description of every command.
	CommandIds []*string `type:"list"`

	// The deployment ID. If you include this parameter, DescribeCommands returns
	// a description of the commands associated with the specified deployment.
	DeploymentId *string `type:"string"`

	// The instance ID. If you include this parameter, DescribeCommands returns
	// a description of the commands associated with the specified instance.
	InstanceId *string `type:"string"`
	// contains filtered or unexported fields
}

func (DescribeCommandsInput) GoString

func (s DescribeCommandsInput) GoString() string

GoString returns the string representation

func (DescribeCommandsInput) String

func (s DescribeCommandsInput) String() string

String returns the string representation

type DescribeCommandsOutput

type DescribeCommandsOutput struct {

	// An array of Command objects that describe each of the specified commands.
	Commands []*Command `type:"list"`
	// contains filtered or unexported fields
}

Contains the response to a DescribeCommands request.

func (DescribeCommandsOutput) GoString

func (s DescribeCommandsOutput) GoString() string

GoString returns the string representation

func (DescribeCommandsOutput) String

func (s DescribeCommandsOutput) String() string

String returns the string representation

type DescribeDeploymentsInput

type DescribeDeploymentsInput struct {

	// The app ID. If you include this parameter, DescribeDeployments returns a
	// description of the commands associated with the specified app.
	AppId *string `type:"string"`

	// An array of deployment IDs to be described. If you include this parameter,
	// DescribeDeployments returns a description of the specified deployments. Otherwise,
	// it returns a description of every deployment.
	DeploymentIds []*string `type:"list"`

	// The stack ID. If you include this parameter, DescribeDeployments returns
	// a description of the commands associated with the specified stack.
	StackId *string `type:"string"`
	// contains filtered or unexported fields
}

func (DescribeDeploymentsInput) GoString

func (s DescribeDeploymentsInput) GoString() string

GoString returns the string representation

func (DescribeDeploymentsInput) String

func (s DescribeDeploymentsInput) String() string

String returns the string representation

type DescribeDeploymentsOutput

type DescribeDeploymentsOutput struct {

	// An array of Deployment objects that describe the deployments.
	Deployments []*Deployment `type:"list"`
	// contains filtered or unexported fields
}

Contains the response to a DescribeDeployments request.

func (DescribeDeploymentsOutput) GoString

func (s DescribeDeploymentsOutput) GoString() string

GoString returns the string representation

func (DescribeDeploymentsOutput) String

func (s DescribeDeploymentsOutput) String() string

String returns the string representation

type DescribeEcsClustersInput

type DescribeEcsClustersInput struct {

	// A list of ARNs, one for each cluster to be described.
	EcsClusterArns []*string `type:"list"`

	// To receive a paginated response, use this parameter to specify the maximum
	// number of results to be returned with a single call. If the number of available
	// results exceeds this maximum, the response includes a NextToken value that
	// you can assign to the NextToken request parameter to get the next set of
	// results.
	MaxResults *int64 `type:"integer"`

	// If the previous paginated request did not return all of the remaining results,
	// the response object'sNextToken parameter value is set to a token. To retrieve
	// the next set of results, call DescribeEcsClusters again and assign that token
	// to the request object's NextToken parameter. If there are no remaining results,
	// the previous response object's NextToken parameter is set to null.
	NextToken *string `type:"string"`

	// A stack ID. DescribeEcsClusters returns a description of the cluster that
	// is registered with the stack.
	StackId *string `type:"string"`
	// contains filtered or unexported fields
}

func (DescribeEcsClustersInput) GoString

func (s DescribeEcsClustersInput) GoString() string

GoString returns the string representation

func (DescribeEcsClustersInput) String

func (s DescribeEcsClustersInput) String() string

String returns the string representation

type DescribeEcsClustersOutput

type DescribeEcsClustersOutput struct {

	// A list of EcsCluster objects containing the cluster descriptions.
	EcsClusters []*EcsCluster `type:"list"`

	// If a paginated request does not return all of the remaining results, this
	// parameter is set to a token that you can assign to the request object's NextToken
	// parameter to retrieve the next set of results. If the previous paginated
	// request returned all of the remaining results, this parameter is set to null.
	NextToken *string `type:"string"`
	// contains filtered or unexported fields
}

Contains the response to a DescribeEcsClusters request.

func (DescribeEcsClustersOutput) GoString

func (s DescribeEcsClustersOutput) GoString() string

GoString returns the string representation

func (DescribeEcsClustersOutput) String

func (s DescribeEcsClustersOutput) String() string

String returns the string representation

type DescribeElasticIpsInput

type DescribeElasticIpsInput struct {

	// The instance ID. If you include this parameter, DescribeElasticIps returns
	// a description of the Elastic IP addresses associated with the specified instance.
	InstanceId *string `type:"string"`

	// An array of Elastic IP addresses to be described. If you include this parameter,
	// DescribeElasticIps returns a description of the specified Elastic IP addresses.
	// Otherwise, it returns a description of every Elastic IP address.
	Ips []*string `type:"list"`

	// A stack ID. If you include this parameter, DescribeElasticIps returns a description
	// of the Elastic IP addresses that are registered with the specified stack.
	StackId *string `type:"string"`
	// contains filtered or unexported fields
}

func (DescribeElasticIpsInput) GoString

func (s DescribeElasticIpsInput) GoString() string

GoString returns the string representation

func (DescribeElasticIpsInput) String

func (s DescribeElasticIpsInput) String() string

String returns the string representation

type DescribeElasticIpsOutput

type DescribeElasticIpsOutput struct {

	// An ElasticIps object that describes the specified Elastic IP addresses.
	ElasticIps []*ElasticIp `type:"list"`
	// contains filtered or unexported fields
}

Contains the response to a DescribeElasticIps request.

func (DescribeElasticIpsOutput) GoString

func (s DescribeElasticIpsOutput) GoString() string

GoString returns the string representation

func (DescribeElasticIpsOutput) String

func (s DescribeElasticIpsOutput) String() string

String returns the string representation

type DescribeElasticLoadBalancersInput

type DescribeElasticLoadBalancersInput struct {

	// A list of layer IDs. The action describes the Elastic Load Balancing instances
	// for the specified layers.
	LayerIds []*string `type:"list"`

	// A stack ID. The action describes the stack's Elastic Load Balancing instances.
	StackId *string `type:"string"`
	// contains filtered or unexported fields
}

func (DescribeElasticLoadBalancersInput) GoString

GoString returns the string representation

func (DescribeElasticLoadBalancersInput) String

String returns the string representation

type DescribeElasticLoadBalancersOutput

type DescribeElasticLoadBalancersOutput struct {

	// A list of ElasticLoadBalancer objects that describe the specified Elastic
	// Load Balancing instances.
	ElasticLoadBalancers []*ElasticLoadBalancer `type:"list"`
	// contains filtered or unexported fields
}

Contains the response to a DescribeElasticLoadBalancers request.

func (DescribeElasticLoadBalancersOutput) GoString

GoString returns the string representation

func (DescribeElasticLoadBalancersOutput) String

String returns the string representation

type DescribeInstancesInput

type DescribeInstancesInput struct {

	// An array of instance IDs to be described. If you use this parameter, DescribeInstances
	// returns a description of the specified instances. Otherwise, it returns a
	// description of every instance.
	InstanceIds []*string `type:"list"`

	// A layer ID. If you use this parameter, DescribeInstances returns descriptions
	// of the instances associated with the specified layer.
	LayerId *string `type:"string"`

	// A stack ID. If you use this parameter, DescribeInstances returns descriptions
	// of the instances associated with the specified stack.
	StackId *string `type:"string"`
	// contains filtered or unexported fields
}

func (DescribeInstancesInput) GoString

func (s DescribeInstancesInput) GoString() string

GoString returns the string representation

func (DescribeInstancesInput) String

func (s DescribeInstancesInput) String() string

String returns the string representation

type DescribeInstancesOutput

type DescribeInstancesOutput struct {

	// An array of Instance objects that describe the instances.
	Instances []*Instance `type:"list"`
	// contains filtered or unexported fields
}

Contains the response to a DescribeInstances request.

func (DescribeInstancesOutput) GoString

func (s DescribeInstancesOutput) GoString() string

GoString returns the string representation

func (DescribeInstancesOutput) String

func (s DescribeInstancesOutput) String() string

String returns the string representation

type DescribeLayersInput

type DescribeLayersInput struct {

	// An array of layer IDs that specify the layers to be described. If you omit
	// this parameter, DescribeLayers returns a description of every layer in the
	// specified stack.
	LayerIds []*string `type:"list"`

	// The stack ID.
	StackId *string `type:"string"`
	// contains filtered or unexported fields
}

func (DescribeLayersInput) GoString

func (s DescribeLayersInput) GoString() string

GoString returns the string representation

func (DescribeLayersInput) String

func (s DescribeLayersInput) String() string

String returns the string representation

type DescribeLayersOutput

type DescribeLayersOutput struct {

	// An array of Layer objects that describe the layers.
	Layers []*Layer `type:"list"`
	// contains filtered or unexported fields
}

Contains the response to a DescribeLayers request.

func (DescribeLayersOutput) GoString

func (s DescribeLayersOutput) GoString() string

GoString returns the string representation

func (DescribeLayersOutput) String

func (s DescribeLayersOutput) String() string

String returns the string representation

type DescribeLoadBasedAutoScalingInput

type DescribeLoadBasedAutoScalingInput struct {

	// An array of layer IDs.
	//
	// LayerIds is a required field
	LayerIds []*string `type:"list" required:"true"`
	// contains filtered or unexported fields
}

func (DescribeLoadBasedAutoScalingInput) GoString

GoString returns the string representation

func (DescribeLoadBasedAutoScalingInput) String

String returns the string representation

func (*DescribeLoadBasedAutoScalingInput) Validate

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

type DescribeLoadBasedAutoScalingOutput

type DescribeLoadBasedAutoScalingOutput struct {

	// An array of LoadBasedAutoScalingConfiguration objects that describe each
	// layer's configuration.
	LoadBasedAutoScalingConfigurations []*LoadBasedAutoScalingConfiguration `type:"list"`
	// contains filtered or unexported fields
}

Contains the response to a DescribeLoadBasedAutoScaling request.

func (DescribeLoadBasedAutoScalingOutput) GoString

GoString returns the string representation

func (DescribeLoadBasedAutoScalingOutput) String

String returns the string representation

type DescribeMyUserProfileInput

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

func (DescribeMyUserProfileInput) GoString

func (s DescribeMyUserProfileInput) GoString() string

GoString returns the string representation

func (DescribeMyUserProfileInput) String

String returns the string representation

type DescribeMyUserProfileOutput

type DescribeMyUserProfileOutput struct {

	// A UserProfile object that describes the user's SSH information.
	UserProfile *SelfUserProfile `type:"structure"`
	// contains filtered or unexported fields
}

Contains the response to a DescribeMyUserProfile request.

func (DescribeMyUserProfileOutput) GoString

func (s DescribeMyUserProfileOutput) GoString() string

GoString returns the string representation

func (DescribeMyUserProfileOutput) String

String returns the string representation

type DescribePermissionsInput

type DescribePermissionsInput struct {

	// The user's IAM ARN. This can also be a federated user's ARN. For more information
	// about IAM ARNs, see Using Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html).
	IamUserArn *string `type:"string"`

	// The stack ID.
	StackId *string `type:"string"`
	// contains filtered or unexported fields
}

func (DescribePermissionsInput) GoString

func (s DescribePermissionsInput) GoString() string

GoString returns the string representation

func (DescribePermissionsInput) String

func (s DescribePermissionsInput) String() string

String returns the string representation

type DescribePermissionsOutput

type DescribePermissionsOutput struct {

	// An array of Permission objects that describe the stack permissions.
	//
	//   If the request object contains only a stack ID, the array contains a Permission
	// object with permissions for each of the stack IAM ARNs.
	//
	//   If the request object contains only an IAM ARN, the array contains a Permission
	// object with permissions for each of the user's stack IDs.
	//
	//   If the request contains a stack ID and an IAM ARN, the array contains
	// a single Permission object with permissions for the specified stack and IAM
	// ARN.
	Permissions []*Permission `type:"list"`
	// contains filtered or unexported fields
}

Contains the response to a DescribePermissions request.

func (DescribePermissionsOutput) GoString

func (s DescribePermissionsOutput) GoString() string

GoString returns the string representation

func (DescribePermissionsOutput) String

func (s DescribePermissionsOutput) String() string

String returns the string representation

type DescribeRaidArraysInput

type DescribeRaidArraysInput struct {

	// The instance ID. If you use this parameter, DescribeRaidArrays returns descriptions
	// of the RAID arrays associated with the specified instance.
	InstanceId *string `type:"string"`

	// An array of RAID array IDs. If you use this parameter, DescribeRaidArrays
	// returns descriptions of the specified arrays. Otherwise, it returns a description
	// of every array.
	RaidArrayIds []*string `type:"list"`

	// The stack ID.
	StackId *string `type:"string"`
	// contains filtered or unexported fields
}

func (DescribeRaidArraysInput) GoString

func (s DescribeRaidArraysInput) GoString() string

GoString returns the string representation

func (DescribeRaidArraysInput) String

func (s DescribeRaidArraysInput) String() string

String returns the string representation

type DescribeRaidArraysOutput

type DescribeRaidArraysOutput struct {

	// A RaidArrays object that describes the specified RAID arrays.
	RaidArrays []*RaidArray `type:"list"`
	// contains filtered or unexported fields
}

Contains the response to a DescribeRaidArrays request.

func (DescribeRaidArraysOutput) GoString

func (s DescribeRaidArraysOutput) GoString() string

GoString returns the string representation

func (DescribeRaidArraysOutput) String

func (s DescribeRaidArraysOutput) String() string

String returns the string representation

type DescribeRdsDbInstancesInput

type DescribeRdsDbInstancesInput struct {

	// An array containing the ARNs of the instances to be described.
	RdsDbInstanceArns []*string `type:"list"`

	// The stack ID that the instances are registered with. The operation returns
	// descriptions of all registered Amazon RDS instances.
	//
	// StackId is a required field
	StackId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DescribeRdsDbInstancesInput) GoString

func (s DescribeRdsDbInstancesInput) GoString() string

GoString returns the string representation

func (DescribeRdsDbInstancesInput) String

String returns the string representation

func (*DescribeRdsDbInstancesInput) Validate

func (s *DescribeRdsDbInstancesInput) Validate() error

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

type DescribeRdsDbInstancesOutput

type DescribeRdsDbInstancesOutput struct {

	// An a array of RdsDbInstance objects that describe the instances.
	RdsDbInstances []*RdsDbInstance `type:"list"`
	// contains filtered or unexported fields
}

Contains the response to a DescribeRdsDbInstances request.

func (DescribeRdsDbInstancesOutput) GoString

func (s DescribeRdsDbInstancesOutput) GoString() string

GoString returns the string representation

func (DescribeRdsDbInstancesOutput) String

String returns the string representation

type DescribeServiceErrorsInput

type DescribeServiceErrorsInput struct {

	// The instance ID. If you use this parameter, DescribeServiceErrors returns
	// descriptions of the errors associated with the specified instance.
	InstanceId *string `type:"string"`

	// An array of service error IDs. If you use this parameter, DescribeServiceErrors
	// returns descriptions of the specified errors. Otherwise, it returns a description
	// of every error.
	ServiceErrorIds []*string `type:"list"`

	// The stack ID. If you use this parameter, DescribeServiceErrors returns descriptions
	// of the errors associated with the specified stack.
	StackId *string `type:"string"`
	// contains filtered or unexported fields
}

func (DescribeServiceErrorsInput) GoString

func (s DescribeServiceErrorsInput) GoString() string

GoString returns the string representation

func (DescribeServiceErrorsInput) String

String returns the string representation

type DescribeServiceErrorsOutput

type DescribeServiceErrorsOutput struct {

	// An array of ServiceError objects that describe the specified service errors.
	ServiceErrors []*ServiceError `type:"list"`
	// contains filtered or unexported fields
}

Contains the response to a DescribeServiceErrors request.

func (DescribeServiceErrorsOutput) GoString

func (s DescribeServiceErrorsOutput) GoString() string

GoString returns the string representation

func (DescribeServiceErrorsOutput) String

String returns the string representation

type DescribeStackProvisioningParametersInput

type DescribeStackProvisioningParametersInput struct {

	// The stack ID
	//
	// StackId is a required field
	StackId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DescribeStackProvisioningParametersInput) GoString

GoString returns the string representation

func (DescribeStackProvisioningParametersInput) String

String returns the string representation

func (*DescribeStackProvisioningParametersInput) Validate

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

type DescribeStackProvisioningParametersOutput

type DescribeStackProvisioningParametersOutput struct {

	// The AWS OpsWorks agent installer's URL.
	AgentInstallerUrl *string `type:"string"`

	// An embedded object that contains the provisioning parameters.
	Parameters map[string]*string `type:"map"`
	// contains filtered or unexported fields
}

Contains the response to a DescribeStackProvisioningParameters request.

func (DescribeStackProvisioningParametersOutput) GoString

GoString returns the string representation

func (DescribeStackProvisioningParametersOutput) String

String returns the string representation

type DescribeStackSummaryInput

type DescribeStackSummaryInput struct {

	// The stack ID.
	//
	// StackId is a required field
	StackId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DescribeStackSummaryInput) GoString

func (s DescribeStackSummaryInput) GoString() string

GoString returns the string representation

func (DescribeStackSummaryInput) String

func (s DescribeStackSummaryInput) String() string

String returns the string representation

func (*DescribeStackSummaryInput) Validate

func (s *DescribeStackSummaryInput) Validate() error

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

type DescribeStackSummaryOutput

type DescribeStackSummaryOutput struct {

	// A StackSummary object that contains the results.
	StackSummary *StackSummary `type:"structure"`
	// contains filtered or unexported fields
}

Contains the response to a DescribeStackSummary request.

func (DescribeStackSummaryOutput) GoString

func (s DescribeStackSummaryOutput) GoString() string

GoString returns the string representation

func (DescribeStackSummaryOutput) String

String returns the string representation

type DescribeStacksInput

type DescribeStacksInput struct {

	// An array of stack IDs that specify the stacks to be described. If you omit
	// this parameter, DescribeStacks returns a description of every stack.
	StackIds []*string `type:"list"`
	// contains filtered or unexported fields
}

func (DescribeStacksInput) GoString

func (s DescribeStacksInput) GoString() string

GoString returns the string representation

func (DescribeStacksInput) String

func (s DescribeStacksInput) String() string

String returns the string representation

type DescribeStacksOutput

type DescribeStacksOutput struct {

	// An array of Stack objects that describe the stacks.
	Stacks []*Stack `type:"list"`
	// contains filtered or unexported fields
}

Contains the response to a DescribeStacks request.

func (DescribeStacksOutput) GoString

func (s DescribeStacksOutput) GoString() string

GoString returns the string representation

func (DescribeStacksOutput) String

func (s DescribeStacksOutput) String() string

String returns the string representation

type DescribeTimeBasedAutoScalingInput

type DescribeTimeBasedAutoScalingInput struct {

	// An array of instance IDs.
	//
	// InstanceIds is a required field
	InstanceIds []*string `type:"list" required:"true"`
	// contains filtered or unexported fields
}

func (DescribeTimeBasedAutoScalingInput) GoString

GoString returns the string representation

func (DescribeTimeBasedAutoScalingInput) String

String returns the string representation

func (*DescribeTimeBasedAutoScalingInput) Validate

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

type DescribeTimeBasedAutoScalingOutput

type DescribeTimeBasedAutoScalingOutput struct {

	// An array of TimeBasedAutoScalingConfiguration objects that describe the configuration
	// for the specified instances.
	TimeBasedAutoScalingConfigurations []*TimeBasedAutoScalingConfiguration `type:"list"`
	// contains filtered or unexported fields
}

Contains the response to a DescribeTimeBasedAutoScaling request.

func (DescribeTimeBasedAutoScalingOutput) GoString

GoString returns the string representation

func (DescribeTimeBasedAutoScalingOutput) String

String returns the string representation

type DescribeUserProfilesInput

type DescribeUserProfilesInput struct {

	// An array of IAM or federated user ARNs that identify the users to be described.
	IamUserArns []*string `type:"list"`
	// contains filtered or unexported fields
}

func (DescribeUserProfilesInput) GoString

func (s DescribeUserProfilesInput) GoString() string

GoString returns the string representation

func (DescribeUserProfilesInput) String

func (s DescribeUserProfilesInput) String() string

String returns the string representation

type DescribeUserProfilesOutput

type DescribeUserProfilesOutput struct {

	// A Users object that describes the specified users.
	UserProfiles []*UserProfile `type:"list"`
	// contains filtered or unexported fields
}

Contains the response to a DescribeUserProfiles request.

func (DescribeUserProfilesOutput) GoString

func (s DescribeUserProfilesOutput) GoString() string

GoString returns the string representation

func (DescribeUserProfilesOutput) String

String returns the string representation

type DescribeVolumesInput

type DescribeVolumesInput struct {

	// The instance ID. If you use this parameter, DescribeVolumes returns descriptions
	// of the volumes associated with the specified instance.
	InstanceId *string `type:"string"`

	// The RAID array ID. If you use this parameter, DescribeVolumes returns descriptions
	// of the volumes associated with the specified RAID array.
	RaidArrayId *string `type:"string"`

	// A stack ID. The action describes the stack's registered Amazon EBS volumes.
	StackId *string `type:"string"`

	// Am array of volume IDs. If you use this parameter, DescribeVolumes returns
	// descriptions of the specified volumes. Otherwise, it returns a description
	// of every volume.
	VolumeIds []*string `type:"list"`
	// contains filtered or unexported fields
}

func (DescribeVolumesInput) GoString

func (s DescribeVolumesInput) GoString() string

GoString returns the string representation

func (DescribeVolumesInput) String

func (s DescribeVolumesInput) String() string

String returns the string representation

type DescribeVolumesOutput

type DescribeVolumesOutput struct {

	// An array of volume IDs.
	Volumes []*Volume `type:"list"`
	// contains filtered or unexported fields
}

Contains the response to a DescribeVolumes request.

func (DescribeVolumesOutput) GoString

func (s DescribeVolumesOutput) GoString() string

GoString returns the string representation

func (DescribeVolumesOutput) String

func (s DescribeVolumesOutput) String() string

String returns the string representation

type DetachElasticLoadBalancerInput

type DetachElasticLoadBalancerInput struct {

	// The Elastic Load Balancing instance's name.
	//
	// ElasticLoadBalancerName is a required field
	ElasticLoadBalancerName *string `type:"string" required:"true"`

	// The ID of the layer that the Elastic Load Balancing instance is attached
	// to.
	//
	// LayerId is a required field
	LayerId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DetachElasticLoadBalancerInput) GoString

GoString returns the string representation

func (DetachElasticLoadBalancerInput) String

String returns the string representation

func (*DetachElasticLoadBalancerInput) Validate

func (s *DetachElasticLoadBalancerInput) Validate() error

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

type DetachElasticLoadBalancerOutput

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

func (DetachElasticLoadBalancerOutput) GoString

GoString returns the string representation

func (DetachElasticLoadBalancerOutput) String

String returns the string representation

type DisassociateElasticIpInput

type DisassociateElasticIpInput struct {

	// The Elastic IP address.
	//
	// ElasticIp is a required field
	ElasticIp *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DisassociateElasticIpInput) GoString

func (s DisassociateElasticIpInput) GoString() string

GoString returns the string representation

func (DisassociateElasticIpInput) String

String returns the string representation

func (*DisassociateElasticIpInput) Validate

func (s *DisassociateElasticIpInput) Validate() error

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

type DisassociateElasticIpOutput

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

func (DisassociateElasticIpOutput) GoString

func (s DisassociateElasticIpOutput) GoString() string

GoString returns the string representation

func (DisassociateElasticIpOutput) String

String returns the string representation

type EbsBlockDevice

type EbsBlockDevice struct {

	// Whether the volume is deleted on instance termination.
	DeleteOnTermination *bool `type:"boolean"`

	// The number of I/O operations per second (IOPS) that the volume supports.
	// For more information, see EbsBlockDevice (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_EbsBlockDevice.html).
	Iops *int64 `type:"integer"`

	// The snapshot ID.
	SnapshotId *string `type:"string"`

	// The volume size, in GiB. For more information, see EbsBlockDevice (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_EbsBlockDevice.html).
	VolumeSize *int64 `type:"integer"`

	// The volume type. gp2 for General Purpose (SSD) volumes, io1 for Provisioned
	// IOPS (SSD) volumes, and standard for Magnetic volumes.
	VolumeType *string `type:"string" enum:"VolumeType"`
	// contains filtered or unexported fields
}

Describes an Amazon EBS volume. This data type maps directly to the Amazon EC2 EbsBlockDevice (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_EbsBlockDevice.html) data type.

func (EbsBlockDevice) GoString

func (s EbsBlockDevice) GoString() string

GoString returns the string representation

func (EbsBlockDevice) String

func (s EbsBlockDevice) String() string

String returns the string representation

type EcsCluster

type EcsCluster struct {

	// The cluster's ARN.
	EcsClusterArn *string `type:"string"`

	// The cluster name.
	EcsClusterName *string `type:"string"`

	// The time and date that the cluster was registered with the stack.
	RegisteredAt *string `type:"string"`

	// The stack ID.
	StackId *string `type:"string"`
	// contains filtered or unexported fields
}

Describes a registered Amazon ECS cluster.

func (EcsCluster) GoString

func (s EcsCluster) GoString() string

GoString returns the string representation

func (EcsCluster) String

func (s EcsCluster) String() string

String returns the string representation

type ElasticIp

type ElasticIp struct {

	// The domain.
	Domain *string `type:"string"`

	// The ID of the instance that the address is attached to.
	InstanceId *string `type:"string"`

	// The IP address.
	Ip *string `type:"string"`

	// The name.
	Name *string `type:"string"`

	// The AWS region. For more information, see Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html).
	Region *string `type:"string"`
	// contains filtered or unexported fields
}

Describes an Elastic IP address.

func (ElasticIp) GoString

func (s ElasticIp) GoString() string

GoString returns the string representation

func (ElasticIp) String

func (s ElasticIp) String() string

String returns the string representation

type ElasticLoadBalancer

type ElasticLoadBalancer struct {

	// A list of Availability Zones.
	AvailabilityZones []*string `type:"list"`

	// The instance's public DNS name.
	DnsName *string `type:"string"`

	// A list of the EC2 instances that the Elastic Load Balancing instance is managing
	// traffic for.
	Ec2InstanceIds []*string `type:"list"`

	// The Elastic Load Balancing instance's name.
	ElasticLoadBalancerName *string `type:"string"`

	// The ID of the layer that the instance is attached to.
	LayerId *string `type:"string"`

	// The instance's AWS region.
	Region *string `type:"string"`

	// The ID of the stack that the instance is associated with.
	StackId *string `type:"string"`

	// A list of subnet IDs, if the stack is running in a VPC.
	SubnetIds []*string `type:"list"`

	// The VPC ID.
	VpcId *string `type:"string"`
	// contains filtered or unexported fields
}

Describes an Elastic Load Balancing instance.

func (ElasticLoadBalancer) GoString

func (s ElasticLoadBalancer) GoString() string

GoString returns the string representation

func (ElasticLoadBalancer) String

func (s ElasticLoadBalancer) String() string

String returns the string representation

type EnvironmentVariable

type EnvironmentVariable struct {

	// (Required) The environment variable's name, which can consist of up to 64
	// characters and must be specified. The name can contain upper- and lowercase
	// letters, numbers, and underscores (_), but it must start with a letter or
	// underscore.
	//
	// Key is a required field
	Key *string `type:"string" required:"true"`

	// (Optional) Whether the variable's value will be returned by the DescribeApps
	// action. To conceal an environment variable's value, set Secure to true. DescribeApps
	// then returns *****FILTERED***** instead of the actual value. The default
	// value for Secure is false.
	Secure *bool `type:"boolean"`

	// (Optional) The environment variable's value, which can be left empty. If
	// you specify a value, it can contain up to 256 characters, which must all
	// be printable.
	//
	// Value is a required field
	Value *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

Represents an app's environment variable.

func (EnvironmentVariable) GoString

func (s EnvironmentVariable) GoString() string

GoString returns the string representation

func (EnvironmentVariable) String

func (s EnvironmentVariable) String() string

String returns the string representation

func (*EnvironmentVariable) Validate

func (s *EnvironmentVariable) Validate() error

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

type GetHostnameSuggestionInput

type GetHostnameSuggestionInput struct {

	// The layer ID.
	//
	// LayerId is a required field
	LayerId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (GetHostnameSuggestionInput) GoString

func (s GetHostnameSuggestionInput) GoString() string

GoString returns the string representation

func (GetHostnameSuggestionInput) String

String returns the string representation

func (*GetHostnameSuggestionInput) Validate

func (s *GetHostnameSuggestionInput) Validate() error

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

type GetHostnameSuggestionOutput

type GetHostnameSuggestionOutput struct {

	// The generated host name.
	Hostname *string `type:"string"`

	// The layer ID.
	LayerId *string `type:"string"`
	// contains filtered or unexported fields
}

Contains the response to a GetHostnameSuggestion request.

func (GetHostnameSuggestionOutput) GoString

func (s GetHostnameSuggestionOutput) GoString() string

GoString returns the string representation

func (GetHostnameSuggestionOutput) String

String returns the string representation

type GrantAccessInput

type GrantAccessInput struct {

	// The instance's AWS OpsWorks ID.
	//
	// InstanceId is a required field
	InstanceId *string `type:"string" required:"true"`

	// The length of time (in minutes) that the grant is valid. When the grant expires
	// at the end of this period, the user will no longer be able to use the credentials
	// to log in. If the user is logged in at the time, he or she automatically
	// will be logged out.
	ValidForInMinutes *int64 `min:"60" type:"integer"`
	// contains filtered or unexported fields
}

func (GrantAccessInput) GoString

func (s GrantAccessInput) GoString() string

GoString returns the string representation

func (GrantAccessInput) String

func (s GrantAccessInput) String() string

String returns the string representation

func (*GrantAccessInput) Validate

func (s *GrantAccessInput) Validate() error

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

type GrantAccessOutput

type GrantAccessOutput struct {

	// A TemporaryCredential object that contains the data needed to log in to the
	// instance by RDP clients, such as the Microsoft Remote Desktop Connection.
	TemporaryCredential *TemporaryCredential `type:"structure"`
	// contains filtered or unexported fields
}

Contains the response to a GrantAccess request.

func (GrantAccessOutput) GoString

func (s GrantAccessOutput) GoString() string

GoString returns the string representation

func (GrantAccessOutput) String

func (s GrantAccessOutput) String() string

String returns the string representation

type Instance

type Instance struct {

	// The agent version. This parameter is set to INHERIT if the instance inherits
	// the default stack setting or to a a version number for a fixed agent version.
	AgentVersion *string `type:"string"`

	// A custom AMI ID to be used to create the instance. For more information,
	// see Instances (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-custom-ami.html)
	AmiId *string `type:"string"`

	// The instance architecture: "i386" or "x86_64".
	Architecture *string `type:"string" enum:"Architecture"`

	// For load-based or time-based instances, the type.
	AutoScalingType *string `type:"string" enum:"AutoScalingType"`

	// The instance Availability Zone. For more information, see Regions and Endpoints
	// (http://docs.aws.amazon.com/general/latest/gr/rande.html).
	AvailabilityZone *string `type:"string"`

	// An array of BlockDeviceMapping objects that specify the instance's block
	// device mappings.
	BlockDeviceMappings []*BlockDeviceMapping `type:"list"`

	// The time that the instance was created.
	CreatedAt *string `type:"string"`

	// Whether this is an Amazon EBS-optimized instance.
	EbsOptimized *bool `type:"boolean"`

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

	// For container instances, the Amazon ECS cluster's ARN.
	EcsClusterArn *string `type:"string"`

	// For container instances, the instance's ARN.
	EcsContainerInstanceArn *string `type:"string"`

	// The instance Elastic IP address  (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html).
	ElasticIp *string `type:"string"`

	// The instance host name.
	Hostname *string `type:"string"`

	// For registered instances, the infrastructure class: ec2 or on-premises.
	InfrastructureClass *string `type:"string"`

	// Whether to install operating system and package updates when the instance
	// boots. The default value is true. If this value is set to false, you must
	// then update your instances manually by using CreateDeployment to run the
	// update_dependencies stack command or by manually running yum (Amazon Linux)
	// or apt-get (Ubuntu) on the instances.
	//
	//  We strongly recommend using the default value of true, to ensure that your
	// instances have the latest security updates.
	InstallUpdatesOnBoot *bool `type:"boolean"`

	// The instance ID.
	InstanceId *string `type:"string"`

	// The ARN of the instance's IAM profile. For more information about IAM ARNs,
	// see Using Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html).
	InstanceProfileArn *string `type:"string"`

	// The instance type, such as t2.micro.
	InstanceType *string `type:"string"`

	// The ID of the last service error. For more information, call DescribeServiceErrors.
	LastServiceErrorId *string `type:"string"`

	// An array containing the instance layer IDs.
	LayerIds []*string `type:"list"`

	// The instance's operating system.
	Os *string `type:"string"`

	// The instance's platform.
	Platform *string `type:"string"`

	// The The instance's private DNS name.
	PrivateDns *string `type:"string"`

	// The instance's private IP address.
	PrivateIp *string `type:"string"`

	// The instance public DNS name.
	PublicDns *string `type:"string"`

	// The instance public IP address.
	PublicIp *string `type:"string"`

	// For registered instances, who performed the registration.
	RegisteredBy *string `type:"string"`

	// The instance's reported AWS OpsWorks agent version.
	ReportedAgentVersion *string `type:"string"`

	// For registered instances, the reported operating system.
	ReportedOs *ReportedOs `type:"structure"`

	// The instance's root device type. For more information, see Storage for the
	// Root Device (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ComponentsAMIs.html#storage-for-the-root-device).
	RootDeviceType *string `type:"string" enum:"RootDeviceType"`

	// The root device volume ID.
	RootDeviceVolumeId *string `type:"string"`

	// An array containing the instance security group IDs.
	SecurityGroupIds []*string `type:"list"`

	// The SSH key's Deep Security Agent (DSA) fingerprint.
	SshHostDsaKeyFingerprint *string `type:"string"`

	// The SSH key's RSA fingerprint.
	SshHostRsaKeyFingerprint *string `type:"string"`

	// The instance's Amazon EC2 key-pair name.
	SshKeyName *string `type:"string"`

	// The stack ID.
	StackId *string `type:"string"`

	// The instance status:
	//
	//    booting
	//
	//    connection_lost
	//
	//    online
	//
	//    pending
	//
	//    rebooting
	//
	//    requested
	//
	//    running_setup
	//
	//    setup_failed
	//
	//    shutting_down
	//
	//    start_failed
	//
	//    stop_failed
	//
	//    stopped
	//
	//    stopping
	//
	//    terminated
	//
	//    terminating
	Status *string `type:"string"`

	// The instance's subnet ID; applicable only if the stack is running in a VPC.
	SubnetId *string `type:"string"`

	// The instance's tenancy option, such as dedicated or host.
	Tenancy *string `type:"string"`

	// The instance's virtualization type: paravirtual or hvm.
	VirtualizationType *string `type:"string" enum:"VirtualizationType"`
	// contains filtered or unexported fields
}

Describes an instance.

func (Instance) GoString

func (s Instance) GoString() string

GoString returns the string representation

func (Instance) String

func (s Instance) String() string

String returns the string representation

type InstanceIdentity

type InstanceIdentity struct {

	// A JSON document that contains the metadata.
	Document *string `type:"string"`

	// A signature that can be used to verify the document's accuracy and authenticity.
	Signature *string `type:"string"`
	// contains filtered or unexported fields
}

Contains a description of an Amazon EC2 instance from the Amazon EC2 metadata service. For more information, see Instance Metadata and User Data (http://docs.aws.amazon.com/sdkfornet/latest/apidocs/Index.html).

func (InstanceIdentity) GoString

func (s InstanceIdentity) GoString() string

GoString returns the string representation

func (InstanceIdentity) String

func (s InstanceIdentity) String() string

String returns the string representation

type InstancesCount

type InstancesCount struct {

	// The number of instances in the Assigning state.
	Assigning *int64 `type:"integer"`

	// The number of instances with booting status.
	Booting *int64 `type:"integer"`

	// The number of instances with connection_lost status.
	ConnectionLost *int64 `type:"integer"`

	// The number of instances in the Deregistering state.
	Deregistering *int64 `type:"integer"`

	// The number of instances with online status.
	Online *int64 `type:"integer"`

	// The number of instances with pending status.
	Pending *int64 `type:"integer"`

	// The number of instances with rebooting status.
	Rebooting *int64 `type:"integer"`

	// The number of instances in the Registered state.
	Registered *int64 `type:"integer"`

	// The number of instances in the Registering state.
	Registering *int64 `type:"integer"`

	// The number of instances with requested status.
	Requested *int64 `type:"integer"`

	// The number of instances with running_setup status.
	RunningSetup *int64 `type:"integer"`

	// The number of instances with setup_failed status.
	SetupFailed *int64 `type:"integer"`

	// The number of instances with shutting_down status.
	ShuttingDown *int64 `type:"integer"`

	// The number of instances with start_failed status.
	StartFailed *int64 `type:"integer"`

	// The number of instances with stopped status.
	Stopped *int64 `type:"integer"`

	// The number of instances with stopping status.
	Stopping *int64 `type:"integer"`

	// The number of instances with terminated status.
	Terminated *int64 `type:"integer"`

	// The number of instances with terminating status.
	Terminating *int64 `type:"integer"`

	// The number of instances in the Unassigning state.
	Unassigning *int64 `type:"integer"`
	// contains filtered or unexported fields
}

Describes how many instances a stack has for each status.

func (InstancesCount) GoString

func (s InstancesCount) GoString() string

GoString returns the string representation

func (InstancesCount) String

func (s InstancesCount) String() string

String returns the string representation

type Layer

type Layer struct {

	// The layer attributes.
	//
	// For the HaproxyStatsPassword, MysqlRootPassword, and GangliaPassword attributes,
	// AWS OpsWorks returns *****FILTERED***** instead of the actual value
	//
	// For an ECS Cluster layer, AWS OpsWorks the EcsClusterArn attribute is set
	// to the cluster's ARN.
	Attributes map[string]*string `type:"map"`

	// Whether to automatically assign an Elastic IP address (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html)
	// to the layer's instances. For more information, see How to Edit a Layer (http://docs.aws.amazon.com/opsworks/latest/userguide/workinglayers-basics-edit.html).
	AutoAssignElasticIps *bool `type:"boolean"`

	// For stacks that are running in a VPC, whether to automatically assign a public
	// IP address to the layer's instances. For more information, see How to Edit
	// a Layer (http://docs.aws.amazon.com/opsworks/latest/userguide/workinglayers-basics-edit.html).
	AutoAssignPublicIps *bool `type:"boolean"`

	// Date when the layer was created.
	CreatedAt *string `type:"string"`

	// The ARN of the default IAM profile to be used for the layer's EC2 instances.
	// For more information about IAM ARNs, see Using Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html).
	CustomInstanceProfileArn *string `type:"string"`

	// A JSON formatted string containing the layer's custom stack configuration
	// and deployment attributes.
	CustomJson *string `type:"string"`

	// A LayerCustomRecipes object that specifies the layer's custom recipes.
	CustomRecipes *Recipes `type:"structure"`

	// An array containing the layer's custom security group IDs.
	CustomSecurityGroupIds []*string `type:"list"`

	// AWS OpsWorks supports five lifecycle events: setup, configuration, deploy,
	// undeploy, and shutdown. For each layer, AWS OpsWorks runs a set of standard
	// recipes for each event. In addition, you can provide custom recipes for any
	// or all layers and events. AWS OpsWorks runs custom event recipes after the
	// standard recipes. LayerCustomRecipes specifies the custom recipes for a particular
	// layer to be run in response to each of the five events.
	//
	// To specify a recipe, use the cookbook's directory name in the repository
	// followed by two colons and the recipe name, which is the recipe's file name
	// without the .rb extension. For example: phpapp2::dbsetup specifies the dbsetup.rb
	// recipe in the repository's phpapp2 folder.
	DefaultRecipes *Recipes `type:"structure"`

	// An array containing the layer's security group names.
	DefaultSecurityGroupNames []*string `type:"list"`

	// Whether auto healing is disabled for the layer.
	EnableAutoHealing *bool `type:"boolean"`

	// Whether to install operating system and package updates when the instance
	// boots. The default value is true. If this value is set to false, you must
	// then update your instances manually by using CreateDeployment to run the
	// update_dependencies stack command or manually running yum (Amazon Linux)
	// or apt-get (Ubuntu) on the instances.
	//
	//  We strongly recommend using the default value of true, to ensure that your
	// instances have the latest security updates.
	InstallUpdatesOnBoot *bool `type:"boolean"`

	// The layer ID.
	LayerId *string `type:"string"`

	// A LifeCycleEventConfiguration object that specifies the Shutdown event configuration.
	LifecycleEventConfiguration *LifecycleEventConfiguration `type:"structure"`

	// The layer name.
	Name *string `type:"string"`

	// An array of Package objects that describe the layer's packages.
	Packages []*string `type:"list"`

	// The layer short name.
	Shortname *string `type:"string"`

	// The layer stack ID.
	StackId *string `type:"string"`

	// The layer type.
	Type *string `type:"string" enum:"LayerType"`

	// Whether the layer uses Amazon EBS-optimized instances.
	UseEbsOptimizedInstances *bool `type:"boolean"`

	// A VolumeConfigurations object that describes the layer's Amazon EBS volumes.
	VolumeConfigurations []*VolumeConfiguration `type:"list"`
	// contains filtered or unexported fields
}

Describes a layer.

func (Layer) GoString

func (s Layer) GoString() string

GoString returns the string representation

func (Layer) String

func (s Layer) String() string

String returns the string representation

type LifecycleEventConfiguration

type LifecycleEventConfiguration struct {

	// A ShutdownEventConfiguration object that specifies the Shutdown event configuration.
	Shutdown *ShutdownEventConfiguration `type:"structure"`
	// contains filtered or unexported fields
}

Specifies the lifecycle event configuration

func (LifecycleEventConfiguration) GoString

func (s LifecycleEventConfiguration) GoString() string

GoString returns the string representation

func (LifecycleEventConfiguration) String

String returns the string representation

type LoadBasedAutoScalingConfiguration

type LoadBasedAutoScalingConfiguration struct {

	// An AutoScalingThresholds object that describes the downscaling configuration,
	// which defines how and when AWS OpsWorks reduces the number of instances.
	DownScaling *AutoScalingThresholds `type:"structure"`

	// Whether load-based auto scaling is enabled for the layer.
	Enable *bool `type:"boolean"`

	// The layer ID.
	LayerId *string `type:"string"`

	// An AutoScalingThresholds object that describes the upscaling configuration,
	// which defines how and when AWS OpsWorks increases the number of instances.
	UpScaling *AutoScalingThresholds `type:"structure"`
	// contains filtered or unexported fields
}

Describes a layer's load-based auto scaling configuration.

func (LoadBasedAutoScalingConfiguration) GoString

GoString returns the string representation

func (LoadBasedAutoScalingConfiguration) String

String returns the string representation

type OpsWorks

type OpsWorks struct {
	*client.Client
}

Welcome to the AWS OpsWorks API Reference. This guide provides descriptions, syntax, and usage examples for AWS OpsWorks actions and data types, including common parameters and error codes.

AWS OpsWorks is an application management service that provides an integrated experience for overseeing the complete application lifecycle. For information about this product, go to the AWS OpsWorks (http://aws.amazon.com/opsworks/) details page.

SDKs and CLI

The most common way to use the AWS OpsWorks API is by using the AWS Command Line Interface (CLI) or by using one of the AWS SDKs to implement applications in your preferred language. For more information, see:

AWS CLI (http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-welcome.html)

AWS SDK for Java (http://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/opsworks/AWSOpsWorksClient.html)

AWS SDK for .NET (http://docs.aws.amazon.com/sdkfornet/latest/apidocs/html/N_Amazon_OpsWorks.htm)

AWS SDK for PHP 2 (http://docs.aws.amazon.com/aws-sdk-php-2/latest/class-Aws.OpsWorks.OpsWorksClient.html)

AWS SDK for Ruby (http://docs.aws.amazon.com/sdkforruby/api/)

AWS SDK for Node.js (http://aws.amazon.com/documentation/sdkforjavascript/)

AWS SDK for Python(Boto) (http://docs.pythonboto.org/en/latest/ref/opsworks.html)

Endpoints

AWS OpsWorks supports the following endpoints, all HTTPS. You must connect to one of the following endpoints. Stacks can only be accessed or managed within the endpoint in which they are created.

opsworks.us-east-1.amazonaws.com

opsworks.us-west-1.amazonaws.com

opsworks.us-west-2.amazonaws.com

opsworks.eu-west-1.amazonaws.com

opsworks.eu-central-1.amazonaws.com

opsworks.ap-northeast-1.amazonaws.com

opsworks.ap-northeast-2.amazonaws.com

opsworks.ap-south-1.amazonaws.com

opsworks.ap-southeast-1.amazonaws.com

opsworks.ap-southeast-2.amazonaws.com

opsworks.sa-east-1.amazonaws.com

 Chef Versions

When you call CreateStack, CloneStack, or UpdateStack we recommend you use the ConfigurationManager parameter to specify the Chef version. The recommended and default value for Linux stacks is currently 12. Windows stacks use Chef 12.2. For more information, see Chef Versions (http://docs.aws.amazon.com/opsworks/latest/userguide/workingcookbook-chef11.html).

You can specify Chef 12, 11.10, or 11.4 for your Linux stack. We recommend

migrating your existing Linux stacks to Chef 12 as soon as possible. The service client's operations are safe to be used concurrently. It is not safe to mutate any of the client's properties though.

func New

func New(p client.ConfigProvider, cfgs ...*aws.Config) *OpsWorks

New creates a new instance of the OpsWorks client with a session. If additional configuration is needed for the client instance use the optional aws.Config parameter to add your extra config.

Example:

// Create a OpsWorks client from just a session.
svc := opsworks.New(mySession)

// Create a OpsWorks client with additional configuration
svc := opsworks.New(mySession, aws.NewConfig().WithRegion("us-west-2"))

func (*OpsWorks) AssignInstance

func (c *OpsWorks) AssignInstance(input *AssignInstanceInput) (*AssignInstanceOutput, error)

Assign a registered instance to a layer.

You can assign registered on-premises instances to any layer type.

You can assign registered Amazon EC2 instances only to custom layers.

You cannot use this action with instances that were created with AWS OpsWorks.

 Required Permissions: To use this action, an AWS Identity and Access

Management (IAM) user must have a Manage permissions level for the stack or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/opsworks"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := opsworks.New(sess)

	params := &opsworks.AssignInstanceInput{
		InstanceId: aws.String("String"), // Required
		LayerIds: []*string{ // Required
			aws.String("String"), // Required
			// More values...
		},
	}
	resp, err := svc.AssignInstance(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

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

func (*OpsWorks) AssignInstanceRequest

func (c *OpsWorks) AssignInstanceRequest(input *AssignInstanceInput) (req *request.Request, output *AssignInstanceOutput)

AssignInstanceRequest generates a "aws/request.Request" representing the client's request for the AssignInstance operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the AssignInstance method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the AssignInstanceRequest method.
req, resp := client.AssignInstanceRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*OpsWorks) AssignVolume

func (c *OpsWorks) AssignVolume(input *AssignVolumeInput) (*AssignVolumeOutput, error)

Assigns one of the stack's registered Amazon EBS volumes to a specified instance. The volume must first be registered with the stack by calling RegisterVolume. After you register the volume, you must call UpdateVolume to specify a mount point before calling AssignVolume. For more information, see Resource Management (http://docs.aws.amazon.com/opsworks/latest/userguide/resources.html).

Required Permissions: To use this action, an IAM user must have a Manage

permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/opsworks"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := opsworks.New(sess)

	params := &opsworks.AssignVolumeInput{
		VolumeId:   aws.String("String"), // Required
		InstanceId: aws.String("String"),
	}
	resp, err := svc.AssignVolume(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

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

func (*OpsWorks) AssignVolumeRequest

func (c *OpsWorks) AssignVolumeRequest(input *AssignVolumeInput) (req *request.Request, output *AssignVolumeOutput)

AssignVolumeRequest generates a "aws/request.Request" representing the client's request for the AssignVolume operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the AssignVolume method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the AssignVolumeRequest method.
req, resp := client.AssignVolumeRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*OpsWorks) AssociateElasticIp

func (c *OpsWorks) AssociateElasticIp(input *AssociateElasticIpInput) (*AssociateElasticIpOutput, error)

Associates one of the stack's registered Elastic IP addresses with a specified instance. The address must first be registered with the stack by calling RegisterElasticIp. For more information, see Resource Management (http://docs.aws.amazon.com/opsworks/latest/userguide/resources.html).

Required Permissions: To use this action, an IAM user must have a Manage

permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/opsworks"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := opsworks.New(sess)

	params := &opsworks.AssociateElasticIpInput{
		ElasticIp:  aws.String("String"), // Required
		InstanceId: aws.String("String"),
	}
	resp, err := svc.AssociateElasticIp(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

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

func (*OpsWorks) AssociateElasticIpRequest

func (c *OpsWorks) AssociateElasticIpRequest(input *AssociateElasticIpInput) (req *request.Request, output *AssociateElasticIpOutput)

AssociateElasticIpRequest generates a "aws/request.Request" representing the client's request for the AssociateElasticIp operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the AssociateElasticIp method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the AssociateElasticIpRequest method.
req, resp := client.AssociateElasticIpRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*OpsWorks) AttachElasticLoadBalancer

func (c *OpsWorks) AttachElasticLoadBalancer(input *AttachElasticLoadBalancerInput) (*AttachElasticLoadBalancerOutput, error)

Attaches an Elastic Load Balancing load balancer to a specified layer. For more information, see Elastic Load Balancing (http://docs.aws.amazon.com/opsworks/latest/userguide/load-balancer-elb.html).

You must create the Elastic Load Balancing instance separately, by using

the Elastic Load Balancing console, API, or CLI. For more information, see

Elastic Load Balancing Developer Guide (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/Welcome.html).

 Required Permissions: To use this action, an IAM user must have a Manage

permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/opsworks"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := opsworks.New(sess)

	params := &opsworks.AttachElasticLoadBalancerInput{
		ElasticLoadBalancerName: aws.String("String"), // Required
		LayerId:                 aws.String("String"), // Required
	}
	resp, err := svc.AttachElasticLoadBalancer(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

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

func (*OpsWorks) AttachElasticLoadBalancerRequest

func (c *OpsWorks) AttachElasticLoadBalancerRequest(input *AttachElasticLoadBalancerInput) (req *request.Request, output *AttachElasticLoadBalancerOutput)

AttachElasticLoadBalancerRequest generates a "aws/request.Request" representing the client's request for the AttachElasticLoadBalancer operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the AttachElasticLoadBalancer method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the AttachElasticLoadBalancerRequest method.
req, resp := client.AttachElasticLoadBalancerRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*OpsWorks) CloneStack

func (c *OpsWorks) CloneStack(input *CloneStackInput) (*CloneStackOutput, error)

Creates a clone of a specified stack. For more information, see Clone a Stack (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-cloning.html). By default, all parameters are set to the values used by the parent stack.

Required Permissions: To use this action, an IAM user must have an attached

policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/opsworks"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := opsworks.New(sess)

	params := &opsworks.CloneStackInput{
		ServiceRoleArn: aws.String("String"), // Required
		SourceStackId:  aws.String("String"), // Required
		AgentVersion:   aws.String("String"),
		Attributes: map[string]*string{
			"Key": aws.String("String"), // Required
			// More values...
		},
		ChefConfiguration: &opsworks.ChefConfiguration{
			BerkshelfVersion: aws.String("String"),
			ManageBerkshelf:  aws.Bool(true),
		},
		CloneAppIds: []*string{
			aws.String("String"), // Required
			// More values...
		},
		ClonePermissions: aws.Bool(true),
		ConfigurationManager: &opsworks.StackConfigurationManager{
			Name:    aws.String("String"),
			Version: aws.String("String"),
		},
		CustomCookbooksSource: &opsworks.Source{
			Password: aws.String("String"),
			Revision: aws.String("String"),
			SshKey:   aws.String("String"),
			Type:     aws.String("SourceType"),
			Url:      aws.String("String"),
			Username: aws.String("String"),
		},
		CustomJson:                aws.String("String"),
		DefaultAvailabilityZone:   aws.String("String"),
		DefaultInstanceProfileArn: aws.String("String"),
		DefaultOs:                 aws.String("String"),
		DefaultRootDeviceType:     aws.String("RootDeviceType"),
		DefaultSshKeyName:         aws.String("String"),
		DefaultSubnetId:           aws.String("String"),
		HostnameTheme:             aws.String("String"),
		Name:                      aws.String("String"),
		Region:                    aws.String("String"),
		UseCustomCookbooks:        aws.Bool(true),
		UseOpsworksSecurityGroups: aws.Bool(true),
		VpcId:                     aws.String("String"),
	}
	resp, err := svc.CloneStack(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

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

func (*OpsWorks) CloneStackRequest

func (c *OpsWorks) CloneStackRequest(input *CloneStackInput) (req *request.Request, output *CloneStackOutput)

CloneStackRequest generates a "aws/request.Request" representing the client's request for the CloneStack operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the CloneStack method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the CloneStackRequest method.
req, resp := client.CloneStackRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*OpsWorks) CreateApp

func (c *OpsWorks) CreateApp(input *CreateAppInput) (*CreateAppOutput, error)

Creates an app for a specified stack. For more information, see Creating Apps (http://docs.aws.amazon.com/opsworks/latest/userguide/workingapps-creating.html).

Required Permissions: To use this action, an IAM user must have a Manage

permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/opsworks"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := opsworks.New(sess)

	params := &opsworks.CreateAppInput{
		Name:    aws.String("String"),  // Required
		StackId: aws.String("String"),  // Required
		Type:    aws.String("AppType"), // Required
		AppSource: &opsworks.Source{
			Password: aws.String("String"),
			Revision: aws.String("String"),
			SshKey:   aws.String("String"),
			Type:     aws.String("SourceType"),
			Url:      aws.String("String"),
			Username: aws.String("String"),
		},
		Attributes: map[string]*string{
			"Key": aws.String("String"), // Required
			// More values...
		},
		DataSources: []*opsworks.DataSource{
			{ // Required
				Arn:          aws.String("String"),
				DatabaseName: aws.String("String"),
				Type:         aws.String("String"),
			},
			// More values...
		},
		Description: aws.String("String"),
		Domains: []*string{
			aws.String("String"), // Required
			// More values...
		},
		EnableSsl: aws.Bool(true),
		Environment: []*opsworks.EnvironmentVariable{
			{ // Required
				Key:    aws.String("String"), // Required
				Value:  aws.String("String"), // Required
				Secure: aws.Bool(true),
			},
			// More values...
		},
		Shortname: aws.String("String"),
		SslConfiguration: &opsworks.SslConfiguration{
			Certificate: aws.String("String"), // Required
			PrivateKey:  aws.String("String"), // Required
			Chain:       aws.String("String"),
		},
	}
	resp, err := svc.CreateApp(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

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

func (*OpsWorks) CreateAppRequest

func (c *OpsWorks) CreateAppRequest(input *CreateAppInput) (req *request.Request, output *CreateAppOutput)

CreateAppRequest generates a "aws/request.Request" representing the client's request for the CreateApp operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the CreateApp method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the CreateAppRequest method.
req, resp := client.CreateAppRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*OpsWorks) CreateDeployment

func (c *OpsWorks) CreateDeployment(input *CreateDeploymentInput) (*CreateDeploymentOutput, error)

Runs deployment or stack commands. For more information, see Deploying Apps (http://docs.aws.amazon.com/opsworks/latest/userguide/workingapps-deploying.html) and Run Stack Commands (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-commands.html).

Required Permissions: To use this action, an IAM user must have a Deploy

or Manage permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/opsworks"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := opsworks.New(sess)

	params := &opsworks.CreateDeploymentInput{
		Command: &opsworks.DeploymentCommand{ // Required
			Name: aws.String("DeploymentCommandName"), // Required
			Args: map[string][]*string{
				"Key": { // Required
					aws.String("String"), // Required
					// More values...
				},
				// More values...
			},
		},
		StackId:    aws.String("String"), // Required
		AppId:      aws.String("String"),
		Comment:    aws.String("String"),
		CustomJson: aws.String("String"),
		InstanceIds: []*string{
			aws.String("String"), // Required
			// More values...
		},
		LayerIds: []*string{
			aws.String("String"), // Required
			// More values...
		},
	}
	resp, err := svc.CreateDeployment(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

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

func (*OpsWorks) CreateDeploymentRequest

func (c *OpsWorks) CreateDeploymentRequest(input *CreateDeploymentInput) (req *request.Request, output *CreateDeploymentOutput)

CreateDeploymentRequest generates a "aws/request.Request" representing the client's request for the CreateDeployment operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the CreateDeployment method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the CreateDeploymentRequest method.
req, resp := client.CreateDeploymentRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*OpsWorks) CreateInstance

func (c *OpsWorks) CreateInstance(input *CreateInstanceInput) (*CreateInstanceOutput, error)

Creates an instance in a specified stack. For more information, see Adding an Instance to a Layer (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-add.html).

Required Permissions: To use this action, an IAM user must have a Manage

permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/opsworks"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := opsworks.New(sess)

	params := &opsworks.CreateInstanceInput{
		InstanceType: aws.String("String"), // Required
		LayerIds: []*string{ // Required
			aws.String("String"), // Required
			// More values...
		},
		StackId:          aws.String("String"), // Required
		AgentVersion:     aws.String("String"),
		AmiId:            aws.String("String"),
		Architecture:     aws.String("Architecture"),
		AutoScalingType:  aws.String("AutoScalingType"),
		AvailabilityZone: aws.String("String"),
		BlockDeviceMappings: []*opsworks.BlockDeviceMapping{
			{ // Required
				DeviceName: aws.String("String"),
				Ebs: &opsworks.EbsBlockDevice{
					DeleteOnTermination: aws.Bool(true),
					Iops:                aws.Int64(1),
					SnapshotId:          aws.String("String"),
					VolumeSize:          aws.Int64(1),
					VolumeType:          aws.String("VolumeType"),
				},
				NoDevice:    aws.String("String"),
				VirtualName: aws.String("String"),
			},
			// More values...
		},
		EbsOptimized:         aws.Bool(true),
		Hostname:             aws.String("String"),
		InstallUpdatesOnBoot: aws.Bool(true),
		Os:                   aws.String("String"),
		RootDeviceType:       aws.String("RootDeviceType"),
		SshKeyName:           aws.String("String"),
		SubnetId:             aws.String("String"),
		Tenancy:              aws.String("String"),
		VirtualizationType:   aws.String("String"),
	}
	resp, err := svc.CreateInstance(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

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

func (*OpsWorks) CreateInstanceRequest

func (c *OpsWorks) CreateInstanceRequest(input *CreateInstanceInput) (req *request.Request, output *CreateInstanceOutput)

CreateInstanceRequest generates a "aws/request.Request" representing the client's request for the CreateInstance operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the CreateInstance method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the CreateInstanceRequest method.
req, resp := client.CreateInstanceRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*OpsWorks) CreateLayer

func (c *OpsWorks) CreateLayer(input *CreateLayerInput) (*CreateLayerOutput, error)

Creates a layer. For more information, see How to Create a Layer (http://docs.aws.amazon.com/opsworks/latest/userguide/workinglayers-basics-create.html).

You should use CreateLayer for noncustom layer types such as PHP App Server

only if the stack does not have an existing layer of that type. A stack can have at most one instance of each noncustom layer; if you attempt to create a second instance, CreateLayer fails. A stack can have an arbitrary number of custom layers, so you can call CreateLayer as many times as you like for that layer type.

Required Permissions: To use this action, an IAM user must have a Manage

permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/opsworks"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := opsworks.New(sess)

	params := &opsworks.CreateLayerInput{
		Name:      aws.String("String"),    // Required
		Shortname: aws.String("String"),    // Required
		StackId:   aws.String("String"),    // Required
		Type:      aws.String("LayerType"), // Required
		Attributes: map[string]*string{
			"Key": aws.String("String"), // Required
			// More values...
		},
		AutoAssignElasticIps:     aws.Bool(true),
		AutoAssignPublicIps:      aws.Bool(true),
		CustomInstanceProfileArn: aws.String("String"),
		CustomJson:               aws.String("String"),
		CustomRecipes: &opsworks.Recipes{
			Configure: []*string{
				aws.String("String"), // Required
				// More values...
			},
			Deploy: []*string{
				aws.String("String"), // Required
				// More values...
			},
			Setup: []*string{
				aws.String("String"), // Required
				// More values...
			},
			Shutdown: []*string{
				aws.String("String"), // Required
				// More values...
			},
			Undeploy: []*string{
				aws.String("String"), // Required
				// More values...
			},
		},
		CustomSecurityGroupIds: []*string{
			aws.String("String"), // Required
			// More values...
		},
		EnableAutoHealing:    aws.Bool(true),
		InstallUpdatesOnBoot: aws.Bool(true),
		LifecycleEventConfiguration: &opsworks.LifecycleEventConfiguration{
			Shutdown: &opsworks.ShutdownEventConfiguration{
				DelayUntilElbConnectionsDrained: aws.Bool(true),
				ExecutionTimeout:                aws.Int64(1),
			},
		},
		Packages: []*string{
			aws.String("String"), // Required
			// More values...
		},
		UseEbsOptimizedInstances: aws.Bool(true),
		VolumeConfigurations: []*opsworks.VolumeConfiguration{
			{ // Required
				MountPoint:    aws.String("String"), // Required
				NumberOfDisks: aws.Int64(1),         // Required
				Size:          aws.Int64(1),         // Required
				Iops:          aws.Int64(1),
				RaidLevel:     aws.Int64(1),
				VolumeType:    aws.String("String"),
			},
			// More values...
		},
	}
	resp, err := svc.CreateLayer(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

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

func (*OpsWorks) CreateLayerRequest

func (c *OpsWorks) CreateLayerRequest(input *CreateLayerInput) (req *request.Request, output *CreateLayerOutput)

CreateLayerRequest generates a "aws/request.Request" representing the client's request for the CreateLayer operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the CreateLayer method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the CreateLayerRequest method.
req, resp := client.CreateLayerRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*OpsWorks) CreateStack

func (c *OpsWorks) CreateStack(input *CreateStackInput) (*CreateStackOutput, error)

Creates a new stack. For more information, see Create a New Stack (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-edit.html).

Required Permissions: To use this action, an IAM user must have an attached

policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/opsworks"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := opsworks.New(sess)

	params := &opsworks.CreateStackInput{
		DefaultInstanceProfileArn: aws.String("String"), // Required
		Name:                      aws.String("String"), // Required
		Region:                    aws.String("String"), // Required
		ServiceRoleArn:            aws.String("String"), // Required
		AgentVersion:              aws.String("String"),
		Attributes: map[string]*string{
			"Key": aws.String("String"), // Required
			// More values...
		},
		ChefConfiguration: &opsworks.ChefConfiguration{
			BerkshelfVersion: aws.String("String"),
			ManageBerkshelf:  aws.Bool(true),
		},
		ConfigurationManager: &opsworks.StackConfigurationManager{
			Name:    aws.String("String"),
			Version: aws.String("String"),
		},
		CustomCookbooksSource: &opsworks.Source{
			Password: aws.String("String"),
			Revision: aws.String("String"),
			SshKey:   aws.String("String"),
			Type:     aws.String("SourceType"),
			Url:      aws.String("String"),
			Username: aws.String("String"),
		},
		CustomJson:                aws.String("String"),
		DefaultAvailabilityZone:   aws.String("String"),
		DefaultOs:                 aws.String("String"),
		DefaultRootDeviceType:     aws.String("RootDeviceType"),
		DefaultSshKeyName:         aws.String("String"),
		DefaultSubnetId:           aws.String("String"),
		HostnameTheme:             aws.String("String"),
		UseCustomCookbooks:        aws.Bool(true),
		UseOpsworksSecurityGroups: aws.Bool(true),
		VpcId:                     aws.String("String"),
	}
	resp, err := svc.CreateStack(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

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

func (*OpsWorks) CreateStackRequest

func (c *OpsWorks) CreateStackRequest(input *CreateStackInput) (req *request.Request, output *CreateStackOutput)

CreateStackRequest generates a "aws/request.Request" representing the client's request for the CreateStack operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the CreateStack method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the CreateStackRequest method.
req, resp := client.CreateStackRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*OpsWorks) CreateUserProfile

func (c *OpsWorks) CreateUserProfile(input *CreateUserProfileInput) (*CreateUserProfileOutput, error)

Creates a new user profile.

Required Permissions: To use this action, an IAM user must have an attached

policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/opsworks"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := opsworks.New(sess)

	params := &opsworks.CreateUserProfileInput{
		IamUserArn:          aws.String("String"), // Required
		AllowSelfManagement: aws.Bool(true),
		SshPublicKey:        aws.String("String"),
		SshUsername:         aws.String("String"),
	}
	resp, err := svc.CreateUserProfile(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

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

func (*OpsWorks) CreateUserProfileRequest

func (c *OpsWorks) CreateUserProfileRequest(input *CreateUserProfileInput) (req *request.Request, output *CreateUserProfileOutput)

CreateUserProfileRequest generates a "aws/request.Request" representing the client's request for the CreateUserProfile operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the CreateUserProfile method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the CreateUserProfileRequest method.
req, resp := client.CreateUserProfileRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*OpsWorks) DeleteApp

func (c *OpsWorks) DeleteApp(input *DeleteAppInput) (*DeleteAppOutput, error)

Deletes a specified app.

Required Permissions: To use this action, an IAM user must have a Manage

permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/opsworks"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := opsworks.New(sess)

	params := &opsworks.DeleteAppInput{
		AppId: aws.String("String"), // Required
	}
	resp, err := svc.DeleteApp(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

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

func (*OpsWorks) DeleteAppRequest

func (c *OpsWorks) DeleteAppRequest(input *DeleteAppInput) (req *request.Request, output *DeleteAppOutput)

DeleteAppRequest generates a "aws/request.Request" representing the client's request for the DeleteApp operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DeleteApp method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the DeleteAppRequest method.
req, resp := client.DeleteAppRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*OpsWorks) DeleteInstance

func (c *OpsWorks) DeleteInstance(input *DeleteInstanceInput) (*DeleteInstanceOutput, error)

Deletes a specified instance, which terminates the associated Amazon EC2 instance. You must stop an instance before you can delete it.

For more information, see Deleting Instances (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-delete.html).

Required Permissions: To use this action, an IAM user must have a Manage

permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/opsworks"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := opsworks.New(sess)

	params := &opsworks.DeleteInstanceInput{
		InstanceId:      aws.String("String"), // Required
		DeleteElasticIp: aws.Bool(true),
		DeleteVolumes:   aws.Bool(true),
	}
	resp, err := svc.DeleteInstance(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

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

func (*OpsWorks) DeleteInstanceRequest

func (c *OpsWorks) DeleteInstanceRequest(input *DeleteInstanceInput) (req *request.Request, output *DeleteInstanceOutput)

DeleteInstanceRequest generates a "aws/request.Request" representing the client's request for the DeleteInstance operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DeleteInstance method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the DeleteInstanceRequest method.
req, resp := client.DeleteInstanceRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*OpsWorks) DeleteLayer

func (c *OpsWorks) DeleteLayer(input *DeleteLayerInput) (*DeleteLayerOutput, error)

Deletes a specified layer. You must first stop and then delete all associated instances or unassign registered instances. For more information, see How to Delete a Layer (http://docs.aws.amazon.com/opsworks/latest/userguide/workinglayers-basics-delete.html).

Required Permissions: To use this action, an IAM user must have a Manage

permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/opsworks"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := opsworks.New(sess)

	params := &opsworks.DeleteLayerInput{
		LayerId: aws.String("String"), // Required
	}
	resp, err := svc.DeleteLayer(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

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

func (*OpsWorks) DeleteLayerRequest

func (c *OpsWorks) DeleteLayerRequest(input *DeleteLayerInput) (req *request.Request, output *DeleteLayerOutput)

DeleteLayerRequest generates a "aws/request.Request" representing the client's request for the DeleteLayer operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DeleteLayer method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the DeleteLayerRequest method.
req, resp := client.DeleteLayerRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*OpsWorks) DeleteStack

func (c *OpsWorks) DeleteStack(input *DeleteStackInput) (*DeleteStackOutput, error)

Deletes a specified stack. You must first delete all instances, layers, and apps or deregister registered instances. For more information, see Shut Down a Stack (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-shutting.html).

Required Permissions: To use this action, an IAM user must have a Manage

permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/opsworks"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := opsworks.New(sess)

	params := &opsworks.DeleteStackInput{
		StackId: aws.String("String"), // Required
	}
	resp, err := svc.DeleteStack(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

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

func (*OpsWorks) DeleteStackRequest

func (c *OpsWorks) DeleteStackRequest(input *DeleteStackInput) (req *request.Request, output *DeleteStackOutput)

DeleteStackRequest generates a "aws/request.Request" representing the client's request for the DeleteStack operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DeleteStack method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the DeleteStackRequest method.
req, resp := client.DeleteStackRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*OpsWorks) DeleteUserProfile

func (c *OpsWorks) DeleteUserProfile(input *DeleteUserProfileInput) (*DeleteUserProfileOutput, error)

Deletes a user profile.

Required Permissions: To use this action, an IAM user must have an attached

policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/opsworks"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := opsworks.New(sess)

	params := &opsworks.DeleteUserProfileInput{
		IamUserArn: aws.String("String"), // Required
	}
	resp, err := svc.DeleteUserProfile(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

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

func (*OpsWorks) DeleteUserProfileRequest

func (c *OpsWorks) DeleteUserProfileRequest(input *DeleteUserProfileInput) (req *request.Request, output *DeleteUserProfileOutput)

DeleteUserProfileRequest generates a "aws/request.Request" representing the client's request for the DeleteUserProfile operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DeleteUserProfile method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the DeleteUserProfileRequest method.
req, resp := client.DeleteUserProfileRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*OpsWorks) DeregisterEcsCluster

func (c *OpsWorks) DeregisterEcsCluster(input *DeregisterEcsClusterInput) (*DeregisterEcsClusterOutput, error)

Deregisters a specified Amazon ECS cluster from a stack. For more information, see Resource Management (http://docs.aws.amazon.com/opsworks/latest/userguide/workinglayers-ecscluster.html#workinglayers-ecscluster-delete).

Required Permissions: To use this action, an IAM user must have a Manage

permissions level for the stack or an attached policy that explicitly grants permissions. For more information on user permissions, see http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/opsworks"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := opsworks.New(sess)

	params := &opsworks.DeregisterEcsClusterInput{
		EcsClusterArn: aws.String("String"), // Required
	}
	resp, err := svc.DeregisterEcsCluster(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

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

func (*OpsWorks) DeregisterEcsClusterRequest

func (c *OpsWorks) DeregisterEcsClusterRequest(input *DeregisterEcsClusterInput) (req *request.Request, output *DeregisterEcsClusterOutput)

DeregisterEcsClusterRequest generates a "aws/request.Request" representing the client's request for the DeregisterEcsCluster operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DeregisterEcsCluster method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the DeregisterEcsClusterRequest method.
req, resp := client.DeregisterEcsClusterRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*OpsWorks) DeregisterElasticIp

func (c *OpsWorks) DeregisterElasticIp(input *DeregisterElasticIpInput) (*DeregisterElasticIpOutput, error)

Deregisters a specified Elastic IP address. The address can then be registered by another stack. For more information, see Resource Management (http://docs.aws.amazon.com/opsworks/latest/userguide/resources.html).

Required Permissions: To use this action, an IAM user must have a Manage

permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/opsworks"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := opsworks.New(sess)

	params := &opsworks.DeregisterElasticIpInput{
		ElasticIp: aws.String("String"), // Required
	}
	resp, err := svc.DeregisterElasticIp(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

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

func (*OpsWorks) DeregisterElasticIpRequest

func (c *OpsWorks) DeregisterElasticIpRequest(input *DeregisterElasticIpInput) (req *request.Request, output *DeregisterElasticIpOutput)

DeregisterElasticIpRequest generates a "aws/request.Request" representing the client's request for the DeregisterElasticIp operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DeregisterElasticIp method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the DeregisterElasticIpRequest method.
req, resp := client.DeregisterElasticIpRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*OpsWorks) DeregisterInstance

func (c *OpsWorks) DeregisterInstance(input *DeregisterInstanceInput) (*DeregisterInstanceOutput, error)

Deregister a registered Amazon EC2 or on-premises instance. This action removes the instance from the stack and returns it to your control. This action can not be used with instances that were created with AWS OpsWorks.

Required Permissions: To use this action, an IAM user must have a Manage

permissions level for the stack or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/opsworks"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := opsworks.New(sess)

	params := &opsworks.DeregisterInstanceInput{
		InstanceId: aws.String("String"), // Required
	}
	resp, err := svc.DeregisterInstance(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

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

func (*OpsWorks) DeregisterInstanceRequest

func (c *OpsWorks) DeregisterInstanceRequest(input *DeregisterInstanceInput) (req *request.Request, output *DeregisterInstanceOutput)

DeregisterInstanceRequest generates a "aws/request.Request" representing the client's request for the DeregisterInstance operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DeregisterInstance method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the DeregisterInstanceRequest method.
req, resp := client.DeregisterInstanceRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*OpsWorks) DeregisterRdsDbInstance

func (c *OpsWorks) DeregisterRdsDbInstance(input *DeregisterRdsDbInstanceInput) (*DeregisterRdsDbInstanceOutput, error)

Deregisters an Amazon RDS instance.

Required Permissions: To use this action, an IAM user must have a Manage

permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/opsworks"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := opsworks.New(sess)

	params := &opsworks.DeregisterRdsDbInstanceInput{
		RdsDbInstanceArn: aws.String("String"), // Required
	}
	resp, err := svc.DeregisterRdsDbInstance(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

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

func (*OpsWorks) DeregisterRdsDbInstanceRequest

func (c *OpsWorks) DeregisterRdsDbInstanceRequest(input *DeregisterRdsDbInstanceInput) (req *request.Request, output *DeregisterRdsDbInstanceOutput)

DeregisterRdsDbInstanceRequest generates a "aws/request.Request" representing the client's request for the DeregisterRdsDbInstance operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DeregisterRdsDbInstance method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the DeregisterRdsDbInstanceRequest method.
req, resp := client.DeregisterRdsDbInstanceRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*OpsWorks) DeregisterVolume

func (c *OpsWorks) DeregisterVolume(input *DeregisterVolumeInput) (*DeregisterVolumeOutput, error)

Deregisters an Amazon EBS volume. The volume can then be registered by another stack. For more information, see Resource Management (http://docs.aws.amazon.com/opsworks/latest/userguide/resources.html).

Required Permissions: To use this action, an IAM user must have a Manage

permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/opsworks"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := opsworks.New(sess)

	params := &opsworks.DeregisterVolumeInput{
		VolumeId: aws.String("String"), // Required
	}
	resp, err := svc.DeregisterVolume(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

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

func (*OpsWorks) DeregisterVolumeRequest

func (c *OpsWorks) DeregisterVolumeRequest(input *DeregisterVolumeInput) (req *request.Request, output *DeregisterVolumeOutput)

DeregisterVolumeRequest generates a "aws/request.Request" representing the client's request for the DeregisterVolume operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DeregisterVolume method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the DeregisterVolumeRequest method.
req, resp := client.DeregisterVolumeRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*OpsWorks) DescribeAgentVersions

func (c *OpsWorks) DescribeAgentVersions(input *DescribeAgentVersionsInput) (*DescribeAgentVersionsOutput, error)

Describes the available AWS OpsWorks agent versions. You must specify a stack ID or a configuration manager. DescribeAgentVersions returns a list of available agent versions for the specified stack or configuration manager.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/opsworks"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := opsworks.New(sess)

	params := &opsworks.DescribeAgentVersionsInput{
		ConfigurationManager: &opsworks.StackConfigurationManager{
			Name:    aws.String("String"),
			Version: aws.String("String"),
		},
		StackId: aws.String("String"),
	}
	resp, err := svc.DescribeAgentVersions(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

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

func (*OpsWorks) DescribeAgentVersionsRequest

func (c *OpsWorks) DescribeAgentVersionsRequest(input *DescribeAgentVersionsInput) (req *request.Request, output *DescribeAgentVersionsOutput)

DescribeAgentVersionsRequest generates a "aws/request.Request" representing the client's request for the DescribeAgentVersions operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DescribeAgentVersions method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the DescribeAgentVersionsRequest method.
req, resp := client.DescribeAgentVersionsRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*OpsWorks) DescribeApps

func (c *OpsWorks) DescribeApps(input *DescribeAppsInput) (*DescribeAppsOutput, error)

Requests a description of a specified set of apps.

You must specify at least one of the parameters.

 Required Permissions: To use this action, an IAM user must have a Show,

Deploy, or Manage permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/opsworks"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := opsworks.New(sess)

	params := &opsworks.DescribeAppsInput{
		AppIds: []*string{
			aws.String("String"), // Required
			// More values...
		},
		StackId: aws.String("String"),
	}
	resp, err := svc.DescribeApps(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

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

func (*OpsWorks) DescribeAppsRequest

func (c *OpsWorks) DescribeAppsRequest(input *DescribeAppsInput) (req *request.Request, output *DescribeAppsOutput)

DescribeAppsRequest generates a "aws/request.Request" representing the client's request for the DescribeApps operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DescribeApps method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the DescribeAppsRequest method.
req, resp := client.DescribeAppsRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*OpsWorks) DescribeCommands

func (c *OpsWorks) DescribeCommands(input *DescribeCommandsInput) (*DescribeCommandsOutput, error)

Describes the results of specified commands.

You must specify at least one of the parameters.

 Required Permissions: To use this action, an IAM user must have a Show,

Deploy, or Manage permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/opsworks"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := opsworks.New(sess)

	params := &opsworks.DescribeCommandsInput{
		CommandIds: []*string{
			aws.String("String"), // Required
			// More values...
		},
		DeploymentId: aws.String("String"),
		InstanceId:   aws.String("String"),
	}
	resp, err := svc.DescribeCommands(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

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

func (*OpsWorks) DescribeCommandsRequest

func (c *OpsWorks) DescribeCommandsRequest(input *DescribeCommandsInput) (req *request.Request, output *DescribeCommandsOutput)

DescribeCommandsRequest generates a "aws/request.Request" representing the client's request for the DescribeCommands operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DescribeCommands method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the DescribeCommandsRequest method.
req, resp := client.DescribeCommandsRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*OpsWorks) DescribeDeployments

func (c *OpsWorks) DescribeDeployments(input *DescribeDeploymentsInput) (*DescribeDeploymentsOutput, error)

Requests a description of a specified set of deployments.

You must specify at least one of the parameters.

 Required Permissions: To use this action, an IAM user must have a Show,

Deploy, or Manage permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/opsworks"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := opsworks.New(sess)

	params := &opsworks.DescribeDeploymentsInput{
		AppId: aws.String("String"),
		DeploymentIds: []*string{
			aws.String("String"), // Required
			// More values...
		},
		StackId: aws.String("String"),
	}
	resp, err := svc.DescribeDeployments(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

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

func (*OpsWorks) DescribeDeploymentsRequest

func (c *OpsWorks) DescribeDeploymentsRequest(input *DescribeDeploymentsInput) (req *request.Request, output *DescribeDeploymentsOutput)

DescribeDeploymentsRequest generates a "aws/request.Request" representing the client's request for the DescribeDeployments operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DescribeDeployments method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the DescribeDeploymentsRequest method.
req, resp := client.DescribeDeploymentsRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*OpsWorks) DescribeEcsClusters

func (c *OpsWorks) DescribeEcsClusters(input *DescribeEcsClustersInput) (*DescribeEcsClustersOutput, error)

Describes Amazon ECS clusters that are registered with a stack. If you specify only a stack ID, you can use the MaxResults and NextToken parameters to paginate the response. However, AWS OpsWorks currently supports only one cluster per layer, so the result set has a maximum of one element.

Required Permissions: To use this action, an IAM user must have a Show,

Deploy, or Manage permissions level for the stack or an attached policy that explicitly grants permission. For more information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/opsworks"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := opsworks.New(sess)

	params := &opsworks.DescribeEcsClustersInput{
		EcsClusterArns: []*string{
			aws.String("String"), // Required
			// More values...
		},
		MaxResults: aws.Int64(1),
		NextToken:  aws.String("String"),
		StackId:    aws.String("String"),
	}
	resp, err := svc.DescribeEcsClusters(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

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

func (*OpsWorks) DescribeEcsClustersPages

func (c *OpsWorks) DescribeEcsClustersPages(input *DescribeEcsClustersInput, fn func(p *DescribeEcsClustersOutput, lastPage bool) (shouldContinue bool)) error

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

See DescribeEcsClusters 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 DescribeEcsClusters operation.
pageNum := 0
err := client.DescribeEcsClustersPages(params,
    func(page *DescribeEcsClustersOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*OpsWorks) DescribeEcsClustersRequest

func (c *OpsWorks) DescribeEcsClustersRequest(input *DescribeEcsClustersInput) (req *request.Request, output *DescribeEcsClustersOutput)

DescribeEcsClustersRequest generates a "aws/request.Request" representing the client's request for the DescribeEcsClusters operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DescribeEcsClusters method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the DescribeEcsClustersRequest method.
req, resp := client.DescribeEcsClustersRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*OpsWorks) DescribeElasticIps

func (c *OpsWorks) DescribeElasticIps(input *DescribeElasticIpsInput) (*DescribeElasticIpsOutput, error)

Describes Elastic IP addresses (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html).

You must specify at least one of the parameters.

 Required Permissions: To use this action, an IAM user must have a Show,

Deploy, or Manage permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/opsworks"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := opsworks.New(sess)

	params := &opsworks.DescribeElasticIpsInput{
		InstanceId: aws.String("String"),
		Ips: []*string{
			aws.String("String"), // Required
			// More values...
		},
		StackId: aws.String("String"),
	}
	resp, err := svc.DescribeElasticIps(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

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

func (*OpsWorks) DescribeElasticIpsRequest

func (c *OpsWorks) DescribeElasticIpsRequest(input *DescribeElasticIpsInput) (req *request.Request, output *DescribeElasticIpsOutput)

DescribeElasticIpsRequest generates a "aws/request.Request" representing the client's request for the DescribeElasticIps operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DescribeElasticIps method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the DescribeElasticIpsRequest method.
req, resp := client.DescribeElasticIpsRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*OpsWorks) DescribeElasticLoadBalancers

func (c *OpsWorks) DescribeElasticLoadBalancers(input *DescribeElasticLoadBalancersInput) (*DescribeElasticLoadBalancersOutput, error)

Describes a stack's Elastic Load Balancing instances.

You must specify at least one of the parameters.

 Required Permissions: To use this action, an IAM user must have a Show,

Deploy, or Manage permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/opsworks"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := opsworks.New(sess)

	params := &opsworks.DescribeElasticLoadBalancersInput{
		LayerIds: []*string{
			aws.String("String"), // Required
			// More values...
		},
		StackId: aws.String("String"),
	}
	resp, err := svc.DescribeElasticLoadBalancers(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

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

func (*OpsWorks) DescribeElasticLoadBalancersRequest

func (c *OpsWorks) DescribeElasticLoadBalancersRequest(input *DescribeElasticLoadBalancersInput) (req *request.Request, output *DescribeElasticLoadBalancersOutput)

DescribeElasticLoadBalancersRequest generates a "aws/request.Request" representing the client's request for the DescribeElasticLoadBalancers operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DescribeElasticLoadBalancers method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the DescribeElasticLoadBalancersRequest method.
req, resp := client.DescribeElasticLoadBalancersRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*OpsWorks) DescribeInstances

func (c *OpsWorks) DescribeInstances(input *DescribeInstancesInput) (*DescribeInstancesOutput, error)

Requests a description of a set of instances.

You must specify at least one of the parameters.

 Required Permissions: To use this action, an IAM user must have a Show,

Deploy, or Manage permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/opsworks"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := opsworks.New(sess)

	params := &opsworks.DescribeInstancesInput{
		InstanceIds: []*string{
			aws.String("String"), // Required
			// More values...
		},
		LayerId: aws.String("String"),
		StackId: aws.String("String"),
	}
	resp, err := svc.DescribeInstances(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

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

func (*OpsWorks) DescribeInstancesRequest

func (c *OpsWorks) DescribeInstancesRequest(input *DescribeInstancesInput) (req *request.Request, output *DescribeInstancesOutput)

DescribeInstancesRequest generates a "aws/request.Request" representing the client's request for the DescribeInstances operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DescribeInstances method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the DescribeInstancesRequest method.
req, resp := client.DescribeInstancesRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*OpsWorks) DescribeLayers

func (c *OpsWorks) DescribeLayers(input *DescribeLayersInput) (*DescribeLayersOutput, error)

Requests a description of one or more layers in a specified stack.

You must specify at least one of the parameters.

 Required Permissions: To use this action, an IAM user must have a Show,

Deploy, or Manage permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/opsworks"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := opsworks.New(sess)

	params := &opsworks.DescribeLayersInput{
		LayerIds: []*string{
			aws.String("String"), // Required
			// More values...
		},
		StackId: aws.String("String"),
	}
	resp, err := svc.DescribeLayers(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

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

func (*OpsWorks) DescribeLayersRequest

func (c *OpsWorks) DescribeLayersRequest(input *DescribeLayersInput) (req *request.Request, output *DescribeLayersOutput)

DescribeLayersRequest generates a "aws/request.Request" representing the client's request for the DescribeLayers operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DescribeLayers method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the DescribeLayersRequest method.
req, resp := client.DescribeLayersRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*OpsWorks) DescribeLoadBasedAutoScaling

func (c *OpsWorks) DescribeLoadBasedAutoScaling(input *DescribeLoadBasedAutoScalingInput) (*DescribeLoadBasedAutoScalingOutput, error)

Describes load-based auto scaling configurations for specified layers.

You must specify at least one of the parameters.

 Required Permissions: To use this action, an IAM user must have a Show,

Deploy, or Manage permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/opsworks"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := opsworks.New(sess)

	params := &opsworks.DescribeLoadBasedAutoScalingInput{
		LayerIds: []*string{ // Required
			aws.String("String"), // Required
			// More values...
		},
	}
	resp, err := svc.DescribeLoadBasedAutoScaling(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

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

func (*OpsWorks) DescribeLoadBasedAutoScalingRequest

func (c *OpsWorks) DescribeLoadBasedAutoScalingRequest(input *DescribeLoadBasedAutoScalingInput) (req *request.Request, output *DescribeLoadBasedAutoScalingOutput)

DescribeLoadBasedAutoScalingRequest generates a "aws/request.Request" representing the client's request for the DescribeLoadBasedAutoScaling operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DescribeLoadBasedAutoScaling method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the DescribeLoadBasedAutoScalingRequest method.
req, resp := client.DescribeLoadBasedAutoScalingRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*OpsWorks) DescribeMyUserProfile

func (c *OpsWorks) DescribeMyUserProfile(input *DescribeMyUserProfileInput) (*DescribeMyUserProfileOutput, error)

Describes a user's SSH information.

Required Permissions: To use this action, an IAM user must have self-management

enabled or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/opsworks"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := opsworks.New(sess)

	var params *opsworks.DescribeMyUserProfileInput
	resp, err := svc.DescribeMyUserProfile(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

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

func (*OpsWorks) DescribeMyUserProfileRequest

func (c *OpsWorks) DescribeMyUserProfileRequest(input *DescribeMyUserProfileInput) (req *request.Request, output *DescribeMyUserProfileOutput)

DescribeMyUserProfileRequest generates a "aws/request.Request" representing the client's request for the DescribeMyUserProfile operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DescribeMyUserProfile method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the DescribeMyUserProfileRequest method.
req, resp := client.DescribeMyUserProfileRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*OpsWorks) DescribePermissions

func (c *OpsWorks) DescribePermissions(input *DescribePermissionsInput) (*DescribePermissionsOutput, error)

Describes the permissions for a specified stack.

Required Permissions: To use this action, an IAM user must have a Manage

permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/opsworks"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := opsworks.New(sess)

	params := &opsworks.DescribePermissionsInput{
		IamUserArn: aws.String("String"),
		StackId:    aws.String("String"),
	}
	resp, err := svc.DescribePermissions(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

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

func (*OpsWorks) DescribePermissionsRequest

func (c *OpsWorks) DescribePermissionsRequest(input *DescribePermissionsInput) (req *request.Request, output *DescribePermissionsOutput)

DescribePermissionsRequest generates a "aws/request.Request" representing the client's request for the DescribePermissions operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DescribePermissions method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the DescribePermissionsRequest method.
req, resp := client.DescribePermissionsRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*OpsWorks) DescribeRaidArrays

func (c *OpsWorks) DescribeRaidArrays(input *DescribeRaidArraysInput) (*DescribeRaidArraysOutput, error)

Describe an instance's RAID arrays.

You must specify at least one of the parameters.

 Required Permissions: To use this action, an IAM user must have a Show,

Deploy, or Manage permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/opsworks"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := opsworks.New(sess)

	params := &opsworks.DescribeRaidArraysInput{
		InstanceId: aws.String("String"),
		RaidArrayIds: []*string{
			aws.String("String"), // Required
			// More values...
		},
		StackId: aws.String("String"),
	}
	resp, err := svc.DescribeRaidArrays(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

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

func (*OpsWorks) DescribeRaidArraysRequest

func (c *OpsWorks) DescribeRaidArraysRequest(input *DescribeRaidArraysInput) (req *request.Request, output *DescribeRaidArraysOutput)

DescribeRaidArraysRequest generates a "aws/request.Request" representing the client's request for the DescribeRaidArrays operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DescribeRaidArrays method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the DescribeRaidArraysRequest method.
req, resp := client.DescribeRaidArraysRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*OpsWorks) DescribeRdsDbInstances

func (c *OpsWorks) DescribeRdsDbInstances(input *DescribeRdsDbInstancesInput) (*DescribeRdsDbInstancesOutput, error)

Describes Amazon RDS instances.

Required Permissions: To use this action, an IAM user must have a Show,

Deploy, or Manage permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/opsworks"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := opsworks.New(sess)

	params := &opsworks.DescribeRdsDbInstancesInput{
		StackId: aws.String("String"), // Required
		RdsDbInstanceArns: []*string{
			aws.String("String"), // Required
			// More values...
		},
	}
	resp, err := svc.DescribeRdsDbInstances(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

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

func (*OpsWorks) DescribeRdsDbInstancesRequest

func (c *OpsWorks) DescribeRdsDbInstancesRequest(input *DescribeRdsDbInstancesInput) (req *request.Request, output *DescribeRdsDbInstancesOutput)

DescribeRdsDbInstancesRequest generates a "aws/request.Request" representing the client's request for the DescribeRdsDbInstances operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DescribeRdsDbInstances method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the DescribeRdsDbInstancesRequest method.
req, resp := client.DescribeRdsDbInstancesRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*OpsWorks) DescribeServiceErrors

func (c *OpsWorks) DescribeServiceErrors(input *DescribeServiceErrorsInput) (*DescribeServiceErrorsOutput, error)

Describes AWS OpsWorks service errors.

Required Permissions: To use this action, an IAM user must have a Show,

Deploy, or Manage permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/opsworks"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := opsworks.New(sess)

	params := &opsworks.DescribeServiceErrorsInput{
		InstanceId: aws.String("String"),
		ServiceErrorIds: []*string{
			aws.String("String"), // Required
			// More values...
		},
		StackId: aws.String("String"),
	}
	resp, err := svc.DescribeServiceErrors(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

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

func (*OpsWorks) DescribeServiceErrorsRequest

func (c *OpsWorks) DescribeServiceErrorsRequest(input *DescribeServiceErrorsInput) (req *request.Request, output *DescribeServiceErrorsOutput)

DescribeServiceErrorsRequest generates a "aws/request.Request" representing the client's request for the DescribeServiceErrors operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DescribeServiceErrors method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the DescribeServiceErrorsRequest method.
req, resp := client.DescribeServiceErrorsRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*OpsWorks) DescribeStackProvisioningParameters

func (c *OpsWorks) DescribeStackProvisioningParameters(input *DescribeStackProvisioningParametersInput) (*DescribeStackProvisioningParametersOutput, error)

Requests a description of a stack's provisioning parameters.

Required Permissions: To use this action, an IAM user must have a Show,

Deploy, or Manage permissions level for the stack or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/opsworks"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := opsworks.New(sess)

	params := &opsworks.DescribeStackProvisioningParametersInput{
		StackId: aws.String("String"), // Required
	}
	resp, err := svc.DescribeStackProvisioningParameters(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

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

func (*OpsWorks) DescribeStackProvisioningParametersRequest

func (c *OpsWorks) DescribeStackProvisioningParametersRequest(input *DescribeStackProvisioningParametersInput) (req *request.Request, output *DescribeStackProvisioningParametersOutput)

DescribeStackProvisioningParametersRequest generates a "aws/request.Request" representing the client's request for the DescribeStackProvisioningParameters operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DescribeStackProvisioningParameters method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the DescribeStackProvisioningParametersRequest method.
req, resp := client.DescribeStackProvisioningParametersRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*OpsWorks) DescribeStackSummary

func (c *OpsWorks) DescribeStackSummary(input *DescribeStackSummaryInput) (*DescribeStackSummaryOutput, error)

Describes the number of layers and apps in a specified stack, and the number of instances in each state, such as running_setup or online.

Required Permissions: To use this action, an IAM user must have a Show,

Deploy, or Manage permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/opsworks"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := opsworks.New(sess)

	params := &opsworks.DescribeStackSummaryInput{
		StackId: aws.String("String"), // Required
	}
	resp, err := svc.DescribeStackSummary(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

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

func (*OpsWorks) DescribeStackSummaryRequest

func (c *OpsWorks) DescribeStackSummaryRequest(input *DescribeStackSummaryInput) (req *request.Request, output *DescribeStackSummaryOutput)

DescribeStackSummaryRequest generates a "aws/request.Request" representing the client's request for the DescribeStackSummary operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DescribeStackSummary method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the DescribeStackSummaryRequest method.
req, resp := client.DescribeStackSummaryRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*OpsWorks) DescribeStacks

func (c *OpsWorks) DescribeStacks(input *DescribeStacksInput) (*DescribeStacksOutput, error)

Requests a description of one or more stacks.

Required Permissions: To use this action, an IAM user must have a Show,

Deploy, or Manage permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/opsworks"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := opsworks.New(sess)

	params := &opsworks.DescribeStacksInput{
		StackIds: []*string{
			aws.String("String"), // Required
			// More values...
		},
	}
	resp, err := svc.DescribeStacks(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

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

func (*OpsWorks) DescribeStacksRequest

func (c *OpsWorks) DescribeStacksRequest(input *DescribeStacksInput) (req *request.Request, output *DescribeStacksOutput)

DescribeStacksRequest generates a "aws/request.Request" representing the client's request for the DescribeStacks operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DescribeStacks method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the DescribeStacksRequest method.
req, resp := client.DescribeStacksRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*OpsWorks) DescribeTimeBasedAutoScaling

func (c *OpsWorks) DescribeTimeBasedAutoScaling(input *DescribeTimeBasedAutoScalingInput) (*DescribeTimeBasedAutoScalingOutput, error)

Describes time-based auto scaling configurations for specified instances.

You must specify at least one of the parameters.

 Required Permissions: To use this action, an IAM user must have a Show,

Deploy, or Manage permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/opsworks"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := opsworks.New(sess)

	params := &opsworks.DescribeTimeBasedAutoScalingInput{
		InstanceIds: []*string{ // Required
			aws.String("String"), // Required
			// More values...
		},
	}
	resp, err := svc.DescribeTimeBasedAutoScaling(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

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

func (*OpsWorks) DescribeTimeBasedAutoScalingRequest

func (c *OpsWorks) DescribeTimeBasedAutoScalingRequest(input *DescribeTimeBasedAutoScalingInput) (req *request.Request, output *DescribeTimeBasedAutoScalingOutput)

DescribeTimeBasedAutoScalingRequest generates a "aws/request.Request" representing the client's request for the DescribeTimeBasedAutoScaling operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DescribeTimeBasedAutoScaling method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the DescribeTimeBasedAutoScalingRequest method.
req, resp := client.DescribeTimeBasedAutoScalingRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*OpsWorks) DescribeUserProfiles

func (c *OpsWorks) DescribeUserProfiles(input *DescribeUserProfilesInput) (*DescribeUserProfilesOutput, error)

Describe specified users.

Required Permissions: To use this action, an IAM user must have an attached

policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/opsworks"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := opsworks.New(sess)

	params := &opsworks.DescribeUserProfilesInput{
		IamUserArns: []*string{
			aws.String("String"), // Required
			// More values...
		},
	}
	resp, err := svc.DescribeUserProfiles(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

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

func (*OpsWorks) DescribeUserProfilesRequest

func (c *OpsWorks) DescribeUserProfilesRequest(input *DescribeUserProfilesInput) (req *request.Request, output *DescribeUserProfilesOutput)

DescribeUserProfilesRequest generates a "aws/request.Request" representing the client's request for the DescribeUserProfiles operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DescribeUserProfiles method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the DescribeUserProfilesRequest method.
req, resp := client.DescribeUserProfilesRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*OpsWorks) DescribeVolumes

func (c *OpsWorks) DescribeVolumes(input *DescribeVolumesInput) (*DescribeVolumesOutput, error)

Describes an instance's Amazon EBS volumes.

You must specify at least one of the parameters.

 Required Permissions: To use this action, an IAM user must have a Show,

Deploy, or Manage permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/opsworks"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := opsworks.New(sess)

	params := &opsworks.DescribeVolumesInput{
		InstanceId:  aws.String("String"),
		RaidArrayId: aws.String("String"),
		StackId:     aws.String("String"),
		VolumeIds: []*string{
			aws.String("String"), // Required
			// More values...
		},
	}
	resp, err := svc.DescribeVolumes(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

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

func (*OpsWorks) DescribeVolumesRequest

func (c *OpsWorks) DescribeVolumesRequest(input *DescribeVolumesInput) (req *request.Request, output *DescribeVolumesOutput)

DescribeVolumesRequest generates a "aws/request.Request" representing the client's request for the DescribeVolumes operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DescribeVolumes method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the DescribeVolumesRequest method.
req, resp := client.DescribeVolumesRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*OpsWorks) DetachElasticLoadBalancer

func (c *OpsWorks) DetachElasticLoadBalancer(input *DetachElasticLoadBalancerInput) (*DetachElasticLoadBalancerOutput, error)

Detaches a specified Elastic Load Balancing instance from its layer.

Required Permissions: To use this action, an IAM user must have a Manage

permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/opsworks"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := opsworks.New(sess)

	params := &opsworks.DetachElasticLoadBalancerInput{
		ElasticLoadBalancerName: aws.String("String"), // Required
		LayerId:                 aws.String("String"), // Required
	}
	resp, err := svc.DetachElasticLoadBalancer(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

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

func (*OpsWorks) DetachElasticLoadBalancerRequest

func (c *OpsWorks) DetachElasticLoadBalancerRequest(input *DetachElasticLoadBalancerInput) (req *request.Request, output *DetachElasticLoadBalancerOutput)

DetachElasticLoadBalancerRequest generates a "aws/request.Request" representing the client's request for the DetachElasticLoadBalancer operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DetachElasticLoadBalancer method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the DetachElasticLoadBalancerRequest method.
req, resp := client.DetachElasticLoadBalancerRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*OpsWorks) DisassociateElasticIp

func (c *OpsWorks) DisassociateElasticIp(input *DisassociateElasticIpInput) (*DisassociateElasticIpOutput, error)

Disassociates an Elastic IP address from its instance. The address remains registered with the stack. For more information, see Resource Management (http://docs.aws.amazon.com/opsworks/latest/userguide/resources.html).

Required Permissions: To use this action, an IAM user must have a Manage

permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/opsworks"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := opsworks.New(sess)

	params := &opsworks.DisassociateElasticIpInput{
		ElasticIp: aws.String("String"), // Required
	}
	resp, err := svc.DisassociateElasticIp(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

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

func (*OpsWorks) DisassociateElasticIpRequest

func (c *OpsWorks) DisassociateElasticIpRequest(input *DisassociateElasticIpInput) (req *request.Request, output *DisassociateElasticIpOutput)

DisassociateElasticIpRequest generates a "aws/request.Request" representing the client's request for the DisassociateElasticIp operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DisassociateElasticIp method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the DisassociateElasticIpRequest method.
req, resp := client.DisassociateElasticIpRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*OpsWorks) GetHostnameSuggestion

func (c *OpsWorks) GetHostnameSuggestion(input *GetHostnameSuggestionInput) (*GetHostnameSuggestionOutput, error)

Gets a generated host name for the specified layer, based on the current host name theme.

Required Permissions: To use this action, an IAM user must have a Manage

permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/opsworks"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := opsworks.New(sess)

	params := &opsworks.GetHostnameSuggestionInput{
		LayerId: aws.String("String"), // Required
	}
	resp, err := svc.GetHostnameSuggestion(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

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

func (*OpsWorks) GetHostnameSuggestionRequest

func (c *OpsWorks) GetHostnameSuggestionRequest(input *GetHostnameSuggestionInput) (req *request.Request, output *GetHostnameSuggestionOutput)

GetHostnameSuggestionRequest generates a "aws/request.Request" representing the client's request for the GetHostnameSuggestion operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the GetHostnameSuggestion method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the GetHostnameSuggestionRequest method.
req, resp := client.GetHostnameSuggestionRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*OpsWorks) GrantAccess

func (c *OpsWorks) GrantAccess(input *GrantAccessInput) (*GrantAccessOutput, error)

This action can be used only with Windows stacks.

Grants RDP access to a Windows instance for a specified time period.
Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/opsworks"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := opsworks.New(sess)

	params := &opsworks.GrantAccessInput{
		InstanceId:        aws.String("String"), // Required
		ValidForInMinutes: aws.Int64(1),
	}
	resp, err := svc.GrantAccess(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

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

func (*OpsWorks) GrantAccessRequest

func (c *OpsWorks) GrantAccessRequest(input *GrantAccessInput) (req *request.Request, output *GrantAccessOutput)

GrantAccessRequest generates a "aws/request.Request" representing the client's request for the GrantAccess operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the GrantAccess method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the GrantAccessRequest method.
req, resp := client.GrantAccessRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*OpsWorks) RebootInstance

func (c *OpsWorks) RebootInstance(input *RebootInstanceInput) (*RebootInstanceOutput, error)

Reboots a specified instance. For more information, see Starting, Stopping, and Rebooting Instances (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-starting.html).

Required Permissions: To use this action, an IAM user must have a Manage

permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/opsworks"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := opsworks.New(sess)

	params := &opsworks.RebootInstanceInput{
		InstanceId: aws.String("String"), // Required
	}
	resp, err := svc.RebootInstance(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

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

func (*OpsWorks) RebootInstanceRequest

func (c *OpsWorks) RebootInstanceRequest(input *RebootInstanceInput) (req *request.Request, output *RebootInstanceOutput)

RebootInstanceRequest generates a "aws/request.Request" representing the client's request for the RebootInstance operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the RebootInstance method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the RebootInstanceRequest method.
req, resp := client.RebootInstanceRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*OpsWorks) RegisterEcsCluster

func (c *OpsWorks) RegisterEcsCluster(input *RegisterEcsClusterInput) (*RegisterEcsClusterOutput, error)

Registers a specified Amazon ECS cluster with a stack. You can register only one cluster with a stack. A cluster can be registered with only one stack. For more information, see Resource Management (http://docs.aws.amazon.com/opsworks/latest/userguide/workinglayers-ecscluster.html).

Required Permissions: To use this action, an IAM user must have a Manage

permissions level for the stack or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/opsworks"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := opsworks.New(sess)

	params := &opsworks.RegisterEcsClusterInput{
		EcsClusterArn: aws.String("String"), // Required
		StackId:       aws.String("String"), // Required
	}
	resp, err := svc.RegisterEcsCluster(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

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

func (*OpsWorks) RegisterEcsClusterRequest

func (c *OpsWorks) RegisterEcsClusterRequest(input *RegisterEcsClusterInput) (req *request.Request, output *RegisterEcsClusterOutput)

RegisterEcsClusterRequest generates a "aws/request.Request" representing the client's request for the RegisterEcsCluster operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the RegisterEcsCluster method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the RegisterEcsClusterRequest method.
req, resp := client.RegisterEcsClusterRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*OpsWorks) RegisterElasticIp

func (c *OpsWorks) RegisterElasticIp(input *RegisterElasticIpInput) (*RegisterElasticIpOutput, error)

Registers an Elastic IP address with a specified stack. An address can be registered with only one stack at a time. If the address is already registered, you must first deregister it by calling DeregisterElasticIp. For more information, see Resource Management (http://docs.aws.amazon.com/opsworks/latest/userguide/resources.html).

Required Permissions: To use this action, an IAM user must have a Manage

permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/opsworks"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := opsworks.New(sess)

	params := &opsworks.RegisterElasticIpInput{
		ElasticIp: aws.String("String"), // Required
		StackId:   aws.String("String"), // Required
	}
	resp, err := svc.RegisterElasticIp(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

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

func (*OpsWorks) RegisterElasticIpRequest

func (c *OpsWorks) RegisterElasticIpRequest(input *RegisterElasticIpInput) (req *request.Request, output *RegisterElasticIpOutput)

RegisterElasticIpRequest generates a "aws/request.Request" representing the client's request for the RegisterElasticIp operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the RegisterElasticIp method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the RegisterElasticIpRequest method.
req, resp := client.RegisterElasticIpRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*OpsWorks) RegisterInstance

func (c *OpsWorks) RegisterInstance(input *RegisterInstanceInput) (*RegisterInstanceOutput, error)

Registers instances with a specified stack that were created outside of AWS OpsWorks.

We do not recommend using this action to register instances. The complete

registration operation has two primary steps, installing the AWS OpsWorks agent on the instance and registering the instance with the stack. RegisterInstance handles only the second step. You should instead use the AWS CLI register command, which performs the entire registration operation. For more information, see Registering an Instance with an AWS OpsWorks Stack (http://docs.aws.amazon.com/opsworks/latest/userguide/registered-instances-register.html).

Required Permissions: To use this action, an IAM user must have a Manage

permissions level for the stack or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/opsworks"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := opsworks.New(sess)

	params := &opsworks.RegisterInstanceInput{
		StackId:  aws.String("String"), // Required
		Hostname: aws.String("String"),
		InstanceIdentity: &opsworks.InstanceIdentity{
			Document:  aws.String("String"),
			Signature: aws.String("String"),
		},
		PrivateIp:               aws.String("String"),
		PublicIp:                aws.String("String"),
		RsaPublicKey:            aws.String("String"),
		RsaPublicKeyFingerprint: aws.String("String"),
	}
	resp, err := svc.RegisterInstance(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

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

func (*OpsWorks) RegisterInstanceRequest

func (c *OpsWorks) RegisterInstanceRequest(input *RegisterInstanceInput) (req *request.Request, output *RegisterInstanceOutput)

RegisterInstanceRequest generates a "aws/request.Request" representing the client's request for the RegisterInstance operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the RegisterInstance method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the RegisterInstanceRequest method.
req, resp := client.RegisterInstanceRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*OpsWorks) RegisterRdsDbInstance

func (c *OpsWorks) RegisterRdsDbInstance(input *RegisterRdsDbInstanceInput) (*RegisterRdsDbInstanceOutput, error)

Registers an Amazon RDS instance with a stack.

Required Permissions: To use this action, an IAM user must have a Manage

permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/opsworks"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := opsworks.New(sess)

	params := &opsworks.RegisterRdsDbInstanceInput{
		DbPassword:       aws.String("String"), // Required
		DbUser:           aws.String("String"), // Required
		RdsDbInstanceArn: aws.String("String"), // Required
		StackId:          aws.String("String"), // Required
	}
	resp, err := svc.RegisterRdsDbInstance(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

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

func (*OpsWorks) RegisterRdsDbInstanceRequest

func (c *OpsWorks) RegisterRdsDbInstanceRequest(input *RegisterRdsDbInstanceInput) (req *request.Request, output *RegisterRdsDbInstanceOutput)

RegisterRdsDbInstanceRequest generates a "aws/request.Request" representing the client's request for the RegisterRdsDbInstance operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the RegisterRdsDbInstance method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the RegisterRdsDbInstanceRequest method.
req, resp := client.RegisterRdsDbInstanceRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*OpsWorks) RegisterVolume

func (c *OpsWorks) RegisterVolume(input *RegisterVolumeInput) (*RegisterVolumeOutput, error)

Registers an Amazon EBS volume with a specified stack. A volume can be registered with only one stack at a time. If the volume is already registered, you must first deregister it by calling DeregisterVolume. For more information, see Resource Management (http://docs.aws.amazon.com/opsworks/latest/userguide/resources.html).

Required Permissions: To use this action, an IAM user must have a Manage

permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/opsworks"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := opsworks.New(sess)

	params := &opsworks.RegisterVolumeInput{
		StackId:     aws.String("String"), // Required
		Ec2VolumeId: aws.String("String"),
	}
	resp, err := svc.RegisterVolume(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

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

func (*OpsWorks) RegisterVolumeRequest

func (c *OpsWorks) RegisterVolumeRequest(input *RegisterVolumeInput) (req *request.Request, output *RegisterVolumeOutput)

RegisterVolumeRequest generates a "aws/request.Request" representing the client's request for the RegisterVolume operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the RegisterVolume method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the RegisterVolumeRequest method.
req, resp := client.RegisterVolumeRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*OpsWorks) SetLoadBasedAutoScaling

func (c *OpsWorks) SetLoadBasedAutoScaling(input *SetLoadBasedAutoScalingInput) (*SetLoadBasedAutoScalingOutput, error)

Specify the load-based auto scaling configuration for a specified layer. For more information, see Managing Load with Time-based and Load-based Instances (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-autoscaling.html).

To use load-based auto scaling, you must create a set of load-based auto

scaling instances. Load-based auto scaling operates only on the instances from that set, so you must ensure that you have created enough instances to handle the maximum anticipated load.

Required Permissions: To use this action, an IAM user must have a Manage

permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/opsworks"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := opsworks.New(sess)

	params := &opsworks.SetLoadBasedAutoScalingInput{
		LayerId: aws.String("String"), // Required
		DownScaling: &opsworks.AutoScalingThresholds{
			Alarms: []*string{
				aws.String("String"), // Required
				// More values...
			},
			CpuThreshold:       aws.Float64(1.0),
			IgnoreMetricsTime:  aws.Int64(1),
			InstanceCount:      aws.Int64(1),
			LoadThreshold:      aws.Float64(1.0),
			MemoryThreshold:    aws.Float64(1.0),
			ThresholdsWaitTime: aws.Int64(1),
		},
		Enable: aws.Bool(true),
		UpScaling: &opsworks.AutoScalingThresholds{
			Alarms: []*string{
				aws.String("String"), // Required
				// More values...
			},
			CpuThreshold:       aws.Float64(1.0),
			IgnoreMetricsTime:  aws.Int64(1),
			InstanceCount:      aws.Int64(1),
			LoadThreshold:      aws.Float64(1.0),
			MemoryThreshold:    aws.Float64(1.0),
			ThresholdsWaitTime: aws.Int64(1),
		},
	}
	resp, err := svc.SetLoadBasedAutoScaling(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

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

func (*OpsWorks) SetLoadBasedAutoScalingRequest

func (c *OpsWorks) SetLoadBasedAutoScalingRequest(input *SetLoadBasedAutoScalingInput) (req *request.Request, output *SetLoadBasedAutoScalingOutput)

SetLoadBasedAutoScalingRequest generates a "aws/request.Request" representing the client's request for the SetLoadBasedAutoScaling operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the SetLoadBasedAutoScaling method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the SetLoadBasedAutoScalingRequest method.
req, resp := client.SetLoadBasedAutoScalingRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*OpsWorks) SetPermission

func (c *OpsWorks) SetPermission(input *SetPermissionInput) (*SetPermissionOutput, error)

Specifies a user's permissions. For more information, see Security and Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/workingsecurity.html).

Required Permissions: To use this action, an IAM user must have a Manage

permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/opsworks"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := opsworks.New(sess)

	params := &opsworks.SetPermissionInput{
		IamUserArn: aws.String("String"), // Required
		StackId:    aws.String("String"), // Required
		AllowSsh:   aws.Bool(true),
		AllowSudo:  aws.Bool(true),
		Level:      aws.String("String"),
	}
	resp, err := svc.SetPermission(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

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

func (*OpsWorks) SetPermissionRequest

func (c *OpsWorks) SetPermissionRequest(input *SetPermissionInput) (req *request.Request, output *SetPermissionOutput)

SetPermissionRequest generates a "aws/request.Request" representing the client's request for the SetPermission operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the SetPermission method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the SetPermissionRequest method.
req, resp := client.SetPermissionRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*OpsWorks) SetTimeBasedAutoScaling

func (c *OpsWorks) SetTimeBasedAutoScaling(input *SetTimeBasedAutoScalingInput) (*SetTimeBasedAutoScalingOutput, error)

Specify the time-based auto scaling configuration for a specified instance. For more information, see Managing Load with Time-based and Load-based Instances (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-autoscaling.html).

Required Permissions: To use this action, an IAM user must have a Manage

permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/opsworks"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := opsworks.New(sess)

	params := &opsworks.SetTimeBasedAutoScalingInput{
		InstanceId: aws.String("String"), // Required
		AutoScalingSchedule: &opsworks.WeeklyAutoScalingSchedule{
			Friday: map[string]*string{
				"Key": aws.String("Switch"), // Required
				// More values...
			},
			Monday: map[string]*string{
				"Key": aws.String("Switch"), // Required
				// More values...
			},
			Saturday: map[string]*string{
				"Key": aws.String("Switch"), // Required
				// More values...
			},
			Sunday: map[string]*string{
				"Key": aws.String("Switch"), // Required
				// More values...
			},
			Thursday: map[string]*string{
				"Key": aws.String("Switch"), // Required
				// More values...
			},
			Tuesday: map[string]*string{
				"Key": aws.String("Switch"), // Required
				// More values...
			},
			Wednesday: map[string]*string{
				"Key": aws.String("Switch"), // Required
				// More values...
			},
		},
	}
	resp, err := svc.SetTimeBasedAutoScaling(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

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

func (*OpsWorks) SetTimeBasedAutoScalingRequest

func (c *OpsWorks) SetTimeBasedAutoScalingRequest(input *SetTimeBasedAutoScalingInput) (req *request.Request, output *SetTimeBasedAutoScalingOutput)

SetTimeBasedAutoScalingRequest generates a "aws/request.Request" representing the client's request for the SetTimeBasedAutoScaling operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the SetTimeBasedAutoScaling method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the SetTimeBasedAutoScalingRequest method.
req, resp := client.SetTimeBasedAutoScalingRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*OpsWorks) StartInstance

func (c *OpsWorks) StartInstance(input *StartInstanceInput) (*StartInstanceOutput, error)

Starts a specified instance. For more information, see Starting, Stopping, and Rebooting Instances (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-starting.html).

Required Permissions: To use this action, an IAM user must have a Manage

permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/opsworks"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := opsworks.New(sess)

	params := &opsworks.StartInstanceInput{
		InstanceId: aws.String("String"), // Required
	}
	resp, err := svc.StartInstance(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

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

func (*OpsWorks) StartInstanceRequest

func (c *OpsWorks) StartInstanceRequest(input *StartInstanceInput) (req *request.Request, output *StartInstanceOutput)

StartInstanceRequest generates a "aws/request.Request" representing the client's request for the StartInstance operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the StartInstance method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the StartInstanceRequest method.
req, resp := client.StartInstanceRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*OpsWorks) StartStack

func (c *OpsWorks) StartStack(input *StartStackInput) (*StartStackOutput, error)

Starts a stack's instances.

Required Permissions: To use this action, an IAM user must have a Manage

permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/opsworks"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := opsworks.New(sess)

	params := &opsworks.StartStackInput{
		StackId: aws.String("String"), // Required
	}
	resp, err := svc.StartStack(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

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

func (*OpsWorks) StartStackRequest

func (c *OpsWorks) StartStackRequest(input *StartStackInput) (req *request.Request, output *StartStackOutput)

StartStackRequest generates a "aws/request.Request" representing the client's request for the StartStack operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the StartStack method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the StartStackRequest method.
req, resp := client.StartStackRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*OpsWorks) StopInstance

func (c *OpsWorks) StopInstance(input *StopInstanceInput) (*StopInstanceOutput, error)

Stops a specified instance. When you stop a standard instance, the data disappears and must be reinstalled when you restart the instance. You can stop an Amazon EBS-backed instance without losing data. For more information, see Starting, Stopping, and Rebooting Instances (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-starting.html).

Required Permissions: To use this action, an IAM user must have a Manage

permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/opsworks"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := opsworks.New(sess)

	params := &opsworks.StopInstanceInput{
		InstanceId: aws.String("String"), // Required
	}
	resp, err := svc.StopInstance(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

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

func (*OpsWorks) StopInstanceRequest

func (c *OpsWorks) StopInstanceRequest(input *StopInstanceInput) (req *request.Request, output *StopInstanceOutput)

StopInstanceRequest generates a "aws/request.Request" representing the client's request for the StopInstance operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the StopInstance method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the StopInstanceRequest method.
req, resp := client.StopInstanceRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*OpsWorks) StopStack

func (c *OpsWorks) StopStack(input *StopStackInput) (*StopStackOutput, error)

Stops a specified stack.

Required Permissions: To use this action, an IAM user must have a Manage

permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/opsworks"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := opsworks.New(sess)

	params := &opsworks.StopStackInput{
		StackId: aws.String("String"), // Required
	}
	resp, err := svc.StopStack(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

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

func (*OpsWorks) StopStackRequest

func (c *OpsWorks) StopStackRequest(input *StopStackInput) (req *request.Request, output *StopStackOutput)

StopStackRequest generates a "aws/request.Request" representing the client's request for the StopStack operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the StopStack method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the StopStackRequest method.
req, resp := client.StopStackRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*OpsWorks) UnassignInstance

func (c *OpsWorks) UnassignInstance(input *UnassignInstanceInput) (*UnassignInstanceOutput, error)

Unassigns a registered instance from all of it's layers. The instance remains in the stack as an unassigned instance and can be assigned to another layer, as needed. You cannot use this action with instances that were created with AWS OpsWorks.

Required Permissions: To use this action, an IAM user must have a Manage

permissions level for the stack or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/opsworks"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := opsworks.New(sess)

	params := &opsworks.UnassignInstanceInput{
		InstanceId: aws.String("String"), // Required
	}
	resp, err := svc.UnassignInstance(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

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

func (*OpsWorks) UnassignInstanceRequest

func (c *OpsWorks) UnassignInstanceRequest(input *UnassignInstanceInput) (req *request.Request, output *UnassignInstanceOutput)

UnassignInstanceRequest generates a "aws/request.Request" representing the client's request for the UnassignInstance operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the UnassignInstance method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the UnassignInstanceRequest method.
req, resp := client.UnassignInstanceRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*OpsWorks) UnassignVolume

func (c *OpsWorks) UnassignVolume(input *UnassignVolumeInput) (*UnassignVolumeOutput, error)

Unassigns an assigned Amazon EBS volume. The volume remains registered with the stack. For more information, see Resource Management (http://docs.aws.amazon.com/opsworks/latest/userguide/resources.html).

Required Permissions: To use this action, an IAM user must have a Manage

permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/opsworks"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := opsworks.New(sess)

	params := &opsworks.UnassignVolumeInput{
		VolumeId: aws.String("String"), // Required
	}
	resp, err := svc.UnassignVolume(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

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

func (*OpsWorks) UnassignVolumeRequest

func (c *OpsWorks) UnassignVolumeRequest(input *UnassignVolumeInput) (req *request.Request, output *UnassignVolumeOutput)

UnassignVolumeRequest generates a "aws/request.Request" representing the client's request for the UnassignVolume operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the UnassignVolume method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the UnassignVolumeRequest method.
req, resp := client.UnassignVolumeRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*OpsWorks) UpdateApp

func (c *OpsWorks) UpdateApp(input *UpdateAppInput) (*UpdateAppOutput, error)

Updates a specified app.

Required Permissions: To use this action, an IAM user must have a Deploy

or Manage permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/opsworks"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := opsworks.New(sess)

	params := &opsworks.UpdateAppInput{
		AppId: aws.String("String"), // Required
		AppSource: &opsworks.Source{
			Password: aws.String("String"),
			Revision: aws.String("String"),
			SshKey:   aws.String("String"),
			Type:     aws.String("SourceType"),
			Url:      aws.String("String"),
			Username: aws.String("String"),
		},
		Attributes: map[string]*string{
			"Key": aws.String("String"), // Required
			// More values...
		},
		DataSources: []*opsworks.DataSource{
			{ // Required
				Arn:          aws.String("String"),
				DatabaseName: aws.String("String"),
				Type:         aws.String("String"),
			},
			// More values...
		},
		Description: aws.String("String"),
		Domains: []*string{
			aws.String("String"), // Required
			// More values...
		},
		EnableSsl: aws.Bool(true),
		Environment: []*opsworks.EnvironmentVariable{
			{ // Required
				Key:    aws.String("String"), // Required
				Value:  aws.String("String"), // Required
				Secure: aws.Bool(true),
			},
			// More values...
		},
		Name: aws.String("String"),
		SslConfiguration: &opsworks.SslConfiguration{
			Certificate: aws.String("String"), // Required
			PrivateKey:  aws.String("String"), // Required
			Chain:       aws.String("String"),
		},
		Type: aws.String("AppType"),
	}
	resp, err := svc.UpdateApp(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

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

func (*OpsWorks) UpdateAppRequest

func (c *OpsWorks) UpdateAppRequest(input *UpdateAppInput) (req *request.Request, output *UpdateAppOutput)

UpdateAppRequest generates a "aws/request.Request" representing the client's request for the UpdateApp operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the UpdateApp method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the UpdateAppRequest method.
req, resp := client.UpdateAppRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*OpsWorks) UpdateElasticIp

func (c *OpsWorks) UpdateElasticIp(input *UpdateElasticIpInput) (*UpdateElasticIpOutput, error)

Updates a registered Elastic IP address's name. For more information, see Resource Management (http://docs.aws.amazon.com/opsworks/latest/userguide/resources.html).

Required Permissions: To use this action, an IAM user must have a Manage

permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/opsworks"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := opsworks.New(sess)

	params := &opsworks.UpdateElasticIpInput{
		ElasticIp: aws.String("String"), // Required
		Name:      aws.String("String"),
	}
	resp, err := svc.UpdateElasticIp(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

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

func (*OpsWorks) UpdateElasticIpRequest

func (c *OpsWorks) UpdateElasticIpRequest(input *UpdateElasticIpInput) (req *request.Request, output *UpdateElasticIpOutput)

UpdateElasticIpRequest generates a "aws/request.Request" representing the client's request for the UpdateElasticIp operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the UpdateElasticIp method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the UpdateElasticIpRequest method.
req, resp := client.UpdateElasticIpRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*OpsWorks) UpdateInstance

func (c *OpsWorks) UpdateInstance(input *UpdateInstanceInput) (*UpdateInstanceOutput, error)

Updates a specified instance.

Required Permissions: To use this action, an IAM user must have a Manage

permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/opsworks"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := opsworks.New(sess)

	params := &opsworks.UpdateInstanceInput{
		InstanceId:           aws.String("String"), // Required
		AgentVersion:         aws.String("String"),
		AmiId:                aws.String("String"),
		Architecture:         aws.String("Architecture"),
		AutoScalingType:      aws.String("AutoScalingType"),
		EbsOptimized:         aws.Bool(true),
		Hostname:             aws.String("String"),
		InstallUpdatesOnBoot: aws.Bool(true),
		InstanceType:         aws.String("String"),
		LayerIds: []*string{
			aws.String("String"), // Required
			// More values...
		},
		Os:         aws.String("String"),
		SshKeyName: aws.String("String"),
	}
	resp, err := svc.UpdateInstance(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

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

func (*OpsWorks) UpdateInstanceRequest

func (c *OpsWorks) UpdateInstanceRequest(input *UpdateInstanceInput) (req *request.Request, output *UpdateInstanceOutput)

UpdateInstanceRequest generates a "aws/request.Request" representing the client's request for the UpdateInstance operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the UpdateInstance method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the UpdateInstanceRequest method.
req, resp := client.UpdateInstanceRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*OpsWorks) UpdateLayer

func (c *OpsWorks) UpdateLayer(input *UpdateLayerInput) (*UpdateLayerOutput, error)

Updates a specified layer.

Required Permissions: To use this action, an IAM user must have a Manage

permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/opsworks"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := opsworks.New(sess)

	params := &opsworks.UpdateLayerInput{
		LayerId: aws.String("String"), // Required
		Attributes: map[string]*string{
			"Key": aws.String("String"), // Required
			// More values...
		},
		AutoAssignElasticIps:     aws.Bool(true),
		AutoAssignPublicIps:      aws.Bool(true),
		CustomInstanceProfileArn: aws.String("String"),
		CustomJson:               aws.String("String"),
		CustomRecipes: &opsworks.Recipes{
			Configure: []*string{
				aws.String("String"), // Required
				// More values...
			},
			Deploy: []*string{
				aws.String("String"), // Required
				// More values...
			},
			Setup: []*string{
				aws.String("String"), // Required
				// More values...
			},
			Shutdown: []*string{
				aws.String("String"), // Required
				// More values...
			},
			Undeploy: []*string{
				aws.String("String"), // Required
				// More values...
			},
		},
		CustomSecurityGroupIds: []*string{
			aws.String("String"), // Required
			// More values...
		},
		EnableAutoHealing:    aws.Bool(true),
		InstallUpdatesOnBoot: aws.Bool(true),
		LifecycleEventConfiguration: &opsworks.LifecycleEventConfiguration{
			Shutdown: &opsworks.ShutdownEventConfiguration{
				DelayUntilElbConnectionsDrained: aws.Bool(true),
				ExecutionTimeout:                aws.Int64(1),
			},
		},
		Name: aws.String("String"),
		Packages: []*string{
			aws.String("String"), // Required
			// More values...
		},
		Shortname:                aws.String("String"),
		UseEbsOptimizedInstances: aws.Bool(true),
		VolumeConfigurations: []*opsworks.VolumeConfiguration{
			{ // Required
				MountPoint:    aws.String("String"), // Required
				NumberOfDisks: aws.Int64(1),         // Required
				Size:          aws.Int64(1),         // Required
				Iops:          aws.Int64(1),
				RaidLevel:     aws.Int64(1),
				VolumeType:    aws.String("String"),
			},
			// More values...
		},
	}
	resp, err := svc.UpdateLayer(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

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

func (*OpsWorks) UpdateLayerRequest

func (c *OpsWorks) UpdateLayerRequest(input *UpdateLayerInput) (req *request.Request, output *UpdateLayerOutput)

UpdateLayerRequest generates a "aws/request.Request" representing the client's request for the UpdateLayer operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the UpdateLayer method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the UpdateLayerRequest method.
req, resp := client.UpdateLayerRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*OpsWorks) UpdateMyUserProfile

func (c *OpsWorks) UpdateMyUserProfile(input *UpdateMyUserProfileInput) (*UpdateMyUserProfileOutput, error)

Updates a user's SSH public key.

Required Permissions: To use this action, an IAM user must have self-management

enabled or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/opsworks"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := opsworks.New(sess)

	params := &opsworks.UpdateMyUserProfileInput{
		SshPublicKey: aws.String("String"),
	}
	resp, err := svc.UpdateMyUserProfile(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

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

func (*OpsWorks) UpdateMyUserProfileRequest

func (c *OpsWorks) UpdateMyUserProfileRequest(input *UpdateMyUserProfileInput) (req *request.Request, output *UpdateMyUserProfileOutput)

UpdateMyUserProfileRequest generates a "aws/request.Request" representing the client's request for the UpdateMyUserProfile operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the UpdateMyUserProfile method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the UpdateMyUserProfileRequest method.
req, resp := client.UpdateMyUserProfileRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*OpsWorks) UpdateRdsDbInstance

func (c *OpsWorks) UpdateRdsDbInstance(input *UpdateRdsDbInstanceInput) (*UpdateRdsDbInstanceOutput, error)

Updates an Amazon RDS instance.

Required Permissions: To use this action, an IAM user must have a Manage

permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/opsworks"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := opsworks.New(sess)

	params := &opsworks.UpdateRdsDbInstanceInput{
		RdsDbInstanceArn: aws.String("String"), // Required
		DbPassword:       aws.String("String"),
		DbUser:           aws.String("String"),
	}
	resp, err := svc.UpdateRdsDbInstance(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

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

func (*OpsWorks) UpdateRdsDbInstanceRequest

func (c *OpsWorks) UpdateRdsDbInstanceRequest(input *UpdateRdsDbInstanceInput) (req *request.Request, output *UpdateRdsDbInstanceOutput)

UpdateRdsDbInstanceRequest generates a "aws/request.Request" representing the client's request for the UpdateRdsDbInstance operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the UpdateRdsDbInstance method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the UpdateRdsDbInstanceRequest method.
req, resp := client.UpdateRdsDbInstanceRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*OpsWorks) UpdateStack

func (c *OpsWorks) UpdateStack(input *UpdateStackInput) (*UpdateStackOutput, error)

Updates a specified stack.

Required Permissions: To use this action, an IAM user must have a Manage

permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/opsworks"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := opsworks.New(sess)

	params := &opsworks.UpdateStackInput{
		StackId:      aws.String("String"), // Required
		AgentVersion: aws.String("String"),
		Attributes: map[string]*string{
			"Key": aws.String("String"), // Required
			// More values...
		},
		ChefConfiguration: &opsworks.ChefConfiguration{
			BerkshelfVersion: aws.String("String"),
			ManageBerkshelf:  aws.Bool(true),
		},
		ConfigurationManager: &opsworks.StackConfigurationManager{
			Name:    aws.String("String"),
			Version: aws.String("String"),
		},
		CustomCookbooksSource: &opsworks.Source{
			Password: aws.String("String"),
			Revision: aws.String("String"),
			SshKey:   aws.String("String"),
			Type:     aws.String("SourceType"),
			Url:      aws.String("String"),
			Username: aws.String("String"),
		},
		CustomJson:                aws.String("String"),
		DefaultAvailabilityZone:   aws.String("String"),
		DefaultInstanceProfileArn: aws.String("String"),
		DefaultOs:                 aws.String("String"),
		DefaultRootDeviceType:     aws.String("RootDeviceType"),
		DefaultSshKeyName:         aws.String("String"),
		DefaultSubnetId:           aws.String("String"),
		HostnameTheme:             aws.String("String"),
		Name:                      aws.String("String"),
		ServiceRoleArn:            aws.String("String"),
		UseCustomCookbooks:        aws.Bool(true),
		UseOpsworksSecurityGroups: aws.Bool(true),
	}
	resp, err := svc.UpdateStack(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

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

func (*OpsWorks) UpdateStackRequest

func (c *OpsWorks) UpdateStackRequest(input *UpdateStackInput) (req *request.Request, output *UpdateStackOutput)

UpdateStackRequest generates a "aws/request.Request" representing the client's request for the UpdateStack operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the UpdateStack method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the UpdateStackRequest method.
req, resp := client.UpdateStackRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*OpsWorks) UpdateUserProfile

func (c *OpsWorks) UpdateUserProfile(input *UpdateUserProfileInput) (*UpdateUserProfileOutput, error)

Updates a specified user profile.

Required Permissions: To use this action, an IAM user must have an attached

policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/opsworks"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := opsworks.New(sess)

	params := &opsworks.UpdateUserProfileInput{
		IamUserArn:          aws.String("String"), // Required
		AllowSelfManagement: aws.Bool(true),
		SshPublicKey:        aws.String("String"),
		SshUsername:         aws.String("String"),
	}
	resp, err := svc.UpdateUserProfile(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

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

func (*OpsWorks) UpdateUserProfileRequest

func (c *OpsWorks) UpdateUserProfileRequest(input *UpdateUserProfileInput) (req *request.Request, output *UpdateUserProfileOutput)

UpdateUserProfileRequest generates a "aws/request.Request" representing the client's request for the UpdateUserProfile operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the UpdateUserProfile method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the UpdateUserProfileRequest method.
req, resp := client.UpdateUserProfileRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*OpsWorks) UpdateVolume

func (c *OpsWorks) UpdateVolume(input *UpdateVolumeInput) (*UpdateVolumeOutput, error)

Updates an Amazon EBS volume's name or mount point. For more information, see Resource Management (http://docs.aws.amazon.com/opsworks/latest/userguide/resources.html).

Required Permissions: To use this action, an IAM user must have a Manage

permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/opsworks"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := opsworks.New(sess)

	params := &opsworks.UpdateVolumeInput{
		VolumeId:   aws.String("String"), // Required
		MountPoint: aws.String("String"),
		Name:       aws.String("String"),
	}
	resp, err := svc.UpdateVolume(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

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

func (*OpsWorks) UpdateVolumeRequest

func (c *OpsWorks) UpdateVolumeRequest(input *UpdateVolumeInput) (req *request.Request, output *UpdateVolumeOutput)

UpdateVolumeRequest generates a "aws/request.Request" representing the client's request for the UpdateVolume operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the UpdateVolume method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the UpdateVolumeRequest method.
req, resp := client.UpdateVolumeRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*OpsWorks) WaitUntilAppExists

func (c *OpsWorks) WaitUntilAppExists(input *DescribeAppsInput) error

WaitUntilAppExists uses the AWS OpsWorks API operation DescribeApps to wait for a condition to be met before returning. If the condition is not meet within the max attempt window an error will be returned.

func (*OpsWorks) WaitUntilDeploymentSuccessful

func (c *OpsWorks) WaitUntilDeploymentSuccessful(input *DescribeDeploymentsInput) error

WaitUntilDeploymentSuccessful uses the AWS OpsWorks API operation DescribeDeployments to wait for a condition to be met before returning. If the condition is not meet within the max attempt window an error will be returned.

func (*OpsWorks) WaitUntilInstanceOnline

func (c *OpsWorks) WaitUntilInstanceOnline(input *DescribeInstancesInput) error

WaitUntilInstanceOnline uses the AWS OpsWorks API operation DescribeInstances to wait for a condition to be met before returning. If the condition is not meet within the max attempt window an error will be returned.

func (*OpsWorks) WaitUntilInstanceRegistered

func (c *OpsWorks) WaitUntilInstanceRegistered(input *DescribeInstancesInput) error

WaitUntilInstanceRegistered uses the AWS OpsWorks API operation DescribeInstances to wait for a condition to be met before returning. If the condition is not meet within the max attempt window an error will be returned.

func (*OpsWorks) WaitUntilInstanceStopped

func (c *OpsWorks) WaitUntilInstanceStopped(input *DescribeInstancesInput) error

WaitUntilInstanceStopped uses the AWS OpsWorks API operation DescribeInstances to wait for a condition to be met before returning. If the condition is not meet within the max attempt window an error will be returned.

func (*OpsWorks) WaitUntilInstanceTerminated

func (c *OpsWorks) WaitUntilInstanceTerminated(input *DescribeInstancesInput) error

WaitUntilInstanceTerminated uses the AWS OpsWorks API operation DescribeInstances to wait for a condition to be met before returning. If the condition is not meet within the max attempt window an error will be returned.

type Permission

type Permission struct {

	// Whether the user can use SSH.
	AllowSsh *bool `type:"boolean"`

	// Whether the user can use sudo.
	AllowSudo *bool `type:"boolean"`

	// The Amazon Resource Name (ARN) for an AWS Identity and Access Management
	// (IAM) role. For more information about IAM ARNs, see Using Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html).
	IamUserArn *string `type:"string"`

	// The user's permission level, which must be the following:
	//
	//    deny
	//
	//    show
	//
	//    deploy
	//
	//    manage
	//
	//    iam_only
	//
	//   For more information on the permissions associated with these levels,
	// see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html)
	Level *string `type:"string"`

	// A stack ID.
	StackId *string `type:"string"`
	// contains filtered or unexported fields
}

Describes stack or user permissions.

func (Permission) GoString

func (s Permission) GoString() string

GoString returns the string representation

func (Permission) String

func (s Permission) String() string

String returns the string representation

type RaidArray

type RaidArray struct {

	// The array's Availability Zone. For more information, see Regions and Endpoints
	// (http://docs.aws.amazon.com/general/latest/gr/rande.html).
	AvailabilityZone *string `type:"string"`

	// When the RAID array was created.
	CreatedAt *string `type:"string"`

	// The array's Linux device. For example /dev/mdadm0.
	Device *string `type:"string"`

	// The instance ID.
	InstanceId *string `type:"string"`

	// For PIOPS volumes, the IOPS per disk.
	Iops *int64 `type:"integer"`

	// The array's mount point.
	MountPoint *string `type:"string"`

	// The array name.
	Name *string `type:"string"`

	// The number of disks in the array.
	NumberOfDisks *int64 `type:"integer"`

	// The array ID.
	RaidArrayId *string `type:"string"`

	// The RAID level (http://en.wikipedia.org/wiki/Standard_RAID_levels).
	RaidLevel *int64 `type:"integer"`

	// The array's size.
	Size *int64 `type:"integer"`

	// The stack ID.
	StackId *string `type:"string"`

	// The volume type, standard or PIOPS.
	VolumeType *string `type:"string"`
	// contains filtered or unexported fields
}

Describes an instance's RAID array.

func (RaidArray) GoString

func (s RaidArray) GoString() string

GoString returns the string representation

func (RaidArray) String

func (s RaidArray) String() string

String returns the string representation

type RdsDbInstance

type RdsDbInstance struct {

	// The instance's address.
	Address *string `type:"string"`

	// The DB instance identifier.
	DbInstanceIdentifier *string `type:"string"`

	// AWS OpsWorks returns *****FILTERED***** instead of the actual value.
	DbPassword *string `type:"string"`

	// The master user name.
	DbUser *string `type:"string"`

	// The instance's database engine.
	Engine *string `type:"string"`

	// Set to true if AWS OpsWorks was unable to discover the Amazon RDS instance.
	// AWS OpsWorks attempts to discover the instance only once. If this value is
	// set to true, you must deregister the instance and then register it again.
	MissingOnRds *bool `type:"boolean"`

	// The instance's ARN.
	RdsDbInstanceArn *string `type:"string"`

	// The instance's AWS region.
	Region *string `type:"string"`

	// The ID of the stack that the instance is registered with.
	StackId *string `type:"string"`
	// contains filtered or unexported fields
}

Describes an Amazon RDS instance.

func (RdsDbInstance) GoString

func (s RdsDbInstance) GoString() string

GoString returns the string representation

func (RdsDbInstance) String

func (s RdsDbInstance) String() string

String returns the string representation

type RebootInstanceInput

type RebootInstanceInput struct {

	// The instance ID.
	//
	// InstanceId is a required field
	InstanceId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (RebootInstanceInput) GoString

func (s RebootInstanceInput) GoString() string

GoString returns the string representation

func (RebootInstanceInput) String

func (s RebootInstanceInput) String() string

String returns the string representation

func (*RebootInstanceInput) Validate

func (s *RebootInstanceInput) Validate() error

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

type RebootInstanceOutput

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

func (RebootInstanceOutput) GoString

func (s RebootInstanceOutput) GoString() string

GoString returns the string representation

func (RebootInstanceOutput) String

func (s RebootInstanceOutput) String() string

String returns the string representation

type Recipes

type Recipes struct {

	// An array of custom recipe names to be run following a configure event.
	Configure []*string `type:"list"`

	// An array of custom recipe names to be run following a deploy event.
	Deploy []*string `type:"list"`

	// An array of custom recipe names to be run following a setup event.
	Setup []*string `type:"list"`

	// An array of custom recipe names to be run following a shutdown event.
	Shutdown []*string `type:"list"`

	// An array of custom recipe names to be run following a undeploy event.
	Undeploy []*string `type:"list"`
	// contains filtered or unexported fields
}

AWS OpsWorks supports five lifecycle events: setup, configuration, deploy, undeploy, and shutdown. For each layer, AWS OpsWorks runs a set of standard recipes for each event. In addition, you can provide custom recipes for any or all layers and events. AWS OpsWorks runs custom event recipes after the standard recipes. LayerCustomRecipes specifies the custom recipes for a particular layer to be run in response to each of the five events.

To specify a recipe, use the cookbook's directory name in the repository followed by two colons and the recipe name, which is the recipe's file name without the .rb extension. For example: phpapp2::dbsetup specifies the dbsetup.rb recipe in the repository's phpapp2 folder.

func (Recipes) GoString

func (s Recipes) GoString() string

GoString returns the string representation

func (Recipes) String

func (s Recipes) String() string

String returns the string representation

type RegisterEcsClusterInput

type RegisterEcsClusterInput struct {

	// The cluster's ARN.
	//
	// EcsClusterArn is a required field
	EcsClusterArn *string `type:"string" required:"true"`

	// The stack ID.
	//
	// StackId is a required field
	StackId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (RegisterEcsClusterInput) GoString

func (s RegisterEcsClusterInput) GoString() string

GoString returns the string representation

func (RegisterEcsClusterInput) String

func (s RegisterEcsClusterInput) String() string

String returns the string representation

func (*RegisterEcsClusterInput) Validate

func (s *RegisterEcsClusterInput) Validate() error

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

type RegisterEcsClusterOutput

type RegisterEcsClusterOutput struct {

	// The cluster's ARN.
	EcsClusterArn *string `type:"string"`
	// contains filtered or unexported fields
}

Contains the response to a RegisterEcsCluster request.

func (RegisterEcsClusterOutput) GoString

func (s RegisterEcsClusterOutput) GoString() string

GoString returns the string representation

func (RegisterEcsClusterOutput) String

func (s RegisterEcsClusterOutput) String() string

String returns the string representation

type RegisterElasticIpInput

type RegisterElasticIpInput struct {

	// The Elastic IP address.
	//
	// ElasticIp is a required field
	ElasticIp *string `type:"string" required:"true"`

	// The stack ID.
	//
	// StackId is a required field
	StackId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (RegisterElasticIpInput) GoString

func (s RegisterElasticIpInput) GoString() string

GoString returns the string representation

func (RegisterElasticIpInput) String

func (s RegisterElasticIpInput) String() string

String returns the string representation

func (*RegisterElasticIpInput) Validate

func (s *RegisterElasticIpInput) Validate() error

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

type RegisterElasticIpOutput

type RegisterElasticIpOutput struct {

	// The Elastic IP address.
	ElasticIp *string `type:"string"`
	// contains filtered or unexported fields
}

Contains the response to a RegisterElasticIp request.

func (RegisterElasticIpOutput) GoString

func (s RegisterElasticIpOutput) GoString() string

GoString returns the string representation

func (RegisterElasticIpOutput) String

func (s RegisterElasticIpOutput) String() string

String returns the string representation

type RegisterInstanceInput

type RegisterInstanceInput struct {

	// The instance's hostname.
	Hostname *string `type:"string"`

	// An InstanceIdentity object that contains the instance's identity.
	InstanceIdentity *InstanceIdentity `type:"structure"`

	// The instance's private IP address.
	PrivateIp *string `type:"string"`

	// The instance's public IP address.
	PublicIp *string `type:"string"`

	// The instances public RSA key. This key is used to encrypt communication between
	// the instance and the service.
	RsaPublicKey *string `type:"string"`

	// The instances public RSA key fingerprint.
	RsaPublicKeyFingerprint *string `type:"string"`

	// The ID of the stack that the instance is to be registered with.
	//
	// StackId is a required field
	StackId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (RegisterInstanceInput) GoString

func (s RegisterInstanceInput) GoString() string

GoString returns the string representation

func (RegisterInstanceInput) String

func (s RegisterInstanceInput) String() string

String returns the string representation

func (*RegisterInstanceInput) Validate

func (s *RegisterInstanceInput) Validate() error

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

type RegisterInstanceOutput

type RegisterInstanceOutput struct {

	// The registered instance's AWS OpsWorks ID.
	InstanceId *string `type:"string"`
	// contains filtered or unexported fields
}

Contains the response to a RegisterInstanceResult request.

func (RegisterInstanceOutput) GoString

func (s RegisterInstanceOutput) GoString() string

GoString returns the string representation

func (RegisterInstanceOutput) String

func (s RegisterInstanceOutput) String() string

String returns the string representation

type RegisterRdsDbInstanceInput

type RegisterRdsDbInstanceInput struct {

	// The database password.
	//
	// DbPassword is a required field
	DbPassword *string `type:"string" required:"true"`

	// The database's master user name.
	//
	// DbUser is a required field
	DbUser *string `type:"string" required:"true"`

	// The Amazon RDS instance's ARN.
	//
	// RdsDbInstanceArn is a required field
	RdsDbInstanceArn *string `type:"string" required:"true"`

	// The stack ID.
	//
	// StackId is a required field
	StackId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (RegisterRdsDbInstanceInput) GoString

func (s RegisterRdsDbInstanceInput) GoString() string

GoString returns the string representation

func (RegisterRdsDbInstanceInput) String

String returns the string representation

func (*RegisterRdsDbInstanceInput) Validate

func (s *RegisterRdsDbInstanceInput) Validate() error

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

type RegisterRdsDbInstanceOutput

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

func (RegisterRdsDbInstanceOutput) GoString

func (s RegisterRdsDbInstanceOutput) GoString() string

GoString returns the string representation

func (RegisterRdsDbInstanceOutput) String

String returns the string representation

type RegisterVolumeInput

type RegisterVolumeInput struct {

	// The Amazon EBS volume ID.
	Ec2VolumeId *string `type:"string"`

	// The stack ID.
	//
	// StackId is a required field
	StackId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (RegisterVolumeInput) GoString

func (s RegisterVolumeInput) GoString() string

GoString returns the string representation

func (RegisterVolumeInput) String

func (s RegisterVolumeInput) String() string

String returns the string representation

func (*RegisterVolumeInput) Validate

func (s *RegisterVolumeInput) Validate() error

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

type RegisterVolumeOutput

type RegisterVolumeOutput struct {

	// The volume ID.
	VolumeId *string `type:"string"`
	// contains filtered or unexported fields
}

Contains the response to a RegisterVolume request.

func (RegisterVolumeOutput) GoString

func (s RegisterVolumeOutput) GoString() string

GoString returns the string representation

func (RegisterVolumeOutput) String

func (s RegisterVolumeOutput) String() string

String returns the string representation

type ReportedOs

type ReportedOs struct {

	// The operating system family.
	Family *string `type:"string"`

	// The operating system name.
	Name *string `type:"string"`

	// The operating system version.
	Version *string `type:"string"`
	// contains filtered or unexported fields
}

A registered instance's reported operating system.

func (ReportedOs) GoString

func (s ReportedOs) GoString() string

GoString returns the string representation

func (ReportedOs) String

func (s ReportedOs) String() string

String returns the string representation

type SelfUserProfile

type SelfUserProfile struct {

	// The user's IAM ARN.
	IamUserArn *string `type:"string"`

	// The user's name.
	Name *string `type:"string"`

	// The user's SSH public key.
	SshPublicKey *string `type:"string"`

	// The user's SSH user name.
	SshUsername *string `type:"string"`
	// contains filtered or unexported fields
}

Describes a user's SSH information.

func (SelfUserProfile) GoString

func (s SelfUserProfile) GoString() string

GoString returns the string representation

func (SelfUserProfile) String

func (s SelfUserProfile) String() string

String returns the string representation

type ServiceError

type ServiceError struct {

	// When the error occurred.
	CreatedAt *string `type:"string"`

	// The instance ID.
	InstanceId *string `type:"string"`

	// A message that describes the error.
	Message *string `type:"string"`

	// The error ID.
	ServiceErrorId *string `type:"string"`

	// The stack ID.
	StackId *string `type:"string"`

	// The error type.
	Type *string `type:"string"`
	// contains filtered or unexported fields
}

Describes an AWS OpsWorks service error.

func (ServiceError) GoString

func (s ServiceError) GoString() string

GoString returns the string representation

func (ServiceError) String

func (s ServiceError) String() string

String returns the string representation

type SetLoadBasedAutoScalingInput

type SetLoadBasedAutoScalingInput struct {

	// An AutoScalingThresholds object with the downscaling threshold configuration.
	// If the load falls below these thresholds for a specified amount of time,
	// AWS OpsWorks stops a specified number of instances.
	DownScaling *AutoScalingThresholds `type:"structure"`

	// Enables load-based auto scaling for the layer.
	Enable *bool `type:"boolean"`

	// The layer ID.
	//
	// LayerId is a required field
	LayerId *string `type:"string" required:"true"`

	// An AutoScalingThresholds object with the upscaling threshold configuration.
	// If the load exceeds these thresholds for a specified amount of time, AWS
	// OpsWorks starts a specified number of instances.
	UpScaling *AutoScalingThresholds `type:"structure"`
	// contains filtered or unexported fields
}

func (SetLoadBasedAutoScalingInput) GoString

func (s SetLoadBasedAutoScalingInput) GoString() string

GoString returns the string representation

func (SetLoadBasedAutoScalingInput) String

String returns the string representation

func (*SetLoadBasedAutoScalingInput) Validate

func (s *SetLoadBasedAutoScalingInput) Validate() error

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

type SetLoadBasedAutoScalingOutput

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

func (SetLoadBasedAutoScalingOutput) GoString

GoString returns the string representation

func (SetLoadBasedAutoScalingOutput) String

String returns the string representation

type SetPermissionInput

type SetPermissionInput struct {

	// The user is allowed to use SSH to communicate with the instance.
	AllowSsh *bool `type:"boolean"`

	// The user is allowed to use sudo to elevate privileges.
	AllowSudo *bool `type:"boolean"`

	// The user's IAM ARN. This can also be a federated user's ARN.
	//
	// IamUserArn is a required field
	IamUserArn *string `type:"string" required:"true"`

	// The user's permission level, which must be set to one of the following strings.
	// You cannot set your own permissions level.
	//
	//    deny
	//
	//    show
	//
	//    deploy
	//
	//    manage
	//
	//    iam_only
	//
	//   For more information on the permissions associated with these levels,
	// see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
	Level *string `type:"string"`

	// The stack ID.
	//
	// StackId is a required field
	StackId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (SetPermissionInput) GoString

func (s SetPermissionInput) GoString() string

GoString returns the string representation

func (SetPermissionInput) String

func (s SetPermissionInput) String() string

String returns the string representation

func (*SetPermissionInput) Validate

func (s *SetPermissionInput) Validate() error

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

type SetPermissionOutput

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

func (SetPermissionOutput) GoString

func (s SetPermissionOutput) GoString() string

GoString returns the string representation

func (SetPermissionOutput) String

func (s SetPermissionOutput) String() string

String returns the string representation

type SetTimeBasedAutoScalingInput

type SetTimeBasedAutoScalingInput struct {

	// An AutoScalingSchedule with the instance schedule.
	AutoScalingSchedule *WeeklyAutoScalingSchedule `type:"structure"`

	// The instance ID.
	//
	// InstanceId is a required field
	InstanceId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (SetTimeBasedAutoScalingInput) GoString

func (s SetTimeBasedAutoScalingInput) GoString() string

GoString returns the string representation

func (SetTimeBasedAutoScalingInput) String

String returns the string representation

func (*SetTimeBasedAutoScalingInput) Validate

func (s *SetTimeBasedAutoScalingInput) Validate() error

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

type SetTimeBasedAutoScalingOutput

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

func (SetTimeBasedAutoScalingOutput) GoString

GoString returns the string representation

func (SetTimeBasedAutoScalingOutput) String

String returns the string representation

type ShutdownEventConfiguration

type ShutdownEventConfiguration struct {

	// Whether to enable Elastic Load Balancing connection draining. For more information,
	// see Connection Draining (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/TerminologyandKeyConcepts.html#conn-drain)
	DelayUntilElbConnectionsDrained *bool `type:"boolean"`

	// The time, in seconds, that AWS OpsWorks will wait after triggering a Shutdown
	// event before shutting down an instance.
	ExecutionTimeout *int64 `type:"integer"`
	// contains filtered or unexported fields
}

The Shutdown event configuration.

func (ShutdownEventConfiguration) GoString

func (s ShutdownEventConfiguration) GoString() string

GoString returns the string representation

func (ShutdownEventConfiguration) String

String returns the string representation

type Source

type Source struct {

	// When included in a request, the parameter depends on the repository type.
	//
	//   For Amazon S3 bundles, set Password to the appropriate IAM secret access
	// key.
	//
	//   For HTTP bundles and Subversion repositories, set Password to the password.
	//
	//   For more information on how to safely handle IAM credentials, see http://docs.aws.amazon.com/general/latest/gr/aws-access-keys-best-practices.html
	// (http://docs.aws.amazon.com/general/latest/gr/aws-access-keys-best-practices.html).
	//
	// In responses, AWS OpsWorks returns *****FILTERED***** instead of the actual
	// value.
	Password *string `type:"string"`

	// The application's version. AWS OpsWorks enables you to easily deploy new
	// versions of an application. One of the simplest approaches is to have branches
	// or revisions in your repository that represent different versions that can
	// potentially be deployed.
	Revision *string `type:"string"`

	// In requests, the repository's SSH key.
	//
	// In responses, AWS OpsWorks returns *****FILTERED***** instead of the actual
	// value.
	SshKey *string `type:"string"`

	// The repository type.
	Type *string `type:"string" enum:"SourceType"`

	// The source URL.
	Url *string `type:"string"`

	// This parameter depends on the repository type.
	//
	//   For Amazon S3 bundles, set Username to the appropriate IAM access key
	// ID.
	//
	//   For HTTP bundles, Git repositories, and Subversion repositories, set Username
	// to the user name.
	Username *string `type:"string"`
	// contains filtered or unexported fields
}

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

func (Source) GoString

func (s Source) GoString() string

GoString returns the string representation

func (Source) String

func (s Source) String() string

String returns the string representation

type SslConfiguration

type SslConfiguration struct {

	// The contents of the certificate's domain.crt file.
	//
	// Certificate is a required field
	Certificate *string `type:"string" required:"true"`

	// Optional. Can be used to specify an intermediate certificate authority key
	// or client authentication.
	Chain *string `type:"string"`

	// The private key; the contents of the certificate's domain.kex file.
	//
	// PrivateKey is a required field
	PrivateKey *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

Describes an app's SSL configuration.

func (SslConfiguration) GoString

func (s SslConfiguration) GoString() string

GoString returns the string representation

func (SslConfiguration) String

func (s SslConfiguration) String() string

String returns the string representation

func (*SslConfiguration) Validate

func (s *SslConfiguration) Validate() error

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

type Stack

type Stack struct {

	// The agent version. This parameter is set to LATEST for auto-update. or a
	// version number for a fixed agent version.
	AgentVersion *string `type:"string"`

	// The stack's ARN.
	Arn *string `type:"string"`

	// The stack's attributes.
	Attributes map[string]*string `type:"map"`

	// A ChefConfiguration object that specifies whether to enable Berkshelf and
	// the Berkshelf version. For more information, see Create a New Stack (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-creating.html).
	ChefConfiguration *ChefConfiguration `type:"structure"`

	// The configuration manager.
	ConfigurationManager *StackConfigurationManager `type:"structure"`

	// The date when the stack was created.
	CreatedAt *string `type:"string"`

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

	// A JSON object that contains user-defined attributes to be added to the stack
	// configuration and deployment attributes. You can use custom JSON to override
	// the corresponding default stack configuration attribute values or to pass
	// data to recipes. The string should be in the following format:
	//
	//  "{\"key1\": \"value1\", \"key2\": \"value2\",...}"
	//
	// For more information on custom JSON, see Use Custom JSON to Modify the Stack
	// Configuration Attributes (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-json.html).
	CustomJson *string `type:"string"`

	// The stack's default Availability Zone. For more information, see Regions
	// and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html).
	DefaultAvailabilityZone *string `type:"string"`

	// The ARN of an IAM profile that is the default profile for all of the stack's
	// EC2 instances. For more information about IAM ARNs, see Using Identifiers
	// (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html).
	DefaultInstanceProfileArn *string `type:"string"`

	// The stack's default operating system.
	DefaultOs *string `type:"string"`

	// The default root device type. This value is used by default for all instances
	// in the stack, but you can override it when you create an instance. For more
	// information, see Storage for the Root Device (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ComponentsAMIs.html#storage-for-the-root-device).
	DefaultRootDeviceType *string `type:"string" enum:"RootDeviceType"`

	// A default Amazon EC2 key pair for the stack's instances. You can override
	// this value when you create or update an instance.
	DefaultSshKeyName *string `type:"string"`

	// The default subnet ID; applicable only if the stack is running in a VPC.
	DefaultSubnetId *string `type:"string"`

	// The stack host name theme, with spaces replaced by underscores.
	HostnameTheme *string `type:"string"`

	// The stack name.
	Name *string `type:"string"`

	// The stack AWS region, such as "ap-northeast-2". For more information about
	// AWS regions, see Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html).
	Region *string `type:"string"`

	// The stack AWS Identity and Access Management (IAM) role.
	ServiceRoleArn *string `type:"string"`

	// The stack ID.
	StackId *string `type:"string"`

	// Whether the stack uses custom cookbooks.
	UseCustomCookbooks *bool `type:"boolean"`

	// Whether the stack automatically associates the AWS OpsWorks built-in security
	// groups with the stack's layers.
	UseOpsworksSecurityGroups *bool `type:"boolean"`

	// The VPC ID; applicable only if the stack is running in a VPC.
	VpcId *string `type:"string"`
	// contains filtered or unexported fields
}

Describes a stack.

func (Stack) GoString

func (s Stack) GoString() string

GoString returns the string representation

func (Stack) String

func (s Stack) String() string

String returns the string representation

type StackConfigurationManager

type StackConfigurationManager struct {

	// The name. This parameter must be set to "Chef".
	Name *string `type:"string"`

	// The Chef version. This parameter must be set to 12, 11.10, or 11.4 for Linux
	// stacks, and to 12.2 for Windows stacks. The default value for Linux stacks
	// is 11.4.
	Version *string `type:"string"`
	// contains filtered or unexported fields
}

Describes the configuration manager.

func (StackConfigurationManager) GoString

func (s StackConfigurationManager) GoString() string

GoString returns the string representation

func (StackConfigurationManager) String

func (s StackConfigurationManager) String() string

String returns the string representation

type StackSummary

type StackSummary struct {

	// The number of apps.
	AppsCount *int64 `type:"integer"`

	// The stack's ARN.
	Arn *string `type:"string"`

	// An InstancesCount object with the number of instances in each status.
	InstancesCount *InstancesCount `type:"structure"`

	// The number of layers.
	LayersCount *int64 `type:"integer"`

	// The stack name.
	Name *string `type:"string"`

	// The stack ID.
	StackId *string `type:"string"`
	// contains filtered or unexported fields
}

Summarizes the number of layers, instances, and apps in a stack.

func (StackSummary) GoString

func (s StackSummary) GoString() string

GoString returns the string representation

func (StackSummary) String

func (s StackSummary) String() string

String returns the string representation

type StartInstanceInput

type StartInstanceInput struct {

	// The instance ID.
	//
	// InstanceId is a required field
	InstanceId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (StartInstanceInput) GoString

func (s StartInstanceInput) GoString() string

GoString returns the string representation

func (StartInstanceInput) String

func (s StartInstanceInput) String() string

String returns the string representation

func (*StartInstanceInput) Validate

func (s *StartInstanceInput) Validate() error

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

type StartInstanceOutput

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

func (StartInstanceOutput) GoString

func (s StartInstanceOutput) GoString() string

GoString returns the string representation

func (StartInstanceOutput) String

func (s StartInstanceOutput) String() string

String returns the string representation

type StartStackInput

type StartStackInput struct {

	// The stack ID.
	//
	// StackId is a required field
	StackId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (StartStackInput) GoString

func (s StartStackInput) GoString() string

GoString returns the string representation

func (StartStackInput) String

func (s StartStackInput) String() string

String returns the string representation

func (*StartStackInput) Validate

func (s *StartStackInput) Validate() error

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

type StartStackOutput

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

func (StartStackOutput) GoString

func (s StartStackOutput) GoString() string

GoString returns the string representation

func (StartStackOutput) String

func (s StartStackOutput) String() string

String returns the string representation

type StopInstanceInput

type StopInstanceInput struct {

	// The instance ID.
	//
	// InstanceId is a required field
	InstanceId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (StopInstanceInput) GoString

func (s StopInstanceInput) GoString() string

GoString returns the string representation

func (StopInstanceInput) String

func (s StopInstanceInput) String() string

String returns the string representation

func (*StopInstanceInput) Validate

func (s *StopInstanceInput) Validate() error

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

type StopInstanceOutput

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

func (StopInstanceOutput) GoString

func (s StopInstanceOutput) GoString() string

GoString returns the string representation

func (StopInstanceOutput) String

func (s StopInstanceOutput) String() string

String returns the string representation

type StopStackInput

type StopStackInput struct {

	// The stack ID.
	//
	// StackId is a required field
	StackId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (StopStackInput) GoString

func (s StopStackInput) GoString() string

GoString returns the string representation

func (StopStackInput) String

func (s StopStackInput) String() string

String returns the string representation

func (*StopStackInput) Validate

func (s *StopStackInput) Validate() error

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

type StopStackOutput

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

func (StopStackOutput) GoString

func (s StopStackOutput) GoString() string

GoString returns the string representation

func (StopStackOutput) String

func (s StopStackOutput) String() string

String returns the string representation

type TemporaryCredential

type TemporaryCredential struct {

	// The instance's AWS OpsWorks ID.
	InstanceId *string `type:"string"`

	// The password.
	Password *string `type:"string"`

	// The user name.
	Username *string `type:"string"`

	// The length of time (in minutes) that the grant is valid. When the grant expires,
	// at the end of this period, the user will no longer be able to use the credentials
	// to log in. If they are logged in at the time, they will be automatically
	// logged out.
	ValidForInMinutes *int64 `type:"integer"`
	// contains filtered or unexported fields
}

Contains the data needed by RDP clients such as the Microsoft Remote Desktop Connection to log in to the instance.

func (TemporaryCredential) GoString

func (s TemporaryCredential) GoString() string

GoString returns the string representation

func (TemporaryCredential) String

func (s TemporaryCredential) String() string

String returns the string representation

type TimeBasedAutoScalingConfiguration

type TimeBasedAutoScalingConfiguration struct {

	// A WeeklyAutoScalingSchedule object with the instance schedule.
	AutoScalingSchedule *WeeklyAutoScalingSchedule `type:"structure"`

	// The instance ID.
	InstanceId *string `type:"string"`
	// contains filtered or unexported fields
}

Describes an instance's time-based auto scaling configuration.

func (TimeBasedAutoScalingConfiguration) GoString

GoString returns the string representation

func (TimeBasedAutoScalingConfiguration) String

String returns the string representation

type UnassignInstanceInput

type UnassignInstanceInput struct {

	// The instance ID.
	//
	// InstanceId is a required field
	InstanceId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (UnassignInstanceInput) GoString

func (s UnassignInstanceInput) GoString() string

GoString returns the string representation

func (UnassignInstanceInput) String

func (s UnassignInstanceInput) String() string

String returns the string representation

func (*UnassignInstanceInput) Validate

func (s *UnassignInstanceInput) Validate() error

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

type UnassignInstanceOutput

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

func (UnassignInstanceOutput) GoString

func (s UnassignInstanceOutput) GoString() string

GoString returns the string representation

func (UnassignInstanceOutput) String

func (s UnassignInstanceOutput) String() string

String returns the string representation

type UnassignVolumeInput

type UnassignVolumeInput struct {

	// The volume ID.
	//
	// VolumeId is a required field
	VolumeId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (UnassignVolumeInput) GoString

func (s UnassignVolumeInput) GoString() string

GoString returns the string representation

func (UnassignVolumeInput) String

func (s UnassignVolumeInput) String() string

String returns the string representation

func (*UnassignVolumeInput) Validate

func (s *UnassignVolumeInput) Validate() error

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

type UnassignVolumeOutput

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

func (UnassignVolumeOutput) GoString

func (s UnassignVolumeOutput) GoString() string

GoString returns the string representation

func (UnassignVolumeOutput) String

func (s UnassignVolumeOutput) String() string

String returns the string representation

type UpdateAppInput

type UpdateAppInput struct {

	// The app ID.
	//
	// AppId is a required field
	AppId *string `type:"string" required:"true"`

	// A Source object that specifies the app repository.
	AppSource *Source `type:"structure"`

	// One or more user-defined key/value pairs to be added to the stack attributes.
	Attributes map[string]*string `type:"map"`

	// The app's data sources.
	DataSources []*DataSource `type:"list"`

	// A description of the app.
	Description *string `type:"string"`

	// The app's virtual host settings, with multiple domains separated by commas.
	// For example: 'www.example.com, example.com'
	Domains []*string `type:"list"`

	// Whether SSL is enabled for the app.
	EnableSsl *bool `type:"boolean"`

	// An array of EnvironmentVariable objects that specify environment variables
	// to be associated with the app. After you deploy the app, these variables
	// are defined on the associated app server instances.For more information,
	// see  Environment Variables (http://docs.aws.amazon.com/opsworks/latest/userguide/workingapps-creating.html#workingapps-creating-environment).
	//
	// There is no specific limit on the number of environment variables. However,
	// the size of the associated data structure - which includes the variables'
	// names, values, and protected flag values - cannot exceed 10 KB (10240 Bytes).
	// This limit should accommodate most if not all use cases. Exceeding it will
	// cause an exception with the message, "Environment: is too large (maximum
	// is 10KB)."
	//
	//  This parameter is supported only by Chef 11.10 stacks. If you have specified
	// one or more environment variables, you cannot modify the stack's Chef version.
	Environment []*EnvironmentVariable `type:"list"`

	// The app name.
	Name *string `type:"string"`

	// An SslConfiguration object with the SSL configuration.
	SslConfiguration *SslConfiguration `type:"structure"`

	// The app type.
	Type *string `type:"string" enum:"AppType"`
	// contains filtered or unexported fields
}

func (UpdateAppInput) GoString

func (s UpdateAppInput) GoString() string

GoString returns the string representation

func (UpdateAppInput) String

func (s UpdateAppInput) String() string

String returns the string representation

func (*UpdateAppInput) Validate

func (s *UpdateAppInput) Validate() error

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

type UpdateAppOutput

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

func (UpdateAppOutput) GoString

func (s UpdateAppOutput) GoString() string

GoString returns the string representation

func (UpdateAppOutput) String

func (s UpdateAppOutput) String() string

String returns the string representation

type UpdateElasticIpInput

type UpdateElasticIpInput struct {

	// The address.
	//
	// ElasticIp is a required field
	ElasticIp *string `type:"string" required:"true"`

	// The new name.
	Name *string `type:"string"`
	// contains filtered or unexported fields
}

func (UpdateElasticIpInput) GoString

func (s UpdateElasticIpInput) GoString() string

GoString returns the string representation

func (UpdateElasticIpInput) String

func (s UpdateElasticIpInput) String() string

String returns the string representation

func (*UpdateElasticIpInput) Validate

func (s *UpdateElasticIpInput) Validate() error

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

type UpdateElasticIpOutput

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

func (UpdateElasticIpOutput) GoString

func (s UpdateElasticIpOutput) GoString() string

GoString returns the string representation

func (UpdateElasticIpOutput) String

func (s UpdateElasticIpOutput) String() string

String returns the string representation

type UpdateInstanceInput

type UpdateInstanceInput struct {

	// The default AWS OpsWorks agent version. You have the following options:
	//
	//    INHERIT - Use the stack's default agent version setting.
	//
	//    version_number - Use the specified agent version. This value overrides
	// the stack's default setting. To update the agent version, you must edit the
	// instance configuration and specify a new version. AWS OpsWorks then automatically
	// installs that version on the instance.
	//
	//   The default setting is INHERIT. To specify an agent version, you must
	// use the complete version number, not the abbreviated number shown on the
	// console. For a list of available agent version numbers, call DescribeAgentVersions.
	AgentVersion *string `type:"string"`

	// The ID of the AMI that was used to create the instance. The value of this
	// parameter must be the same AMI ID that the instance is already using. You
	// cannot apply a new AMI to an instance by running UpdateInstance. UpdateInstance
	// does not work on instances that are using custom AMIs.
	AmiId *string `type:"string"`

	// The instance architecture. Instance types do not necessarily support both
	// architectures. For a list of the architectures that are supported by the
	// different instance types, see Instance Families and Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html).
	Architecture *string `type:"string" enum:"Architecture"`

	// For load-based or time-based instances, the type. Windows stacks can use
	// only time-based instances.
	AutoScalingType *string `type:"string" enum:"AutoScalingType"`

	// This property cannot be updated.
	EbsOptimized *bool `type:"boolean"`

	// The instance host name.
	Hostname *string `type:"string"`

	// Whether to install operating system and package updates when the instance
	// boots. The default value is true. To control when updates are installed,
	// set this value to false. You must then update your instances manually by
	// using CreateDeployment to run the update_dependencies stack command or by
	// manually running yum (Amazon Linux) or apt-get (Ubuntu) on the instances.
	//
	//  We strongly recommend using the default value of true, to ensure that your
	// instances have the latest security updates.
	InstallUpdatesOnBoot *bool `type:"boolean"`

	// The instance ID.
	//
	// InstanceId is a required field
	InstanceId *string `type:"string" required:"true"`

	// The instance type, such as t2.micro. For a list of supported instance types,
	// open the stack in the console, choose Instances, and choose + Instance. The
	// Size list contains the currently supported types. For more information, see
	// Instance Families and Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html).
	// The parameter values that you use to specify the various types are in the
	// API Name column of the Available Instance Types table.
	InstanceType *string `type:"string"`

	// The instance's layer IDs.
	LayerIds []*string `type:"list"`

	// The instance's operating system, which must be set to one of the following.
	// You cannot update an instance that is using a custom AMI.
	//
	//   A supported Linux operating system: An Amazon Linux version, such as Amazon
	// Linux 2016.03, Amazon Linux 2015.09, or Amazon Linux 2015.03.
	//
	//   A supported Ubuntu operating system, such as Ubuntu 16.04 LTS, Ubuntu
	// 14.04 LTS, or Ubuntu 12.04 LTS.
	//
	//    CentOS 7
	//
	//    Red Hat Enterprise Linux 7
	//
	//   A supported Windows operating system, such as Microsoft Windows Server
	// 2012 R2 Base, Microsoft Windows Server 2012 R2 with SQL Server Express, Microsoft
	// Windows Server 2012 R2 with SQL Server Standard, or Microsoft Windows Server
	// 2012 R2 with SQL Server Web.
	//
	//   For more information on the supported operating systems, see AWS OpsWorks
	// Operating Systems (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-os.html).
	//
	// The default option is the current Amazon Linux version. If you set this
	// parameter to Custom, you must use the AmiId parameter to specify the custom
	// AMI that you want to use. For more information on the supported operating
	// systems, see Operating Systems (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-os.html).
	// For more information on how to use custom AMIs with OpsWorks, see Using Custom
	// AMIs (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-custom-ami.html).
	//
	//  You can specify a different Linux operating system for the updated stack,
	// but you cannot change from Linux to Windows or Windows to Linux.
	Os *string `type:"string"`

	// The instance's Amazon EC2 key name.
	SshKeyName *string `type:"string"`
	// contains filtered or unexported fields
}

func (UpdateInstanceInput) GoString

func (s UpdateInstanceInput) GoString() string

GoString returns the string representation

func (UpdateInstanceInput) String

func (s UpdateInstanceInput) String() string

String returns the string representation

func (*UpdateInstanceInput) Validate

func (s *UpdateInstanceInput) Validate() error

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

type UpdateInstanceOutput

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

func (UpdateInstanceOutput) GoString

func (s UpdateInstanceOutput) GoString() string

GoString returns the string representation

func (UpdateInstanceOutput) String

func (s UpdateInstanceOutput) String() string

String returns the string representation

type UpdateLayerInput

type UpdateLayerInput struct {

	// One or more user-defined key/value pairs to be added to the stack attributes.
	Attributes map[string]*string `type:"map"`

	// Whether to automatically assign an Elastic IP address (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html)
	// to the layer's instances. For more information, see How to Edit a Layer (http://docs.aws.amazon.com/opsworks/latest/userguide/workinglayers-basics-edit.html).
	AutoAssignElasticIps *bool `type:"boolean"`

	// For stacks that are running in a VPC, whether to automatically assign a public
	// IP address to the layer's instances. For more information, see How to Edit
	// a Layer (http://docs.aws.amazon.com/opsworks/latest/userguide/workinglayers-basics-edit.html).
	AutoAssignPublicIps *bool `type:"boolean"`

	// The ARN of an IAM profile to be used for all of the layer's EC2 instances.
	// For more information about IAM ARNs, see Using Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html).
	CustomInstanceProfileArn *string `type:"string"`

	// A JSON-formatted string containing custom stack configuration and deployment
	// attributes to be installed on the layer's instances. For more information,
	// see  Using Custom JSON (http://docs.aws.amazon.com/opsworks/latest/userguide/workingcookbook-json-override.html).
	CustomJson *string `type:"string"`

	// A LayerCustomRecipes object that specifies the layer's custom recipes.
	CustomRecipes *Recipes `type:"structure"`

	// An array containing the layer's custom security group IDs.
	CustomSecurityGroupIds []*string `type:"list"`

	// Whether to disable auto healing for the layer.
	EnableAutoHealing *bool `type:"boolean"`

	// Whether to install operating system and package updates when the instance
	// boots. The default value is true. To control when updates are installed,
	// set this value to false. You must then update your instances manually by
	// using CreateDeployment to run the update_dependencies stack command or manually
	// running yum (Amazon Linux) or apt-get (Ubuntu) on the instances.
	//
	//  We strongly recommend using the default value of true, to ensure that your
	// instances have the latest security updates.
	InstallUpdatesOnBoot *bool `type:"boolean"`

	// The layer ID.
	//
	// LayerId is a required field
	LayerId *string `type:"string" required:"true"`

	LifecycleEventConfiguration *LifecycleEventConfiguration `type:"structure"`

	// The layer name, which is used by the console.
	Name *string `type:"string"`

	// An array of Package objects that describe the layer's packages.
	Packages []*string `type:"list"`

	// For custom layers only, use this parameter to specify the layer's short name,
	// which is used internally by AWS OpsWorksand by Chef. The short name is also
	// used as the name for the directory where your app files are installed. It
	// can have a maximum of 200 characters and must be in the following format:
	// /\A[a-z0-9\-\_\.]+\Z/.
	//
	// The built-in layers' short names are defined by AWS OpsWorks. For more information,
	// see the Layer Reference (http://docs.aws.amazon.com/opsworks/latest/userguide/layers.html)
	Shortname *string `type:"string"`

	// Whether to use Amazon EBS-optimized instances.
	UseEbsOptimizedInstances *bool `type:"boolean"`

	// A VolumeConfigurations object that describes the layer's Amazon EBS volumes.
	VolumeConfigurations []*VolumeConfiguration `type:"list"`
	// contains filtered or unexported fields
}

func (UpdateLayerInput) GoString

func (s UpdateLayerInput) GoString() string

GoString returns the string representation

func (UpdateLayerInput) String

func (s UpdateLayerInput) String() string

String returns the string representation

func (*UpdateLayerInput) Validate

func (s *UpdateLayerInput) Validate() error

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

type UpdateLayerOutput

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

func (UpdateLayerOutput) GoString

func (s UpdateLayerOutput) GoString() string

GoString returns the string representation

func (UpdateLayerOutput) String

func (s UpdateLayerOutput) String() string

String returns the string representation

type UpdateMyUserProfileInput

type UpdateMyUserProfileInput struct {

	// The user's SSH public key.
	SshPublicKey *string `type:"string"`
	// contains filtered or unexported fields
}

func (UpdateMyUserProfileInput) GoString

func (s UpdateMyUserProfileInput) GoString() string

GoString returns the string representation

func (UpdateMyUserProfileInput) String

func (s UpdateMyUserProfileInput) String() string

String returns the string representation

type UpdateMyUserProfileOutput

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

func (UpdateMyUserProfileOutput) GoString

func (s UpdateMyUserProfileOutput) GoString() string

GoString returns the string representation

func (UpdateMyUserProfileOutput) String

func (s UpdateMyUserProfileOutput) String() string

String returns the string representation

type UpdateRdsDbInstanceInput

type UpdateRdsDbInstanceInput struct {

	// The database password.
	DbPassword *string `type:"string"`

	// The master user name.
	DbUser *string `type:"string"`

	// The Amazon RDS instance's ARN.
	//
	// RdsDbInstanceArn is a required field
	RdsDbInstanceArn *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (UpdateRdsDbInstanceInput) GoString

func (s UpdateRdsDbInstanceInput) GoString() string

GoString returns the string representation

func (UpdateRdsDbInstanceInput) String

func (s UpdateRdsDbInstanceInput) String() string

String returns the string representation

func (*UpdateRdsDbInstanceInput) Validate

func (s *UpdateRdsDbInstanceInput) Validate() error

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

type UpdateRdsDbInstanceOutput

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

func (UpdateRdsDbInstanceOutput) GoString

func (s UpdateRdsDbInstanceOutput) GoString() string

GoString returns the string representation

func (UpdateRdsDbInstanceOutput) String

func (s UpdateRdsDbInstanceOutput) String() string

String returns the string representation

type UpdateStackInput

type UpdateStackInput struct {

	// The default AWS OpsWorks agent version. You have the following options:
	//
	//   Auto-update - Set this parameter to LATEST. AWS OpsWorks automatically
	// installs new agent versions on the stack's instances as soon as they are
	// available.
	//
	//   Fixed version - Set this parameter to your preferred agent version. To
	// update the agent version, you must edit the stack configuration and specify
	// a new version. AWS OpsWorks then automatically installs that version on the
	// stack's instances.
	//
	//   The default setting is LATEST. To specify an agent version, you must use
	// the complete version number, not the abbreviated number shown on the console.
	// For a list of available agent version numbers, call DescribeAgentVersions.
	//
	//  You can also specify an agent version when you create or update an instance,
	// which overrides the stack's default setting.
	AgentVersion *string `type:"string"`

	// One or more user-defined key-value pairs to be added to the stack attributes.
	Attributes map[string]*string `type:"map"`

	// A ChefConfiguration object that specifies whether to enable Berkshelf and
	// the Berkshelf version on Chef 11.10 stacks. For more information, see Create
	// a New Stack (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-creating.html).
	ChefConfiguration *ChefConfiguration `type:"structure"`

	// The configuration manager. When you update a stack, we recommend that you
	// use the configuration manager to specify the Chef version: 12, 11.10, or
	// 11.4 for Linux stacks, or 12.2 for Windows stacks. The default value for
	// Linux stacks is currently 11.4.
	ConfigurationManager *StackConfigurationManager `type:"structure"`

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

	// A string that contains user-defined, custom JSON. It can be used to override
	// the corresponding default stack configuration JSON values or to pass data
	// to recipes. The string should be in the following format:
	//
	//  "{\"key1\": \"value1\", \"key2\": \"value2\",...}"
	//
	// For more information on custom JSON, see Use Custom JSON to Modify the Stack
	// Configuration Attributes (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-json.html).
	CustomJson *string `type:"string"`

	// The stack's default Availability Zone, which must be in the stack's region.
	// For more information, see Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html).
	// If you also specify a value for DefaultSubnetId, the subnet must be in the
	// same zone. For more information, see CreateStack.
	DefaultAvailabilityZone *string `type:"string"`

	// The ARN of an IAM profile that is the default profile for all of the stack's
	// EC2 instances. For more information about IAM ARNs, see Using Identifiers
	// (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html).
	DefaultInstanceProfileArn *string `type:"string"`

	// The stack's operating system, which must be set to one of the following:
	//
	//   A supported Linux operating system: An Amazon Linux version, such as Amazon
	// Linux 2016.03, Amazon Linux 2015.09, or Amazon Linux 2015.03.
	//
	//   A supported Ubuntu operating system, such as Ubuntu 16.04 LTS, Ubuntu
	// 14.04 LTS, or Ubuntu 12.04 LTS.
	//
	//    CentOS 7
	//
	//    Red Hat Enterprise Linux 7
	//
	//   A supported Windows operating system, such as Microsoft Windows Server
	// 2012 R2 Base, Microsoft Windows Server 2012 R2 with SQL Server Express, Microsoft
	// Windows Server 2012 R2 with SQL Server Standard, or Microsoft Windows Server
	// 2012 R2 with SQL Server Web.
	//
	//   A custom AMI: Custom. You specify the custom AMI you want to use when
	// you create instances. For more information on how to use custom AMIs with
	// OpsWorks, see Using Custom AMIs (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-custom-ami.html).
	//
	//   The default option is the stack's current operating system. For more information
	// on the supported operating systems, see AWS OpsWorks Operating Systems (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-os.html).
	DefaultOs *string `type:"string"`

	// The default root device type. This value is used by default for all instances
	// in the stack, but you can override it when you create an instance. For more
	// information, see Storage for the Root Device (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ComponentsAMIs.html#storage-for-the-root-device).
	DefaultRootDeviceType *string `type:"string" enum:"RootDeviceType"`

	// A default Amazon EC2 key-pair name. The default value is none. If you specify
	// a key-pair name, AWS OpsWorks installs the public key on the instance and
	// you can use the private key with an SSH client to log in to the instance.
	// For more information, see  Using SSH to Communicate with an Instance (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-ssh.html)
	// and  Managing SSH Access (http://docs.aws.amazon.com/opsworks/latest/userguide/security-ssh-access.html).
	// You can override this setting by specifying a different key pair, or no key
	// pair, when you  create an instance (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-add.html).
	DefaultSshKeyName *string `type:"string"`

	// The stack's default VPC subnet ID. This parameter is required if you specify
	// a value for the VpcId parameter. All instances are launched into this subnet
	// unless you specify otherwise when you create the instance. If you also specify
	// a value for DefaultAvailabilityZone, the subnet must be in that zone. For
	// information on default values and when this parameter is required, see the
	// VpcId parameter description.
	DefaultSubnetId *string `type:"string"`

	// The stack's new host name theme, with spaces replaced by underscores. The
	// theme is used to generate host names for the stack's instances. By default,
	// HostnameTheme is set to Layer_Dependent, which creates host names by appending
	// integers to the layer's short name. The other themes are:
	//
	//    Baked_Goods
	//
	//    Clouds
	//
	//    Europe_Cities
	//
	//    Fruits
	//
	//    Greek_Deities
	//
	//    Legendary_creatures_from_Japan
	//
	//    Planets_and_Moons
	//
	//    Roman_Deities
	//
	//    Scottish_Islands
	//
	//    US_Cities
	//
	//    Wild_Cats
	//
	//   To obtain a generated host name, call GetHostNameSuggestion, which returns
	// a host name based on the current theme.
	HostnameTheme *string `type:"string"`

	// The stack's new name.
	Name *string `type:"string"`

	// Do not use this parameter. You cannot update a stack's service role.
	ServiceRoleArn *string `type:"string"`

	// The stack ID.
	//
	// StackId is a required field
	StackId *string `type:"string" required:"true"`

	// Whether the stack uses custom cookbooks.
	UseCustomCookbooks *bool `type:"boolean"`

	// Whether to associate the AWS OpsWorks built-in security groups with the stack's
	// layers.
	//
	// AWS OpsWorks provides a standard set of built-in security groups, one for
	// each layer, which are associated with layers by default. UseOpsworksSecurityGroups
	// allows you to provide your own custom security groups instead of using the
	// built-in groups. UseOpsworksSecurityGroups has the following settings:
	//
	//   True - AWS OpsWorks automatically associates the appropriate built-in
	// security group with each layer (default setting). You can associate additional
	// security groups with a layer after you create it, but you cannot delete the
	// built-in security group.
	//
	//   False - AWS OpsWorks does not associate built-in security groups with
	// layers. You must create appropriate EC2 security groups and associate a security
	// group with each layer that you create. However, you can still manually associate
	// a built-in security group with a layer on. Custom security groups are required
	// only for those layers that need custom settings.
	//
	//   For more information, see Create a New Stack (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-creating.html).
	UseOpsworksSecurityGroups *bool `type:"boolean"`
	// contains filtered or unexported fields
}

func (UpdateStackInput) GoString

func (s UpdateStackInput) GoString() string

GoString returns the string representation

func (UpdateStackInput) String

func (s UpdateStackInput) String() string

String returns the string representation

func (*UpdateStackInput) Validate

func (s *UpdateStackInput) Validate() error

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

type UpdateStackOutput

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

func (UpdateStackOutput) GoString

func (s UpdateStackOutput) GoString() string

GoString returns the string representation

func (UpdateStackOutput) String

func (s UpdateStackOutput) String() string

String returns the string representation

type UpdateUserProfileInput

type UpdateUserProfileInput struct {

	// Whether users can specify their own SSH public key through the My Settings
	// page. For more information, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/security-settingsshkey.html).
	AllowSelfManagement *bool `type:"boolean"`

	// The user IAM ARN. This can also be a federated user's ARN.
	//
	// IamUserArn is a required field
	IamUserArn *string `type:"string" required:"true"`

	// The user's new SSH public key.
	SshPublicKey *string `type:"string"`

	// The user's SSH user name. The allowable characters are [a-z], [A-Z], [0-9],
	// '-', and '_'. If the specified name includes other punctuation marks, AWS
	// OpsWorks removes them. For example, my.name will be changed to myname. If
	// you do not specify an SSH user name, AWS OpsWorks generates one from the
	// IAM user name.
	SshUsername *string `type:"string"`
	// contains filtered or unexported fields
}

func (UpdateUserProfileInput) GoString

func (s UpdateUserProfileInput) GoString() string

GoString returns the string representation

func (UpdateUserProfileInput) String

func (s UpdateUserProfileInput) String() string

String returns the string representation

func (*UpdateUserProfileInput) Validate

func (s *UpdateUserProfileInput) Validate() error

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

type UpdateUserProfileOutput

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

func (UpdateUserProfileOutput) GoString

func (s UpdateUserProfileOutput) GoString() string

GoString returns the string representation

func (UpdateUserProfileOutput) String

func (s UpdateUserProfileOutput) String() string

String returns the string representation

type UpdateVolumeInput

type UpdateVolumeInput struct {

	// The new mount point.
	MountPoint *string `type:"string"`

	// The new name.
	Name *string `type:"string"`

	// The volume ID.
	//
	// VolumeId is a required field
	VolumeId *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (UpdateVolumeInput) GoString

func (s UpdateVolumeInput) GoString() string

GoString returns the string representation

func (UpdateVolumeInput) String

func (s UpdateVolumeInput) String() string

String returns the string representation

func (*UpdateVolumeInput) Validate

func (s *UpdateVolumeInput) Validate() error

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

type UpdateVolumeOutput

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

func (UpdateVolumeOutput) GoString

func (s UpdateVolumeOutput) GoString() string

GoString returns the string representation

func (UpdateVolumeOutput) String

func (s UpdateVolumeOutput) String() string

String returns the string representation

type UserProfile

type UserProfile struct {

	// Whether users can specify their own SSH public key through the My Settings
	// page. For more information, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/security-settingsshkey.html).
	AllowSelfManagement *bool `type:"boolean"`

	// The user's IAM ARN.
	IamUserArn *string `type:"string"`

	// The user's name.
	Name *string `type:"string"`

	// The user's SSH public key.
	SshPublicKey *string `type:"string"`

	// The user's SSH user name.
	SshUsername *string `type:"string"`
	// contains filtered or unexported fields
}

Describes a user's SSH information.

func (UserProfile) GoString

func (s UserProfile) GoString() string

GoString returns the string representation

func (UserProfile) String

func (s UserProfile) String() string

String returns the string representation

type Volume

type Volume struct {

	// The volume Availability Zone. For more information, see Regions and Endpoints
	// (http://docs.aws.amazon.com/general/latest/gr/rande.html).
	AvailabilityZone *string `type:"string"`

	// The device name.
	Device *string `type:"string"`

	// The Amazon EC2 volume ID.
	Ec2VolumeId *string `type:"string"`

	// The instance ID.
	InstanceId *string `type:"string"`

	// For PIOPS volumes, the IOPS per disk.
	Iops *int64 `type:"integer"`

	// The volume mount point. For example, "/mnt/disk1".
	MountPoint *string `type:"string"`

	// The volume name.
	Name *string `type:"string"`

	// The RAID array ID.
	RaidArrayId *string `type:"string"`

	// The AWS region. For more information about AWS regions, see Regions and Endpoints
	// (http://docs.aws.amazon.com/general/latest/gr/rande.html).
	Region *string `type:"string"`

	// The volume size.
	Size *int64 `type:"integer"`

	// The value returned by DescribeVolumes (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ApiReference-query-DescribeVolumes.html).
	Status *string `type:"string"`

	// The volume ID.
	VolumeId *string `type:"string"`

	// The volume type, standard or PIOPS.
	VolumeType *string `type:"string"`
	// contains filtered or unexported fields
}

Describes an instance's Amazon EBS volume.

func (Volume) GoString

func (s Volume) GoString() string

GoString returns the string representation

func (Volume) String

func (s Volume) String() string

String returns the string representation

type VolumeConfiguration

type VolumeConfiguration struct {

	// For PIOPS volumes, the IOPS per disk.
	Iops *int64 `type:"integer"`

	// The volume mount point. For example "/dev/sdh".
	//
	// MountPoint is a required field
	MountPoint *string `type:"string" required:"true"`

	// The number of disks in the volume.
	//
	// NumberOfDisks is a required field
	NumberOfDisks *int64 `type:"integer" required:"true"`

	// The volume RAID level (http://en.wikipedia.org/wiki/Standard_RAID_levels).
	RaidLevel *int64 `type:"integer"`

	// The volume size.
	//
	// Size is a required field
	Size *int64 `type:"integer" required:"true"`

	// The volume type:
	//
	//    standard - Magnetic
	//
	//    io1 - Provisioned IOPS (SSD)
	//
	//    gp2 - General Purpose (SSD)
	VolumeType *string `type:"string"`
	// contains filtered or unexported fields
}

Describes an Amazon EBS volume configuration.

func (VolumeConfiguration) GoString

func (s VolumeConfiguration) GoString() string

GoString returns the string representation

func (VolumeConfiguration) String

func (s VolumeConfiguration) String() string

String returns the string representation

func (*VolumeConfiguration) Validate

func (s *VolumeConfiguration) Validate() error

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

type WeeklyAutoScalingSchedule

type WeeklyAutoScalingSchedule struct {

	// The schedule for Friday.
	Friday map[string]*string `type:"map"`

	// The schedule for Monday.
	Monday map[string]*string `type:"map"`

	// The schedule for Saturday.
	Saturday map[string]*string `type:"map"`

	// The schedule for Sunday.
	Sunday map[string]*string `type:"map"`

	// The schedule for Thursday.
	Thursday map[string]*string `type:"map"`

	// The schedule for Tuesday.
	Tuesday map[string]*string `type:"map"`

	// The schedule for Wednesday.
	Wednesday map[string]*string `type:"map"`
	// contains filtered or unexported fields
}

Describes a time-based instance's auto scaling schedule. The schedule consists of a set of key-value pairs.

The key is the time period (a UTC hour) and must be an integer from 0

- 23.

The value indicates whether the instance should be online or offline for

the specified period, and must be set to "on" or "off"

The default setting for all time periods is off, so you use the following

parameters primarily to specify the online periods. You don't have to explicitly specify offline periods unless you want to change an online period to an offline period.

The following example specifies that the instance should be online for four hours, from UTC 1200 - 1600. It will be off for the remainder of the day.

{ "12":"on", "13":"on", "14":"on", "15":"on" }

func (WeeklyAutoScalingSchedule) GoString

func (s WeeklyAutoScalingSchedule) GoString() string

GoString returns the string representation

func (WeeklyAutoScalingSchedule) String

func (s WeeklyAutoScalingSchedule) String() string

String returns the string representation

Directories

Path Synopsis
Package opsworksiface provides an interface to enable mocking the AWS OpsWorks service client for testing your code.
Package opsworksiface provides an interface to enable mocking the AWS OpsWorks service client for testing your code.

Jump to

Keyboard shortcuts

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