public static interface Stack.Builder extends CopyableBuilder<Stack.Builder,Stack>
Modifier and Type | Method and Description |
---|---|
Stack.Builder |
agentVersion(String agentVersion)
The agent version.
|
Stack.Builder |
arn(String arn)
The stack's ARN.
|
Stack.Builder |
attributes(Map<String,String> attributes)
The stack's attributes.
|
Stack.Builder |
chefConfiguration(ChefConfiguration chefConfiguration)
A
ChefConfiguration object that specifies whether to enable Berkshelf and the Berkshelf version. |
default Stack.Builder |
chefConfiguration(Consumer<ChefConfiguration.Builder> chefConfiguration)
A
ChefConfiguration object that specifies whether to enable Berkshelf and the Berkshelf version. |
default Stack.Builder |
configurationManager(Consumer<StackConfigurationManager.Builder> configurationManager)
The configuration manager.
|
Stack.Builder |
configurationManager(StackConfigurationManager configurationManager)
The configuration manager.
|
Stack.Builder |
createdAt(String createdAt)
The date when the stack was created.
|
default Stack.Builder |
customCookbooksSource(Consumer<Source.Builder> customCookbooksSource)
Sets the value of the CustomCookbooksSource property for this object.
|
Stack.Builder |
customCookbooksSource(Source customCookbooksSource)
Sets the value of the CustomCookbooksSource property for this object.
|
Stack.Builder |
customJson(String customJson)
A JSON object that contains user-defined attributes to be added to the stack configuration and deployment
attributes.
|
Stack.Builder |
defaultAvailabilityZone(String defaultAvailabilityZone)
The stack's default Availability Zone.
|
Stack.Builder |
defaultInstanceProfileArn(String defaultInstanceProfileArn)
The ARN of an IAM profile that is the default profile for all of the stack's EC2 instances.
|
Stack.Builder |
defaultOs(String defaultOs)
The stack's default operating system.
|
Stack.Builder |
defaultRootDeviceType(RootDeviceType defaultRootDeviceType)
The default root device type.
|
Stack.Builder |
defaultRootDeviceType(String defaultRootDeviceType)
The default root device type.
|
Stack.Builder |
defaultSshKeyName(String defaultSshKeyName)
A default Amazon EC2 key pair for the stack's instances.
|
Stack.Builder |
defaultSubnetId(String defaultSubnetId)
The default subnet ID; applicable only if the stack is running in a VPC.
|
Stack.Builder |
hostnameTheme(String hostnameTheme)
The stack host name theme, with spaces replaced by underscores.
|
Stack.Builder |
name(String name)
The stack name.
|
Stack.Builder |
region(String region)
The stack AWS region, such as "ap-northeast-2".
|
Stack.Builder |
serviceRoleArn(String serviceRoleArn)
The stack AWS Identity and Access Management (IAM) role.
|
Stack.Builder |
stackId(String stackId)
The stack ID.
|
Stack.Builder |
useCustomCookbooks(Boolean useCustomCookbooks)
Whether the stack uses custom cookbooks.
|
Stack.Builder |
useOpsworksSecurityGroups(Boolean useOpsworksSecurityGroups)
Whether the stack automatically associates the AWS OpsWorks Stacks built-in security groups with the stack's
layers.
|
Stack.Builder |
vpcId(String vpcId)
The VPC ID; applicable only if the stack is running in a VPC.
|
copy
apply, build
Stack.Builder stackId(String stackId)
The stack ID.
stackId
- The stack ID.Stack.Builder name(String name)
The stack name.
name
- The stack name.Stack.Builder arn(String arn)
The stack's ARN.
arn
- The stack's ARN.Stack.Builder region(String region)
The stack AWS region, such as "ap-northeast-2". For more information about AWS regions, see Regions and Endpoints.
region
- The stack AWS region, such as "ap-northeast-2". For more information about AWS regions, see Regions and Endpoints.Stack.Builder vpcId(String vpcId)
The VPC ID; applicable only if the stack is running in a VPC.
vpcId
- The VPC ID; applicable only if the stack is running in a VPC.Stack.Builder attributes(Map<String,String> attributes)
The stack's attributes.
attributes
- The stack's attributes.Stack.Builder serviceRoleArn(String serviceRoleArn)
The stack AWS Identity and Access Management (IAM) role.
serviceRoleArn
- The stack AWS Identity and Access Management (IAM) role.Stack.Builder defaultInstanceProfileArn(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.
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.Stack.Builder defaultOs(String defaultOs)
The stack's default operating system.
defaultOs
- The stack's default operating system.Stack.Builder hostnameTheme(String hostnameTheme)
The stack host name theme, with spaces replaced by underscores.
hostnameTheme
- The stack host name theme, with spaces replaced by underscores.Stack.Builder defaultAvailabilityZone(String defaultAvailabilityZone)
The stack's default Availability Zone. For more information, see Regions and Endpoints.
defaultAvailabilityZone
- The stack's default Availability Zone. For more information, see Regions and Endpoints.Stack.Builder defaultSubnetId(String defaultSubnetId)
The default subnet ID; applicable only if the stack is running in a VPC.
defaultSubnetId
- The default subnet ID; applicable only if the stack is running in a VPC.Stack.Builder customJson(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.
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.
Stack.Builder configurationManager(StackConfigurationManager configurationManager)
The configuration manager.
configurationManager
- The configuration manager.default Stack.Builder configurationManager(Consumer<StackConfigurationManager.Builder> configurationManager)
The configuration manager.
This is a convenience that creates an instance of theStackConfigurationManager.Builder
avoiding the
need to create one manually via StackConfigurationManager.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately
and its result is passed to configurationManager(StackConfigurationManager)
.configurationManager
- a consumer that will call methods on StackConfigurationManager.Builder
configurationManager(StackConfigurationManager)
Stack.Builder chefConfiguration(ChefConfiguration chefConfiguration)
A ChefConfiguration
object that specifies whether to enable Berkshelf and the Berkshelf version.
For more information, see Create a New
Stack.
chefConfiguration
- A ChefConfiguration
object that specifies whether to enable Berkshelf and the Berkshelf
version. For more information, see Create a New
Stack.default Stack.Builder chefConfiguration(Consumer<ChefConfiguration.Builder> chefConfiguration)
A ChefConfiguration
object that specifies whether to enable Berkshelf and the Berkshelf version.
For more information, see Create a New
Stack.
ChefConfiguration.Builder
avoiding the need to
create one manually via ChefConfiguration.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to chefConfiguration(ChefConfiguration)
.chefConfiguration
- a consumer that will call methods on ChefConfiguration.Builder
chefConfiguration(ChefConfiguration)
Stack.Builder useCustomCookbooks(Boolean useCustomCookbooks)
Whether the stack uses custom cookbooks.
useCustomCookbooks
- Whether the stack uses custom cookbooks.Stack.Builder useOpsworksSecurityGroups(Boolean useOpsworksSecurityGroups)
Whether the stack automatically associates the AWS OpsWorks Stacks built-in security groups with the stack's layers.
useOpsworksSecurityGroups
- Whether the stack automatically associates the AWS OpsWorks Stacks built-in security groups with the
stack's layers.Stack.Builder customCookbooksSource(Source customCookbooksSource)
customCookbooksSource
- The new value for the CustomCookbooksSource property for this object.default Stack.Builder customCookbooksSource(Consumer<Source.Builder> customCookbooksSource)
Source.Builder
avoiding the need to create one
manually via Source.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result is
passed to customCookbooksSource(Source)
.customCookbooksSource
- a consumer that will call methods on Source.Builder
customCookbooksSource(Source)
Stack.Builder defaultSshKeyName(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.
defaultSshKeyName
- A default Amazon EC2 key pair for the stack's instances. You can override this value when you create
or update an instance.Stack.Builder createdAt(String createdAt)
The date when the stack was created.
createdAt
- The date when the stack was created.Stack.Builder defaultRootDeviceType(String 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.
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.RootDeviceType
,
RootDeviceType
Stack.Builder defaultRootDeviceType(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.
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.RootDeviceType
,
RootDeviceType
Stack.Builder agentVersion(String agentVersion)
The agent version. This parameter is set to LATEST
for auto-update. or a version number for a
fixed agent version.
agentVersion
- The agent version. This parameter is set to LATEST
for auto-update. or a version number
for a fixed agent version.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.