JavaAppLayer
Provides an OpsWorks Java application layer resource.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var app = new Aws.OpsWorks.JavaAppLayer("app", new Aws.OpsWorks.JavaAppLayerArgs
{
StackId = aws_opsworks_stack.Main.Id,
});
}
}
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/opsworks"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := opsworks.NewJavaAppLayer(ctx, "app", &opsworks.JavaAppLayerArgs{
StackId: pulumi.String(aws_opsworks_stack.Main.Id),
})
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_aws as aws
app = aws.opsworks.JavaAppLayer("app", stack_id=aws_opsworks_stack["main"]["id"])import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const app = new aws.opsworks.JavaAppLayer("app", {
stackId: aws_opsworks_stack_main.id,
});Create a JavaAppLayer Resource
new JavaAppLayer(name: string, args: JavaAppLayerArgs, opts?: CustomResourceOptions);def JavaAppLayer(resource_name, opts=None, app_server=None, app_server_version=None, auto_assign_elastic_ips=None, auto_assign_public_ips=None, auto_healing=None, custom_configure_recipes=None, custom_deploy_recipes=None, custom_instance_profile_arn=None, custom_json=None, custom_security_group_ids=None, custom_setup_recipes=None, custom_shutdown_recipes=None, custom_undeploy_recipes=None, drain_elb_on_shutdown=None, ebs_volumes=None, elastic_load_balancer=None, install_updates_on_boot=None, instance_shutdown_timeout=None, jvm_options=None, jvm_type=None, jvm_version=None, name=None, stack_id=None, system_packages=None, tags=None, use_ebs_optimized_instances=None, __props__=None);func NewJavaAppLayer(ctx *Context, name string, args JavaAppLayerArgs, opts ...ResourceOption) (*JavaAppLayer, error)public JavaAppLayer(string name, JavaAppLayerArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args JavaAppLayerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args JavaAppLayerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args JavaAppLayerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
JavaAppLayer Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The JavaAppLayer resource accepts the following input properties:
- Stack
Id string The id of the stack the layer will belong to.
- App
Server string Keyword for the application container to use. Defaults to “tomcat”.
- App
Server stringVersion Version of the selected application container to use. Defaults to “7”.
- Auto
Assign boolElastic Ips Whether to automatically assign an elastic IP address to the layer’s instances.
- Auto
Assign boolPublic Ips For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer’s instances.
- Auto
Healing bool Whether to enable auto-healing for the layer.
- Custom
Configure List<string>Recipes - Custom
Deploy List<string>Recipes - Custom
Instance stringProfile Arn The ARN of an IAM profile that will be used for the layer’s instances.
- Custom
Json string Custom JSON attributes to apply to the layer.
- Custom
Security List<string>Group Ids Ids for a set of security groups to apply to the layer’s instances.
- Custom
Setup List<string>Recipes - Custom
Shutdown List<string>Recipes - Custom
Undeploy List<string>Recipes - Drain
Elb boolOn Shutdown Whether to enable Elastic Load Balancing connection draining.
- Ebs
Volumes List<JavaApp Layer Ebs Volume Args> ebs_volumeblocks, as described below, will each create an EBS volume and connect it to the layer’s instances.- Elastic
Load stringBalancer Name of an Elastic Load Balancer to attach to this layer
- Install
Updates boolOn Boot Whether to install OS and package updates on each instance when it boots.
- Instance
Shutdown intTimeout The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
- Jvm
Options string Options to set for the JVM.
- Jvm
Type string Keyword for the type of JVM to use. Defaults to
openjdk.- Jvm
Version string Version of JVM to use. Defaults to “7”.
- Name string
A human-readable name for the layer.
- System
Packages List<string> Names of a set of system packages to install on the layer’s instances.
- Dictionary<string, string>
A map of tags to assign to the resource.
- Use
Ebs boolOptimized Instances Whether to use EBS-optimized instances.
- Stack
Id string The id of the stack the layer will belong to.
- App
Server string Keyword for the application container to use. Defaults to “tomcat”.
- App
Server stringVersion Version of the selected application container to use. Defaults to “7”.
- Auto
Assign boolElastic Ips Whether to automatically assign an elastic IP address to the layer’s instances.
- Auto
Assign boolPublic Ips For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer’s instances.
- Auto
Healing bool Whether to enable auto-healing for the layer.
- Custom
Configure []stringRecipes - Custom
Deploy []stringRecipes - Custom
Instance stringProfile Arn The ARN of an IAM profile that will be used for the layer’s instances.
- Custom
Json string Custom JSON attributes to apply to the layer.
- Custom
Security []stringGroup Ids Ids for a set of security groups to apply to the layer’s instances.
- Custom
Setup []stringRecipes - Custom
Shutdown []stringRecipes - Custom
Undeploy []stringRecipes - Drain
Elb boolOn Shutdown Whether to enable Elastic Load Balancing connection draining.
- Ebs
Volumes []JavaApp Layer Ebs Volume ebs_volumeblocks, as described below, will each create an EBS volume and connect it to the layer’s instances.- Elastic
Load stringBalancer Name of an Elastic Load Balancer to attach to this layer
- Install
Updates boolOn Boot Whether to install OS and package updates on each instance when it boots.
- Instance
Shutdown intTimeout The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
- Jvm
Options string Options to set for the JVM.
- Jvm
Type string Keyword for the type of JVM to use. Defaults to
openjdk.- Jvm
Version string Version of JVM to use. Defaults to “7”.
- Name string
A human-readable name for the layer.
- System
Packages []string Names of a set of system packages to install on the layer’s instances.
- map[string]string
A map of tags to assign to the resource.
- Use
Ebs boolOptimized Instances Whether to use EBS-optimized instances.
- stack
Id string The id of the stack the layer will belong to.
- app
Server string Keyword for the application container to use. Defaults to “tomcat”.
- app
Server stringVersion Version of the selected application container to use. Defaults to “7”.
- auto
Assign booleanElastic Ips Whether to automatically assign an elastic IP address to the layer’s instances.
- auto
Assign booleanPublic Ips For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer’s instances.
- auto
Healing boolean Whether to enable auto-healing for the layer.
- custom
Configure string[]Recipes - custom
Deploy string[]Recipes - custom
Instance stringProfile Arn The ARN of an IAM profile that will be used for the layer’s instances.
- custom
Json string Custom JSON attributes to apply to the layer.
- custom
Security string[]Group Ids Ids for a set of security groups to apply to the layer’s instances.
- custom
Setup string[]Recipes - custom
Shutdown string[]Recipes - custom
Undeploy string[]Recipes - drain
Elb booleanOn Shutdown Whether to enable Elastic Load Balancing connection draining.
- ebs
Volumes JavaApp Layer Ebs Volume[] ebs_volumeblocks, as described below, will each create an EBS volume and connect it to the layer’s instances.- elastic
Load stringBalancer Name of an Elastic Load Balancer to attach to this layer
- install
Updates booleanOn Boot Whether to install OS and package updates on each instance when it boots.
- instance
Shutdown numberTimeout The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
- jvm
Options string Options to set for the JVM.
- jvm
Type string Keyword for the type of JVM to use. Defaults to
openjdk.- jvm
Version string Version of JVM to use. Defaults to “7”.
- name string
A human-readable name for the layer.
- system
Packages string[] Names of a set of system packages to install on the layer’s instances.
- {[key: string]: string}
A map of tags to assign to the resource.
- use
Ebs booleanOptimized Instances Whether to use EBS-optimized instances.
- stack_
id str The id of the stack the layer will belong to.
- app_
server str Keyword for the application container to use. Defaults to “tomcat”.
- app_
server_ strversion Version of the selected application container to use. Defaults to “7”.
- auto_
assign_ boolelastic_ ips Whether to automatically assign an elastic IP address to the layer’s instances.
- auto_
assign_ boolpublic_ ips For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer’s instances.
- auto_
healing bool Whether to enable auto-healing for the layer.
- custom_
configure_ List[str]recipes - custom_
deploy_ List[str]recipes - custom_
instance_ strprofile_ arn The ARN of an IAM profile that will be used for the layer’s instances.
- custom_
json str Custom JSON attributes to apply to the layer.
- custom_
security_ List[str]group_ ids Ids for a set of security groups to apply to the layer’s instances.
- custom_
setup_ List[str]recipes - custom_
shutdown_ List[str]recipes - custom_
undeploy_ List[str]recipes - drain_
elb_ boolon_ shutdown Whether to enable Elastic Load Balancing connection draining.
- ebs_
volumes List[JavaApp Layer Ebs Volume] ebs_volumeblocks, as described below, will each create an EBS volume and connect it to the layer’s instances.- elastic_
load_ strbalancer Name of an Elastic Load Balancer to attach to this layer
- install_
updates_ boolon_ boot Whether to install OS and package updates on each instance when it boots.
- instance_
shutdown_ floattimeout The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
- jvm_
options str Options to set for the JVM.
- jvm_
type str Keyword for the type of JVM to use. Defaults to
openjdk.- jvm_
version str Version of JVM to use. Defaults to “7”.
- name str
A human-readable name for the layer.
- system_
packages List[str] Names of a set of system packages to install on the layer’s instances.
- Dict[str, str]
A map of tags to assign to the resource.
- use_
ebs_ booloptimized_ instances Whether to use EBS-optimized instances.
Outputs
All input properties are implicitly available as output properties. Additionally, the JavaAppLayer resource produces the following output properties:
Look up an Existing JavaAppLayer Resource
Get an existing JavaAppLayer resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: JavaAppLayerState, opts?: CustomResourceOptions): JavaAppLayerstatic get(resource_name, id, opts=None, app_server=None, app_server_version=None, arn=None, auto_assign_elastic_ips=None, auto_assign_public_ips=None, auto_healing=None, custom_configure_recipes=None, custom_deploy_recipes=None, custom_instance_profile_arn=None, custom_json=None, custom_security_group_ids=None, custom_setup_recipes=None, custom_shutdown_recipes=None, custom_undeploy_recipes=None, drain_elb_on_shutdown=None, ebs_volumes=None, elastic_load_balancer=None, install_updates_on_boot=None, instance_shutdown_timeout=None, jvm_options=None, jvm_type=None, jvm_version=None, name=None, stack_id=None, system_packages=None, tags=None, use_ebs_optimized_instances=None, __props__=None);func GetJavaAppLayer(ctx *Context, name string, id IDInput, state *JavaAppLayerState, opts ...ResourceOption) (*JavaAppLayer, error)public static JavaAppLayer Get(string name, Input<string> id, JavaAppLayerState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- App
Server string Keyword for the application container to use. Defaults to “tomcat”.
- App
Server stringVersion Version of the selected application container to use. Defaults to “7”.
- Arn string
The Amazon Resource Name(ARN) of the layer.
- Auto
Assign boolElastic Ips Whether to automatically assign an elastic IP address to the layer’s instances.
- Auto
Assign boolPublic Ips For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer’s instances.
- Auto
Healing bool Whether to enable auto-healing for the layer.
- Custom
Configure List<string>Recipes - Custom
Deploy List<string>Recipes - Custom
Instance stringProfile Arn The ARN of an IAM profile that will be used for the layer’s instances.
- Custom
Json string Custom JSON attributes to apply to the layer.
- Custom
Security List<string>Group Ids Ids for a set of security groups to apply to the layer’s instances.
- Custom
Setup List<string>Recipes - Custom
Shutdown List<string>Recipes - Custom
Undeploy List<string>Recipes - Drain
Elb boolOn Shutdown Whether to enable Elastic Load Balancing connection draining.
- Ebs
Volumes List<JavaApp Layer Ebs Volume Args> ebs_volumeblocks, as described below, will each create an EBS volume and connect it to the layer’s instances.- Elastic
Load stringBalancer Name of an Elastic Load Balancer to attach to this layer
- Install
Updates boolOn Boot Whether to install OS and package updates on each instance when it boots.
- Instance
Shutdown intTimeout The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
- Jvm
Options string Options to set for the JVM.
- Jvm
Type string Keyword for the type of JVM to use. Defaults to
openjdk.- Jvm
Version string Version of JVM to use. Defaults to “7”.
- Name string
A human-readable name for the layer.
- Stack
Id string The id of the stack the layer will belong to.
- System
Packages List<string> Names of a set of system packages to install on the layer’s instances.
- Dictionary<string, string>
A map of tags to assign to the resource.
- Use
Ebs boolOptimized Instances Whether to use EBS-optimized instances.
- App
Server string Keyword for the application container to use. Defaults to “tomcat”.
- App
Server stringVersion Version of the selected application container to use. Defaults to “7”.
- Arn string
The Amazon Resource Name(ARN) of the layer.
- Auto
Assign boolElastic Ips Whether to automatically assign an elastic IP address to the layer’s instances.
- Auto
Assign boolPublic Ips For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer’s instances.
- Auto
Healing bool Whether to enable auto-healing for the layer.
- Custom
Configure []stringRecipes - Custom
Deploy []stringRecipes - Custom
Instance stringProfile Arn The ARN of an IAM profile that will be used for the layer’s instances.
- Custom
Json string Custom JSON attributes to apply to the layer.
- Custom
Security []stringGroup Ids Ids for a set of security groups to apply to the layer’s instances.
- Custom
Setup []stringRecipes - Custom
Shutdown []stringRecipes - Custom
Undeploy []stringRecipes - Drain
Elb boolOn Shutdown Whether to enable Elastic Load Balancing connection draining.
- Ebs
Volumes []JavaApp Layer Ebs Volume ebs_volumeblocks, as described below, will each create an EBS volume and connect it to the layer’s instances.- Elastic
Load stringBalancer Name of an Elastic Load Balancer to attach to this layer
- Install
Updates boolOn Boot Whether to install OS and package updates on each instance when it boots.
- Instance
Shutdown intTimeout The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
- Jvm
Options string Options to set for the JVM.
- Jvm
Type string Keyword for the type of JVM to use. Defaults to
openjdk.- Jvm
Version string Version of JVM to use. Defaults to “7”.
- Name string
A human-readable name for the layer.
- Stack
Id string The id of the stack the layer will belong to.
- System
Packages []string Names of a set of system packages to install on the layer’s instances.
- map[string]string
A map of tags to assign to the resource.
- Use
Ebs boolOptimized Instances Whether to use EBS-optimized instances.
- app
Server string Keyword for the application container to use. Defaults to “tomcat”.
- app
Server stringVersion Version of the selected application container to use. Defaults to “7”.
- arn string
The Amazon Resource Name(ARN) of the layer.
- auto
Assign booleanElastic Ips Whether to automatically assign an elastic IP address to the layer’s instances.
- auto
Assign booleanPublic Ips For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer’s instances.
- auto
Healing boolean Whether to enable auto-healing for the layer.
- custom
Configure string[]Recipes - custom
Deploy string[]Recipes - custom
Instance stringProfile Arn The ARN of an IAM profile that will be used for the layer’s instances.
- custom
Json string Custom JSON attributes to apply to the layer.
- custom
Security string[]Group Ids Ids for a set of security groups to apply to the layer’s instances.
- custom
Setup string[]Recipes - custom
Shutdown string[]Recipes - custom
Undeploy string[]Recipes - drain
Elb booleanOn Shutdown Whether to enable Elastic Load Balancing connection draining.
- ebs
Volumes JavaApp Layer Ebs Volume[] ebs_volumeblocks, as described below, will each create an EBS volume and connect it to the layer’s instances.- elastic
Load stringBalancer Name of an Elastic Load Balancer to attach to this layer
- install
Updates booleanOn Boot Whether to install OS and package updates on each instance when it boots.
- instance
Shutdown numberTimeout The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
- jvm
Options string Options to set for the JVM.
- jvm
Type string Keyword for the type of JVM to use. Defaults to
openjdk.- jvm
Version string Version of JVM to use. Defaults to “7”.
- name string
A human-readable name for the layer.
- stack
Id string The id of the stack the layer will belong to.
- system
Packages string[] Names of a set of system packages to install on the layer’s instances.
- {[key: string]: string}
A map of tags to assign to the resource.
- use
Ebs booleanOptimized Instances Whether to use EBS-optimized instances.
- app_
server str Keyword for the application container to use. Defaults to “tomcat”.
- app_
server_ strversion Version of the selected application container to use. Defaults to “7”.
- arn str
The Amazon Resource Name(ARN) of the layer.
- auto_
assign_ boolelastic_ ips Whether to automatically assign an elastic IP address to the layer’s instances.
- auto_
assign_ boolpublic_ ips For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer’s instances.
- auto_
healing bool Whether to enable auto-healing for the layer.
- custom_
configure_ List[str]recipes - custom_
deploy_ List[str]recipes - custom_
instance_ strprofile_ arn The ARN of an IAM profile that will be used for the layer’s instances.
- custom_
json str Custom JSON attributes to apply to the layer.
- custom_
security_ List[str]group_ ids Ids for a set of security groups to apply to the layer’s instances.
- custom_
setup_ List[str]recipes - custom_
shutdown_ List[str]recipes - custom_
undeploy_ List[str]recipes - drain_
elb_ boolon_ shutdown Whether to enable Elastic Load Balancing connection draining.
- ebs_
volumes List[JavaApp Layer Ebs Volume] ebs_volumeblocks, as described below, will each create an EBS volume and connect it to the layer’s instances.- elastic_
load_ strbalancer Name of an Elastic Load Balancer to attach to this layer
- install_
updates_ boolon_ boot Whether to install OS and package updates on each instance when it boots.
- instance_
shutdown_ floattimeout The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
- jvm_
options str Options to set for the JVM.
- jvm_
type str Keyword for the type of JVM to use. Defaults to
openjdk.- jvm_
version str Version of JVM to use. Defaults to “7”.
- name str
A human-readable name for the layer.
- stack_
id str The id of the stack the layer will belong to.
- system_
packages List[str] Names of a set of system packages to install on the layer’s instances.
- Dict[str, str]
A map of tags to assign to the resource.
- use_
ebs_ booloptimized_ instances Whether to use EBS-optimized instances.
Supporting Types
JavaAppLayerEbsVolume
- Mount
Point string The path to mount the EBS volume on the layer’s instances.
- Number
Of intDisks The number of disks to use for the EBS volume.
- Size int
The size of the volume in gigabytes.
- Encrypted bool
- Iops int
For PIOPS volumes, the IOPS per disk.
- Raid
Level string The RAID level to use for the volume.
- Type string
The type of volume to create. This may be
standard(the default),io1orgp2.
- Mount
Point string The path to mount the EBS volume on the layer’s instances.
- Number
Of intDisks The number of disks to use for the EBS volume.
- Size int
The size of the volume in gigabytes.
- Encrypted bool
- Iops int
For PIOPS volumes, the IOPS per disk.
- Raid
Level string The RAID level to use for the volume.
- Type string
The type of volume to create. This may be
standard(the default),io1orgp2.
- mount
Point string The path to mount the EBS volume on the layer’s instances.
- number
Of numberDisks The number of disks to use for the EBS volume.
- size number
The size of the volume in gigabytes.
- encrypted boolean
- iops number
For PIOPS volumes, the IOPS per disk.
- raid
Level string The RAID level to use for the volume.
- type string
The type of volume to create. This may be
standard(the default),io1orgp2.
- mount
Point str The path to mount the EBS volume on the layer’s instances.
- number
Of floatDisks The number of disks to use for the EBS volume.
- size float
The size of the volume in gigabytes.
- encrypted bool
- iops float
For PIOPS volumes, the IOPS per disk.
- raid
Level str The RAID level to use for the volume.
- type str
The type of volume to create. This may be
standard(the default),io1orgp2.
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.