Try AWS Native preview for resources not in the classic version.
aws.opsworks.CustomLayer
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
Provides an OpsWorks custom layer resource.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var custlayer = new Aws.OpsWorks.CustomLayer("custlayer", new()
{
ShortName = "awesome",
StackId = aws_opsworks_stack.Main.Id,
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/opsworks"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := opsworks.NewCustomLayer(ctx, "custlayer", &opsworks.CustomLayerArgs{
ShortName: pulumi.String("awesome"),
StackId: pulumi.Any(aws_opsworks_stack.Main.Id),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.opsworks.CustomLayer;
import com.pulumi.aws.opsworks.CustomLayerArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var custlayer = new CustomLayer("custlayer", CustomLayerArgs.builder()
.shortName("awesome")
.stackId(aws_opsworks_stack.main().id())
.build());
}
}
import pulumi
import pulumi_aws as aws
custlayer = aws.opsworks.CustomLayer("custlayer",
short_name="awesome",
stack_id=aws_opsworks_stack["main"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const custlayer = new aws.opsworks.CustomLayer("custlayer", {
shortName: "awesome",
stackId: aws_opsworks_stack.main.id,
});
resources:
custlayer:
type: aws:opsworks:CustomLayer
properties:
shortName: awesome
stackId: ${aws_opsworks_stack.main.id}
Create CustomLayer Resource
new CustomLayer(name: string, args: CustomLayerArgs, opts?: CustomResourceOptions);
@overload
def CustomLayer(resource_name: str,
opts: Optional[ResourceOptions] = None,
auto_assign_elastic_ips: Optional[bool] = None,
auto_assign_public_ips: Optional[bool] = None,
auto_healing: Optional[bool] = None,
cloudwatch_configuration: Optional[CustomLayerCloudwatchConfigurationArgs] = None,
custom_configure_recipes: Optional[Sequence[str]] = None,
custom_deploy_recipes: Optional[Sequence[str]] = None,
custom_instance_profile_arn: Optional[str] = None,
custom_json: Optional[str] = None,
custom_security_group_ids: Optional[Sequence[str]] = None,
custom_setup_recipes: Optional[Sequence[str]] = None,
custom_shutdown_recipes: Optional[Sequence[str]] = None,
custom_undeploy_recipes: Optional[Sequence[str]] = None,
drain_elb_on_shutdown: Optional[bool] = None,
ebs_volumes: Optional[Sequence[CustomLayerEbsVolumeArgs]] = None,
elastic_load_balancer: Optional[str] = None,
install_updates_on_boot: Optional[bool] = None,
instance_shutdown_timeout: Optional[int] = None,
load_based_auto_scaling: Optional[CustomLayerLoadBasedAutoScalingArgs] = None,
name: Optional[str] = None,
short_name: Optional[str] = None,
stack_id: Optional[str] = None,
system_packages: Optional[Sequence[str]] = None,
tags: Optional[Mapping[str, str]] = None,
use_ebs_optimized_instances: Optional[bool] = None)
@overload
def CustomLayer(resource_name: str,
args: CustomLayerArgs,
opts: Optional[ResourceOptions] = None)
func NewCustomLayer(ctx *Context, name string, args CustomLayerArgs, opts ...ResourceOption) (*CustomLayer, error)
public CustomLayer(string name, CustomLayerArgs args, CustomResourceOptions? opts = null)
public CustomLayer(String name, CustomLayerArgs args)
public CustomLayer(String name, CustomLayerArgs args, CustomResourceOptions options)
type: aws:opsworks:CustomLayer
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CustomLayerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args CustomLayerArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args CustomLayerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CustomLayerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CustomLayerArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
CustomLayer Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The CustomLayer resource accepts the following input properties:
- Short
Name string A short, machine-readable name for the layer, which will be used to identify it in the Chef node JSON.
- Stack
Id string ID of the stack the layer will belong to.
- 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.
- Cloudwatch
Configuration CustomLayer Cloudwatch Configuration Will create an EBS volume and connect it to the layer's instances. See Cloudwatch Configuration.
- 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<CustomLayer Ebs Volume> Will create an EBS volume and connect it to the layer's instances. See EBS Volume.
- 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.
- Load
Based CustomAuto Scaling Layer Load Based Auto Scaling Load-based auto scaling configuration. See Load Based AutoScaling
- 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. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.The following extra optional arguments, all lists of Chef recipe names, allow custom Chef recipes to be applied to layer instances at the five different lifecycle events, if custom cookbooks are enabled on the layer's stack:
- Use
Ebs boolOptimized Instances Whether to use EBS-optimized instances.
- Short
Name string A short, machine-readable name for the layer, which will be used to identify it in the Chef node JSON.
- Stack
Id string ID of the stack the layer will belong to.
- 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.
- Cloudwatch
Configuration CustomLayer Cloudwatch Configuration Args Will create an EBS volume and connect it to the layer's instances. See Cloudwatch Configuration.
- 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 []CustomLayer Ebs Volume Args Will create an EBS volume and connect it to the layer's instances. See EBS Volume.
- 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.
- Load
Based CustomAuto Scaling Layer Load Based Auto Scaling Args Load-based auto scaling configuration. See Load Based AutoScaling
- 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. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.The following extra optional arguments, all lists of Chef recipe names, allow custom Chef recipes to be applied to layer instances at the five different lifecycle events, if custom cookbooks are enabled on the layer's stack:
- Use
Ebs boolOptimized Instances Whether to use EBS-optimized instances.
- short
Name String A short, machine-readable name for the layer, which will be used to identify it in the Chef node JSON.
- stack
Id String ID of the stack the layer will belong to.
- 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.
- cloudwatch
Configuration CustomLayer Cloudwatch Configuration Will create an EBS volume and connect it to the layer's instances. See Cloudwatch Configuration.
- 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 BooleanOn Shutdown Whether to enable Elastic Load Balancing connection draining.
- ebs
Volumes List<CustomLayer Ebs Volume> Will create an EBS volume and connect it to the layer's instances. See EBS Volume.
- 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 IntegerTimeout The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
- load
Based CustomAuto Scaling Layer Load Based Auto Scaling Load-based auto scaling configuration. See Load Based AutoScaling
- 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.
- Map<String,String>
A map of tags to assign to the resource. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.The following extra optional arguments, all lists of Chef recipe names, allow custom Chef recipes to be applied to layer instances at the five different lifecycle events, if custom cookbooks are enabled on the layer's stack:
- use
Ebs BooleanOptimized Instances Whether to use EBS-optimized instances.
- short
Name string A short, machine-readable name for the layer, which will be used to identify it in the Chef node JSON.
- stack
Id string ID of the stack the layer will belong to.
- 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.
- cloudwatch
Configuration CustomLayer Cloudwatch Configuration Will create an EBS volume and connect it to the layer's instances. See Cloudwatch Configuration.
- 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 CustomLayer Ebs Volume[] Will create an EBS volume and connect it to the layer's instances. See EBS Volume.
- 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.
- load
Based CustomAuto Scaling Layer Load Based Auto Scaling Load-based auto scaling configuration. See Load Based AutoScaling
- 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. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.The following extra optional arguments, all lists of Chef recipe names, allow custom Chef recipes to be applied to layer instances at the five different lifecycle events, if custom cookbooks are enabled on the layer's stack:
- use
Ebs booleanOptimized Instances Whether to use EBS-optimized instances.
- short_
name str A short, machine-readable name for the layer, which will be used to identify it in the Chef node JSON.
- stack_
id str ID of the stack the layer will belong to.
- 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.
- cloudwatch_
configuration CustomLayer Cloudwatch Configuration Args Will create an EBS volume and connect it to the layer's instances. See Cloudwatch Configuration.
- custom_
configure_ Sequence[str]recipes - custom_
deploy_ Sequence[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_ Sequence[str]group_ ids Ids for a set of security groups to apply to the layer's instances.
- custom_
setup_ Sequence[str]recipes - custom_
shutdown_ Sequence[str]recipes - custom_
undeploy_ Sequence[str]recipes - drain_
elb_ boolon_ shutdown Whether to enable Elastic Load Balancing connection draining.
- ebs_
volumes Sequence[CustomLayer Ebs Volume Args] Will create an EBS volume and connect it to the layer's instances. See EBS Volume.
- 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_ inttimeout The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
- load_
based_ Customauto_ scaling Layer Load Based Auto Scaling Args Load-based auto scaling configuration. See Load Based AutoScaling
- name str
A human-readable name for the layer.
- system_
packages Sequence[str] Names of a set of system packages to install on the layer's instances.
- Mapping[str, str]
A map of tags to assign to the resource. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.The following extra optional arguments, all lists of Chef recipe names, allow custom Chef recipes to be applied to layer instances at the five different lifecycle events, if custom cookbooks are enabled on the layer's stack:
- use_
ebs_ booloptimized_ instances Whether to use EBS-optimized instances.
- short
Name String A short, machine-readable name for the layer, which will be used to identify it in the Chef node JSON.
- stack
Id String ID of the stack the layer will belong to.
- 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.
- cloudwatch
Configuration Property Map Will create an EBS volume and connect it to the layer's instances. See Cloudwatch Configuration.
- 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 BooleanOn Shutdown Whether to enable Elastic Load Balancing connection draining.
- ebs
Volumes List<Property Map> Will create an EBS volume and connect it to the layer's instances. See EBS Volume.
- 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.
- load
Based Property MapAuto Scaling Load-based auto scaling configuration. See Load Based AutoScaling
- 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.
- Map<String>
A map of tags to assign to the resource. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.The following extra optional arguments, all lists of Chef recipe names, allow custom Chef recipes to be applied to layer instances at the five different lifecycle events, if custom cookbooks are enabled on the layer's stack:
- use
Ebs BooleanOptimized Instances Whether to use EBS-optimized instances.
Outputs
All input properties are implicitly available as output properties. Additionally, the CustomLayer resource produces the following output properties:
Look up Existing CustomLayer Resource
Get an existing CustomLayer 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?: CustomLayerState, opts?: CustomResourceOptions): CustomLayer
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
arn: Optional[str] = None,
auto_assign_elastic_ips: Optional[bool] = None,
auto_assign_public_ips: Optional[bool] = None,
auto_healing: Optional[bool] = None,
cloudwatch_configuration: Optional[CustomLayerCloudwatchConfigurationArgs] = None,
custom_configure_recipes: Optional[Sequence[str]] = None,
custom_deploy_recipes: Optional[Sequence[str]] = None,
custom_instance_profile_arn: Optional[str] = None,
custom_json: Optional[str] = None,
custom_security_group_ids: Optional[Sequence[str]] = None,
custom_setup_recipes: Optional[Sequence[str]] = None,
custom_shutdown_recipes: Optional[Sequence[str]] = None,
custom_undeploy_recipes: Optional[Sequence[str]] = None,
drain_elb_on_shutdown: Optional[bool] = None,
ebs_volumes: Optional[Sequence[CustomLayerEbsVolumeArgs]] = None,
elastic_load_balancer: Optional[str] = None,
install_updates_on_boot: Optional[bool] = None,
instance_shutdown_timeout: Optional[int] = None,
load_based_auto_scaling: Optional[CustomLayerLoadBasedAutoScalingArgs] = None,
name: Optional[str] = None,
short_name: Optional[str] = None,
stack_id: Optional[str] = None,
system_packages: Optional[Sequence[str]] = None,
tags: Optional[Mapping[str, str]] = None,
tags_all: Optional[Mapping[str, str]] = None,
use_ebs_optimized_instances: Optional[bool] = None) -> CustomLayer
func GetCustomLayer(ctx *Context, name string, id IDInput, state *CustomLayerState, opts ...ResourceOption) (*CustomLayer, error)
public static CustomLayer Get(string name, Input<string> id, CustomLayerState? state, CustomResourceOptions? opts = null)
public static CustomLayer get(String name, Output<String> id, CustomLayerState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- 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.
- 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.
- Cloudwatch
Configuration CustomLayer Cloudwatch Configuration Will create an EBS volume and connect it to the layer's instances. See Cloudwatch Configuration.
- 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<CustomLayer Ebs Volume> Will create an EBS volume and connect it to the layer's instances. See EBS Volume.
- 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.
- Load
Based CustomAuto Scaling Layer Load Based Auto Scaling Load-based auto scaling configuration. See Load Based AutoScaling
- Name string
A human-readable name for the layer.
- Short
Name string A short, machine-readable name for the layer, which will be used to identify it in the Chef node JSON.
- Stack
Id string 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. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.The following extra optional arguments, all lists of Chef recipe names, allow custom Chef recipes to be applied to layer instances at the five different lifecycle events, if custom cookbooks are enabled on the layer's stack:
- Dictionary<string, string>
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.Please use
tags
instead.- Use
Ebs boolOptimized Instances Whether to use EBS-optimized instances.
- 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.
- Cloudwatch
Configuration CustomLayer Cloudwatch Configuration Args Will create an EBS volume and connect it to the layer's instances. See Cloudwatch Configuration.
- 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 []CustomLayer Ebs Volume Args Will create an EBS volume and connect it to the layer's instances. See EBS Volume.
- 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.
- Load
Based CustomAuto Scaling Layer Load Based Auto Scaling Args Load-based auto scaling configuration. See Load Based AutoScaling
- Name string
A human-readable name for the layer.
- Short
Name string A short, machine-readable name for the layer, which will be used to identify it in the Chef node JSON.
- Stack
Id string 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. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.The following extra optional arguments, all lists of Chef recipe names, allow custom Chef recipes to be applied to layer instances at the five different lifecycle events, if custom cookbooks are enabled on the layer's stack:
- map[string]string
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.Please use
tags
instead.- Use
Ebs boolOptimized Instances Whether to use EBS-optimized instances.
- 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.
- cloudwatch
Configuration CustomLayer Cloudwatch Configuration Will create an EBS volume and connect it to the layer's instances. See Cloudwatch Configuration.
- 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 BooleanOn Shutdown Whether to enable Elastic Load Balancing connection draining.
- ebs
Volumes List<CustomLayer Ebs Volume> Will create an EBS volume and connect it to the layer's instances. See EBS Volume.
- 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 IntegerTimeout The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
- load
Based CustomAuto Scaling Layer Load Based Auto Scaling Load-based auto scaling configuration. See Load Based AutoScaling
- name String
A human-readable name for the layer.
- short
Name String A short, machine-readable name for the layer, which will be used to identify it in the Chef node JSON.
- stack
Id String 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.
- Map<String,String>
A map of tags to assign to the resource. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.The following extra optional arguments, all lists of Chef recipe names, allow custom Chef recipes to be applied to layer instances at the five different lifecycle events, if custom cookbooks are enabled on the layer's stack:
- Map<String,String>
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.Please use
tags
instead.- use
Ebs BooleanOptimized Instances Whether to use EBS-optimized instances.
- 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.
- cloudwatch
Configuration CustomLayer Cloudwatch Configuration Will create an EBS volume and connect it to the layer's instances. See Cloudwatch Configuration.
- 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 CustomLayer Ebs Volume[] Will create an EBS volume and connect it to the layer's instances. See EBS Volume.
- 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.
- load
Based CustomAuto Scaling Layer Load Based Auto Scaling Load-based auto scaling configuration. See Load Based AutoScaling
- name string
A human-readable name for the layer.
- short
Name string A short, machine-readable name for the layer, which will be used to identify it in the Chef node JSON.
- stack
Id string 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. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.The following extra optional arguments, all lists of Chef recipe names, allow custom Chef recipes to be applied to layer instances at the five different lifecycle events, if custom cookbooks are enabled on the layer's stack:
- {[key: string]: string}
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.Please use
tags
instead.- use
Ebs booleanOptimized Instances Whether to use EBS-optimized instances.
- 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.
- cloudwatch_
configuration CustomLayer Cloudwatch Configuration Args Will create an EBS volume and connect it to the layer's instances. See Cloudwatch Configuration.
- custom_
configure_ Sequence[str]recipes - custom_
deploy_ Sequence[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_ Sequence[str]group_ ids Ids for a set of security groups to apply to the layer's instances.
- custom_
setup_ Sequence[str]recipes - custom_
shutdown_ Sequence[str]recipes - custom_
undeploy_ Sequence[str]recipes - drain_
elb_ boolon_ shutdown Whether to enable Elastic Load Balancing connection draining.
- ebs_
volumes Sequence[CustomLayer Ebs Volume Args] Will create an EBS volume and connect it to the layer's instances. See EBS Volume.
- 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_ inttimeout The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
- load_
based_ Customauto_ scaling Layer Load Based Auto Scaling Args Load-based auto scaling configuration. See Load Based AutoScaling
- name str
A human-readable name for the layer.
- short_
name str A short, machine-readable name for the layer, which will be used to identify it in the Chef node JSON.
- stack_
id str ID of the stack the layer will belong to.
- system_
packages Sequence[str] Names of a set of system packages to install on the layer's instances.
- Mapping[str, str]
A map of tags to assign to the resource. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.The following extra optional arguments, all lists of Chef recipe names, allow custom Chef recipes to be applied to layer instances at the five different lifecycle events, if custom cookbooks are enabled on the layer's stack:
- Mapping[str, str]
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.Please use
tags
instead.- use_
ebs_ booloptimized_ instances Whether to use EBS-optimized instances.
- 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.
- cloudwatch
Configuration Property Map Will create an EBS volume and connect it to the layer's instances. See Cloudwatch Configuration.
- 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 BooleanOn Shutdown Whether to enable Elastic Load Balancing connection draining.
- ebs
Volumes List<Property Map> Will create an EBS volume and connect it to the layer's instances. See EBS Volume.
- 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.
- load
Based Property MapAuto Scaling Load-based auto scaling configuration. See Load Based AutoScaling
- name String
A human-readable name for the layer.
- short
Name String A short, machine-readable name for the layer, which will be used to identify it in the Chef node JSON.
- stack
Id String 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.
- Map<String>
A map of tags to assign to the resource. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.The following extra optional arguments, all lists of Chef recipe names, allow custom Chef recipes to be applied to layer instances at the five different lifecycle events, if custom cookbooks are enabled on the layer's stack:
- Map<String>
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.Please use
tags
instead.- use
Ebs BooleanOptimized Instances Whether to use EBS-optimized instances.
Supporting Types
CustomLayerCloudwatchConfiguration, CustomLayerCloudwatchConfigurationArgs
- Enabled bool
- Log
Streams List<CustomLayer Cloudwatch Configuration Log Stream> A block the specifies how an opsworks logs look like. See Log Streams.
- Enabled bool
- Log
Streams []CustomLayer Cloudwatch Configuration Log Stream A block the specifies how an opsworks logs look like. See Log Streams.
- enabled Boolean
- log
Streams List<CustomLayer Cloudwatch Configuration Log Stream> A block the specifies how an opsworks logs look like. See Log Streams.
- enabled boolean
- log
Streams CustomLayer Cloudwatch Configuration Log Stream[] A block the specifies how an opsworks logs look like. See Log Streams.
- enabled bool
- log_
streams Sequence[CustomLayer Cloudwatch Configuration Log Stream] A block the specifies how an opsworks logs look like. See Log Streams.
- enabled Boolean
- log
Streams List<Property Map> A block the specifies how an opsworks logs look like. See Log Streams.
CustomLayerCloudwatchConfigurationLogStream, CustomLayerCloudwatchConfigurationLogStreamArgs
- File string
Specifies log files that you want to push to CloudWatch Logs. File can point to a specific file or multiple files (by using wild card characters such as /var/log/system.log*).
- Log
Group stringName Specifies the destination log group. A log group is created automatically if it doesn't already exist.
- Batch
Count int Specifies the max number of log events in a batch, up to
10000
. The default value is1000
.- Batch
Size int Specifies the maximum size of log events in a batch, in bytes, up to
1048576
bytes. The default value is32768
bytes.- Buffer
Duration int Specifies the time duration for the batching of log events. The minimum value is
5000
and default value is5000
.- Datetime
Format string Specifies how the timestamp is extracted from logs. For more information, see the CloudWatch Logs Agent Reference (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AgentReference.html).
- Encoding string
Specifies the encoding of the log file so that the file can be read correctly. The default is
utf_8
.- File
Fingerprint stringLines Specifies the range of lines for identifying a file. The valid values are one number, or two dash-delimited numbers, such as
1
,2-5
. The default value is1
.- Initial
Position string Specifies where to start to read data (
start_of_file
orend_of_file
). The default isstart_of_file
.- Multiline
Start stringPattern Specifies the pattern for identifying the start of a log message.
- Time
Zone string Specifies the time zone of log event time stamps.
- File string
Specifies log files that you want to push to CloudWatch Logs. File can point to a specific file or multiple files (by using wild card characters such as /var/log/system.log*).
- Log
Group stringName Specifies the destination log group. A log group is created automatically if it doesn't already exist.
- Batch
Count int Specifies the max number of log events in a batch, up to
10000
. The default value is1000
.- Batch
Size int Specifies the maximum size of log events in a batch, in bytes, up to
1048576
bytes. The default value is32768
bytes.- Buffer
Duration int Specifies the time duration for the batching of log events. The minimum value is
5000
and default value is5000
.- Datetime
Format string Specifies how the timestamp is extracted from logs. For more information, see the CloudWatch Logs Agent Reference (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AgentReference.html).
- Encoding string
Specifies the encoding of the log file so that the file can be read correctly. The default is
utf_8
.- File
Fingerprint stringLines Specifies the range of lines for identifying a file. The valid values are one number, or two dash-delimited numbers, such as
1
,2-5
. The default value is1
.- Initial
Position string Specifies where to start to read data (
start_of_file
orend_of_file
). The default isstart_of_file
.- Multiline
Start stringPattern Specifies the pattern for identifying the start of a log message.
- Time
Zone string Specifies the time zone of log event time stamps.
- file String
Specifies log files that you want to push to CloudWatch Logs. File can point to a specific file or multiple files (by using wild card characters such as /var/log/system.log*).
- log
Group StringName Specifies the destination log group. A log group is created automatically if it doesn't already exist.
- batch
Count Integer Specifies the max number of log events in a batch, up to
10000
. The default value is1000
.- batch
Size Integer Specifies the maximum size of log events in a batch, in bytes, up to
1048576
bytes. The default value is32768
bytes.- buffer
Duration Integer Specifies the time duration for the batching of log events. The minimum value is
5000
and default value is5000
.- datetime
Format String Specifies how the timestamp is extracted from logs. For more information, see the CloudWatch Logs Agent Reference (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AgentReference.html).
- encoding String
Specifies the encoding of the log file so that the file can be read correctly. The default is
utf_8
.- file
Fingerprint StringLines Specifies the range of lines for identifying a file. The valid values are one number, or two dash-delimited numbers, such as
1
,2-5
. The default value is1
.- initial
Position String Specifies where to start to read data (
start_of_file
orend_of_file
). The default isstart_of_file
.- multiline
Start StringPattern Specifies the pattern for identifying the start of a log message.
- time
Zone String Specifies the time zone of log event time stamps.
- file string
Specifies log files that you want to push to CloudWatch Logs. File can point to a specific file or multiple files (by using wild card characters such as /var/log/system.log*).
- log
Group stringName Specifies the destination log group. A log group is created automatically if it doesn't already exist.
- batch
Count number Specifies the max number of log events in a batch, up to
10000
. The default value is1000
.- batch
Size number Specifies the maximum size of log events in a batch, in bytes, up to
1048576
bytes. The default value is32768
bytes.- buffer
Duration number Specifies the time duration for the batching of log events. The minimum value is
5000
and default value is5000
.- datetime
Format string Specifies how the timestamp is extracted from logs. For more information, see the CloudWatch Logs Agent Reference (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AgentReference.html).
- encoding string
Specifies the encoding of the log file so that the file can be read correctly. The default is
utf_8
.- file
Fingerprint stringLines Specifies the range of lines for identifying a file. The valid values are one number, or two dash-delimited numbers, such as
1
,2-5
. The default value is1
.- initial
Position string Specifies where to start to read data (
start_of_file
orend_of_file
). The default isstart_of_file
.- multiline
Start stringPattern Specifies the pattern for identifying the start of a log message.
- time
Zone string Specifies the time zone of log event time stamps.
- file str
Specifies log files that you want to push to CloudWatch Logs. File can point to a specific file or multiple files (by using wild card characters such as /var/log/system.log*).
- log_
group_ strname Specifies the destination log group. A log group is created automatically if it doesn't already exist.
- batch_
count int Specifies the max number of log events in a batch, up to
10000
. The default value is1000
.- batch_
size int Specifies the maximum size of log events in a batch, in bytes, up to
1048576
bytes. The default value is32768
bytes.- buffer_
duration int Specifies the time duration for the batching of log events. The minimum value is
5000
and default value is5000
.- datetime_
format str Specifies how the timestamp is extracted from logs. For more information, see the CloudWatch Logs Agent Reference (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AgentReference.html).
- encoding str
Specifies the encoding of the log file so that the file can be read correctly. The default is
utf_8
.- file_
fingerprint_ strlines Specifies the range of lines for identifying a file. The valid values are one number, or two dash-delimited numbers, such as
1
,2-5
. The default value is1
.- initial_
position str Specifies where to start to read data (
start_of_file
orend_of_file
). The default isstart_of_file
.- multiline_
start_ strpattern Specifies the pattern for identifying the start of a log message.
- time_
zone str Specifies the time zone of log event time stamps.
- file String
Specifies log files that you want to push to CloudWatch Logs. File can point to a specific file or multiple files (by using wild card characters such as /var/log/system.log*).
- log
Group StringName Specifies the destination log group. A log group is created automatically if it doesn't already exist.
- batch
Count Number Specifies the max number of log events in a batch, up to
10000
. The default value is1000
.- batch
Size Number Specifies the maximum size of log events in a batch, in bytes, up to
1048576
bytes. The default value is32768
bytes.- buffer
Duration Number Specifies the time duration for the batching of log events. The minimum value is
5000
and default value is5000
.- datetime
Format String Specifies how the timestamp is extracted from logs. For more information, see the CloudWatch Logs Agent Reference (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AgentReference.html).
- encoding String
Specifies the encoding of the log file so that the file can be read correctly. The default is
utf_8
.- file
Fingerprint StringLines Specifies the range of lines for identifying a file. The valid values are one number, or two dash-delimited numbers, such as
1
,2-5
. The default value is1
.- initial
Position String Specifies where to start to read data (
start_of_file
orend_of_file
). The default isstart_of_file
.- multiline
Start StringPattern Specifies the pattern for identifying the start of a log message.
- time
Zone String Specifies the time zone of log event time stamps.
CustomLayerEbsVolume, CustomLayerEbsVolumeArgs
- 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
Encrypt the volume.
- 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),io1
orgp2
.
- 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
Encrypt the volume.
- 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),io1
orgp2
.
- mount
Point String The path to mount the EBS volume on the layer's instances.
- number
Of IntegerDisks The number of disks to use for the EBS volume.
- size Integer
The size of the volume in gigabytes.
- encrypted Boolean
Encrypt the volume.
- iops Integer
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),io1
orgp2
.
- 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
Encrypt the volume.
- 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),io1
orgp2
.
- mount_
point str 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
Encrypt the volume.
- iops int
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),io1
orgp2
.
- 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
Encrypt the volume.
- 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),io1
orgp2
.
CustomLayerLoadBasedAutoScaling, CustomLayerLoadBasedAutoScalingArgs
- Downscaling
Custom
Layer Load Based Auto Scaling Downscaling The downscaling settings, as defined below, used for load-based autoscaling
- Enable bool
Whether load-based auto scaling is enabled for the layer.
- Upscaling
Custom
Layer Load Based Auto Scaling Upscaling The upscaling settings, as defined below, used for load-based autoscaling
- Downscaling
Custom
Layer Load Based Auto Scaling Downscaling The downscaling settings, as defined below, used for load-based autoscaling
- Enable bool
Whether load-based auto scaling is enabled for the layer.
- Upscaling
Custom
Layer Load Based Auto Scaling Upscaling The upscaling settings, as defined below, used for load-based autoscaling
- downscaling
Custom
Layer Load Based Auto Scaling Downscaling The downscaling settings, as defined below, used for load-based autoscaling
- enable Boolean
Whether load-based auto scaling is enabled for the layer.
- upscaling
Custom
Layer Load Based Auto Scaling Upscaling The upscaling settings, as defined below, used for load-based autoscaling
- downscaling
Custom
Layer Load Based Auto Scaling Downscaling The downscaling settings, as defined below, used for load-based autoscaling
- enable boolean
Whether load-based auto scaling is enabled for the layer.
- upscaling
Custom
Layer Load Based Auto Scaling Upscaling The upscaling settings, as defined below, used for load-based autoscaling
- downscaling
Custom
Layer Load Based Auto Scaling Downscaling The downscaling settings, as defined below, used for load-based autoscaling
- enable bool
Whether load-based auto scaling is enabled for the layer.
- upscaling
Custom
Layer Load Based Auto Scaling Upscaling The upscaling settings, as defined below, used for load-based autoscaling
- downscaling Property Map
The downscaling settings, as defined below, used for load-based autoscaling
- enable Boolean
Whether load-based auto scaling is enabled for the layer.
- upscaling Property Map
The upscaling settings, as defined below, used for load-based autoscaling
CustomLayerLoadBasedAutoScalingDownscaling, CustomLayerLoadBasedAutoScalingDownscalingArgs
- Alarms List<string>
Custom Cloudwatch auto scaling alarms, to be used as thresholds. This parameter takes a list of up to five alarm names, which are case sensitive and must be in the same region as the stack.
- Cpu
Threshold double The CPU utilization threshold, as a percent of the available CPU. A value of -1 disables the threshold.
- Ignore
Metrics intTime The amount of time (in minutes) after a scaling event occurs that AWS OpsWorks Stacks should ignore metrics and suppress additional scaling events.
- Instance
Count int The number of instances to add or remove when the load exceeds a threshold.
- Load
Threshold double The load threshold. A value of -1 disables the threshold.
- Memory
Threshold double The memory utilization threshold, as a percent of the available memory. A value of -1 disables the threshold.
- Thresholds
Wait intTime The amount of time, in minutes, that the load must exceed a threshold before more instances are added or removed.
- Alarms []string
Custom Cloudwatch auto scaling alarms, to be used as thresholds. This parameter takes a list of up to five alarm names, which are case sensitive and must be in the same region as the stack.
- Cpu
Threshold float64 The CPU utilization threshold, as a percent of the available CPU. A value of -1 disables the threshold.
- Ignore
Metrics intTime The amount of time (in minutes) after a scaling event occurs that AWS OpsWorks Stacks should ignore metrics and suppress additional scaling events.
- Instance
Count int The number of instances to add or remove when the load exceeds a threshold.
- Load
Threshold float64 The load threshold. A value of -1 disables the threshold.
- Memory
Threshold float64 The memory utilization threshold, as a percent of the available memory. A value of -1 disables the threshold.
- Thresholds
Wait intTime The amount of time, in minutes, that the load must exceed a threshold before more instances are added or removed.
- alarms List<String>
Custom Cloudwatch auto scaling alarms, to be used as thresholds. This parameter takes a list of up to five alarm names, which are case sensitive and must be in the same region as the stack.
- cpu
Threshold Double The CPU utilization threshold, as a percent of the available CPU. A value of -1 disables the threshold.
- ignore
Metrics IntegerTime The amount of time (in minutes) after a scaling event occurs that AWS OpsWorks Stacks should ignore metrics and suppress additional scaling events.
- instance
Count Integer The number of instances to add or remove when the load exceeds a threshold.
- load
Threshold Double The load threshold. A value of -1 disables the threshold.
- memory
Threshold Double The memory utilization threshold, as a percent of the available memory. A value of -1 disables the threshold.
- thresholds
Wait IntegerTime The amount of time, in minutes, that the load must exceed a threshold before more instances are added or removed.
- alarms string[]
Custom Cloudwatch auto scaling alarms, to be used as thresholds. This parameter takes a list of up to five alarm names, which are case sensitive and must be in the same region as the stack.
- cpu
Threshold number The CPU utilization threshold, as a percent of the available CPU. A value of -1 disables the threshold.
- ignore
Metrics numberTime The amount of time (in minutes) after a scaling event occurs that AWS OpsWorks Stacks should ignore metrics and suppress additional scaling events.
- instance
Count number The number of instances to add or remove when the load exceeds a threshold.
- load
Threshold number The load threshold. A value of -1 disables the threshold.
- memory
Threshold number The memory utilization threshold, as a percent of the available memory. A value of -1 disables the threshold.
- thresholds
Wait numberTime The amount of time, in minutes, that the load must exceed a threshold before more instances are added or removed.
- alarms Sequence[str]
Custom Cloudwatch auto scaling alarms, to be used as thresholds. This parameter takes a list of up to five alarm names, which are case sensitive and must be in the same region as the stack.
- cpu_
threshold float The CPU utilization threshold, as a percent of the available CPU. A value of -1 disables the threshold.
- ignore_
metrics_ inttime The amount of time (in minutes) after a scaling event occurs that AWS OpsWorks Stacks should ignore metrics and suppress additional scaling events.
- instance_
count int The number of instances to add or remove when the load exceeds a threshold.
- load_
threshold float The load threshold. A value of -1 disables the threshold.
- memory_
threshold float The memory utilization threshold, as a percent of the available memory. A value of -1 disables the threshold.
- thresholds_
wait_ inttime The amount of time, in minutes, that the load must exceed a threshold before more instances are added or removed.
- alarms List<String>
Custom Cloudwatch auto scaling alarms, to be used as thresholds. This parameter takes a list of up to five alarm names, which are case sensitive and must be in the same region as the stack.
- cpu
Threshold Number The CPU utilization threshold, as a percent of the available CPU. A value of -1 disables the threshold.
- ignore
Metrics NumberTime The amount of time (in minutes) after a scaling event occurs that AWS OpsWorks Stacks should ignore metrics and suppress additional scaling events.
- instance
Count Number The number of instances to add or remove when the load exceeds a threshold.
- load
Threshold Number The load threshold. A value of -1 disables the threshold.
- memory
Threshold Number The memory utilization threshold, as a percent of the available memory. A value of -1 disables the threshold.
- thresholds
Wait NumberTime The amount of time, in minutes, that the load must exceed a threshold before more instances are added or removed.
CustomLayerLoadBasedAutoScalingUpscaling, CustomLayerLoadBasedAutoScalingUpscalingArgs
- Alarms List<string>
Custom Cloudwatch auto scaling alarms, to be used as thresholds. This parameter takes a list of up to five alarm names, which are case sensitive and must be in the same region as the stack.
- Cpu
Threshold double The CPU utilization threshold, as a percent of the available CPU. A value of -1 disables the threshold.
- Ignore
Metrics intTime The amount of time (in minutes) after a scaling event occurs that AWS OpsWorks Stacks should ignore metrics and suppress additional scaling events.
- Instance
Count int The number of instances to add or remove when the load exceeds a threshold.
- Load
Threshold double The load threshold. A value of -1 disables the threshold.
- Memory
Threshold double The memory utilization threshold, as a percent of the available memory. A value of -1 disables the threshold.
- Thresholds
Wait intTime The amount of time, in minutes, that the load must exceed a threshold before more instances are added or removed.
- Alarms []string
Custom Cloudwatch auto scaling alarms, to be used as thresholds. This parameter takes a list of up to five alarm names, which are case sensitive and must be in the same region as the stack.
- Cpu
Threshold float64 The CPU utilization threshold, as a percent of the available CPU. A value of -1 disables the threshold.
- Ignore
Metrics intTime The amount of time (in minutes) after a scaling event occurs that AWS OpsWorks Stacks should ignore metrics and suppress additional scaling events.
- Instance
Count int The number of instances to add or remove when the load exceeds a threshold.
- Load
Threshold float64 The load threshold. A value of -1 disables the threshold.
- Memory
Threshold float64 The memory utilization threshold, as a percent of the available memory. A value of -1 disables the threshold.
- Thresholds
Wait intTime The amount of time, in minutes, that the load must exceed a threshold before more instances are added or removed.
- alarms List<String>
Custom Cloudwatch auto scaling alarms, to be used as thresholds. This parameter takes a list of up to five alarm names, which are case sensitive and must be in the same region as the stack.
- cpu
Threshold Double The CPU utilization threshold, as a percent of the available CPU. A value of -1 disables the threshold.
- ignore
Metrics IntegerTime The amount of time (in minutes) after a scaling event occurs that AWS OpsWorks Stacks should ignore metrics and suppress additional scaling events.
- instance
Count Integer The number of instances to add or remove when the load exceeds a threshold.
- load
Threshold Double The load threshold. A value of -1 disables the threshold.
- memory
Threshold Double The memory utilization threshold, as a percent of the available memory. A value of -1 disables the threshold.
- thresholds
Wait IntegerTime The amount of time, in minutes, that the load must exceed a threshold before more instances are added or removed.
- alarms string[]
Custom Cloudwatch auto scaling alarms, to be used as thresholds. This parameter takes a list of up to five alarm names, which are case sensitive and must be in the same region as the stack.
- cpu
Threshold number The CPU utilization threshold, as a percent of the available CPU. A value of -1 disables the threshold.
- ignore
Metrics numberTime The amount of time (in minutes) after a scaling event occurs that AWS OpsWorks Stacks should ignore metrics and suppress additional scaling events.
- instance
Count number The number of instances to add or remove when the load exceeds a threshold.
- load
Threshold number The load threshold. A value of -1 disables the threshold.
- memory
Threshold number The memory utilization threshold, as a percent of the available memory. A value of -1 disables the threshold.
- thresholds
Wait numberTime The amount of time, in minutes, that the load must exceed a threshold before more instances are added or removed.
- alarms Sequence[str]
Custom Cloudwatch auto scaling alarms, to be used as thresholds. This parameter takes a list of up to five alarm names, which are case sensitive and must be in the same region as the stack.
- cpu_
threshold float The CPU utilization threshold, as a percent of the available CPU. A value of -1 disables the threshold.
- ignore_
metrics_ inttime The amount of time (in minutes) after a scaling event occurs that AWS OpsWorks Stacks should ignore metrics and suppress additional scaling events.
- instance_
count int The number of instances to add or remove when the load exceeds a threshold.
- load_
threshold float The load threshold. A value of -1 disables the threshold.
- memory_
threshold float The memory utilization threshold, as a percent of the available memory. A value of -1 disables the threshold.
- thresholds_
wait_ inttime The amount of time, in minutes, that the load must exceed a threshold before more instances are added or removed.
- alarms List<String>
Custom Cloudwatch auto scaling alarms, to be used as thresholds. This parameter takes a list of up to five alarm names, which are case sensitive and must be in the same region as the stack.
- cpu
Threshold Number The CPU utilization threshold, as a percent of the available CPU. A value of -1 disables the threshold.
- ignore
Metrics NumberTime The amount of time (in minutes) after a scaling event occurs that AWS OpsWorks Stacks should ignore metrics and suppress additional scaling events.
- instance
Count Number The number of instances to add or remove when the load exceeds a threshold.
- load
Threshold Number The load threshold. A value of -1 disables the threshold.
- memory
Threshold Number The memory utilization threshold, as a percent of the available memory. A value of -1 disables the threshold.
- thresholds
Wait NumberTime The amount of time, in minutes, that the load must exceed a threshold before more instances are added or removed.
Import
Using pulumi import
, import OpsWorks Custom Layers using the id
. For example:
$ pulumi import aws:opsworks/customLayer:CustomLayer bar 00000000-0000-0000-0000-000000000000
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
aws
Terraform Provider.
Try AWS Native preview for resources not in the classic version.