awsopsworks

package
v1.168.0-devpreview Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

README

AWS OpsWorks Construct Library

This module is part of the AWS Cloud Development Kit project.

import opsworks "github.com/aws/aws-cdk-go/awscdk"

There are no official hand-written (L2) constructs for this service yet. Here are some suggestions on how to proceed:

There are no hand-written (L2) constructs for this service yet. However, you can still use the automatically generated L1 constructs, and use this service exactly as you would using CloudFormation directly.

For more information on the resources and properties available for this service, see the CloudFormation documentation for AWS::OpsWorks.

(Read the CDK Contributing Guide and submit an RFC if you are interested in contributing to this construct library.)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CfnApp_CFN_RESOURCE_TYPE_NAME

func CfnApp_CFN_RESOURCE_TYPE_NAME() *string

func CfnApp_IsCfnElement

func CfnApp_IsCfnElement(x interface{}) *bool

Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).

Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.

Returns: The construct as a stack element or undefined if it is not a stack element. Experimental.

func CfnApp_IsCfnResource

func CfnApp_IsCfnResource(construct constructs.IConstruct) *bool

Check whether the given construct is a CfnResource. Experimental.

func CfnApp_IsConstruct

func CfnApp_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct. Experimental.

func CfnElasticLoadBalancerAttachment_CFN_RESOURCE_TYPE_NAME

func CfnElasticLoadBalancerAttachment_CFN_RESOURCE_TYPE_NAME() *string

func CfnElasticLoadBalancerAttachment_IsCfnElement

func CfnElasticLoadBalancerAttachment_IsCfnElement(x interface{}) *bool

Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).

Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.

Returns: The construct as a stack element or undefined if it is not a stack element. Experimental.

func CfnElasticLoadBalancerAttachment_IsCfnResource

func CfnElasticLoadBalancerAttachment_IsCfnResource(construct constructs.IConstruct) *bool

Check whether the given construct is a CfnResource. Experimental.

func CfnElasticLoadBalancerAttachment_IsConstruct

func CfnElasticLoadBalancerAttachment_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct. Experimental.

func CfnInstance_CFN_RESOURCE_TYPE_NAME

func CfnInstance_CFN_RESOURCE_TYPE_NAME() *string

func CfnInstance_IsCfnElement

func CfnInstance_IsCfnElement(x interface{}) *bool

Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).

Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.

Returns: The construct as a stack element or undefined if it is not a stack element. Experimental.

func CfnInstance_IsCfnResource

func CfnInstance_IsCfnResource(construct constructs.IConstruct) *bool

Check whether the given construct is a CfnResource. Experimental.

func CfnInstance_IsConstruct

func CfnInstance_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct. Experimental.

func CfnLayer_CFN_RESOURCE_TYPE_NAME

func CfnLayer_CFN_RESOURCE_TYPE_NAME() *string

func CfnLayer_IsCfnElement

func CfnLayer_IsCfnElement(x interface{}) *bool

Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).

Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.

Returns: The construct as a stack element or undefined if it is not a stack element. Experimental.

func CfnLayer_IsCfnResource

func CfnLayer_IsCfnResource(construct constructs.IConstruct) *bool

Check whether the given construct is a CfnResource. Experimental.

func CfnLayer_IsConstruct

func CfnLayer_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct. Experimental.

func CfnStack_CFN_RESOURCE_TYPE_NAME

func CfnStack_CFN_RESOURCE_TYPE_NAME() *string

func CfnStack_IsCfnElement

func CfnStack_IsCfnElement(x interface{}) *bool

Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).

Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.

Returns: The construct as a stack element or undefined if it is not a stack element. Experimental.

func CfnStack_IsCfnResource

func CfnStack_IsCfnResource(construct constructs.IConstruct) *bool

Check whether the given construct is a CfnResource. Experimental.

func CfnStack_IsConstruct

func CfnStack_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct. Experimental.

func CfnUserProfile_CFN_RESOURCE_TYPE_NAME

func CfnUserProfile_CFN_RESOURCE_TYPE_NAME() *string

func CfnUserProfile_IsCfnElement

func CfnUserProfile_IsCfnElement(x interface{}) *bool

Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).

Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.

Returns: The construct as a stack element or undefined if it is not a stack element. Experimental.

func CfnUserProfile_IsCfnResource

func CfnUserProfile_IsCfnResource(construct constructs.IConstruct) *bool

Check whether the given construct is a CfnResource. Experimental.

func CfnUserProfile_IsConstruct

func CfnUserProfile_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct. Experimental.

func CfnVolume_CFN_RESOURCE_TYPE_NAME

func CfnVolume_CFN_RESOURCE_TYPE_NAME() *string

func CfnVolume_IsCfnElement

func CfnVolume_IsCfnElement(x interface{}) *bool

Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).

Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.

Returns: The construct as a stack element or undefined if it is not a stack element. Experimental.

func CfnVolume_IsCfnResource

func CfnVolume_IsCfnResource(construct constructs.IConstruct) *bool

Check whether the given construct is a CfnResource. Experimental.

func CfnVolume_IsConstruct

func CfnVolume_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct. Experimental.

func NewCfnApp_Override

func NewCfnApp_Override(c CfnApp, scope awscdk.Construct, id *string, props *CfnAppProps)

Create a new `AWS::OpsWorks::App`.

func NewCfnElasticLoadBalancerAttachment_Override

func NewCfnElasticLoadBalancerAttachment_Override(c CfnElasticLoadBalancerAttachment, scope awscdk.Construct, id *string, props *CfnElasticLoadBalancerAttachmentProps)

Create a new `AWS::OpsWorks::ElasticLoadBalancerAttachment`.

func NewCfnInstance_Override

func NewCfnInstance_Override(c CfnInstance, scope awscdk.Construct, id *string, props *CfnInstanceProps)

Create a new `AWS::OpsWorks::Instance`.

func NewCfnLayer_Override

func NewCfnLayer_Override(c CfnLayer, scope awscdk.Construct, id *string, props *CfnLayerProps)

Create a new `AWS::OpsWorks::Layer`.

func NewCfnStack_Override

func NewCfnStack_Override(c CfnStack, scope awscdk.Construct, id *string, props *CfnStackProps)

Create a new `AWS::OpsWorks::Stack`.

func NewCfnUserProfile_Override

func NewCfnUserProfile_Override(c CfnUserProfile, scope awscdk.Construct, id *string, props *CfnUserProfileProps)

Create a new `AWS::OpsWorks::UserProfile`.

func NewCfnVolume_Override

func NewCfnVolume_Override(c CfnVolume, scope awscdk.Construct, id *string, props *CfnVolumeProps)

Create a new `AWS::OpsWorks::Volume`.

Types

type CfnApp

type CfnApp interface {
	awscdk.CfnResource
	awscdk.IInspectable
	// A `Source` object that specifies the app repository.
	AppSource() interface{}
	SetAppSource(val interface{})
	// One or more user-defined key/value pairs to be added to the stack attributes.
	Attributes() interface{}
	SetAttributes(val interface{})
	// Options for this resource, such as condition, update policy etc.
	// Experimental.
	CfnOptions() awscdk.ICfnResourceOptions
	CfnProperties() *map[string]interface{}
	// AWS resource type.
	// Experimental.
	CfnResourceType() *string
	// Returns: the stack trace of the point where this Resource was created from, sourced
	// from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most
	// node +internal+ entries filtered.
	// Experimental.
	CreationStack() *[]*string
	// The app's data source.
	DataSources() interface{}
	SetDataSources(val interface{})
	// A description of the app.
	Description() *string
	SetDescription(val *string)
	// The app virtual host settings, with multiple domains separated by commas.
	//
	// For example: `'www.example.com, example.com'`
	Domains() *[]*string
	SetDomains(val *[]*string)
	// Whether to enable SSL for the app.
	EnableSsl() interface{}
	SetEnableSsl(val interface{})
	// 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](https://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 20 KB. 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 20KB)."
	//
	// > If you have specified one or more environment variables, you cannot modify the stack's Chef version.
	Environment() interface{}
	SetEnvironment(val interface{})
	// The logical ID for this CloudFormation stack element.
	//
	// The logical ID of the element
	// is calculated from the path of the resource node in the construct tree.
	//
	// To override this value, use `overrideLogicalId(newLogicalId)`.
	//
	// Returns: the logical ID as a stringified token. This value will only get
	// resolved during synthesis.
	// Experimental.
	LogicalId() *string
	// The app name.
	Name() *string
	SetName(val *string)
	// The construct tree node associated with this construct.
	// Experimental.
	Node() awscdk.ConstructNode
	// Return a string that will be resolved to a CloudFormation `{ Ref }` for this element.
	//
	// If, by any chance, the intrinsic reference of a resource is not a string, you could
	// coerce it to an IResolvable through `Lazy.any({ produce: resource.ref })`.
	// Experimental.
	Ref() *string
	// The app's short name.
	Shortname() *string
	SetShortname(val *string)
	// An `SslConfiguration` object with the SSL configuration.
	SslConfiguration() interface{}
	SetSslConfiguration(val interface{})
	// The stack in which this element is defined.
	//
	// CfnElements must be defined within a stack scope (directly or indirectly).
	// Experimental.
	Stack() awscdk.Stack
	// The stack ID.
	StackId() *string
	SetStackId(val *string)
	// The app type.
	//
	// Each supported type is associated with a particular layer. For example, PHP applications are associated with a PHP layer. AWS OpsWorks Stacks deploys an application to those instances that are members of the corresponding layer. If your app isn't one of the standard types, or you prefer to implement your own Deploy recipes, specify `other` .
	Type() *string
	SetType(val *string)
	// Return properties modified after initiation.
	//
	// Resources that expose mutable properties should override this function to
	// collect and return the properties object for this resource.
	// Experimental.
	UpdatedProperites() *map[string]interface{}
	// Syntactic sugar for `addOverride(path, undefined)`.
	// Experimental.
	AddDeletionOverride(path *string)
	// Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.
	//
	// This can be used for resources across stacks (or nested stack) boundaries
	// and the dependency will automatically be transferred to the relevant scope.
	// Experimental.
	AddDependsOn(target awscdk.CfnResource)
	// Add a value to the CloudFormation Resource Metadata.
	// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html
	//
	// Note that this is a different set of metadata from CDK node metadata; this
	// metadata ends up in the stack template under the resource, whereas CDK
	// node metadata ends up in the Cloud Assembly.
	//
	// Experimental.
	AddMetadata(key *string, value interface{})
	// Adds an override to the synthesized CloudFormation resource.
	//
	// To add a
	// property override, either use `addPropertyOverride` or prefix `path` with
	// "Properties." (i.e. `Properties.TopicName`).
	//
	// If the override is nested, separate each nested level using a dot (.) in the path parameter.
	// If there is an array as part of the nesting, specify the index in the path.
	//
	// To include a literal `.` in the property name, prefix with a `\`. In most
	// programming languages you will need to write this as `"\\."` because the
	// `\` itself will need to be escaped.
	//
	// For example,
	// “`typescript
	// cfnResource.addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']);
	// cfnResource.addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE');
	// “`
	// would add the overrides
	// “`json
	// "Properties": {
	//    "GlobalSecondaryIndexes": [
	//      {
	//        "Projection": {
	//          "NonKeyAttributes": [ "myattribute" ]
	//          ...
	//        }
	//        ...
	//      },
	//      {
	//        "ProjectionType": "INCLUDE"
	//        ...
	//      },
	//    ]
	//    ...
	// }
	// “`
	//
	// The `value` argument to `addOverride` will not be processed or translated
	// in any way. Pass raw JSON values in here with the correct capitalization
	// for CloudFormation. If you pass CDK classes or structs, they will be
	// rendered with lowercased key names, and CloudFormation will reject the
	// template.
	// Experimental.
	AddOverride(path *string, value interface{})
	// Adds an override that deletes the value of a property from the resource definition.
	// Experimental.
	AddPropertyDeletionOverride(propertyPath *string)
	// Adds an override to a resource property.
	//
	// Syntactic sugar for `addOverride("Properties.<...>", value)`.
	// Experimental.
	AddPropertyOverride(propertyPath *string, value interface{})
	// Sets the deletion policy of the resource based on the removal policy specified.
	//
	// The Removal Policy controls what happens to this resource when it stops
	// being managed by CloudFormation, either because you've removed it from the
	// CDK application or because you've made a change that requires the resource
	// to be replaced.
	//
	// The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS
	// account for data recovery and cleanup later (`RemovalPolicy.RETAIN`).
	// Experimental.
	ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions)
	// Returns a token for an runtime attribute of this resource.
	//
	// Ideally, use generated attribute accessors (e.g. `resource.arn`), but this can be used for future compatibility
	// in case there is no generated attribute.
	// Experimental.
	GetAtt(attributeName *string) awscdk.Reference
	// Retrieve a value value from the CloudFormation Resource Metadata.
	// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html
	//
	// Note that this is a different set of metadata from CDK node metadata; this
	// metadata ends up in the stack template under the resource, whereas CDK
	// node metadata ends up in the Cloud Assembly.
	//
	// Experimental.
	GetMetadata(key *string) interface{}
	// Examines the CloudFormation resource and discloses attributes.
	Inspect(inspector awscdk.TreeInspector)
	// Perform final modifications before synthesis.
	//
	// This method can be implemented by derived constructs in order to perform
	// final changes before synthesis. prepare() will be called after child
	// constructs have been prepared.
	//
	// This is an advanced framework feature. Only use this if you
	// understand the implications.
	// Experimental.
	OnPrepare()
	// Allows this construct to emit artifacts into the cloud assembly during synthesis.
	//
	// This method is usually implemented by framework-level constructs such as `Stack` and `Asset`
	// as they participate in synthesizing the cloud assembly.
	// Experimental.
	OnSynthesize(session constructs.ISynthesisSession)
	// Validate the current construct.
	//
	// This method can be implemented by derived constructs in order to perform
	// validation logic. It is called on all constructs before synthesis.
	//
	// Returns: An array of validation error messages, or an empty array if the construct is valid.
	// Experimental.
	OnValidate() *[]*string
	// Overrides the auto-generated logical ID with a specific ID.
	// Experimental.
	OverrideLogicalId(newLogicalId *string)
	// Perform final modifications before synthesis.
	//
	// This method can be implemented by derived constructs in order to perform
	// final changes before synthesis. prepare() will be called after child
	// constructs have been prepared.
	//
	// This is an advanced framework feature. Only use this if you
	// understand the implications.
	// Experimental.
	Prepare()
	RenderProperties(props *map[string]interface{}) *map[string]interface{}
	// Can be overridden by subclasses to determine if this resource will be rendered into the cloudformation template.
	//
	// Returns: `true` if the resource should be included or `false` is the resource
	// should be omitted.
	// Experimental.
	ShouldSynthesize() *bool
	// Allows this construct to emit artifacts into the cloud assembly during synthesis.
	//
	// This method is usually implemented by framework-level constructs such as `Stack` and `Asset`
	// as they participate in synthesizing the cloud assembly.
	// Experimental.
	Synthesize(session awscdk.ISynthesisSession)
	// Returns a string representation of this construct.
	//
	// Returns: a string representation of this resource.
	// Experimental.
	ToString() *string
	// Validate the current construct.
	//
	// This method can be implemented by derived constructs in order to perform
	// validation logic. It is called on all constructs before synthesis.
	//
	// Returns: An array of validation error messages, or an empty array if the construct is valid.
	// Experimental.
	Validate() *[]*string
	// Experimental.
	ValidateProperties(_properties interface{})
}

A CloudFormation `AWS::OpsWorks::App`.

Creates an app for a specified stack. For more information, see [Creating Apps](https://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](https://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html) .

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnApp := awscdk.Aws_opsworks.NewCfnApp(this, jsii.String("MyCfnApp"), &cfnAppProps{
	name: jsii.String("name"),
	stackId: jsii.String("stackId"),
	type: jsii.String("type"),

	// the properties below are optional
	appSource: &sourceProperty{
		password: jsii.String("password"),
		revision: jsii.String("revision"),
		sshKey: jsii.String("sshKey"),
		type: jsii.String("type"),
		url: jsii.String("url"),
		username: jsii.String("username"),
	},
	attributes: map[string]*string{
		"attributesKey": jsii.String("attributes"),
	},
	dataSources: []interface{}{
		&dataSourceProperty{
			arn: jsii.String("arn"),
			databaseName: jsii.String("databaseName"),
			type: jsii.String("type"),
		},
	},
	description: jsii.String("description"),
	domains: []*string{
		jsii.String("domains"),
	},
	enableSsl: jsii.Boolean(false),
	environment: []interface{}{
		&environmentVariableProperty{
			key: jsii.String("key"),
			value: jsii.String("value"),

			// the properties below are optional
			secure: jsii.Boolean(false),
		},
	},
	shortname: jsii.String("shortname"),
	sslConfiguration: &sslConfigurationProperty{
		certificate: jsii.String("certificate"),
		chain: jsii.String("chain"),
		privateKey: jsii.String("privateKey"),
	},
})

func NewCfnApp

func NewCfnApp(scope awscdk.Construct, id *string, props *CfnAppProps) CfnApp

Create a new `AWS::OpsWorks::App`.

type CfnAppProps

type CfnAppProps struct {
	// The app name.
	Name *string `field:"required" json:"name" yaml:"name"`
	// The stack ID.
	StackId *string `field:"required" json:"stackId" yaml:"stackId"`
	// The app type.
	//
	// Each supported type is associated with a particular layer. For example, PHP applications are associated with a PHP layer. AWS OpsWorks Stacks deploys an application to those instances that are members of the corresponding layer. If your app isn't one of the standard types, or you prefer to implement your own Deploy recipes, specify `other` .
	Type *string `field:"required" json:"type" yaml:"type"`
	// A `Source` object that specifies the app repository.
	AppSource interface{} `field:"optional" json:"appSource" yaml:"appSource"`
	// One or more user-defined key/value pairs to be added to the stack attributes.
	Attributes interface{} `field:"optional" json:"attributes" yaml:"attributes"`
	// The app's data source.
	DataSources interface{} `field:"optional" json:"dataSources" yaml:"dataSources"`
	// A description of the app.
	Description *string `field:"optional" json:"description" yaml:"description"`
	// The app virtual host settings, with multiple domains separated by commas.
	//
	// For example: `'www.example.com, example.com'`
	Domains *[]*string `field:"optional" json:"domains" yaml:"domains"`
	// Whether to enable SSL for the app.
	EnableSsl interface{} `field:"optional" json:"enableSsl" yaml:"enableSsl"`
	// 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](https://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 20 KB. 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 20KB)."
	//
	// > If you have specified one or more environment variables, you cannot modify the stack's Chef version.
	Environment interface{} `field:"optional" json:"environment" yaml:"environment"`
	// The app's short name.
	Shortname *string `field:"optional" json:"shortname" yaml:"shortname"`
	// An `SslConfiguration` object with the SSL configuration.
	SslConfiguration interface{} `field:"optional" json:"sslConfiguration" yaml:"sslConfiguration"`
}

Properties for defining a `CfnApp`.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnAppProps := &cfnAppProps{
	name: jsii.String("name"),
	stackId: jsii.String("stackId"),
	type: jsii.String("type"),

	// the properties below are optional
	appSource: &sourceProperty{
		password: jsii.String("password"),
		revision: jsii.String("revision"),
		sshKey: jsii.String("sshKey"),
		type: jsii.String("type"),
		url: jsii.String("url"),
		username: jsii.String("username"),
	},
	attributes: map[string]*string{
		"attributesKey": jsii.String("attributes"),
	},
	dataSources: []interface{}{
		&dataSourceProperty{
			arn: jsii.String("arn"),
			databaseName: jsii.String("databaseName"),
			type: jsii.String("type"),
		},
	},
	description: jsii.String("description"),
	domains: []*string{
		jsii.String("domains"),
	},
	enableSsl: jsii.Boolean(false),
	environment: []interface{}{
		&environmentVariableProperty{
			key: jsii.String("key"),
			value: jsii.String("value"),

			// the properties below are optional
			secure: jsii.Boolean(false),
		},
	},
	shortname: jsii.String("shortname"),
	sslConfiguration: &sslConfigurationProperty{
		certificate: jsii.String("certificate"),
		chain: jsii.String("chain"),
		privateKey: jsii.String("privateKey"),
	},
}

type CfnApp_DataSourceProperty

type CfnApp_DataSourceProperty struct {
	// The data source's ARN.
	Arn *string `field:"optional" json:"arn" yaml:"arn"`
	// The database name.
	DatabaseName *string `field:"optional" json:"databaseName" yaml:"databaseName"`
	// The data source's type, `AutoSelectOpsworksMysqlInstance` , `OpsworksMysqlInstance` , `RdsDbInstance` , or `None` .
	Type *string `field:"optional" json:"type" yaml:"type"`
}

Describes an app's data source.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

dataSourceProperty := &dataSourceProperty{
	arn: jsii.String("arn"),
	databaseName: jsii.String("databaseName"),
	type: jsii.String("type"),
}

type CfnApp_EnvironmentVariableProperty

type CfnApp_EnvironmentVariableProperty 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 *string `field:"required" json:"key" yaml:"key"`
	// (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 *string `field:"required" json:"value" yaml:"value"`
	// (Optional) Whether the variable's value is returned by the [DescribeApps](https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeApps) action. To hide an environment variable's value, set `Secure` to `true` . `DescribeApps` returns `*****FILTERED*****` instead of the actual value. The default value for `Secure` is `false` .
	Secure interface{} `field:"optional" json:"secure" yaml:"secure"`
}

Represents an app's environment variable.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

environmentVariableProperty := &environmentVariableProperty{
	key: jsii.String("key"),
	value: jsii.String("value"),

	// the properties below are optional
	secure: jsii.Boolean(false),
}

type CfnApp_SourceProperty

type CfnApp_SourceProperty 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 [](https://docs.aws.amazon.com/general/latest/gr/aws-access-keys-best-practices.html) .
	//
	// In responses, AWS OpsWorks Stacks returns `*****FILTERED*****` instead of the actual value.
	Password *string `field:"optional" json:"password" yaml:"password"`
	// The application's version.
	//
	// AWS OpsWorks Stacks 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 `field:"optional" json:"revision" yaml:"revision"`
	// In requests, the repository's SSH key.
	//
	// In responses, AWS OpsWorks Stacks returns `*****FILTERED*****` instead of the actual value.
	SshKey *string `field:"optional" json:"sshKey" yaml:"sshKey"`
	// The repository type.
	Type *string `field:"optional" json:"type" yaml:"type"`
	// The source URL.
	//
	// The following is an example of an Amazon S3 source URL: `https://s3.amazonaws.com/opsworks-demo-bucket/opsworks_cookbook_demo.tar.gz` .
	Url *string `field:"optional" json:"url" yaml:"url"`
	// 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 `field:"optional" json:"username" yaml:"username"`
}

Contains the information required to retrieve an app or cookbook from a repository.

For more information, see [Creating Apps](https://docs.aws.amazon.com/opsworks/latest/userguide/workingapps-creating.html) or [Custom Recipes and Cookbooks](https://docs.aws.amazon.com/opsworks/latest/userguide/workingcookbook.html) .

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

sourceProperty := &sourceProperty{
	password: jsii.String("password"),
	revision: jsii.String("revision"),
	sshKey: jsii.String("sshKey"),
	type: jsii.String("type"),
	url: jsii.String("url"),
	username: jsii.String("username"),
}

type CfnApp_SslConfigurationProperty

type CfnApp_SslConfigurationProperty struct {
	// The contents of the certificate's domain.crt file.
	Certificate *string `field:"optional" json:"certificate" yaml:"certificate"`
	// Optional.
	//
	// Can be used to specify an intermediate certificate authority key or client authentication.
	Chain *string `field:"optional" json:"chain" yaml:"chain"`
	// The private key;
	//
	// the contents of the certificate's domain.kex file.
	PrivateKey *string `field:"optional" json:"privateKey" yaml:"privateKey"`
}

Describes an app's SSL configuration.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

sslConfigurationProperty := &sslConfigurationProperty{
	certificate: jsii.String("certificate"),
	chain: jsii.String("chain"),
	privateKey: jsii.String("privateKey"),
}

type CfnElasticLoadBalancerAttachment

type CfnElasticLoadBalancerAttachment interface {
	awscdk.CfnResource
	awscdk.IInspectable
	// Options for this resource, such as condition, update policy etc.
	// Experimental.
	CfnOptions() awscdk.ICfnResourceOptions
	CfnProperties() *map[string]interface{}
	// AWS resource type.
	// Experimental.
	CfnResourceType() *string
	// Returns: the stack trace of the point where this Resource was created from, sourced
	// from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most
	// node +internal+ entries filtered.
	// Experimental.
	CreationStack() *[]*string
	// The Elastic Load Balancing instance name.
	ElasticLoadBalancerName() *string
	SetElasticLoadBalancerName(val *string)
	// The AWS OpsWorks layer ID to which the Elastic Load Balancing load balancer is attached.
	LayerId() *string
	SetLayerId(val *string)
	// The logical ID for this CloudFormation stack element.
	//
	// The logical ID of the element
	// is calculated from the path of the resource node in the construct tree.
	//
	// To override this value, use `overrideLogicalId(newLogicalId)`.
	//
	// Returns: the logical ID as a stringified token. This value will only get
	// resolved during synthesis.
	// Experimental.
	LogicalId() *string
	// The construct tree node associated with this construct.
	// Experimental.
	Node() awscdk.ConstructNode
	// Return a string that will be resolved to a CloudFormation `{ Ref }` for this element.
	//
	// If, by any chance, the intrinsic reference of a resource is not a string, you could
	// coerce it to an IResolvable through `Lazy.any({ produce: resource.ref })`.
	// Experimental.
	Ref() *string
	// The stack in which this element is defined.
	//
	// CfnElements must be defined within a stack scope (directly or indirectly).
	// Experimental.
	Stack() awscdk.Stack
	// Return properties modified after initiation.
	//
	// Resources that expose mutable properties should override this function to
	// collect and return the properties object for this resource.
	// Experimental.
	UpdatedProperites() *map[string]interface{}
	// Syntactic sugar for `addOverride(path, undefined)`.
	// Experimental.
	AddDeletionOverride(path *string)
	// Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.
	//
	// This can be used for resources across stacks (or nested stack) boundaries
	// and the dependency will automatically be transferred to the relevant scope.
	// Experimental.
	AddDependsOn(target awscdk.CfnResource)
	// Add a value to the CloudFormation Resource Metadata.
	// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html
	//
	// Note that this is a different set of metadata from CDK node metadata; this
	// metadata ends up in the stack template under the resource, whereas CDK
	// node metadata ends up in the Cloud Assembly.
	//
	// Experimental.
	AddMetadata(key *string, value interface{})
	// Adds an override to the synthesized CloudFormation resource.
	//
	// To add a
	// property override, either use `addPropertyOverride` or prefix `path` with
	// "Properties." (i.e. `Properties.TopicName`).
	//
	// If the override is nested, separate each nested level using a dot (.) in the path parameter.
	// If there is an array as part of the nesting, specify the index in the path.
	//
	// To include a literal `.` in the property name, prefix with a `\`. In most
	// programming languages you will need to write this as `"\\."` because the
	// `\` itself will need to be escaped.
	//
	// For example,
	// “`typescript
	// cfnResource.addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']);
	// cfnResource.addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE');
	// “`
	// would add the overrides
	// “`json
	// "Properties": {
	//    "GlobalSecondaryIndexes": [
	//      {
	//        "Projection": {
	//          "NonKeyAttributes": [ "myattribute" ]
	//          ...
	//        }
	//        ...
	//      },
	//      {
	//        "ProjectionType": "INCLUDE"
	//        ...
	//      },
	//    ]
	//    ...
	// }
	// “`
	//
	// The `value` argument to `addOverride` will not be processed or translated
	// in any way. Pass raw JSON values in here with the correct capitalization
	// for CloudFormation. If you pass CDK classes or structs, they will be
	// rendered with lowercased key names, and CloudFormation will reject the
	// template.
	// Experimental.
	AddOverride(path *string, value interface{})
	// Adds an override that deletes the value of a property from the resource definition.
	// Experimental.
	AddPropertyDeletionOverride(propertyPath *string)
	// Adds an override to a resource property.
	//
	// Syntactic sugar for `addOverride("Properties.<...>", value)`.
	// Experimental.
	AddPropertyOverride(propertyPath *string, value interface{})
	// Sets the deletion policy of the resource based on the removal policy specified.
	//
	// The Removal Policy controls what happens to this resource when it stops
	// being managed by CloudFormation, either because you've removed it from the
	// CDK application or because you've made a change that requires the resource
	// to be replaced.
	//
	// The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS
	// account for data recovery and cleanup later (`RemovalPolicy.RETAIN`).
	// Experimental.
	ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions)
	// Returns a token for an runtime attribute of this resource.
	//
	// Ideally, use generated attribute accessors (e.g. `resource.arn`), but this can be used for future compatibility
	// in case there is no generated attribute.
	// Experimental.
	GetAtt(attributeName *string) awscdk.Reference
	// Retrieve a value value from the CloudFormation Resource Metadata.
	// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html
	//
	// Note that this is a different set of metadata from CDK node metadata; this
	// metadata ends up in the stack template under the resource, whereas CDK
	// node metadata ends up in the Cloud Assembly.
	//
	// Experimental.
	GetMetadata(key *string) interface{}
	// Examines the CloudFormation resource and discloses attributes.
	Inspect(inspector awscdk.TreeInspector)
	// Perform final modifications before synthesis.
	//
	// This method can be implemented by derived constructs in order to perform
	// final changes before synthesis. prepare() will be called after child
	// constructs have been prepared.
	//
	// This is an advanced framework feature. Only use this if you
	// understand the implications.
	// Experimental.
	OnPrepare()
	// Allows this construct to emit artifacts into the cloud assembly during synthesis.
	//
	// This method is usually implemented by framework-level constructs such as `Stack` and `Asset`
	// as they participate in synthesizing the cloud assembly.
	// Experimental.
	OnSynthesize(session constructs.ISynthesisSession)
	// Validate the current construct.
	//
	// This method can be implemented by derived constructs in order to perform
	// validation logic. It is called on all constructs before synthesis.
	//
	// Returns: An array of validation error messages, or an empty array if the construct is valid.
	// Experimental.
	OnValidate() *[]*string
	// Overrides the auto-generated logical ID with a specific ID.
	// Experimental.
	OverrideLogicalId(newLogicalId *string)
	// Perform final modifications before synthesis.
	//
	// This method can be implemented by derived constructs in order to perform
	// final changes before synthesis. prepare() will be called after child
	// constructs have been prepared.
	//
	// This is an advanced framework feature. Only use this if you
	// understand the implications.
	// Experimental.
	Prepare()
	RenderProperties(props *map[string]interface{}) *map[string]interface{}
	// Can be overridden by subclasses to determine if this resource will be rendered into the cloudformation template.
	//
	// Returns: `true` if the resource should be included or `false` is the resource
	// should be omitted.
	// Experimental.
	ShouldSynthesize() *bool
	// Allows this construct to emit artifacts into the cloud assembly during synthesis.
	//
	// This method is usually implemented by framework-level constructs such as `Stack` and `Asset`
	// as they participate in synthesizing the cloud assembly.
	// Experimental.
	Synthesize(session awscdk.ISynthesisSession)
	// Returns a string representation of this construct.
	//
	// Returns: a string representation of this resource.
	// Experimental.
	ToString() *string
	// Validate the current construct.
	//
	// This method can be implemented by derived constructs in order to perform
	// validation logic. It is called on all constructs before synthesis.
	//
	// Returns: An array of validation error messages, or an empty array if the construct is valid.
	// Experimental.
	Validate() *[]*string
	// Experimental.
	ValidateProperties(_properties interface{})
}

A CloudFormation `AWS::OpsWorks::ElasticLoadBalancerAttachment`.

Attaches an Elastic Load Balancing load balancer to an AWS OpsWorks layer that you specify.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnElasticLoadBalancerAttachment := awscdk.Aws_opsworks.NewCfnElasticLoadBalancerAttachment(this, jsii.String("MyCfnElasticLoadBalancerAttachment"), &cfnElasticLoadBalancerAttachmentProps{
	elasticLoadBalancerName: jsii.String("elasticLoadBalancerName"),
	layerId: jsii.String("layerId"),
})

func NewCfnElasticLoadBalancerAttachment

func NewCfnElasticLoadBalancerAttachment(scope awscdk.Construct, id *string, props *CfnElasticLoadBalancerAttachmentProps) CfnElasticLoadBalancerAttachment

Create a new `AWS::OpsWorks::ElasticLoadBalancerAttachment`.

type CfnElasticLoadBalancerAttachmentProps

type CfnElasticLoadBalancerAttachmentProps struct {
	// The Elastic Load Balancing instance name.
	ElasticLoadBalancerName *string `field:"required" json:"elasticLoadBalancerName" yaml:"elasticLoadBalancerName"`
	// The AWS OpsWorks layer ID to which the Elastic Load Balancing load balancer is attached.
	LayerId *string `field:"required" json:"layerId" yaml:"layerId"`
}

Properties for defining a `CfnElasticLoadBalancerAttachment`.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnElasticLoadBalancerAttachmentProps := &cfnElasticLoadBalancerAttachmentProps{
	elasticLoadBalancerName: jsii.String("elasticLoadBalancerName"),
	layerId: jsii.String("layerId"),
}

type CfnInstance

type CfnInstance interface {
	awscdk.CfnResource
	awscdk.IInspectable
	// The default AWS OpsWorks Stacks 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 Stacks 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](https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeAgentVersions) . AgentVersion cannot be set to Chef 12.2.
	AgentVersion() *string
	SetAgentVersion(val *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](https://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
	SetAmiId(val *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](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html) .
	Architecture() *string
	SetArchitecture(val *string)
	// The Availability Zone of the AWS OpsWorks instance, such as `us-east-2a` .
	AttrAvailabilityZone() *string
	// The private DNS name of the AWS OpsWorks instance.
	AttrPrivateDnsName() *string
	// The private IP address of the AWS OpsWorks instance, such as `192.0.2.0` .
	AttrPrivateIp() *string
	// The public DNS name of the AWS OpsWorks instance.
	AttrPublicDnsName() *string
	// The public IP address of the AWS OpsWorks instance, such as `192.0.2.0` .
	//
	// > Use this attribute only when the AWS OpsWorks instance is in an AWS OpsWorks layer that auto-assigns public IP addresses.
	AttrPublicIp() *string
	// For load-based or time-based instances, the type.
	//
	// Windows stacks can use only time-based instances.
	AutoScalingType() *string
	SetAutoScalingType(val *string)
	// The Availability Zone of the AWS OpsWorks instance, such as `us-east-2a` .
	AvailabilityZone() *string
	SetAvailabilityZone(val *string)
	// An array of `BlockDeviceMapping` objects that specify the instance's block devices.
	//
	// For more information, see [Block Device Mapping](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-device-mapping-concepts.html) . Note that block device mappings are not supported for custom AMIs.
	BlockDeviceMappings() interface{}
	SetBlockDeviceMappings(val interface{})
	// Options for this resource, such as condition, update policy etc.
	// Experimental.
	CfnOptions() awscdk.ICfnResourceOptions
	CfnProperties() *map[string]interface{}
	// AWS resource type.
	// Experimental.
	CfnResourceType() *string
	// Returns: the stack trace of the point where this Resource was created from, sourced
	// from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most
	// node +internal+ entries filtered.
	// Experimental.
	CreationStack() *[]*string
	// Whether to create an Amazon EBS-optimized instance.
	EbsOptimized() interface{}
	SetEbsOptimized(val interface{})
	// A list of Elastic IP addresses to associate with the instance.
	ElasticIps() *[]*string
	SetElasticIps(val *[]*string)
	// The instance host name. The following are character limits for instance host names.
	//
	// - Linux-based instances: 63 characters
	// - Windows-based instances: 15 characters.
	Hostname() *string
	SetHostname(val *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](https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/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() interface{}
	SetInstallUpdatesOnBoot(val interface{})
	// 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](https://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
	SetInstanceType(val *string)
	// An array that contains the instance's layer IDs.
	LayerIds() *[]*string
	SetLayerIds(val *[]*string)
	// The logical ID for this CloudFormation stack element.
	//
	// The logical ID of the element
	// is calculated from the path of the resource node in the construct tree.
	//
	// To override this value, use `overrideLogicalId(newLogicalId)`.
	//
	// Returns: the logical ID as a stringified token. This value will only get
	// resolved during synthesis.
	// Experimental.
	LogicalId() *string
	// The construct tree node associated with this construct.
	// Experimental.
	Node() awscdk.ConstructNode
	// 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 2` , `Amazon Linux 2018.03` , `Amazon Linux 2017.09` , `Amazon Linux 2017.03` , `Amazon Linux 2016.09` , `Amazon Linux 2016.03` , `Amazon Linux 2015.09` , or `Amazon Linux 2015.03` .
	// - A supported Ubuntu operating system, such as `Ubuntu 18.04 LTS` , `Ubuntu 16.04 LTS` , `Ubuntu 14.04 LTS` , or `Ubuntu 12.04 LTS` .
	// - `CentOS Linux 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` .
	//
	// Not all operating systems are supported with all versions of Chef. For more information about the supported operating systems, see [AWS OpsWorks Stacks Operating Systems](https://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](https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/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 about how to use custom AMIs with AWS OpsWorks Stacks, see [Using Custom AMIs](https://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-custom-ami.html) .
	Os() *string
	SetOs(val *string)
	// Return a string that will be resolved to a CloudFormation `{ Ref }` for this element.
	//
	// If, by any chance, the intrinsic reference of a resource is not a string, you could
	// coerce it to an IResolvable through `Lazy.any({ produce: resource.ref })`.
	// Experimental.
	Ref() *string
	// The instance root device type.
	//
	// For more information, see [Storage for the Root Device](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ComponentsAMIs.html#storage-for-the-root-device) .
	RootDeviceType() *string
	SetRootDeviceType(val *string)
	// The instance's Amazon EC2 key-pair name.
	SshKeyName() *string
	SetSshKeyName(val *string)
	// The stack in which this element is defined.
	//
	// CfnElements must be defined within a stack scope (directly or indirectly).
	// Experimental.
	Stack() awscdk.Stack
	// The stack ID.
	StackId() *string
	SetStackId(val *string)
	// 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 Stacks to launch the instance in a different subnet.
	SubnetId() *string
	SetSubnetId(val *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](https://docs.aws.amazon.com/ec2/dedicated-hosts/) and [Amazon EC2 Dedicated Hosts](https://docs.aws.amazon.com/ec2/dedicated-hosts/) . For more information about dedicated instances, see [Dedicated Instances](https://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/dedicated-instance.html) and [Amazon EC2 Dedicated Instances](https://docs.aws.amazon.com/ec2/purchasing-options/dedicated-instances/) .
	Tenancy() *string
	SetTenancy(val *string)
	// The time-based scaling configuration for the instance.
	TimeBasedAutoScaling() interface{}
	SetTimeBasedAutoScaling(val interface{})
	// Return properties modified after initiation.
	//
	// Resources that expose mutable properties should override this function to
	// collect and return the properties object for this resource.
	// Experimental.
	UpdatedProperites() *map[string]interface{}
	// The instance's virtualization type, `paravirtual` or `hvm` .
	VirtualizationType() *string
	SetVirtualizationType(val *string)
	// A list of AWS OpsWorks volume IDs to associate with the instance.
	//
	// For more information, see [`AWS::OpsWorks::Volume`](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-volume.html) .
	Volumes() *[]*string
	SetVolumes(val *[]*string)
	// Syntactic sugar for `addOverride(path, undefined)`.
	// Experimental.
	AddDeletionOverride(path *string)
	// Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.
	//
	// This can be used for resources across stacks (or nested stack) boundaries
	// and the dependency will automatically be transferred to the relevant scope.
	// Experimental.
	AddDependsOn(target awscdk.CfnResource)
	// Add a value to the CloudFormation Resource Metadata.
	// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html
	//
	// Note that this is a different set of metadata from CDK node metadata; this
	// metadata ends up in the stack template under the resource, whereas CDK
	// node metadata ends up in the Cloud Assembly.
	//
	// Experimental.
	AddMetadata(key *string, value interface{})
	// Adds an override to the synthesized CloudFormation resource.
	//
	// To add a
	// property override, either use `addPropertyOverride` or prefix `path` with
	// "Properties." (i.e. `Properties.TopicName`).
	//
	// If the override is nested, separate each nested level using a dot (.) in the path parameter.
	// If there is an array as part of the nesting, specify the index in the path.
	//
	// To include a literal `.` in the property name, prefix with a `\`. In most
	// programming languages you will need to write this as `"\\."` because the
	// `\` itself will need to be escaped.
	//
	// For example,
	// “`typescript
	// cfnResource.addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']);
	// cfnResource.addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE');
	// “`
	// would add the overrides
	// “`json
	// "Properties": {
	//    "GlobalSecondaryIndexes": [
	//      {
	//        "Projection": {
	//          "NonKeyAttributes": [ "myattribute" ]
	//          ...
	//        }
	//        ...
	//      },
	//      {
	//        "ProjectionType": "INCLUDE"
	//        ...
	//      },
	//    ]
	//    ...
	// }
	// “`
	//
	// The `value` argument to `addOverride` will not be processed or translated
	// in any way. Pass raw JSON values in here with the correct capitalization
	// for CloudFormation. If you pass CDK classes or structs, they will be
	// rendered with lowercased key names, and CloudFormation will reject the
	// template.
	// Experimental.
	AddOverride(path *string, value interface{})
	// Adds an override that deletes the value of a property from the resource definition.
	// Experimental.
	AddPropertyDeletionOverride(propertyPath *string)
	// Adds an override to a resource property.
	//
	// Syntactic sugar for `addOverride("Properties.<...>", value)`.
	// Experimental.
	AddPropertyOverride(propertyPath *string, value interface{})
	// Sets the deletion policy of the resource based on the removal policy specified.
	//
	// The Removal Policy controls what happens to this resource when it stops
	// being managed by CloudFormation, either because you've removed it from the
	// CDK application or because you've made a change that requires the resource
	// to be replaced.
	//
	// The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS
	// account for data recovery and cleanup later (`RemovalPolicy.RETAIN`).
	// Experimental.
	ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions)
	// Returns a token for an runtime attribute of this resource.
	//
	// Ideally, use generated attribute accessors (e.g. `resource.arn`), but this can be used for future compatibility
	// in case there is no generated attribute.
	// Experimental.
	GetAtt(attributeName *string) awscdk.Reference
	// Retrieve a value value from the CloudFormation Resource Metadata.
	// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html
	//
	// Note that this is a different set of metadata from CDK node metadata; this
	// metadata ends up in the stack template under the resource, whereas CDK
	// node metadata ends up in the Cloud Assembly.
	//
	// Experimental.
	GetMetadata(key *string) interface{}
	// Examines the CloudFormation resource and discloses attributes.
	Inspect(inspector awscdk.TreeInspector)
	// Perform final modifications before synthesis.
	//
	// This method can be implemented by derived constructs in order to perform
	// final changes before synthesis. prepare() will be called after child
	// constructs have been prepared.
	//
	// This is an advanced framework feature. Only use this if you
	// understand the implications.
	// Experimental.
	OnPrepare()
	// Allows this construct to emit artifacts into the cloud assembly during synthesis.
	//
	// This method is usually implemented by framework-level constructs such as `Stack` and `Asset`
	// as they participate in synthesizing the cloud assembly.
	// Experimental.
	OnSynthesize(session constructs.ISynthesisSession)
	// Validate the current construct.
	//
	// This method can be implemented by derived constructs in order to perform
	// validation logic. It is called on all constructs before synthesis.
	//
	// Returns: An array of validation error messages, or an empty array if the construct is valid.
	// Experimental.
	OnValidate() *[]*string
	// Overrides the auto-generated logical ID with a specific ID.
	// Experimental.
	OverrideLogicalId(newLogicalId *string)
	// Perform final modifications before synthesis.
	//
	// This method can be implemented by derived constructs in order to perform
	// final changes before synthesis. prepare() will be called after child
	// constructs have been prepared.
	//
	// This is an advanced framework feature. Only use this if you
	// understand the implications.
	// Experimental.
	Prepare()
	RenderProperties(props *map[string]interface{}) *map[string]interface{}
	// Can be overridden by subclasses to determine if this resource will be rendered into the cloudformation template.
	//
	// Returns: `true` if the resource should be included or `false` is the resource
	// should be omitted.
	// Experimental.
	ShouldSynthesize() *bool
	// Allows this construct to emit artifacts into the cloud assembly during synthesis.
	//
	// This method is usually implemented by framework-level constructs such as `Stack` and `Asset`
	// as they participate in synthesizing the cloud assembly.
	// Experimental.
	Synthesize(session awscdk.ISynthesisSession)
	// Returns a string representation of this construct.
	//
	// Returns: a string representation of this resource.
	// Experimental.
	ToString() *string
	// Validate the current construct.
	//
	// This method can be implemented by derived constructs in order to perform
	// validation logic. It is called on all constructs before synthesis.
	//
	// Returns: An array of validation error messages, or an empty array if the construct is valid.
	// Experimental.
	Validate() *[]*string
	// Experimental.
	ValidateProperties(_properties interface{})
}

A CloudFormation `AWS::OpsWorks::Instance`.

Creates an instance in a specified stack. For more information, see [Adding an Instance to a Layer](https://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](https://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html) .

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnInstance := awscdk.Aws_opsworks.NewCfnInstance(this, jsii.String("MyCfnInstance"), &cfnInstanceProps{
	instanceType: jsii.String("instanceType"),
	layerIds: []*string{
		jsii.String("layerIds"),
	},
	stackId: jsii.String("stackId"),

	// the properties below are optional
	agentVersion: jsii.String("agentVersion"),
	amiId: jsii.String("amiId"),
	architecture: jsii.String("architecture"),
	autoScalingType: jsii.String("autoScalingType"),
	availabilityZone: jsii.String("availabilityZone"),
	blockDeviceMappings: []interface{}{
		&blockDeviceMappingProperty{
			deviceName: jsii.String("deviceName"),
			ebs: &ebsBlockDeviceProperty{
				deleteOnTermination: jsii.Boolean(false),
				iops: jsii.Number(123),
				snapshotId: jsii.String("snapshotId"),
				volumeSize: jsii.Number(123),
				volumeType: jsii.String("volumeType"),
			},
			noDevice: jsii.String("noDevice"),
			virtualName: jsii.String("virtualName"),
		},
	},
	ebsOptimized: jsii.Boolean(false),
	elasticIps: []*string{
		jsii.String("elasticIps"),
	},
	hostname: jsii.String("hostname"),
	installUpdatesOnBoot: jsii.Boolean(false),
	os: jsii.String("os"),
	rootDeviceType: jsii.String("rootDeviceType"),
	sshKeyName: jsii.String("sshKeyName"),
	subnetId: jsii.String("subnetId"),
	tenancy: jsii.String("tenancy"),
	timeBasedAutoScaling: &timeBasedAutoScalingProperty{
		friday: map[string]*string{
			"fridayKey": jsii.String("friday"),
		},
		monday: map[string]*string{
			"mondayKey": jsii.String("monday"),
		},
		saturday: map[string]*string{
			"saturdayKey": jsii.String("saturday"),
		},
		sunday: map[string]*string{
			"sundayKey": jsii.String("sunday"),
		},
		thursday: map[string]*string{
			"thursdayKey": jsii.String("thursday"),
		},
		tuesday: map[string]*string{
			"tuesdayKey": jsii.String("tuesday"),
		},
		wednesday: map[string]*string{
			"wednesdayKey": jsii.String("wednesday"),
		},
	},
	virtualizationType: jsii.String("virtualizationType"),
	volumes: []*string{
		jsii.String("volumes"),
	},
})

func NewCfnInstance

func NewCfnInstance(scope awscdk.Construct, id *string, props *CfnInstanceProps) CfnInstance

Create a new `AWS::OpsWorks::Instance`.

type CfnInstanceProps

type CfnInstanceProps struct {
	// 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](https://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 `field:"required" json:"instanceType" yaml:"instanceType"`
	// An array that contains the instance's layer IDs.
	LayerIds *[]*string `field:"required" json:"layerIds" yaml:"layerIds"`
	// The stack ID.
	StackId *string `field:"required" json:"stackId" yaml:"stackId"`
	// The default AWS OpsWorks Stacks 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 Stacks 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](https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeAgentVersions) . AgentVersion cannot be set to Chef 12.2.
	AgentVersion *string `field:"optional" json:"agentVersion" yaml:"agentVersion"`
	// 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](https://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 `field:"optional" json:"amiId" yaml:"amiId"`
	// 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](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html) .
	Architecture *string `field:"optional" json:"architecture" yaml:"architecture"`
	// For load-based or time-based instances, the type.
	//
	// Windows stacks can use only time-based instances.
	AutoScalingType *string `field:"optional" json:"autoScalingType" yaml:"autoScalingType"`
	// The Availability Zone of the AWS OpsWorks instance, such as `us-east-2a` .
	AvailabilityZone *string `field:"optional" json:"availabilityZone" yaml:"availabilityZone"`
	// An array of `BlockDeviceMapping` objects that specify the instance's block devices.
	//
	// For more information, see [Block Device Mapping](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-device-mapping-concepts.html) . Note that block device mappings are not supported for custom AMIs.
	BlockDeviceMappings interface{} `field:"optional" json:"blockDeviceMappings" yaml:"blockDeviceMappings"`
	// Whether to create an Amazon EBS-optimized instance.
	EbsOptimized interface{} `field:"optional" json:"ebsOptimized" yaml:"ebsOptimized"`
	// A list of Elastic IP addresses to associate with the instance.
	ElasticIps *[]*string `field:"optional" json:"elasticIps" yaml:"elasticIps"`
	// The instance host name. The following are character limits for instance host names.
	//
	// - Linux-based instances: 63 characters
	// - Windows-based instances: 15 characters.
	Hostname *string `field:"optional" json:"hostname" yaml:"hostname"`
	// 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](https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/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 interface{} `field:"optional" json:"installUpdatesOnBoot" yaml:"installUpdatesOnBoot"`
	// 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 2` , `Amazon Linux 2018.03` , `Amazon Linux 2017.09` , `Amazon Linux 2017.03` , `Amazon Linux 2016.09` , `Amazon Linux 2016.03` , `Amazon Linux 2015.09` , or `Amazon Linux 2015.03` .
	// - A supported Ubuntu operating system, such as `Ubuntu 18.04 LTS` , `Ubuntu 16.04 LTS` , `Ubuntu 14.04 LTS` , or `Ubuntu 12.04 LTS` .
	// - `CentOS Linux 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` .
	//
	// Not all operating systems are supported with all versions of Chef. For more information about the supported operating systems, see [AWS OpsWorks Stacks Operating Systems](https://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](https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/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 about how to use custom AMIs with AWS OpsWorks Stacks, see [Using Custom AMIs](https://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-custom-ami.html) .
	Os *string `field:"optional" json:"os" yaml:"os"`
	// The instance root device type.
	//
	// For more information, see [Storage for the Root Device](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ComponentsAMIs.html#storage-for-the-root-device) .
	RootDeviceType *string `field:"optional" json:"rootDeviceType" yaml:"rootDeviceType"`
	// The instance's Amazon EC2 key-pair name.
	SshKeyName *string `field:"optional" json:"sshKeyName" yaml:"sshKeyName"`
	// 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 Stacks to launch the instance in a different subnet.
	SubnetId *string `field:"optional" json:"subnetId" yaml:"subnetId"`
	// 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](https://docs.aws.amazon.com/ec2/dedicated-hosts/) and [Amazon EC2 Dedicated Hosts](https://docs.aws.amazon.com/ec2/dedicated-hosts/) . For more information about dedicated instances, see [Dedicated Instances](https://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/dedicated-instance.html) and [Amazon EC2 Dedicated Instances](https://docs.aws.amazon.com/ec2/purchasing-options/dedicated-instances/) .
	Tenancy *string `field:"optional" json:"tenancy" yaml:"tenancy"`
	// The time-based scaling configuration for the instance.
	TimeBasedAutoScaling interface{} `field:"optional" json:"timeBasedAutoScaling" yaml:"timeBasedAutoScaling"`
	// The instance's virtualization type, `paravirtual` or `hvm` .
	VirtualizationType *string `field:"optional" json:"virtualizationType" yaml:"virtualizationType"`
	// A list of AWS OpsWorks volume IDs to associate with the instance.
	//
	// For more information, see [`AWS::OpsWorks::Volume`](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-volume.html) .
	Volumes *[]*string `field:"optional" json:"volumes" yaml:"volumes"`
}

Properties for defining a `CfnInstance`.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnInstanceProps := &cfnInstanceProps{
	instanceType: jsii.String("instanceType"),
	layerIds: []*string{
		jsii.String("layerIds"),
	},
	stackId: jsii.String("stackId"),

	// the properties below are optional
	agentVersion: jsii.String("agentVersion"),
	amiId: jsii.String("amiId"),
	architecture: jsii.String("architecture"),
	autoScalingType: jsii.String("autoScalingType"),
	availabilityZone: jsii.String("availabilityZone"),
	blockDeviceMappings: []interface{}{
		&blockDeviceMappingProperty{
			deviceName: jsii.String("deviceName"),
			ebs: &ebsBlockDeviceProperty{
				deleteOnTermination: jsii.Boolean(false),
				iops: jsii.Number(123),
				snapshotId: jsii.String("snapshotId"),
				volumeSize: jsii.Number(123),
				volumeType: jsii.String("volumeType"),
			},
			noDevice: jsii.String("noDevice"),
			virtualName: jsii.String("virtualName"),
		},
	},
	ebsOptimized: jsii.Boolean(false),
	elasticIps: []*string{
		jsii.String("elasticIps"),
	},
	hostname: jsii.String("hostname"),
	installUpdatesOnBoot: jsii.Boolean(false),
	os: jsii.String("os"),
	rootDeviceType: jsii.String("rootDeviceType"),
	sshKeyName: jsii.String("sshKeyName"),
	subnetId: jsii.String("subnetId"),
	tenancy: jsii.String("tenancy"),
	timeBasedAutoScaling: &timeBasedAutoScalingProperty{
		friday: map[string]*string{
			"fridayKey": jsii.String("friday"),
		},
		monday: map[string]*string{
			"mondayKey": jsii.String("monday"),
		},
		saturday: map[string]*string{
			"saturdayKey": jsii.String("saturday"),
		},
		sunday: map[string]*string{
			"sundayKey": jsii.String("sunday"),
		},
		thursday: map[string]*string{
			"thursdayKey": jsii.String("thursday"),
		},
		tuesday: map[string]*string{
			"tuesdayKey": jsii.String("tuesday"),
		},
		wednesday: map[string]*string{
			"wednesdayKey": jsii.String("wednesday"),
		},
	},
	virtualizationType: jsii.String("virtualizationType"),
	volumes: []*string{
		jsii.String("volumes"),
	},
}

type CfnInstance_BlockDeviceMappingProperty

type CfnInstance_BlockDeviceMappingProperty 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 Stacks will provide the correct device name.
	DeviceName *string `field:"optional" json:"deviceName" yaml:"deviceName"`
	// An `EBSBlockDevice` that defines how to configure an Amazon EBS volume when the instance is launched.
	//
	// You can specify either the `VirtualName` or `Ebs` , but not both.
	Ebs interface{} `field:"optional" json:"ebs" yaml:"ebs"`
	// Suppresses the specified device included in the AMI's block device mapping.
	NoDevice *string `field:"optional" json:"noDevice" yaml:"noDevice"`
	// The virtual device name.
	//
	// For more information, see [BlockDeviceMapping](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_BlockDeviceMapping.html) . You can specify either the `VirtualName` or `Ebs` , but not both.
	VirtualName *string `field:"optional" json:"virtualName" yaml:"virtualName"`
}

Describes a block device mapping.

This data type maps directly to the Amazon EC2 [BlockDeviceMapping](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_BlockDeviceMapping.html) data type.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

blockDeviceMappingProperty := &blockDeviceMappingProperty{
	deviceName: jsii.String("deviceName"),
	ebs: &ebsBlockDeviceProperty{
		deleteOnTermination: jsii.Boolean(false),
		iops: jsii.Number(123),
		snapshotId: jsii.String("snapshotId"),
		volumeSize: jsii.Number(123),
		volumeType: jsii.String("volumeType"),
	},
	noDevice: jsii.String("noDevice"),
	virtualName: jsii.String("virtualName"),
}

type CfnInstance_EbsBlockDeviceProperty

type CfnInstance_EbsBlockDeviceProperty struct {
	// Whether the volume is deleted on instance termination.
	DeleteOnTermination interface{} `field:"optional" json:"deleteOnTermination" yaml:"deleteOnTermination"`
	// The number of I/O operations per second (IOPS) that the volume supports.
	//
	// For more information, see [EbsBlockDevice](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_EbsBlockDevice.html) .
	Iops *float64 `field:"optional" json:"iops" yaml:"iops"`
	// The snapshot ID.
	SnapshotId *string `field:"optional" json:"snapshotId" yaml:"snapshotId"`
	// The volume size, in GiB.
	//
	// For more information, see [EbsBlockDevice](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_EbsBlockDevice.html) .
	VolumeSize *float64 `field:"optional" json:"volumeSize" yaml:"volumeSize"`
	// The volume type.
	//
	// `gp2` for General Purpose (SSD) volumes, `io1` for Provisioned IOPS (SSD) volumes, `st1` for Throughput Optimized hard disk drives (HDD), `sc1` for Cold HDD,and `standard` for Magnetic volumes.
	//
	// If you specify the `io1` volume type, you must also specify a value for the `Iops` attribute. The maximum ratio of provisioned IOPS to requested volume size (in GiB) is 50:1. AWS uses the default volume size (in GiB) specified in the AMI attributes to set IOPS to 50 x (volume size).
	VolumeType *string `field:"optional" json:"volumeType" yaml:"volumeType"`
}

Describes an Amazon EBS volume.

This data type maps directly to the Amazon EC2 [EbsBlockDevice](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_EbsBlockDevice.html) data type.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

ebsBlockDeviceProperty := &ebsBlockDeviceProperty{
	deleteOnTermination: jsii.Boolean(false),
	iops: jsii.Number(123),
	snapshotId: jsii.String("snapshotId"),
	volumeSize: jsii.Number(123),
	volumeType: jsii.String("volumeType"),
}

type CfnInstance_TimeBasedAutoScalingProperty

type CfnInstance_TimeBasedAutoScalingProperty struct {
	// The schedule for Friday.
	Friday interface{} `field:"optional" json:"friday" yaml:"friday"`
	// The schedule for Monday.
	Monday interface{} `field:"optional" json:"monday" yaml:"monday"`
	// The schedule for Saturday.
	Saturday interface{} `field:"optional" json:"saturday" yaml:"saturday"`
	// The schedule for Sunday.
	Sunday interface{} `field:"optional" json:"sunday" yaml:"sunday"`
	// The schedule for Thursday.
	Thursday interface{} `field:"optional" json:"thursday" yaml:"thursday"`
	// The schedule for Tuesday.
	Tuesday interface{} `field:"optional" json:"tuesday" yaml:"tuesday"`
	// The schedule for Wednesday.
	Wednesday interface{} `field:"optional" json:"wednesday" yaml:"wednesday"`
}

Describes an instance's time-based auto scaling configuration.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

timeBasedAutoScalingProperty := &timeBasedAutoScalingProperty{
	friday: map[string]*string{
		"fridayKey": jsii.String("friday"),
	},
	monday: map[string]*string{
		"mondayKey": jsii.String("monday"),
	},
	saturday: map[string]*string{
		"saturdayKey": jsii.String("saturday"),
	},
	sunday: map[string]*string{
		"sundayKey": jsii.String("sunday"),
	},
	thursday: map[string]*string{
		"thursdayKey": jsii.String("thursday"),
	},
	tuesday: map[string]*string{
		"tuesdayKey": jsii.String("tuesday"),
	},
	wednesday: map[string]*string{
		"wednesdayKey": jsii.String("wednesday"),
	},
}

type CfnLayer

type CfnLayer interface {
	awscdk.CfnResource
	awscdk.IInspectable
	// 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() interface{}
	SetAttributes(val interface{})
	// Whether to automatically assign an [Elastic IP address](https://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](https://docs.aws.amazon.com/opsworks/latest/userguide/workinglayers-basics-edit.html) .
	AutoAssignElasticIps() interface{}
	SetAutoAssignElasticIps(val interface{})
	// 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](https://docs.aws.amazon.com/opsworks/latest/userguide/workinglayers-basics-edit.html) .
	AutoAssignPublicIps() interface{}
	SetAutoAssignPublicIps(val interface{})
	// Options for this resource, such as condition, update policy etc.
	// Experimental.
	CfnOptions() awscdk.ICfnResourceOptions
	CfnProperties() *map[string]interface{}
	// AWS resource type.
	// Experimental.
	CfnResourceType() *string
	// Returns: the stack trace of the point where this Resource was created from, sourced
	// from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most
	// node +internal+ entries filtered.
	// Experimental.
	CreationStack() *[]*string
	// The ARN of an IAM profile to be used for the layer's EC2 instances.
	//
	// For more information about IAM ARNs, see [Using Identifiers](https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html) .
	CustomInstanceProfileArn() *string
	SetCustomInstanceProfileArn(val *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](https://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() interface{}
	SetCustomJson(val interface{})
	// A `LayerCustomRecipes` object that specifies the layer custom recipes.
	CustomRecipes() interface{}
	SetCustomRecipes(val interface{})
	// An array containing the layer custom security group IDs.
	CustomSecurityGroupIds() *[]*string
	SetCustomSecurityGroupIds(val *[]*string)
	// Whether to disable auto healing for the layer.
	EnableAutoHealing() interface{}
	SetEnableAutoHealing(val interface{})
	// 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](https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/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() interface{}
	SetInstallUpdatesOnBoot(val interface{})
	// 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() interface{}
	SetLifecycleEventConfiguration(val interface{})
	// The load-based scaling configuration for the AWS OpsWorks layer.
	LoadBasedAutoScaling() interface{}
	SetLoadBasedAutoScaling(val interface{})
	// The logical ID for this CloudFormation stack element.
	//
	// The logical ID of the element
	// is calculated from the path of the resource node in the construct tree.
	//
	// To override this value, use `overrideLogicalId(newLogicalId)`.
	//
	// Returns: the logical ID as a stringified token. This value will only get
	// resolved during synthesis.
	// Experimental.
	LogicalId() *string
	// The layer name, which is used by the console.
	//
	// Layer names can be a maximum of 32 characters.
	Name() *string
	SetName(val *string)
	// The construct tree node associated with this construct.
	// Experimental.
	Node() awscdk.ConstructNode
	// An array of `Package` objects that describes the layer packages.
	Packages() *[]*string
	SetPackages(val *[]*string)
	// Return a string that will be resolved to a CloudFormation `{ Ref }` for this element.
	//
	// If, by any chance, the intrinsic reference of a resource is not a string, you could
	// coerce it to an IResolvable through `Lazy.any({ produce: resource.ref })`.
	// Experimental.
	Ref() *string
	// For custom layers only, use this parameter to specify the layer's short name, which is used internally by AWS OpsWorks Stacks 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 32 characters, which are limited to the alphanumeric characters, '-', '_', and '.'.
	//
	// Built-in layer short names are defined by AWS OpsWorks Stacks. For more information, see the [Layer Reference](https://docs.aws.amazon.com/opsworks/latest/userguide/layers.html) .
	Shortname() *string
	SetShortname(val *string)
	// The stack in which this element is defined.
	//
	// CfnElements must be defined within a stack scope (directly or indirectly).
	// Experimental.
	Stack() awscdk.Stack
	// The layer stack ID.
	StackId() *string
	SetStackId(val *string)
	// Specifies one or more sets of tags (key–value pairs) to associate with this AWS OpsWorks layer.
	//
	// Use tags to manage your resources.
	Tags() awscdk.TagManager
	// 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() *string
	SetType(val *string)
	// Return properties modified after initiation.
	//
	// Resources that expose mutable properties should override this function to
	// collect and return the properties object for this resource.
	// Experimental.
	UpdatedProperites() *map[string]interface{}
	// Whether to use Amazon EBS-optimized instances.
	UseEbsOptimizedInstances() interface{}
	SetUseEbsOptimizedInstances(val interface{})
	// A `VolumeConfigurations` object that describes the layer's Amazon EBS volumes.
	VolumeConfigurations() interface{}
	SetVolumeConfigurations(val interface{})
	// Syntactic sugar for `addOverride(path, undefined)`.
	// Experimental.
	AddDeletionOverride(path *string)
	// Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.
	//
	// This can be used for resources across stacks (or nested stack) boundaries
	// and the dependency will automatically be transferred to the relevant scope.
	// Experimental.
	AddDependsOn(target awscdk.CfnResource)
	// Add a value to the CloudFormation Resource Metadata.
	// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html
	//
	// Note that this is a different set of metadata from CDK node metadata; this
	// metadata ends up in the stack template under the resource, whereas CDK
	// node metadata ends up in the Cloud Assembly.
	//
	// Experimental.
	AddMetadata(key *string, value interface{})
	// Adds an override to the synthesized CloudFormation resource.
	//
	// To add a
	// property override, either use `addPropertyOverride` or prefix `path` with
	// "Properties." (i.e. `Properties.TopicName`).
	//
	// If the override is nested, separate each nested level using a dot (.) in the path parameter.
	// If there is an array as part of the nesting, specify the index in the path.
	//
	// To include a literal `.` in the property name, prefix with a `\`. In most
	// programming languages you will need to write this as `"\\."` because the
	// `\` itself will need to be escaped.
	//
	// For example,
	// “`typescript
	// cfnResource.addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']);
	// cfnResource.addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE');
	// “`
	// would add the overrides
	// “`json
	// "Properties": {
	//    "GlobalSecondaryIndexes": [
	//      {
	//        "Projection": {
	//          "NonKeyAttributes": [ "myattribute" ]
	//          ...
	//        }
	//        ...
	//      },
	//      {
	//        "ProjectionType": "INCLUDE"
	//        ...
	//      },
	//    ]
	//    ...
	// }
	// “`
	//
	// The `value` argument to `addOverride` will not be processed or translated
	// in any way. Pass raw JSON values in here with the correct capitalization
	// for CloudFormation. If you pass CDK classes or structs, they will be
	// rendered with lowercased key names, and CloudFormation will reject the
	// template.
	// Experimental.
	AddOverride(path *string, value interface{})
	// Adds an override that deletes the value of a property from the resource definition.
	// Experimental.
	AddPropertyDeletionOverride(propertyPath *string)
	// Adds an override to a resource property.
	//
	// Syntactic sugar for `addOverride("Properties.<...>", value)`.
	// Experimental.
	AddPropertyOverride(propertyPath *string, value interface{})
	// Sets the deletion policy of the resource based on the removal policy specified.
	//
	// The Removal Policy controls what happens to this resource when it stops
	// being managed by CloudFormation, either because you've removed it from the
	// CDK application or because you've made a change that requires the resource
	// to be replaced.
	//
	// The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS
	// account for data recovery and cleanup later (`RemovalPolicy.RETAIN`).
	// Experimental.
	ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions)
	// Returns a token for an runtime attribute of this resource.
	//
	// Ideally, use generated attribute accessors (e.g. `resource.arn`), but this can be used for future compatibility
	// in case there is no generated attribute.
	// Experimental.
	GetAtt(attributeName *string) awscdk.Reference
	// Retrieve a value value from the CloudFormation Resource Metadata.
	// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html
	//
	// Note that this is a different set of metadata from CDK node metadata; this
	// metadata ends up in the stack template under the resource, whereas CDK
	// node metadata ends up in the Cloud Assembly.
	//
	// Experimental.
	GetMetadata(key *string) interface{}
	// Examines the CloudFormation resource and discloses attributes.
	Inspect(inspector awscdk.TreeInspector)
	// Perform final modifications before synthesis.
	//
	// This method can be implemented by derived constructs in order to perform
	// final changes before synthesis. prepare() will be called after child
	// constructs have been prepared.
	//
	// This is an advanced framework feature. Only use this if you
	// understand the implications.
	// Experimental.
	OnPrepare()
	// Allows this construct to emit artifacts into the cloud assembly during synthesis.
	//
	// This method is usually implemented by framework-level constructs such as `Stack` and `Asset`
	// as they participate in synthesizing the cloud assembly.
	// Experimental.
	OnSynthesize(session constructs.ISynthesisSession)
	// Validate the current construct.
	//
	// This method can be implemented by derived constructs in order to perform
	// validation logic. It is called on all constructs before synthesis.
	//
	// Returns: An array of validation error messages, or an empty array if the construct is valid.
	// Experimental.
	OnValidate() *[]*string
	// Overrides the auto-generated logical ID with a specific ID.
	// Experimental.
	OverrideLogicalId(newLogicalId *string)
	// Perform final modifications before synthesis.
	//
	// This method can be implemented by derived constructs in order to perform
	// final changes before synthesis. prepare() will be called after child
	// constructs have been prepared.
	//
	// This is an advanced framework feature. Only use this if you
	// understand the implications.
	// Experimental.
	Prepare()
	RenderProperties(props *map[string]interface{}) *map[string]interface{}
	// Can be overridden by subclasses to determine if this resource will be rendered into the cloudformation template.
	//
	// Returns: `true` if the resource should be included or `false` is the resource
	// should be omitted.
	// Experimental.
	ShouldSynthesize() *bool
	// Allows this construct to emit artifacts into the cloud assembly during synthesis.
	//
	// This method is usually implemented by framework-level constructs such as `Stack` and `Asset`
	// as they participate in synthesizing the cloud assembly.
	// Experimental.
	Synthesize(session awscdk.ISynthesisSession)
	// Returns a string representation of this construct.
	//
	// Returns: a string representation of this resource.
	// Experimental.
	ToString() *string
	// Validate the current construct.
	//
	// This method can be implemented by derived constructs in order to perform
	// validation logic. It is called on all constructs before synthesis.
	//
	// Returns: An array of validation error messages, or an empty array if the construct is valid.
	// Experimental.
	Validate() *[]*string
	// Experimental.
	ValidateProperties(_properties interface{})
}

A CloudFormation `AWS::OpsWorks::Layer`.

Creates a layer. For more information, see [How to Create a Layer](https://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](https://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html) .

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var customJson interface{}

cfnLayer := awscdk.Aws_opsworks.NewCfnLayer(this, jsii.String("MyCfnLayer"), &cfnLayerProps{
	autoAssignElasticIps: jsii.Boolean(false),
	autoAssignPublicIps: jsii.Boolean(false),
	enableAutoHealing: jsii.Boolean(false),
	name: jsii.String("name"),
	shortname: jsii.String("shortname"),
	stackId: jsii.String("stackId"),
	type: jsii.String("type"),

	// the properties below are optional
	attributes: map[string]*string{
		"attributesKey": jsii.String("attributes"),
	},
	customInstanceProfileArn: jsii.String("customInstanceProfileArn"),
	customJson: customJson,
	customRecipes: &recipesProperty{
		configure: []*string{
			jsii.String("configure"),
		},
		deploy: []*string{
			jsii.String("deploy"),
		},
		setup: []*string{
			jsii.String("setup"),
		},
		shutdown: []*string{
			jsii.String("shutdown"),
		},
		undeploy: []*string{
			jsii.String("undeploy"),
		},
	},
	customSecurityGroupIds: []*string{
		jsii.String("customSecurityGroupIds"),
	},
	installUpdatesOnBoot: jsii.Boolean(false),
	lifecycleEventConfiguration: &lifecycleEventConfigurationProperty{
		shutdownEventConfiguration: &shutdownEventConfigurationProperty{
			delayUntilElbConnectionsDrained: jsii.Boolean(false),
			executionTimeout: jsii.Number(123),
		},
	},
	loadBasedAutoScaling: &loadBasedAutoScalingProperty{
		downScaling: &autoScalingThresholdsProperty{
			cpuThreshold: jsii.Number(123),
			ignoreMetricsTime: jsii.Number(123),
			instanceCount: jsii.Number(123),
			loadThreshold: jsii.Number(123),
			memoryThreshold: jsii.Number(123),
			thresholdsWaitTime: jsii.Number(123),
		},
		enable: jsii.Boolean(false),
		upScaling: &autoScalingThresholdsProperty{
			cpuThreshold: jsii.Number(123),
			ignoreMetricsTime: jsii.Number(123),
			instanceCount: jsii.Number(123),
			loadThreshold: jsii.Number(123),
			memoryThreshold: jsii.Number(123),
			thresholdsWaitTime: jsii.Number(123),
		},
	},
	packages: []*string{
		jsii.String("packages"),
	},
	tags: []cfnTag{
		&cfnTag{
			key: jsii.String("key"),
			value: jsii.String("value"),
		},
	},
	useEbsOptimizedInstances: jsii.Boolean(false),
	volumeConfigurations: []interface{}{
		&volumeConfigurationProperty{
			encrypted: jsii.Boolean(false),
			iops: jsii.Number(123),
			mountPoint: jsii.String("mountPoint"),
			numberOfDisks: jsii.Number(123),
			raidLevel: jsii.Number(123),
			size: jsii.Number(123),
			volumeType: jsii.String("volumeType"),
		},
	},
})

func NewCfnLayer

func NewCfnLayer(scope awscdk.Construct, id *string, props *CfnLayerProps) CfnLayer

Create a new `AWS::OpsWorks::Layer`.

type CfnLayerProps

type CfnLayerProps struct {
	// Whether to automatically assign an [Elastic IP address](https://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](https://docs.aws.amazon.com/opsworks/latest/userguide/workinglayers-basics-edit.html) .
	AutoAssignElasticIps interface{} `field:"required" json:"autoAssignElasticIps" yaml:"autoAssignElasticIps"`
	// 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](https://docs.aws.amazon.com/opsworks/latest/userguide/workinglayers-basics-edit.html) .
	AutoAssignPublicIps interface{} `field:"required" json:"autoAssignPublicIps" yaml:"autoAssignPublicIps"`
	// Whether to disable auto healing for the layer.
	EnableAutoHealing interface{} `field:"required" json:"enableAutoHealing" yaml:"enableAutoHealing"`
	// The layer name, which is used by the console.
	//
	// Layer names can be a maximum of 32 characters.
	Name *string `field:"required" json:"name" yaml:"name"`
	// For custom layers only, use this parameter to specify the layer's short name, which is used internally by AWS OpsWorks Stacks 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 32 characters, which are limited to the alphanumeric characters, '-', '_', and '.'.
	//
	// Built-in layer short names are defined by AWS OpsWorks Stacks. For more information, see the [Layer Reference](https://docs.aws.amazon.com/opsworks/latest/userguide/layers.html) .
	Shortname *string `field:"required" json:"shortname" yaml:"shortname"`
	// The layer stack ID.
	StackId *string `field:"required" json:"stackId" yaml:"stackId"`
	// 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 *string `field:"required" json:"type" yaml:"type"`
	// 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 interface{} `field:"optional" json:"attributes" yaml:"attributes"`
	// The ARN of an IAM profile to be used for the layer's EC2 instances.
	//
	// For more information about IAM ARNs, see [Using Identifiers](https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html) .
	CustomInstanceProfileArn *string `field:"optional" json:"customInstanceProfileArn" yaml:"customInstanceProfileArn"`
	// 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](https://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 interface{} `field:"optional" json:"customJson" yaml:"customJson"`
	// A `LayerCustomRecipes` object that specifies the layer custom recipes.
	CustomRecipes interface{} `field:"optional" json:"customRecipes" yaml:"customRecipes"`
	// An array containing the layer custom security group IDs.
	CustomSecurityGroupIds *[]*string `field:"optional" json:"customSecurityGroupIds" yaml:"customSecurityGroupIds"`
	// 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](https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/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 interface{} `field:"optional" json:"installUpdatesOnBoot" yaml:"installUpdatesOnBoot"`
	// 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 interface{} `field:"optional" json:"lifecycleEventConfiguration" yaml:"lifecycleEventConfiguration"`
	// The load-based scaling configuration for the AWS OpsWorks layer.
	LoadBasedAutoScaling interface{} `field:"optional" json:"loadBasedAutoScaling" yaml:"loadBasedAutoScaling"`
	// An array of `Package` objects that describes the layer packages.
	Packages *[]*string `field:"optional" json:"packages" yaml:"packages"`
	// Specifies one or more sets of tags (key–value pairs) to associate with this AWS OpsWorks layer.
	//
	// Use tags to manage your resources.
	Tags *[]*awscdk.CfnTag `field:"optional" json:"tags" yaml:"tags"`
	// Whether to use Amazon EBS-optimized instances.
	UseEbsOptimizedInstances interface{} `field:"optional" json:"useEbsOptimizedInstances" yaml:"useEbsOptimizedInstances"`
	// A `VolumeConfigurations` object that describes the layer's Amazon EBS volumes.
	VolumeConfigurations interface{} `field:"optional" json:"volumeConfigurations" yaml:"volumeConfigurations"`
}

Properties for defining a `CfnLayer`.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var customJson interface{}

cfnLayerProps := &cfnLayerProps{
	autoAssignElasticIps: jsii.Boolean(false),
	autoAssignPublicIps: jsii.Boolean(false),
	enableAutoHealing: jsii.Boolean(false),
	name: jsii.String("name"),
	shortname: jsii.String("shortname"),
	stackId: jsii.String("stackId"),
	type: jsii.String("type"),

	// the properties below are optional
	attributes: map[string]*string{
		"attributesKey": jsii.String("attributes"),
	},
	customInstanceProfileArn: jsii.String("customInstanceProfileArn"),
	customJson: customJson,
	customRecipes: &recipesProperty{
		configure: []*string{
			jsii.String("configure"),
		},
		deploy: []*string{
			jsii.String("deploy"),
		},
		setup: []*string{
			jsii.String("setup"),
		},
		shutdown: []*string{
			jsii.String("shutdown"),
		},
		undeploy: []*string{
			jsii.String("undeploy"),
		},
	},
	customSecurityGroupIds: []*string{
		jsii.String("customSecurityGroupIds"),
	},
	installUpdatesOnBoot: jsii.Boolean(false),
	lifecycleEventConfiguration: &lifecycleEventConfigurationProperty{
		shutdownEventConfiguration: &shutdownEventConfigurationProperty{
			delayUntilElbConnectionsDrained: jsii.Boolean(false),
			executionTimeout: jsii.Number(123),
		},
	},
	loadBasedAutoScaling: &loadBasedAutoScalingProperty{
		downScaling: &autoScalingThresholdsProperty{
			cpuThreshold: jsii.Number(123),
			ignoreMetricsTime: jsii.Number(123),
			instanceCount: jsii.Number(123),
			loadThreshold: jsii.Number(123),
			memoryThreshold: jsii.Number(123),
			thresholdsWaitTime: jsii.Number(123),
		},
		enable: jsii.Boolean(false),
		upScaling: &autoScalingThresholdsProperty{
			cpuThreshold: jsii.Number(123),
			ignoreMetricsTime: jsii.Number(123),
			instanceCount: jsii.Number(123),
			loadThreshold: jsii.Number(123),
			memoryThreshold: jsii.Number(123),
			thresholdsWaitTime: jsii.Number(123),
		},
	},
	packages: []*string{
		jsii.String("packages"),
	},
	tags: []cfnTag{
		&cfnTag{
			key: jsii.String("key"),
			value: jsii.String("value"),
		},
	},
	useEbsOptimizedInstances: jsii.Boolean(false),
	volumeConfigurations: []interface{}{
		&volumeConfigurationProperty{
			encrypted: jsii.Boolean(false),
			iops: jsii.Number(123),
			mountPoint: jsii.String("mountPoint"),
			numberOfDisks: jsii.Number(123),
			raidLevel: jsii.Number(123),
			size: jsii.Number(123),
			volumeType: jsii.String("volumeType"),
		},
	},
}

type CfnLayer_AutoScalingThresholdsProperty

type CfnLayer_AutoScalingThresholdsProperty struct {
	// The CPU utilization threshold, as a percent of the available CPU.
	//
	// A value of -1 disables the threshold.
	CpuThreshold *float64 `field:"optional" json:"cpuThreshold" yaml:"cpuThreshold"`
	// The amount of time (in minutes) after a scaling event occurs that AWS OpsWorks Stacks should ignore metrics and suppress additional scaling events.
	//
	// For example, AWS OpsWorks Stacks 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 Stacks to suppress scaling events long enough to get the new instances online.
	IgnoreMetricsTime *float64 `field:"optional" json:"ignoreMetricsTime" yaml:"ignoreMetricsTime"`
	// The number of instances to add or remove when the load exceeds a threshold.
	InstanceCount *float64 `field:"optional" json:"instanceCount" yaml:"instanceCount"`
	// The load threshold.
	//
	// A value of -1 disables the threshold. For more information about how load is computed, see [Load (computing)](https://docs.aws.amazon.com/http://en.wikipedia.org/wiki/Load_%28computing%29) .
	LoadThreshold *float64 `field:"optional" json:"loadThreshold" yaml:"loadThreshold"`
	// The memory utilization threshold, as a percent of the available memory.
	//
	// A value of -1 disables the threshold.
	MemoryThreshold *float64 `field:"optional" json:"memoryThreshold" yaml:"memoryThreshold"`
	// The amount of time, in minutes, that the load must exceed a threshold before more instances are added or removed.
	ThresholdsWaitTime *float64 `field:"optional" json:"thresholdsWaitTime" yaml:"thresholdsWaitTime"`
}

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

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

autoScalingThresholdsProperty := &autoScalingThresholdsProperty{
	cpuThreshold: jsii.Number(123),
	ignoreMetricsTime: jsii.Number(123),
	instanceCount: jsii.Number(123),
	loadThreshold: jsii.Number(123),
	memoryThreshold: jsii.Number(123),
	thresholdsWaitTime: jsii.Number(123),
}

type CfnLayer_LifecycleEventConfigurationProperty

type CfnLayer_LifecycleEventConfigurationProperty struct {
	// The Shutdown event configuration.
	ShutdownEventConfiguration interface{} `field:"optional" json:"shutdownEventConfiguration" yaml:"shutdownEventConfiguration"`
}

Specifies the lifecycle event configuration.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

lifecycleEventConfigurationProperty := &lifecycleEventConfigurationProperty{
	shutdownEventConfiguration: &shutdownEventConfigurationProperty{
		delayUntilElbConnectionsDrained: jsii.Boolean(false),
		executionTimeout: jsii.Number(123),
	},
}

type CfnLayer_LoadBasedAutoScalingProperty

type CfnLayer_LoadBasedAutoScalingProperty struct {
	// An `AutoScalingThresholds` object that describes the downscaling configuration, which defines how and when AWS OpsWorks Stacks reduces the number of instances.
	DownScaling interface{} `field:"optional" json:"downScaling" yaml:"downScaling"`
	// Whether load-based auto scaling is enabled for the layer.
	Enable interface{} `field:"optional" json:"enable" yaml:"enable"`
	// An `AutoScalingThresholds` object that describes the upscaling configuration, which defines how and when AWS OpsWorks Stacks increases the number of instances.
	UpScaling interface{} `field:"optional" json:"upScaling" yaml:"upScaling"`
}

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

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

loadBasedAutoScalingProperty := &loadBasedAutoScalingProperty{
	downScaling: &autoScalingThresholdsProperty{
		cpuThreshold: jsii.Number(123),
		ignoreMetricsTime: jsii.Number(123),
		instanceCount: jsii.Number(123),
		loadThreshold: jsii.Number(123),
		memoryThreshold: jsii.Number(123),
		thresholdsWaitTime: jsii.Number(123),
	},
	enable: jsii.Boolean(false),
	upScaling: &autoScalingThresholdsProperty{
		cpuThreshold: jsii.Number(123),
		ignoreMetricsTime: jsii.Number(123),
		instanceCount: jsii.Number(123),
		loadThreshold: jsii.Number(123),
		memoryThreshold: jsii.Number(123),
		thresholdsWaitTime: jsii.Number(123),
	},
}

type CfnLayer_RecipesProperty

type CfnLayer_RecipesProperty struct {
	// An array of custom recipe names to be run following a `configure` event.
	Configure *[]*string `field:"optional" json:"configure" yaml:"configure"`
	// An array of custom recipe names to be run following a `deploy` event.
	Deploy *[]*string `field:"optional" json:"deploy" yaml:"deploy"`
	// An array of custom recipe names to be run following a `setup` event.
	Setup *[]*string `field:"optional" json:"setup" yaml:"setup"`
	// An array of custom recipe names to be run following a `shutdown` event.
	Shutdown *[]*string `field:"optional" json:"shutdown" yaml:"shutdown"`
	// An array of custom recipe names to be run following a `undeploy` event.
	Undeploy *[]*string `field:"optional" json:"undeploy" yaml:"undeploy"`
}

AWS OpsWorks Stacks supports five lifecycle events: *setup* , *configuration* , *deploy* , *undeploy* , and *shutdown* .

For each layer, AWS OpsWorks Stacks 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 Stacks 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.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

recipesProperty := &recipesProperty{
	configure: []*string{
		jsii.String("configure"),
	},
	deploy: []*string{
		jsii.String("deploy"),
	},
	setup: []*string{
		jsii.String("setup"),
	},
	shutdown: []*string{
		jsii.String("shutdown"),
	},
	undeploy: []*string{
		jsii.String("undeploy"),
	},
}

type CfnLayer_ShutdownEventConfigurationProperty

type CfnLayer_ShutdownEventConfigurationProperty struct {
	// Whether to enable Elastic Load Balancing connection draining.
	//
	// For more information, see [Connection Draining](https://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/TerminologyandKeyConcepts.html#conn-drain)
	DelayUntilElbConnectionsDrained interface{} `field:"optional" json:"delayUntilElbConnectionsDrained" yaml:"delayUntilElbConnectionsDrained"`
	// The time, in seconds, that AWS OpsWorks Stacks waits after triggering a Shutdown event before shutting down an instance.
	ExecutionTimeout *float64 `field:"optional" json:"executionTimeout" yaml:"executionTimeout"`
}

The Shutdown event configuration.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

shutdownEventConfigurationProperty := &shutdownEventConfigurationProperty{
	delayUntilElbConnectionsDrained: jsii.Boolean(false),
	executionTimeout: jsii.Number(123),
}

type CfnLayer_VolumeConfigurationProperty

type CfnLayer_VolumeConfigurationProperty struct {
	// Specifies whether an Amazon EBS volume is encrypted.
	//
	// For more information, see [Amazon EBS Encryption](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html) .
	Encrypted interface{} `field:"optional" json:"encrypted" yaml:"encrypted"`
	// The number of I/O operations per second (IOPS) to provision for the volume.
	//
	// For PIOPS volumes, the IOPS per disk.
	//
	// If you specify `io1` for the volume type, you must specify this property.
	Iops *float64 `field:"optional" json:"iops" yaml:"iops"`
	// The volume mount point.
	//
	// For example "/dev/sdh".
	MountPoint *string `field:"optional" json:"mountPoint" yaml:"mountPoint"`
	// The number of disks in the volume.
	NumberOfDisks *float64 `field:"optional" json:"numberOfDisks" yaml:"numberOfDisks"`
	// The volume [RAID level](https://docs.aws.amazon.com/http://en.wikipedia.org/wiki/Standard_RAID_levels) .
	RaidLevel *float64 `field:"optional" json:"raidLevel" yaml:"raidLevel"`
	// The volume size.
	Size *float64 `field:"optional" json:"size" yaml:"size"`
	// The volume type. For more information, see [Amazon EBS Volume Types](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html) .
	//
	// - `standard` - Magnetic. Magnetic volumes must have a minimum size of 1 GiB and a maximum size of 1024 GiB.
	// - `io1` - Provisioned IOPS (SSD). PIOPS volumes must have a minimum size of 4 GiB and a maximum size of 16384 GiB.
	// - `gp2` - General Purpose (SSD). General purpose volumes must have a minimum size of 1 GiB and a maximum size of 16384 GiB.
	// - `st1` - Throughput Optimized hard disk drive (HDD). Throughput optimized HDD volumes must have a minimum size of 500 GiB and a maximum size of 16384 GiB.
	// - `sc1` - Cold HDD. Cold HDD volumes must have a minimum size of 500 GiB and a maximum size of 16384 GiB.
	VolumeType *string `field:"optional" json:"volumeType" yaml:"volumeType"`
}

Describes an Amazon EBS volume configuration.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

volumeConfigurationProperty := &volumeConfigurationProperty{
	encrypted: jsii.Boolean(false),
	iops: jsii.Number(123),
	mountPoint: jsii.String("mountPoint"),
	numberOfDisks: jsii.Number(123),
	raidLevel: jsii.Number(123),
	size: jsii.Number(123),
	volumeType: jsii.String("volumeType"),
}

type CfnStack

type CfnStack interface {
	awscdk.CfnResource
	awscdk.IInspectable
	// The default AWS OpsWorks Stacks agent version. You have the following options:.
	//
	// - Auto-update - Set this parameter to `LATEST` . AWS OpsWorks Stacks 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 Stacks 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](https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeAgentVersions) . AgentVersion cannot be set to Chef 12.2.
	//
	// > You can also specify an agent version when you create or update an instance, which overrides the stack's default setting.
	AgentVersion() *string
	SetAgentVersion(val *string)
	// One or more user-defined key-value pairs to be added to the stack attributes.
	Attributes() interface{}
	SetAttributes(val interface{})
	// Options for this resource, such as condition, update policy etc.
	// Experimental.
	CfnOptions() awscdk.ICfnResourceOptions
	CfnProperties() *map[string]interface{}
	// AWS resource type.
	// Experimental.
	CfnResourceType() *string
	// 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](https://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-creating.html) .
	ChefConfiguration() interface{}
	SetChefConfiguration(val interface{})
	// If you're cloning an AWS OpsWorks stack, a list of AWS OpsWorks application stack IDs from the source stack to include in the cloned stack.
	CloneAppIds() *[]*string
	SetCloneAppIds(val *[]*string)
	// If you're cloning an AWS OpsWorks stack, indicates whether to clone the source stack's permissions.
	ClonePermissions() interface{}
	SetClonePermissions(val interface{})
	// 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 12.
	ConfigurationManager() interface{}
	SetConfigurationManager(val interface{})
	// Returns: the stack trace of the point where this Resource was created from, sourced
	// from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most
	// node +internal+ entries filtered.
	// Experimental.
	CreationStack() *[]*string
	// Contains the information required to retrieve an app or cookbook from a repository.
	//
	// For more information, see [Adding Apps](https://docs.aws.amazon.com/opsworks/latest/userguide/workingapps-creating.html) or [Cookbooks and Recipes](https://docs.aws.amazon.com/opsworks/latest/userguide/workingcookbook.html) .
	CustomCookbooksSource() interface{}
	SetCustomCookbooksSource(val interface{})
	// 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 about custom JSON, see [Use Custom JSON to Modify the Stack Configuration Attributes](https://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-json.html) .
	CustomJson() interface{}
	SetCustomJson(val interface{})
	// The stack's default Availability Zone, which must be in the specified region.
	//
	// For more information, see [Regions and Endpoints](https://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
	SetDefaultAvailabilityZone(val *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](https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html) .
	DefaultInstanceProfileArn() *string
	SetDefaultInstanceProfileArn(val *string)
	// 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 2` , `Amazon Linux 2018.03` , `Amazon Linux 2017.09` , `Amazon Linux 2017.03` , `Amazon Linux 2016.09` , `Amazon Linux 2016.03` , `Amazon Linux 2015.09` , or `Amazon Linux 2015.03` .
	// - A supported Ubuntu operating system, such as `Ubuntu 18.04 LTS` , `Ubuntu 16.04 LTS` , `Ubuntu 14.04 LTS` , or `Ubuntu 12.04 LTS` .
	// - `CentOS Linux 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](https://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-custom-ami.html) .
	//
	// The default option is the current Amazon Linux version. Not all operating systems are supported with all versions of Chef. For more information about supported operating systems, see [AWS OpsWorks Stacks Operating Systems](https://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-os.html) .
	DefaultOs() *string
	SetDefaultOs(val *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](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ComponentsAMIs.html#storage-for-the-root-device) .
	DefaultRootDeviceType() *string
	SetDefaultRootDeviceType(val *string)
	// 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](https://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-ssh.html) and [Managing SSH Access](https://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](https://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-add.html) .
	DefaultSshKeyName() *string
	SetDefaultSshKeyName(val *string)
	// The stack's default subnet ID.
	//
	// All instances are launched into this subnet unless you specify another subnet ID when you create the instance. This parameter is required if you specify a value for the `VpcId` parameter. If you also specify a value for `DefaultAvailabilityZone` , the subnet must be in that zone.
	DefaultSubnetId() *string
	SetDefaultSubnetId(val *string)
	// The Amazon Resource Name (ARN) of the Amazon Elastic Container Service ( Amazon ECS ) cluster to register with the AWS OpsWorks stack.
	//
	// > If you specify a cluster that's registered with another AWS OpsWorks stack, AWS CloudFormation deregisters the existing association before registering the cluster.
	EcsClusterArn() *string
	SetEcsClusterArn(val *string)
	// A list of Elastic IP addresses to register with the AWS OpsWorks stack.
	//
	// > If you specify an IP address that's registered with another AWS OpsWorks stack, AWS CloudFormation deregisters the existing association before registering the IP address.
	ElasticIps() interface{}
	SetElasticIps(val interface{})
	// 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_and_Titans`
	// - `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
	SetHostnameTheme(val *string)
	// The logical ID for this CloudFormation stack element.
	//
	// The logical ID of the element
	// is calculated from the path of the resource node in the construct tree.
	//
	// To override this value, use `overrideLogicalId(newLogicalId)`.
	//
	// Returns: the logical ID as a stringified token. This value will only get
	// resolved during synthesis.
	// Experimental.
	LogicalId() *string
	// The stack name.
	//
	// Stack names can be a maximum of 64 characters.
	Name() *string
	SetName(val *string)
	// The construct tree node associated with this construct.
	// Experimental.
	Node() awscdk.ConstructNode
	// The Amazon Relational Database Service ( Amazon RDS ) database instance to register with the AWS OpsWorks stack.
	//
	// > If you specify a database instance that's registered with another AWS OpsWorks stack, AWS CloudFormation deregisters the existing association before registering the database instance.
	RdsDbInstances() interface{}
	SetRdsDbInstances(val interface{})
	// Return a string that will be resolved to a CloudFormation `{ Ref }` for this element.
	//
	// If, by any chance, the intrinsic reference of a resource is not a string, you could
	// coerce it to an IResolvable through `Lazy.any({ produce: resource.ref })`.
	// Experimental.
	Ref() *string
	// The stack's IAM role, which allows AWS OpsWorks Stacks 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](https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html) .
	ServiceRoleArn() *string
	SetServiceRoleArn(val *string)
	// If you're cloning an AWS OpsWorks stack, the stack ID of the source AWS OpsWorks stack to clone.
	SourceStackId() *string
	SetSourceStackId(val *string)
	// The stack in which this element is defined.
	//
	// CfnElements must be defined within a stack scope (directly or indirectly).
	// Experimental.
	Stack() awscdk.Stack
	// A map that contains tag keys and tag values that are attached to a stack or layer.
	//
	// - The key cannot be empty.
	// - The key can be a maximum of 127 characters, and can contain only Unicode letters, numbers, or separators, or the following special characters: `+ - = . _ : /`
	// - The value can be a maximum 255 characters, and contain only Unicode letters, numbers, or separators, or the following special characters: `+ - = . _ : /`
	// - Leading and trailing white spaces are trimmed from both the key and value.
	// - A maximum of 40 tags is allowed for any resource.
	Tags() awscdk.TagManager
	// Return properties modified after initiation.
	//
	// Resources that expose mutable properties should override this function to
	// collect and return the properties object for this resource.
	// Experimental.
	UpdatedProperites() *map[string]interface{}
	// Whether the stack uses custom cookbooks.
	UseCustomCookbooks() interface{}
	SetUseCustomCookbooks(val interface{})
	// Whether to associate the AWS OpsWorks Stacks built-in security groups with the stack's layers.
	//
	// AWS OpsWorks Stacks 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 Stacks 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 Stacks 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](https://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-creating.html) .
	UseOpsworksSecurityGroups() interface{}
	SetUseOpsworksSecurityGroups(val interface{})
	// 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 Stacks infers the value of the other parameter. If you specify neither parameter, AWS OpsWorks Stacks 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 about how to use AWS OpsWorks Stacks with a VPC, see [Running a Stack in a VPC](https://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-vpc.html) . For more information about default VPC and EC2-Classic, see [Supported Platforms](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-supported-platforms.html) .
	VpcId() *string
	SetVpcId(val *string)
	// Syntactic sugar for `addOverride(path, undefined)`.
	// Experimental.
	AddDeletionOverride(path *string)
	// Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.
	//
	// This can be used for resources across stacks (or nested stack) boundaries
	// and the dependency will automatically be transferred to the relevant scope.
	// Experimental.
	AddDependsOn(target awscdk.CfnResource)
	// Add a value to the CloudFormation Resource Metadata.
	// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html
	//
	// Note that this is a different set of metadata from CDK node metadata; this
	// metadata ends up in the stack template under the resource, whereas CDK
	// node metadata ends up in the Cloud Assembly.
	//
	// Experimental.
	AddMetadata(key *string, value interface{})
	// Adds an override to the synthesized CloudFormation resource.
	//
	// To add a
	// property override, either use `addPropertyOverride` or prefix `path` with
	// "Properties." (i.e. `Properties.TopicName`).
	//
	// If the override is nested, separate each nested level using a dot (.) in the path parameter.
	// If there is an array as part of the nesting, specify the index in the path.
	//
	// To include a literal `.` in the property name, prefix with a `\`. In most
	// programming languages you will need to write this as `"\\."` because the
	// `\` itself will need to be escaped.
	//
	// For example,
	// “`typescript
	// cfnResource.addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']);
	// cfnResource.addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE');
	// “`
	// would add the overrides
	// “`json
	// "Properties": {
	//    "GlobalSecondaryIndexes": [
	//      {
	//        "Projection": {
	//          "NonKeyAttributes": [ "myattribute" ]
	//          ...
	//        }
	//        ...
	//      },
	//      {
	//        "ProjectionType": "INCLUDE"
	//        ...
	//      },
	//    ]
	//    ...
	// }
	// “`
	//
	// The `value` argument to `addOverride` will not be processed or translated
	// in any way. Pass raw JSON values in here with the correct capitalization
	// for CloudFormation. If you pass CDK classes or structs, they will be
	// rendered with lowercased key names, and CloudFormation will reject the
	// template.
	// Experimental.
	AddOverride(path *string, value interface{})
	// Adds an override that deletes the value of a property from the resource definition.
	// Experimental.
	AddPropertyDeletionOverride(propertyPath *string)
	// Adds an override to a resource property.
	//
	// Syntactic sugar for `addOverride("Properties.<...>", value)`.
	// Experimental.
	AddPropertyOverride(propertyPath *string, value interface{})
	// Sets the deletion policy of the resource based on the removal policy specified.
	//
	// The Removal Policy controls what happens to this resource when it stops
	// being managed by CloudFormation, either because you've removed it from the
	// CDK application or because you've made a change that requires the resource
	// to be replaced.
	//
	// The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS
	// account for data recovery and cleanup later (`RemovalPolicy.RETAIN`).
	// Experimental.
	ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions)
	// Returns a token for an runtime attribute of this resource.
	//
	// Ideally, use generated attribute accessors (e.g. `resource.arn`), but this can be used for future compatibility
	// in case there is no generated attribute.
	// Experimental.
	GetAtt(attributeName *string) awscdk.Reference
	// Retrieve a value value from the CloudFormation Resource Metadata.
	// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html
	//
	// Note that this is a different set of metadata from CDK node metadata; this
	// metadata ends up in the stack template under the resource, whereas CDK
	// node metadata ends up in the Cloud Assembly.
	//
	// Experimental.
	GetMetadata(key *string) interface{}
	// Examines the CloudFormation resource and discloses attributes.
	Inspect(inspector awscdk.TreeInspector)
	// Perform final modifications before synthesis.
	//
	// This method can be implemented by derived constructs in order to perform
	// final changes before synthesis. prepare() will be called after child
	// constructs have been prepared.
	//
	// This is an advanced framework feature. Only use this if you
	// understand the implications.
	// Experimental.
	OnPrepare()
	// Allows this construct to emit artifacts into the cloud assembly during synthesis.
	//
	// This method is usually implemented by framework-level constructs such as `Stack` and `Asset`
	// as they participate in synthesizing the cloud assembly.
	// Experimental.
	OnSynthesize(session constructs.ISynthesisSession)
	// Validate the current construct.
	//
	// This method can be implemented by derived constructs in order to perform
	// validation logic. It is called on all constructs before synthesis.
	//
	// Returns: An array of validation error messages, or an empty array if the construct is valid.
	// Experimental.
	OnValidate() *[]*string
	// Overrides the auto-generated logical ID with a specific ID.
	// Experimental.
	OverrideLogicalId(newLogicalId *string)
	// Perform final modifications before synthesis.
	//
	// This method can be implemented by derived constructs in order to perform
	// final changes before synthesis. prepare() will be called after child
	// constructs have been prepared.
	//
	// This is an advanced framework feature. Only use this if you
	// understand the implications.
	// Experimental.
	Prepare()
	RenderProperties(props *map[string]interface{}) *map[string]interface{}
	// Can be overridden by subclasses to determine if this resource will be rendered into the cloudformation template.
	//
	// Returns: `true` if the resource should be included or `false` is the resource
	// should be omitted.
	// Experimental.
	ShouldSynthesize() *bool
	// Allows this construct to emit artifacts into the cloud assembly during synthesis.
	//
	// This method is usually implemented by framework-level constructs such as `Stack` and `Asset`
	// as they participate in synthesizing the cloud assembly.
	// Experimental.
	Synthesize(session awscdk.ISynthesisSession)
	// Returns a string representation of this construct.
	//
	// Returns: a string representation of this resource.
	// Experimental.
	ToString() *string
	// Validate the current construct.
	//
	// This method can be implemented by derived constructs in order to perform
	// validation logic. It is called on all constructs before synthesis.
	//
	// Returns: An array of validation error messages, or an empty array if the construct is valid.
	// Experimental.
	Validate() *[]*string
	// Experimental.
	ValidateProperties(_properties interface{})
}

A CloudFormation `AWS::OpsWorks::Stack`.

Creates a new stack. For more information, see [Create a New Stack](https://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 about user permissions, see [Managing User Permissions](https://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html) .

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var customJson interface{}

cfnStack := awscdk.Aws_opsworks.NewCfnStack(this, jsii.String("MyCfnStack"), &cfnStackProps{
	defaultInstanceProfileArn: jsii.String("defaultInstanceProfileArn"),
	name: jsii.String("name"),
	serviceRoleArn: jsii.String("serviceRoleArn"),

	// the properties below are optional
	agentVersion: jsii.String("agentVersion"),
	attributes: map[string]*string{
		"attributesKey": jsii.String("attributes"),
	},
	chefConfiguration: &chefConfigurationProperty{
		berkshelfVersion: jsii.String("berkshelfVersion"),
		manageBerkshelf: jsii.Boolean(false),
	},
	cloneAppIds: []*string{
		jsii.String("cloneAppIds"),
	},
	clonePermissions: jsii.Boolean(false),
	configurationManager: &stackConfigurationManagerProperty{
		name: jsii.String("name"),
		version: jsii.String("version"),
	},
	customCookbooksSource: &sourceProperty{
		password: jsii.String("password"),
		revision: jsii.String("revision"),
		sshKey: jsii.String("sshKey"),
		type: jsii.String("type"),
		url: jsii.String("url"),
		username: jsii.String("username"),
	},
	customJson: customJson,
	defaultAvailabilityZone: jsii.String("defaultAvailabilityZone"),
	defaultOs: jsii.String("defaultOs"),
	defaultRootDeviceType: jsii.String("defaultRootDeviceType"),
	defaultSshKeyName: jsii.String("defaultSshKeyName"),
	defaultSubnetId: jsii.String("defaultSubnetId"),
	ecsClusterArn: jsii.String("ecsClusterArn"),
	elasticIps: []interface{}{
		&elasticIpProperty{
			ip: jsii.String("ip"),

			// the properties below are optional
			name: jsii.String("name"),
		},
	},
	hostnameTheme: jsii.String("hostnameTheme"),
	rdsDbInstances: []interface{}{
		&rdsDbInstanceProperty{
			dbPassword: jsii.String("dbPassword"),
			dbUser: jsii.String("dbUser"),
			rdsDbInstanceArn: jsii.String("rdsDbInstanceArn"),
		},
	},
	sourceStackId: jsii.String("sourceStackId"),
	tags: []cfnTag{
		&cfnTag{
			key: jsii.String("key"),
			value: jsii.String("value"),
		},
	},
	useCustomCookbooks: jsii.Boolean(false),
	useOpsworksSecurityGroups: jsii.Boolean(false),
	vpcId: jsii.String("vpcId"),
})

func NewCfnStack

func NewCfnStack(scope awscdk.Construct, id *string, props *CfnStackProps) CfnStack

Create a new `AWS::OpsWorks::Stack`.

type CfnStackProps

type CfnStackProps struct {
	// 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](https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html) .
	DefaultInstanceProfileArn *string `field:"required" json:"defaultInstanceProfileArn" yaml:"defaultInstanceProfileArn"`
	// The stack name.
	//
	// Stack names can be a maximum of 64 characters.
	Name *string `field:"required" json:"name" yaml:"name"`
	// The stack's IAM role, which allows AWS OpsWorks Stacks 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](https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html) .
	ServiceRoleArn *string `field:"required" json:"serviceRoleArn" yaml:"serviceRoleArn"`
	// The default AWS OpsWorks Stacks agent version. You have the following options:.
	//
	// - Auto-update - Set this parameter to `LATEST` . AWS OpsWorks Stacks 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 Stacks 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](https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeAgentVersions) . AgentVersion cannot be set to Chef 12.2.
	//
	// > You can also specify an agent version when you create or update an instance, which overrides the stack's default setting.
	AgentVersion *string `field:"optional" json:"agentVersion" yaml:"agentVersion"`
	// One or more user-defined key-value pairs to be added to the stack attributes.
	Attributes interface{} `field:"optional" json:"attributes" yaml:"attributes"`
	// 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](https://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-creating.html) .
	ChefConfiguration interface{} `field:"optional" json:"chefConfiguration" yaml:"chefConfiguration"`
	// If you're cloning an AWS OpsWorks stack, a list of AWS OpsWorks application stack IDs from the source stack to include in the cloned stack.
	CloneAppIds *[]*string `field:"optional" json:"cloneAppIds" yaml:"cloneAppIds"`
	// If you're cloning an AWS OpsWorks stack, indicates whether to clone the source stack's permissions.
	ClonePermissions interface{} `field:"optional" json:"clonePermissions" yaml:"clonePermissions"`
	// 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 12.
	ConfigurationManager interface{} `field:"optional" json:"configurationManager" yaml:"configurationManager"`
	// Contains the information required to retrieve an app or cookbook from a repository.
	//
	// For more information, see [Adding Apps](https://docs.aws.amazon.com/opsworks/latest/userguide/workingapps-creating.html) or [Cookbooks and Recipes](https://docs.aws.amazon.com/opsworks/latest/userguide/workingcookbook.html) .
	CustomCookbooksSource interface{} `field:"optional" json:"customCookbooksSource" yaml:"customCookbooksSource"`
	// 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 about custom JSON, see [Use Custom JSON to Modify the Stack Configuration Attributes](https://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-json.html) .
	CustomJson interface{} `field:"optional" json:"customJson" yaml:"customJson"`
	// The stack's default Availability Zone, which must be in the specified region.
	//
	// For more information, see [Regions and Endpoints](https://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 `field:"optional" json:"defaultAvailabilityZone" yaml:"defaultAvailabilityZone"`
	// 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 2` , `Amazon Linux 2018.03` , `Amazon Linux 2017.09` , `Amazon Linux 2017.03` , `Amazon Linux 2016.09` , `Amazon Linux 2016.03` , `Amazon Linux 2015.09` , or `Amazon Linux 2015.03` .
	// - A supported Ubuntu operating system, such as `Ubuntu 18.04 LTS` , `Ubuntu 16.04 LTS` , `Ubuntu 14.04 LTS` , or `Ubuntu 12.04 LTS` .
	// - `CentOS Linux 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](https://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-custom-ami.html) .
	//
	// The default option is the current Amazon Linux version. Not all operating systems are supported with all versions of Chef. For more information about supported operating systems, see [AWS OpsWorks Stacks Operating Systems](https://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-os.html) .
	DefaultOs *string `field:"optional" json:"defaultOs" yaml:"defaultOs"`
	// 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](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ComponentsAMIs.html#storage-for-the-root-device) .
	DefaultRootDeviceType *string `field:"optional" json:"defaultRootDeviceType" yaml:"defaultRootDeviceType"`
	// 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](https://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-ssh.html) and [Managing SSH Access](https://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](https://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-add.html) .
	DefaultSshKeyName *string `field:"optional" json:"defaultSshKeyName" yaml:"defaultSshKeyName"`
	// The stack's default subnet ID.
	//
	// All instances are launched into this subnet unless you specify another subnet ID when you create the instance. This parameter is required if you specify a value for the `VpcId` parameter. If you also specify a value for `DefaultAvailabilityZone` , the subnet must be in that zone.
	DefaultSubnetId *string `field:"optional" json:"defaultSubnetId" yaml:"defaultSubnetId"`
	// The Amazon Resource Name (ARN) of the Amazon Elastic Container Service ( Amazon ECS ) cluster to register with the AWS OpsWorks stack.
	//
	// > If you specify a cluster that's registered with another AWS OpsWorks stack, AWS CloudFormation deregisters the existing association before registering the cluster.
	EcsClusterArn *string `field:"optional" json:"ecsClusterArn" yaml:"ecsClusterArn"`
	// A list of Elastic IP addresses to register with the AWS OpsWorks stack.
	//
	// > If you specify an IP address that's registered with another AWS OpsWorks stack, AWS CloudFormation deregisters the existing association before registering the IP address.
	ElasticIps interface{} `field:"optional" json:"elasticIps" yaml:"elasticIps"`
	// 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_and_Titans`
	// - `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 `field:"optional" json:"hostnameTheme" yaml:"hostnameTheme"`
	// The Amazon Relational Database Service ( Amazon RDS ) database instance to register with the AWS OpsWorks stack.
	//
	// > If you specify a database instance that's registered with another AWS OpsWorks stack, AWS CloudFormation deregisters the existing association before registering the database instance.
	RdsDbInstances interface{} `field:"optional" json:"rdsDbInstances" yaml:"rdsDbInstances"`
	// If you're cloning an AWS OpsWorks stack, the stack ID of the source AWS OpsWorks stack to clone.
	SourceStackId *string `field:"optional" json:"sourceStackId" yaml:"sourceStackId"`
	// A map that contains tag keys and tag values that are attached to a stack or layer.
	//
	// - The key cannot be empty.
	// - The key can be a maximum of 127 characters, and can contain only Unicode letters, numbers, or separators, or the following special characters: `+ - = . _ : /`
	// - The value can be a maximum 255 characters, and contain only Unicode letters, numbers, or separators, or the following special characters: `+ - = . _ : /`
	// - Leading and trailing white spaces are trimmed from both the key and value.
	// - A maximum of 40 tags is allowed for any resource.
	Tags *[]*awscdk.CfnTag `field:"optional" json:"tags" yaml:"tags"`
	// Whether the stack uses custom cookbooks.
	UseCustomCookbooks interface{} `field:"optional" json:"useCustomCookbooks" yaml:"useCustomCookbooks"`
	// Whether to associate the AWS OpsWorks Stacks built-in security groups with the stack's layers.
	//
	// AWS OpsWorks Stacks 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 Stacks 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 Stacks 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](https://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-creating.html) .
	UseOpsworksSecurityGroups interface{} `field:"optional" json:"useOpsworksSecurityGroups" yaml:"useOpsworksSecurityGroups"`
	// 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 Stacks infers the value of the other parameter. If you specify neither parameter, AWS OpsWorks Stacks 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 about how to use AWS OpsWorks Stacks with a VPC, see [Running a Stack in a VPC](https://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-vpc.html) . For more information about default VPC and EC2-Classic, see [Supported Platforms](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-supported-platforms.html) .
	VpcId *string `field:"optional" json:"vpcId" yaml:"vpcId"`
}

Properties for defining a `CfnStack`.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var customJson interface{}

cfnStackProps := &cfnStackProps{
	defaultInstanceProfileArn: jsii.String("defaultInstanceProfileArn"),
	name: jsii.String("name"),
	serviceRoleArn: jsii.String("serviceRoleArn"),

	// the properties below are optional
	agentVersion: jsii.String("agentVersion"),
	attributes: map[string]*string{
		"attributesKey": jsii.String("attributes"),
	},
	chefConfiguration: &chefConfigurationProperty{
		berkshelfVersion: jsii.String("berkshelfVersion"),
		manageBerkshelf: jsii.Boolean(false),
	},
	cloneAppIds: []*string{
		jsii.String("cloneAppIds"),
	},
	clonePermissions: jsii.Boolean(false),
	configurationManager: &stackConfigurationManagerProperty{
		name: jsii.String("name"),
		version: jsii.String("version"),
	},
	customCookbooksSource: &sourceProperty{
		password: jsii.String("password"),
		revision: jsii.String("revision"),
		sshKey: jsii.String("sshKey"),
		type: jsii.String("type"),
		url: jsii.String("url"),
		username: jsii.String("username"),
	},
	customJson: customJson,
	defaultAvailabilityZone: jsii.String("defaultAvailabilityZone"),
	defaultOs: jsii.String("defaultOs"),
	defaultRootDeviceType: jsii.String("defaultRootDeviceType"),
	defaultSshKeyName: jsii.String("defaultSshKeyName"),
	defaultSubnetId: jsii.String("defaultSubnetId"),
	ecsClusterArn: jsii.String("ecsClusterArn"),
	elasticIps: []interface{}{
		&elasticIpProperty{
			ip: jsii.String("ip"),

			// the properties below are optional
			name: jsii.String("name"),
		},
	},
	hostnameTheme: jsii.String("hostnameTheme"),
	rdsDbInstances: []interface{}{
		&rdsDbInstanceProperty{
			dbPassword: jsii.String("dbPassword"),
			dbUser: jsii.String("dbUser"),
			rdsDbInstanceArn: jsii.String("rdsDbInstanceArn"),
		},
	},
	sourceStackId: jsii.String("sourceStackId"),
	tags: []cfnTag{
		&cfnTag{
			key: jsii.String("key"),
			value: jsii.String("value"),
		},
	},
	useCustomCookbooks: jsii.Boolean(false),
	useOpsworksSecurityGroups: jsii.Boolean(false),
	vpcId: jsii.String("vpcId"),
}

type CfnStack_ChefConfigurationProperty

type CfnStack_ChefConfigurationProperty struct {
	// The Berkshelf version.
	BerkshelfVersion *string `field:"optional" json:"berkshelfVersion" yaml:"berkshelfVersion"`
	// Whether to enable Berkshelf.
	ManageBerkshelf interface{} `field:"optional" json:"manageBerkshelf" yaml:"manageBerkshelf"`
}

Describes the Chef configuration.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

chefConfigurationProperty := &chefConfigurationProperty{
	berkshelfVersion: jsii.String("berkshelfVersion"),
	manageBerkshelf: jsii.Boolean(false),
}

type CfnStack_ElasticIpProperty

type CfnStack_ElasticIpProperty struct {
	// The IP address.
	Ip *string `field:"required" json:"ip" yaml:"ip"`
	// The name, which can be a maximum of 32 characters.
	Name *string `field:"optional" json:"name" yaml:"name"`
}

Describes an Elastic IP address.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

elasticIpProperty := &elasticIpProperty{
	ip: jsii.String("ip"),

	// the properties below are optional
	name: jsii.String("name"),
}

type CfnStack_RdsDbInstanceProperty

type CfnStack_RdsDbInstanceProperty struct {
	// AWS OpsWorks Stacks returns `*****FILTERED*****` instead of the actual value.
	DbPassword *string `field:"required" json:"dbPassword" yaml:"dbPassword"`
	// The master user name.
	DbUser *string `field:"required" json:"dbUser" yaml:"dbUser"`
	// The instance's ARN.
	RdsDbInstanceArn *string `field:"required" json:"rdsDbInstanceArn" yaml:"rdsDbInstanceArn"`
}

Describes an Amazon RDS instance.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

rdsDbInstanceProperty := &rdsDbInstanceProperty{
	dbPassword: jsii.String("dbPassword"),
	dbUser: jsii.String("dbUser"),
	rdsDbInstanceArn: jsii.String("rdsDbInstanceArn"),
}

type CfnStack_SourceProperty

type CfnStack_SourceProperty 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 [](https://docs.aws.amazon.com/general/latest/gr/aws-access-keys-best-practices.html) .
	//
	// In responses, AWS OpsWorks Stacks returns `*****FILTERED*****` instead of the actual value.
	Password *string `field:"optional" json:"password" yaml:"password"`
	// The application's version.
	//
	// AWS OpsWorks Stacks 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 `field:"optional" json:"revision" yaml:"revision"`
	// The repository's SSH key.
	//
	// For more information, see [Using Git Repository SSH Keys](https://docs.aws.amazon.com/opsworks/latest/userguide/workingapps-deploykeys.html) in the *AWS OpsWorks User Guide* . To pass in an SSH key as a parameter, see the following example:
	//
	// `"Parameters" : { "GitSSHKey" : { "Description" : "Change SSH key newlines to commas.", "Type" : "CommaDelimitedList", "NoEcho" : "true" }, ... "CustomCookbooksSource": { "Revision" : { "Ref": "GitRevision"}, "SshKey" : { "Fn::Join" : [ "\n", { "Ref": "GitSSHKey"} ] }, "Type": "git", "Url": { "Ref": "GitURL"} } ...`
	SshKey *string `field:"optional" json:"sshKey" yaml:"sshKey"`
	// The repository type.
	Type *string `field:"optional" json:"type" yaml:"type"`
	// The source URL.
	//
	// The following is an example of an Amazon S3 source URL: `https://s3.amazonaws.com/opsworks-demo-bucket/opsworks_cookbook_demo.tar.gz` .
	Url *string `field:"optional" json:"url" yaml:"url"`
	// 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 `field:"optional" json:"username" yaml:"username"`
}

Contains the information required to retrieve an app or cookbook from a repository.

For more information, see [Creating Apps](https://docs.aws.amazon.com/opsworks/latest/userguide/workingapps-creating.html) or [Custom Recipes and Cookbooks](https://docs.aws.amazon.com/opsworks/latest/userguide/workingcookbook.html) .

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

sourceProperty := &sourceProperty{
	password: jsii.String("password"),
	revision: jsii.String("revision"),
	sshKey: jsii.String("sshKey"),
	type: jsii.String("type"),
	url: jsii.String("url"),
	username: jsii.String("username"),
}

type CfnStack_StackConfigurationManagerProperty

type CfnStack_StackConfigurationManagerProperty struct {
	// The name.
	//
	// This parameter must be set to `Chef` .
	Name *string `field:"optional" json:"name" yaml:"name"`
	// 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 12.
	Version *string `field:"optional" json:"version" yaml:"version"`
}

Describes the configuration manager.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

stackConfigurationManagerProperty := &stackConfigurationManagerProperty{
	name: jsii.String("name"),
	version: jsii.String("version"),
}

type CfnUserProfile

type CfnUserProfile interface {
	awscdk.CfnResource
	awscdk.IInspectable
	// Whether users can specify their own SSH public key through the My Settings page.
	//
	// For more information, see [Managing User Permissions](https://docs.aws.amazon.com/opsworks/latest/userguide/security-settingsshkey.html) .
	AllowSelfManagement() interface{}
	SetAllowSelfManagement(val interface{})
	// The user's SSH user name, as a string.
	AttrSshUsername() *string
	// Options for this resource, such as condition, update policy etc.
	// Experimental.
	CfnOptions() awscdk.ICfnResourceOptions
	CfnProperties() *map[string]interface{}
	// AWS resource type.
	// Experimental.
	CfnResourceType() *string
	// Returns: the stack trace of the point where this Resource was created from, sourced
	// from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most
	// node +internal+ entries filtered.
	// Experimental.
	CreationStack() *[]*string
	// The user's IAM ARN.
	IamUserArn() *string
	SetIamUserArn(val *string)
	// The logical ID for this CloudFormation stack element.
	//
	// The logical ID of the element
	// is calculated from the path of the resource node in the construct tree.
	//
	// To override this value, use `overrideLogicalId(newLogicalId)`.
	//
	// Returns: the logical ID as a stringified token. This value will only get
	// resolved during synthesis.
	// Experimental.
	LogicalId() *string
	// The construct tree node associated with this construct.
	// Experimental.
	Node() awscdk.ConstructNode
	// Return a string that will be resolved to a CloudFormation `{ Ref }` for this element.
	//
	// If, by any chance, the intrinsic reference of a resource is not a string, you could
	// coerce it to an IResolvable through `Lazy.any({ produce: resource.ref })`.
	// Experimental.
	Ref() *string
	// The user's SSH public key.
	SshPublicKey() *string
	SetSshPublicKey(val *string)
	// The user's SSH user name.
	SshUsername() *string
	SetSshUsername(val *string)
	// The stack in which this element is defined.
	//
	// CfnElements must be defined within a stack scope (directly or indirectly).
	// Experimental.
	Stack() awscdk.Stack
	// Return properties modified after initiation.
	//
	// Resources that expose mutable properties should override this function to
	// collect and return the properties object for this resource.
	// Experimental.
	UpdatedProperites() *map[string]interface{}
	// Syntactic sugar for `addOverride(path, undefined)`.
	// Experimental.
	AddDeletionOverride(path *string)
	// Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.
	//
	// This can be used for resources across stacks (or nested stack) boundaries
	// and the dependency will automatically be transferred to the relevant scope.
	// Experimental.
	AddDependsOn(target awscdk.CfnResource)
	// Add a value to the CloudFormation Resource Metadata.
	// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html
	//
	// Note that this is a different set of metadata from CDK node metadata; this
	// metadata ends up in the stack template under the resource, whereas CDK
	// node metadata ends up in the Cloud Assembly.
	//
	// Experimental.
	AddMetadata(key *string, value interface{})
	// Adds an override to the synthesized CloudFormation resource.
	//
	// To add a
	// property override, either use `addPropertyOverride` or prefix `path` with
	// "Properties." (i.e. `Properties.TopicName`).
	//
	// If the override is nested, separate each nested level using a dot (.) in the path parameter.
	// If there is an array as part of the nesting, specify the index in the path.
	//
	// To include a literal `.` in the property name, prefix with a `\`. In most
	// programming languages you will need to write this as `"\\."` because the
	// `\` itself will need to be escaped.
	//
	// For example,
	// “`typescript
	// cfnResource.addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']);
	// cfnResource.addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE');
	// “`
	// would add the overrides
	// “`json
	// "Properties": {
	//    "GlobalSecondaryIndexes": [
	//      {
	//        "Projection": {
	//          "NonKeyAttributes": [ "myattribute" ]
	//          ...
	//        }
	//        ...
	//      },
	//      {
	//        "ProjectionType": "INCLUDE"
	//        ...
	//      },
	//    ]
	//    ...
	// }
	// “`
	//
	// The `value` argument to `addOverride` will not be processed or translated
	// in any way. Pass raw JSON values in here with the correct capitalization
	// for CloudFormation. If you pass CDK classes or structs, they will be
	// rendered with lowercased key names, and CloudFormation will reject the
	// template.
	// Experimental.
	AddOverride(path *string, value interface{})
	// Adds an override that deletes the value of a property from the resource definition.
	// Experimental.
	AddPropertyDeletionOverride(propertyPath *string)
	// Adds an override to a resource property.
	//
	// Syntactic sugar for `addOverride("Properties.<...>", value)`.
	// Experimental.
	AddPropertyOverride(propertyPath *string, value interface{})
	// Sets the deletion policy of the resource based on the removal policy specified.
	//
	// The Removal Policy controls what happens to this resource when it stops
	// being managed by CloudFormation, either because you've removed it from the
	// CDK application or because you've made a change that requires the resource
	// to be replaced.
	//
	// The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS
	// account for data recovery and cleanup later (`RemovalPolicy.RETAIN`).
	// Experimental.
	ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions)
	// Returns a token for an runtime attribute of this resource.
	//
	// Ideally, use generated attribute accessors (e.g. `resource.arn`), but this can be used for future compatibility
	// in case there is no generated attribute.
	// Experimental.
	GetAtt(attributeName *string) awscdk.Reference
	// Retrieve a value value from the CloudFormation Resource Metadata.
	// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html
	//
	// Note that this is a different set of metadata from CDK node metadata; this
	// metadata ends up in the stack template under the resource, whereas CDK
	// node metadata ends up in the Cloud Assembly.
	//
	// Experimental.
	GetMetadata(key *string) interface{}
	// Examines the CloudFormation resource and discloses attributes.
	Inspect(inspector awscdk.TreeInspector)
	// Perform final modifications before synthesis.
	//
	// This method can be implemented by derived constructs in order to perform
	// final changes before synthesis. prepare() will be called after child
	// constructs have been prepared.
	//
	// This is an advanced framework feature. Only use this if you
	// understand the implications.
	// Experimental.
	OnPrepare()
	// Allows this construct to emit artifacts into the cloud assembly during synthesis.
	//
	// This method is usually implemented by framework-level constructs such as `Stack` and `Asset`
	// as they participate in synthesizing the cloud assembly.
	// Experimental.
	OnSynthesize(session constructs.ISynthesisSession)
	// Validate the current construct.
	//
	// This method can be implemented by derived constructs in order to perform
	// validation logic. It is called on all constructs before synthesis.
	//
	// Returns: An array of validation error messages, or an empty array if the construct is valid.
	// Experimental.
	OnValidate() *[]*string
	// Overrides the auto-generated logical ID with a specific ID.
	// Experimental.
	OverrideLogicalId(newLogicalId *string)
	// Perform final modifications before synthesis.
	//
	// This method can be implemented by derived constructs in order to perform
	// final changes before synthesis. prepare() will be called after child
	// constructs have been prepared.
	//
	// This is an advanced framework feature. Only use this if you
	// understand the implications.
	// Experimental.
	Prepare()
	RenderProperties(props *map[string]interface{}) *map[string]interface{}
	// Can be overridden by subclasses to determine if this resource will be rendered into the cloudformation template.
	//
	// Returns: `true` if the resource should be included or `false` is the resource
	// should be omitted.
	// Experimental.
	ShouldSynthesize() *bool
	// Allows this construct to emit artifacts into the cloud assembly during synthesis.
	//
	// This method is usually implemented by framework-level constructs such as `Stack` and `Asset`
	// as they participate in synthesizing the cloud assembly.
	// Experimental.
	Synthesize(session awscdk.ISynthesisSession)
	// Returns a string representation of this construct.
	//
	// Returns: a string representation of this resource.
	// Experimental.
	ToString() *string
	// Validate the current construct.
	//
	// This method can be implemented by derived constructs in order to perform
	// validation logic. It is called on all constructs before synthesis.
	//
	// Returns: An array of validation error messages, or an empty array if the construct is valid.
	// Experimental.
	Validate() *[]*string
	// Experimental.
	ValidateProperties(_properties interface{})
}

A CloudFormation `AWS::OpsWorks::UserProfile`.

Describes a user's SSH information.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnUserProfile := awscdk.Aws_opsworks.NewCfnUserProfile(this, jsii.String("MyCfnUserProfile"), &cfnUserProfileProps{
	iamUserArn: jsii.String("iamUserArn"),

	// the properties below are optional
	allowSelfManagement: jsii.Boolean(false),
	sshPublicKey: jsii.String("sshPublicKey"),
	sshUsername: jsii.String("sshUsername"),
})

func NewCfnUserProfile

func NewCfnUserProfile(scope awscdk.Construct, id *string, props *CfnUserProfileProps) CfnUserProfile

Create a new `AWS::OpsWorks::UserProfile`.

type CfnUserProfileProps

type CfnUserProfileProps struct {
	// The user's IAM ARN.
	IamUserArn *string `field:"required" json:"iamUserArn" yaml:"iamUserArn"`
	// Whether users can specify their own SSH public key through the My Settings page.
	//
	// For more information, see [Managing User Permissions](https://docs.aws.amazon.com/opsworks/latest/userguide/security-settingsshkey.html) .
	AllowSelfManagement interface{} `field:"optional" json:"allowSelfManagement" yaml:"allowSelfManagement"`
	// The user's SSH public key.
	SshPublicKey *string `field:"optional" json:"sshPublicKey" yaml:"sshPublicKey"`
	// The user's SSH user name.
	SshUsername *string `field:"optional" json:"sshUsername" yaml:"sshUsername"`
}

Properties for defining a `CfnUserProfile`.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnUserProfileProps := &cfnUserProfileProps{
	iamUserArn: jsii.String("iamUserArn"),

	// the properties below are optional
	allowSelfManagement: jsii.Boolean(false),
	sshPublicKey: jsii.String("sshPublicKey"),
	sshUsername: jsii.String("sshUsername"),
}

type CfnVolume

type CfnVolume interface {
	awscdk.CfnResource
	awscdk.IInspectable
	// Options for this resource, such as condition, update policy etc.
	// Experimental.
	CfnOptions() awscdk.ICfnResourceOptions
	CfnProperties() *map[string]interface{}
	// AWS resource type.
	// Experimental.
	CfnResourceType() *string
	// Returns: the stack trace of the point where this Resource was created from, sourced
	// from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most
	// node +internal+ entries filtered.
	// Experimental.
	CreationStack() *[]*string
	// The Amazon EC2 volume ID.
	Ec2VolumeId() *string
	SetEc2VolumeId(val *string)
	// The logical ID for this CloudFormation stack element.
	//
	// The logical ID of the element
	// is calculated from the path of the resource node in the construct tree.
	//
	// To override this value, use `overrideLogicalId(newLogicalId)`.
	//
	// Returns: the logical ID as a stringified token. This value will only get
	// resolved during synthesis.
	// Experimental.
	LogicalId() *string
	// The volume mount point.
	//
	// For example, "/mnt/disk1".
	MountPoint() *string
	SetMountPoint(val *string)
	// The volume name.
	//
	// Volume names are a maximum of 128 characters.
	Name() *string
	SetName(val *string)
	// The construct tree node associated with this construct.
	// Experimental.
	Node() awscdk.ConstructNode
	// Return a string that will be resolved to a CloudFormation `{ Ref }` for this element.
	//
	// If, by any chance, the intrinsic reference of a resource is not a string, you could
	// coerce it to an IResolvable through `Lazy.any({ produce: resource.ref })`.
	// Experimental.
	Ref() *string
	// The stack in which this element is defined.
	//
	// CfnElements must be defined within a stack scope (directly or indirectly).
	// Experimental.
	Stack() awscdk.Stack
	// The stack ID.
	StackId() *string
	SetStackId(val *string)
	// Return properties modified after initiation.
	//
	// Resources that expose mutable properties should override this function to
	// collect and return the properties object for this resource.
	// Experimental.
	UpdatedProperites() *map[string]interface{}
	// Syntactic sugar for `addOverride(path, undefined)`.
	// Experimental.
	AddDeletionOverride(path *string)
	// Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.
	//
	// This can be used for resources across stacks (or nested stack) boundaries
	// and the dependency will automatically be transferred to the relevant scope.
	// Experimental.
	AddDependsOn(target awscdk.CfnResource)
	// Add a value to the CloudFormation Resource Metadata.
	// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html
	//
	// Note that this is a different set of metadata from CDK node metadata; this
	// metadata ends up in the stack template under the resource, whereas CDK
	// node metadata ends up in the Cloud Assembly.
	//
	// Experimental.
	AddMetadata(key *string, value interface{})
	// Adds an override to the synthesized CloudFormation resource.
	//
	// To add a
	// property override, either use `addPropertyOverride` or prefix `path` with
	// "Properties." (i.e. `Properties.TopicName`).
	//
	// If the override is nested, separate each nested level using a dot (.) in the path parameter.
	// If there is an array as part of the nesting, specify the index in the path.
	//
	// To include a literal `.` in the property name, prefix with a `\`. In most
	// programming languages you will need to write this as `"\\."` because the
	// `\` itself will need to be escaped.
	//
	// For example,
	// “`typescript
	// cfnResource.addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']);
	// cfnResource.addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE');
	// “`
	// would add the overrides
	// “`json
	// "Properties": {
	//    "GlobalSecondaryIndexes": [
	//      {
	//        "Projection": {
	//          "NonKeyAttributes": [ "myattribute" ]
	//          ...
	//        }
	//        ...
	//      },
	//      {
	//        "ProjectionType": "INCLUDE"
	//        ...
	//      },
	//    ]
	//    ...
	// }
	// “`
	//
	// The `value` argument to `addOverride` will not be processed or translated
	// in any way. Pass raw JSON values in here with the correct capitalization
	// for CloudFormation. If you pass CDK classes or structs, they will be
	// rendered with lowercased key names, and CloudFormation will reject the
	// template.
	// Experimental.
	AddOverride(path *string, value interface{})
	// Adds an override that deletes the value of a property from the resource definition.
	// Experimental.
	AddPropertyDeletionOverride(propertyPath *string)
	// Adds an override to a resource property.
	//
	// Syntactic sugar for `addOverride("Properties.<...>", value)`.
	// Experimental.
	AddPropertyOverride(propertyPath *string, value interface{})
	// Sets the deletion policy of the resource based on the removal policy specified.
	//
	// The Removal Policy controls what happens to this resource when it stops
	// being managed by CloudFormation, either because you've removed it from the
	// CDK application or because you've made a change that requires the resource
	// to be replaced.
	//
	// The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS
	// account for data recovery and cleanup later (`RemovalPolicy.RETAIN`).
	// Experimental.
	ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions)
	// Returns a token for an runtime attribute of this resource.
	//
	// Ideally, use generated attribute accessors (e.g. `resource.arn`), but this can be used for future compatibility
	// in case there is no generated attribute.
	// Experimental.
	GetAtt(attributeName *string) awscdk.Reference
	// Retrieve a value value from the CloudFormation Resource Metadata.
	// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html
	//
	// Note that this is a different set of metadata from CDK node metadata; this
	// metadata ends up in the stack template under the resource, whereas CDK
	// node metadata ends up in the Cloud Assembly.
	//
	// Experimental.
	GetMetadata(key *string) interface{}
	// Examines the CloudFormation resource and discloses attributes.
	Inspect(inspector awscdk.TreeInspector)
	// Perform final modifications before synthesis.
	//
	// This method can be implemented by derived constructs in order to perform
	// final changes before synthesis. prepare() will be called after child
	// constructs have been prepared.
	//
	// This is an advanced framework feature. Only use this if you
	// understand the implications.
	// Experimental.
	OnPrepare()
	// Allows this construct to emit artifacts into the cloud assembly during synthesis.
	//
	// This method is usually implemented by framework-level constructs such as `Stack` and `Asset`
	// as they participate in synthesizing the cloud assembly.
	// Experimental.
	OnSynthesize(session constructs.ISynthesisSession)
	// Validate the current construct.
	//
	// This method can be implemented by derived constructs in order to perform
	// validation logic. It is called on all constructs before synthesis.
	//
	// Returns: An array of validation error messages, or an empty array if the construct is valid.
	// Experimental.
	OnValidate() *[]*string
	// Overrides the auto-generated logical ID with a specific ID.
	// Experimental.
	OverrideLogicalId(newLogicalId *string)
	// Perform final modifications before synthesis.
	//
	// This method can be implemented by derived constructs in order to perform
	// final changes before synthesis. prepare() will be called after child
	// constructs have been prepared.
	//
	// This is an advanced framework feature. Only use this if you
	// understand the implications.
	// Experimental.
	Prepare()
	RenderProperties(props *map[string]interface{}) *map[string]interface{}
	// Can be overridden by subclasses to determine if this resource will be rendered into the cloudformation template.
	//
	// Returns: `true` if the resource should be included or `false` is the resource
	// should be omitted.
	// Experimental.
	ShouldSynthesize() *bool
	// Allows this construct to emit artifacts into the cloud assembly during synthesis.
	//
	// This method is usually implemented by framework-level constructs such as `Stack` and `Asset`
	// as they participate in synthesizing the cloud assembly.
	// Experimental.
	Synthesize(session awscdk.ISynthesisSession)
	// Returns a string representation of this construct.
	//
	// Returns: a string representation of this resource.
	// Experimental.
	ToString() *string
	// Validate the current construct.
	//
	// This method can be implemented by derived constructs in order to perform
	// validation logic. It is called on all constructs before synthesis.
	//
	// Returns: An array of validation error messages, or an empty array if the construct is valid.
	// Experimental.
	Validate() *[]*string
	// Experimental.
	ValidateProperties(_properties interface{})
}

A CloudFormation `AWS::OpsWorks::Volume`.

Describes an instance's Amazon EBS volume.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnVolume := awscdk.Aws_opsworks.NewCfnVolume(this, jsii.String("MyCfnVolume"), &cfnVolumeProps{
	ec2VolumeId: jsii.String("ec2VolumeId"),
	stackId: jsii.String("stackId"),

	// the properties below are optional
	mountPoint: jsii.String("mountPoint"),
	name: jsii.String("name"),
})

func NewCfnVolume

func NewCfnVolume(scope awscdk.Construct, id *string, props *CfnVolumeProps) CfnVolume

Create a new `AWS::OpsWorks::Volume`.

type CfnVolumeProps

type CfnVolumeProps struct {
	// The Amazon EC2 volume ID.
	Ec2VolumeId *string `field:"required" json:"ec2VolumeId" yaml:"ec2VolumeId"`
	// The stack ID.
	StackId *string `field:"required" json:"stackId" yaml:"stackId"`
	// The volume mount point.
	//
	// For example, "/mnt/disk1".
	MountPoint *string `field:"optional" json:"mountPoint" yaml:"mountPoint"`
	// The volume name.
	//
	// Volume names are a maximum of 128 characters.
	Name *string `field:"optional" json:"name" yaml:"name"`
}

Properties for defining a `CfnVolume`.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnVolumeProps := &cfnVolumeProps{
	ec2VolumeId: jsii.String("ec2VolumeId"),
	stackId: jsii.String("stackId"),

	// the properties below are optional
	mountPoint: jsii.String("mountPoint"),
	name: jsii.String("name"),
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL