@Generated(value="software.amazon.awssdk:codegen") public final class Stack extends Object implements SdkPojo, Serializable, 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> |
attributesAsStrings()
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()
Contains the information required to retrieve an app or cookbook from a repository.
|
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 |
defaultRootDeviceTypeAsString()
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) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasAttributes()
For responses, this returns true if the service returned a value for the Attributes property.
|
int |
hashCode() |
String |
hostnameTheme()
The stack host name theme, with spaces replaced by underscores.
|
String |
name()
The stack name.
|
String |
region()
The stack AWS region, such as "ap-northeast-2".
|
List<SdkField<?>> |
sdkFields() |
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() |
String |
toString()
Returns a string representation of this object.
|
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.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String stackId()
The stack ID.
public final String name()
The stack name.
public final String arn()
The stack's ARN.
public final String region()
The stack AWS region, such as "ap-northeast-2". For more information about AWS regions, see Regions and Endpoints.
public final String vpcId()
The VPC ID; applicable only if the stack is running in a VPC.
public final Map<StackAttributesKeys,String> attributes()
The stack's attributes.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasAttributes() method.
public final boolean hasAttributes()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final Map<String,String> attributesAsStrings()
The stack's attributes.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasAttributes() method.
public final String serviceRoleArn()
The stack AWS Identity and Access Management (IAM) role.
public final 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 final String defaultOs()
The stack's default operating system.
public final String hostnameTheme()
The stack host name theme, with spaces replaced by underscores.
public final String defaultAvailabilityZone()
The stack's default Availability Zone. For more information, see Regions and Endpoints.
public final String defaultSubnetId()
The default subnet ID; applicable only if the stack is running in a VPC.
public final 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 final StackConfigurationManager configurationManager()
The configuration manager.
public final 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 final Boolean useCustomCookbooks()
Whether the stack uses custom cookbooks.
public final Boolean useOpsworksSecurityGroups()
Whether the stack automatically associates the AWS OpsWorks Stacks built-in security groups with the stack's layers.
public final Source customCookbooksSource()
Contains the information required to retrieve an app or cookbook from a repository. For more information, see Adding Apps or Cookbooks and Recipes.
public final 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 final String createdAt()
The date when the stack was created.
public final 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 defaultRootDeviceTypeAsString().
RootDeviceTypepublic final String defaultRootDeviceTypeAsString()
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 defaultRootDeviceTypeAsString().
RootDeviceTypepublic final 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()
toBuilder in interface ToCopyableBuilder<Stack.Builder,Stack>public static Stack.Builder builder()
public static Class<? extends Stack.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.