AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Describes a stack.

Inheritance Hierarchy

System.Object
  Amazon.OpsWorks.Model.Stack

Namespace: Amazon.OpsWorks.Model
Assembly: AWSSDK.OpsWorks.dll
Version: 3.x.y.z

Syntax

C#
public class Stack

The Stack type exposes the following members

Constructors

NameDescription
Public Method Stack()

Properties

NameTypeDescription
Public Property AgentVersion System.String

Gets and sets the property AgentVersion.

The agent version. This parameter is set to LATEST for auto-update. or a version number for a fixed agent version.

Public Property Arn System.String

Gets and sets the property Arn.

The stack's ARN.

Public Property Attributes System.Collections.Generic.Dictionary<System.String, System.String>

Gets and sets the property Attributes.

The stack's attributes.

Public Property ChefConfiguration Amazon.OpsWorks.Model.ChefConfiguration

Gets and sets the property ChefConfiguration.

A ChefConfiguration object that specifies whether to enable Berkshelf and the Berkshelf version. For more information, see Create a New Stack.

Public Property ConfigurationManager Amazon.OpsWorks.Model.StackConfigurationManager

Gets and sets the property ConfigurationManager.

The configuration manager.

Public Property CreatedAt System.String

Gets and sets the property CreatedAt.

The date when the stack was created.

Public Property CustomCookbooksSource Amazon.OpsWorks.Model.Source

Gets and sets the property CustomCookbooksSource.

Public Property CustomJson System.String

Gets and sets the property CustomJson.

A JSON object that contains user-defined attributes to be added to the stack configuration and deployment attributes. You can use custom JSON to override the corresponding default stack configuration attribute values or to pass data to recipes. The string should be in the following format:

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

For more information on custom JSON, see Use Custom JSON to Modify the Stack Configuration Attributes.

Public Property DefaultAvailabilityZone System.String

Gets and sets the property DefaultAvailabilityZone.

The stack's default Availability Zone. For more information, see Regions and Endpoints.

Public Property DefaultInstanceProfileArn System.String

Gets and sets the property DefaultInstanceProfileArn.

The ARN of an IAM profile that is the default profile for all of the stack's EC2 instances. For more information about IAM ARNs, see Using Identifiers.

Public Property DefaultOs System.String

Gets and sets the property DefaultOs.

The stack's default operating system.

Public Property DefaultRootDeviceType Amazon.OpsWorks.RootDeviceType

Gets and sets the property DefaultRootDeviceType.

The default root device type. This value is used by default for all instances in the stack, but you can override it when you create an instance. For more information, see Storage for the Root Device.

Public Property DefaultSshKeyName System.String

Gets and sets the property DefaultSshKeyName.

A default Amazon EC2 key pair for the stack's instances. You can override this value when you create or update an instance.

Public Property DefaultSubnetId System.String

Gets and sets the property DefaultSubnetId.

The default subnet ID; applicable only if the stack is running in a VPC.

Public Property HostnameTheme System.String

Gets and sets the property HostnameTheme.

The stack host name theme, with spaces replaced by underscores.

Public Property Name System.String

Gets and sets the property Name.

The stack name.

Public Property Region System.String

Gets and sets the property Region.

The stack AWS region, such as "ap-northeast-2". For more information about AWS regions, see Regions and Endpoints.

Public Property ServiceRoleArn System.String

Gets and sets the property ServiceRoleArn.

The stack AWS Identity and Access Management (IAM) role.

Public Property StackId System.String

Gets and sets the property StackId.

The stack ID.

Public Property UseCustomCookbooks System.Boolean

Gets and sets the property UseCustomCookbooks.

Whether the stack uses custom cookbooks.

Public Property UseOpsworksSecurityGroups System.Boolean

Gets and sets the property UseOpsworksSecurityGroups.

Whether the stack automatically associates the AWS OpsWorks Stacks built-in security groups with the stack's layers.

Public Property VpcId System.String

Gets and sets the property VpcId.

The VPC ID; applicable only if the stack is running in a VPC.

Version Information

.NET Standard:
Supported in: 1.3

.NET Framework:
Supported in: 4.5, 4.0, 3.5

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms