@Generated(value="software.amazon.awssdk:codegen") public class Stack extends Object implements StructuredPojo, ToCopyableBuilder<Stack.Builder,Stack>
Describes a stack.
Modifier and Type | Class and Description |
---|---|
static interface |
Stack.Builder |
Modifier and Type | Method and Description |
---|---|
String |
agentVersion()
The agent version.
|
String |
arn()
The stack's ARN.
|
Map<StackAttributesKeys,String> |
attributes()
The stack's attributes.
|
Map<String,String> |
attributesStrings()
The stack's attributes.
|
static Stack.Builder |
builder() |
ChefConfiguration |
chefConfiguration()
A
ChefConfiguration object that specifies whether to enable Berkshelf and the Berkshelf version. |
StackConfigurationManager |
configurationManager()
The configuration manager.
|
String |
createdAt()
The date when the stack was created.
|
Source |
customCookbooksSource()
Returns the value of the CustomCookbooksSource property for this object.
|
String |
customJson()
A JSON object that contains user-defined attributes to be added to the stack configuration and deployment
attributes.
|
String |
defaultAvailabilityZone()
The stack's default Availability Zone.
|
String |
defaultInstanceProfileArn()
The ARN of an IAM profile that is the default profile for all of the stack's EC2 instances.
|
String |
defaultOs()
The stack's default operating system.
|
RootDeviceType |
defaultRootDeviceType()
The default root device type.
|
String |
defaultRootDeviceTypeString()
The default root device type.
|
String |
defaultSshKeyName()
A default Amazon EC2 key pair for the stack's instances.
|
String |
defaultSubnetId()
The default subnet ID; applicable only if the stack is running in a VPC.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
hostnameTheme()
The stack host name theme, with spaces replaced by underscores.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
String |
name()
The stack name.
|
String |
region()
The stack AWS region, such as "ap-northeast-2".
|
static Class<? extends Stack.Builder> |
serializableBuilderClass() |
String |
serviceRoleArn()
The stack AWS Identity and Access Management (IAM) role.
|
String |
stackId()
The stack ID.
|
Stack.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
Boolean |
useCustomCookbooks()
Whether the stack uses custom cookbooks.
|
Boolean |
useOpsworksSecurityGroups()
Whether the stack automatically associates the AWS OpsWorks Stacks built-in security groups with the stack's
layers.
|
String |
vpcId()
The VPC ID; applicable only if the stack is running in a VPC.
|
copy
public String stackId()
The stack ID.
public String name()
The stack name.
public String arn()
The stack's ARN.
public String region()
The stack AWS region, such as "ap-northeast-2". For more information about AWS regions, see Regions and Endpoints.
public String vpcId()
The VPC ID; applicable only if the stack is running in a VPC.
public Map<StackAttributesKeys,String> attributes()
The stack's attributes.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public Map<String,String> attributesStrings()
The stack's attributes.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public String serviceRoleArn()
The stack AWS Identity and Access Management (IAM) role.
public String 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 String defaultOs()
The stack's default operating system.
public String hostnameTheme()
The stack host name theme, with spaces replaced by underscores.
public String defaultAvailabilityZone()
The stack's default Availability Zone. For more information, see Regions and Endpoints.
public String defaultSubnetId()
The default subnet ID; applicable only if the stack is running in a VPC.
public String 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.
"{\"key1\": \"value1\", \"key2\": \"value2\",...}"
For more information on custom JSON, see Use Custom JSON to Modify the Stack Configuration Attributes.
public StackConfigurationManager configurationManager()
The configuration manager.
public ChefConfiguration chefConfiguration()
A ChefConfiguration
object that specifies whether to enable Berkshelf and the Berkshelf version. For
more information, see Create a New Stack.
ChefConfiguration
object that specifies whether to enable Berkshelf and the Berkshelf
version. For more information, see Create a New
Stack.public Boolean useCustomCookbooks()
Whether the stack uses custom cookbooks.
public Boolean useOpsworksSecurityGroups()
Whether the stack automatically associates the AWS OpsWorks Stacks built-in security groups with the stack's layers.
public Source customCookbooksSource()
public String 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 String createdAt()
The date when the stack was created.
public RootDeviceType 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.
If the service returns an enum value that is not available in the current SDK version,
defaultRootDeviceType
will return RootDeviceType.UNKNOWN_TO_SDK_VERSION
. The raw value returned
by the service is available from defaultRootDeviceTypeString()
.
RootDeviceType
public String defaultRootDeviceTypeString()
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.
If the service returns an enum value that is not available in the current SDK version,
defaultRootDeviceType
will return RootDeviceType.UNKNOWN_TO_SDK_VERSION
. The raw value returned
by the service is available from defaultRootDeviceTypeString()
.
RootDeviceType
public String agentVersion()
The agent version. This parameter is set to LATEST
for auto-update. or a version number for a fixed
agent version.
LATEST
for auto-update. or a version number for
a fixed agent version.public Stack.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Stack.Builder,Stack>
public static Stack.Builder builder()
public static Class<? extends Stack.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.