aws.opsworks.MysqlLayer
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const db = new aws.opsworks.MysqlLayer("db", {stackId: main.id});
import pulumi
import pulumi_aws as aws
db = aws.opsworks.MysqlLayer("db", stack_id=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.NewMysqlLayer(ctx, "db", &opsworks.MysqlLayerArgs{
			StackId: pulumi.Any(main.Id),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() => 
{
    var db = new Aws.OpsWorks.MysqlLayer("db", new()
    {
        StackId = main.Id,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.opsworks.MysqlLayer;
import com.pulumi.aws.opsworks.MysqlLayerArgs;
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 db = new MysqlLayer("db", MysqlLayerArgs.builder()
            .stackId(main.id())
            .build());
    }
}
resources:
  db:
    type: aws:opsworks:MysqlLayer
    properties:
      stackId: ${main.id}
Create MysqlLayer Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MysqlLayer(name: string, args: MysqlLayerArgs, opts?: CustomResourceOptions);@overload
def MysqlLayer(resource_name: str,
               args: MysqlLayerArgs,
               opts: Optional[ResourceOptions] = None)
@overload
def MysqlLayer(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               stack_id: Optional[str] = None,
               drain_elb_on_shutdown: Optional[bool] = None,
               system_packages: Optional[Sequence[str]] = None,
               cloudwatch_configuration: Optional[MysqlLayerCloudwatchConfigurationArgs] = 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,
               use_ebs_optimized_instances: Optional[bool] = None,
               auto_healing: Optional[bool] = None,
               install_updates_on_boot: Optional[bool] = None,
               elastic_load_balancer: Optional[str] = None,
               ebs_volumes: Optional[Sequence[MysqlLayerEbsVolumeArgs]] = None,
               instance_shutdown_timeout: Optional[int] = None,
               load_based_auto_scaling: Optional[MysqlLayerLoadBasedAutoScalingArgs] = None,
               name: Optional[str] = None,
               root_password: Optional[str] = None,
               root_password_on_all_instances: Optional[bool] = None,
               auto_assign_public_ips: Optional[bool] = None,
               auto_assign_elastic_ips: Optional[bool] = None,
               tags: Optional[Mapping[str, str]] = None,
               custom_undeploy_recipes: Optional[Sequence[str]] = None)func NewMysqlLayer(ctx *Context, name string, args MysqlLayerArgs, opts ...ResourceOption) (*MysqlLayer, error)public MysqlLayer(string name, MysqlLayerArgs args, CustomResourceOptions? opts = null)
public MysqlLayer(String name, MysqlLayerArgs args)
public MysqlLayer(String name, MysqlLayerArgs args, CustomResourceOptions options)
type: aws:opsworks:MysqlLayer
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args MysqlLayerArgs
- 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 MysqlLayerArgs
- 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 MysqlLayerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MysqlLayerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MysqlLayerArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var mysqlLayerResource = new Aws.OpsWorks.MysqlLayer("mysqlLayerResource", new()
{
    StackId = "string",
    DrainElbOnShutdown = false,
    SystemPackages = new[]
    {
        "string",
    },
    CloudwatchConfiguration = new Aws.OpsWorks.Inputs.MysqlLayerCloudwatchConfigurationArgs
    {
        Enabled = false,
        LogStreams = new[]
        {
            new Aws.OpsWorks.Inputs.MysqlLayerCloudwatchConfigurationLogStreamArgs
            {
                File = "string",
                LogGroupName = "string",
                BatchCount = 0,
                BatchSize = 0,
                BufferDuration = 0,
                DatetimeFormat = "string",
                Encoding = "string",
                FileFingerprintLines = "string",
                InitialPosition = "string",
                MultilineStartPattern = "string",
                TimeZone = "string",
            },
        },
    },
    CustomConfigureRecipes = new[]
    {
        "string",
    },
    CustomDeployRecipes = new[]
    {
        "string",
    },
    CustomInstanceProfileArn = "string",
    CustomJson = "string",
    CustomSecurityGroupIds = new[]
    {
        "string",
    },
    CustomSetupRecipes = new[]
    {
        "string",
    },
    CustomShutdownRecipes = new[]
    {
        "string",
    },
    UseEbsOptimizedInstances = false,
    AutoHealing = false,
    InstallUpdatesOnBoot = false,
    ElasticLoadBalancer = "string",
    EbsVolumes = new[]
    {
        new Aws.OpsWorks.Inputs.MysqlLayerEbsVolumeArgs
        {
            MountPoint = "string",
            NumberOfDisks = 0,
            Size = 0,
            Encrypted = false,
            Iops = 0,
            RaidLevel = "string",
            Type = "string",
        },
    },
    InstanceShutdownTimeout = 0,
    LoadBasedAutoScaling = new Aws.OpsWorks.Inputs.MysqlLayerLoadBasedAutoScalingArgs
    {
        Downscaling = new Aws.OpsWorks.Inputs.MysqlLayerLoadBasedAutoScalingDownscalingArgs
        {
            Alarms = new[]
            {
                "string",
            },
            CpuThreshold = 0,
            IgnoreMetricsTime = 0,
            InstanceCount = 0,
            LoadThreshold = 0,
            MemoryThreshold = 0,
            ThresholdsWaitTime = 0,
        },
        Enable = false,
        Upscaling = new Aws.OpsWorks.Inputs.MysqlLayerLoadBasedAutoScalingUpscalingArgs
        {
            Alarms = new[]
            {
                "string",
            },
            CpuThreshold = 0,
            IgnoreMetricsTime = 0,
            InstanceCount = 0,
            LoadThreshold = 0,
            MemoryThreshold = 0,
            ThresholdsWaitTime = 0,
        },
    },
    Name = "string",
    RootPassword = "string",
    RootPasswordOnAllInstances = false,
    AutoAssignPublicIps = false,
    AutoAssignElasticIps = false,
    Tags = 
    {
        { "string", "string" },
    },
    CustomUndeployRecipes = new[]
    {
        "string",
    },
});
example, err := opsworks.NewMysqlLayer(ctx, "mysqlLayerResource", &opsworks.MysqlLayerArgs{
	StackId:            pulumi.String("string"),
	DrainElbOnShutdown: pulumi.Bool(false),
	SystemPackages: pulumi.StringArray{
		pulumi.String("string"),
	},
	CloudwatchConfiguration: &opsworks.MysqlLayerCloudwatchConfigurationArgs{
		Enabled: pulumi.Bool(false),
		LogStreams: opsworks.MysqlLayerCloudwatchConfigurationLogStreamArray{
			&opsworks.MysqlLayerCloudwatchConfigurationLogStreamArgs{
				File:                  pulumi.String("string"),
				LogGroupName:          pulumi.String("string"),
				BatchCount:            pulumi.Int(0),
				BatchSize:             pulumi.Int(0),
				BufferDuration:        pulumi.Int(0),
				DatetimeFormat:        pulumi.String("string"),
				Encoding:              pulumi.String("string"),
				FileFingerprintLines:  pulumi.String("string"),
				InitialPosition:       pulumi.String("string"),
				MultilineStartPattern: pulumi.String("string"),
				TimeZone:              pulumi.String("string"),
			},
		},
	},
	CustomConfigureRecipes: pulumi.StringArray{
		pulumi.String("string"),
	},
	CustomDeployRecipes: pulumi.StringArray{
		pulumi.String("string"),
	},
	CustomInstanceProfileArn: pulumi.String("string"),
	CustomJson:               pulumi.String("string"),
	CustomSecurityGroupIds: pulumi.StringArray{
		pulumi.String("string"),
	},
	CustomSetupRecipes: pulumi.StringArray{
		pulumi.String("string"),
	},
	CustomShutdownRecipes: pulumi.StringArray{
		pulumi.String("string"),
	},
	UseEbsOptimizedInstances: pulumi.Bool(false),
	AutoHealing:              pulumi.Bool(false),
	InstallUpdatesOnBoot:     pulumi.Bool(false),
	ElasticLoadBalancer:      pulumi.String("string"),
	EbsVolumes: opsworks.MysqlLayerEbsVolumeArray{
		&opsworks.MysqlLayerEbsVolumeArgs{
			MountPoint:    pulumi.String("string"),
			NumberOfDisks: pulumi.Int(0),
			Size:          pulumi.Int(0),
			Encrypted:     pulumi.Bool(false),
			Iops:          pulumi.Int(0),
			RaidLevel:     pulumi.String("string"),
			Type:          pulumi.String("string"),
		},
	},
	InstanceShutdownTimeout: pulumi.Int(0),
	LoadBasedAutoScaling: &opsworks.MysqlLayerLoadBasedAutoScalingArgs{
		Downscaling: &opsworks.MysqlLayerLoadBasedAutoScalingDownscalingArgs{
			Alarms: pulumi.StringArray{
				pulumi.String("string"),
			},
			CpuThreshold:       pulumi.Float64(0),
			IgnoreMetricsTime:  pulumi.Int(0),
			InstanceCount:      pulumi.Int(0),
			LoadThreshold:      pulumi.Float64(0),
			MemoryThreshold:    pulumi.Float64(0),
			ThresholdsWaitTime: pulumi.Int(0),
		},
		Enable: pulumi.Bool(false),
		Upscaling: &opsworks.MysqlLayerLoadBasedAutoScalingUpscalingArgs{
			Alarms: pulumi.StringArray{
				pulumi.String("string"),
			},
			CpuThreshold:       pulumi.Float64(0),
			IgnoreMetricsTime:  pulumi.Int(0),
			InstanceCount:      pulumi.Int(0),
			LoadThreshold:      pulumi.Float64(0),
			MemoryThreshold:    pulumi.Float64(0),
			ThresholdsWaitTime: pulumi.Int(0),
		},
	},
	Name:                       pulumi.String("string"),
	RootPassword:               pulumi.String("string"),
	RootPasswordOnAllInstances: pulumi.Bool(false),
	AutoAssignPublicIps:        pulumi.Bool(false),
	AutoAssignElasticIps:       pulumi.Bool(false),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	CustomUndeployRecipes: pulumi.StringArray{
		pulumi.String("string"),
	},
})
var mysqlLayerResource = new MysqlLayer("mysqlLayerResource", MysqlLayerArgs.builder()
    .stackId("string")
    .drainElbOnShutdown(false)
    .systemPackages("string")
    .cloudwatchConfiguration(MysqlLayerCloudwatchConfigurationArgs.builder()
        .enabled(false)
        .logStreams(MysqlLayerCloudwatchConfigurationLogStreamArgs.builder()
            .file("string")
            .logGroupName("string")
            .batchCount(0)
            .batchSize(0)
            .bufferDuration(0)
            .datetimeFormat("string")
            .encoding("string")
            .fileFingerprintLines("string")
            .initialPosition("string")
            .multilineStartPattern("string")
            .timeZone("string")
            .build())
        .build())
    .customConfigureRecipes("string")
    .customDeployRecipes("string")
    .customInstanceProfileArn("string")
    .customJson("string")
    .customSecurityGroupIds("string")
    .customSetupRecipes("string")
    .customShutdownRecipes("string")
    .useEbsOptimizedInstances(false)
    .autoHealing(false)
    .installUpdatesOnBoot(false)
    .elasticLoadBalancer("string")
    .ebsVolumes(MysqlLayerEbsVolumeArgs.builder()
        .mountPoint("string")
        .numberOfDisks(0)
        .size(0)
        .encrypted(false)
        .iops(0)
        .raidLevel("string")
        .type("string")
        .build())
    .instanceShutdownTimeout(0)
    .loadBasedAutoScaling(MysqlLayerLoadBasedAutoScalingArgs.builder()
        .downscaling(MysqlLayerLoadBasedAutoScalingDownscalingArgs.builder()
            .alarms("string")
            .cpuThreshold(0)
            .ignoreMetricsTime(0)
            .instanceCount(0)
            .loadThreshold(0)
            .memoryThreshold(0)
            .thresholdsWaitTime(0)
            .build())
        .enable(false)
        .upscaling(MysqlLayerLoadBasedAutoScalingUpscalingArgs.builder()
            .alarms("string")
            .cpuThreshold(0)
            .ignoreMetricsTime(0)
            .instanceCount(0)
            .loadThreshold(0)
            .memoryThreshold(0)
            .thresholdsWaitTime(0)
            .build())
        .build())
    .name("string")
    .rootPassword("string")
    .rootPasswordOnAllInstances(false)
    .autoAssignPublicIps(false)
    .autoAssignElasticIps(false)
    .tags(Map.of("string", "string"))
    .customUndeployRecipes("string")
    .build());
mysql_layer_resource = aws.opsworks.MysqlLayer("mysqlLayerResource",
    stack_id="string",
    drain_elb_on_shutdown=False,
    system_packages=["string"],
    cloudwatch_configuration={
        "enabled": False,
        "log_streams": [{
            "file": "string",
            "log_group_name": "string",
            "batch_count": 0,
            "batch_size": 0,
            "buffer_duration": 0,
            "datetime_format": "string",
            "encoding": "string",
            "file_fingerprint_lines": "string",
            "initial_position": "string",
            "multiline_start_pattern": "string",
            "time_zone": "string",
        }],
    },
    custom_configure_recipes=["string"],
    custom_deploy_recipes=["string"],
    custom_instance_profile_arn="string",
    custom_json="string",
    custom_security_group_ids=["string"],
    custom_setup_recipes=["string"],
    custom_shutdown_recipes=["string"],
    use_ebs_optimized_instances=False,
    auto_healing=False,
    install_updates_on_boot=False,
    elastic_load_balancer="string",
    ebs_volumes=[{
        "mount_point": "string",
        "number_of_disks": 0,
        "size": 0,
        "encrypted": False,
        "iops": 0,
        "raid_level": "string",
        "type": "string",
    }],
    instance_shutdown_timeout=0,
    load_based_auto_scaling={
        "downscaling": {
            "alarms": ["string"],
            "cpu_threshold": 0,
            "ignore_metrics_time": 0,
            "instance_count": 0,
            "load_threshold": 0,
            "memory_threshold": 0,
            "thresholds_wait_time": 0,
        },
        "enable": False,
        "upscaling": {
            "alarms": ["string"],
            "cpu_threshold": 0,
            "ignore_metrics_time": 0,
            "instance_count": 0,
            "load_threshold": 0,
            "memory_threshold": 0,
            "thresholds_wait_time": 0,
        },
    },
    name="string",
    root_password="string",
    root_password_on_all_instances=False,
    auto_assign_public_ips=False,
    auto_assign_elastic_ips=False,
    tags={
        "string": "string",
    },
    custom_undeploy_recipes=["string"])
const mysqlLayerResource = new aws.opsworks.MysqlLayer("mysqlLayerResource", {
    stackId: "string",
    drainElbOnShutdown: false,
    systemPackages: ["string"],
    cloudwatchConfiguration: {
        enabled: false,
        logStreams: [{
            file: "string",
            logGroupName: "string",
            batchCount: 0,
            batchSize: 0,
            bufferDuration: 0,
            datetimeFormat: "string",
            encoding: "string",
            fileFingerprintLines: "string",
            initialPosition: "string",
            multilineStartPattern: "string",
            timeZone: "string",
        }],
    },
    customConfigureRecipes: ["string"],
    customDeployRecipes: ["string"],
    customInstanceProfileArn: "string",
    customJson: "string",
    customSecurityGroupIds: ["string"],
    customSetupRecipes: ["string"],
    customShutdownRecipes: ["string"],
    useEbsOptimizedInstances: false,
    autoHealing: false,
    installUpdatesOnBoot: false,
    elasticLoadBalancer: "string",
    ebsVolumes: [{
        mountPoint: "string",
        numberOfDisks: 0,
        size: 0,
        encrypted: false,
        iops: 0,
        raidLevel: "string",
        type: "string",
    }],
    instanceShutdownTimeout: 0,
    loadBasedAutoScaling: {
        downscaling: {
            alarms: ["string"],
            cpuThreshold: 0,
            ignoreMetricsTime: 0,
            instanceCount: 0,
            loadThreshold: 0,
            memoryThreshold: 0,
            thresholdsWaitTime: 0,
        },
        enable: false,
        upscaling: {
            alarms: ["string"],
            cpuThreshold: 0,
            ignoreMetricsTime: 0,
            instanceCount: 0,
            loadThreshold: 0,
            memoryThreshold: 0,
            thresholdsWaitTime: 0,
        },
    },
    name: "string",
    rootPassword: "string",
    rootPasswordOnAllInstances: false,
    autoAssignPublicIps: false,
    autoAssignElasticIps: false,
    tags: {
        string: "string",
    },
    customUndeployRecipes: ["string"],
});
type: aws:opsworks:MysqlLayer
properties:
    autoAssignElasticIps: false
    autoAssignPublicIps: false
    autoHealing: false
    cloudwatchConfiguration:
        enabled: false
        logStreams:
            - batchCount: 0
              batchSize: 0
              bufferDuration: 0
              datetimeFormat: string
              encoding: string
              file: string
              fileFingerprintLines: string
              initialPosition: string
              logGroupName: string
              multilineStartPattern: string
              timeZone: string
    customConfigureRecipes:
        - string
    customDeployRecipes:
        - string
    customInstanceProfileArn: string
    customJson: string
    customSecurityGroupIds:
        - string
    customSetupRecipes:
        - string
    customShutdownRecipes:
        - string
    customUndeployRecipes:
        - string
    drainElbOnShutdown: false
    ebsVolumes:
        - encrypted: false
          iops: 0
          mountPoint: string
          numberOfDisks: 0
          raidLevel: string
          size: 0
          type: string
    elasticLoadBalancer: string
    installUpdatesOnBoot: false
    instanceShutdownTimeout: 0
    loadBasedAutoScaling:
        downscaling:
            alarms:
                - string
            cpuThreshold: 0
            ignoreMetricsTime: 0
            instanceCount: 0
            loadThreshold: 0
            memoryThreshold: 0
            thresholdsWaitTime: 0
        enable: false
        upscaling:
            alarms:
                - string
            cpuThreshold: 0
            ignoreMetricsTime: 0
            instanceCount: 0
            loadThreshold: 0
            memoryThreshold: 0
            thresholdsWaitTime: 0
    name: string
    rootPassword: string
    rootPasswordOnAllInstances: false
    stackId: string
    systemPackages:
        - string
    tags:
        string: string
    useEbsOptimizedInstances: false
MysqlLayer Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The MysqlLayer resource accepts the following input properties:
- StackId string
- ID of the stack the layer will belong to.
- AutoAssign boolElastic Ips 
- Whether to automatically assign an elastic IP address to the layer's instances.
- AutoAssign boolPublic Ips 
- For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances.
- AutoHealing bool
- Whether to enable auto-healing for the layer.
- CloudwatchConfiguration MysqlLayer Cloudwatch Configuration 
- CustomConfigure List<string>Recipes 
- CustomDeploy List<string>Recipes 
- CustomInstance stringProfile Arn 
- The ARN of an IAM profile that will be used for the layer's instances.
- CustomJson string
- Custom JSON attributes to apply to the layer.
- CustomSecurity List<string>Group Ids 
- Ids for a set of security groups to apply to the layer's instances.
- CustomSetup List<string>Recipes 
- CustomShutdown List<string>Recipes 
- CustomUndeploy List<string>Recipes 
- DrainElb boolOn Shutdown 
- Whether to enable Elastic Load Balancing connection draining.
- EbsVolumes List<MysqlLayer Ebs Volume> 
- ebs_volumeblocks, as described below, will each create an EBS volume and connect it to the layer's instances.
- ElasticLoad stringBalancer 
- Name of an Elastic Load Balancer to attach to this layer
- InstallUpdates boolOn Boot 
- Whether to install OS and package updates on each instance when it boots.
- InstanceShutdown intTimeout 
- The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
- LoadBased MysqlAuto Scaling Layer Load Based Auto Scaling 
- Name string
- A human-readable name for the layer.
- RootPassword string
- Root password to use for MySQL.
- RootPassword boolOn All Instances 
- Whether to set the root user password to all instances in the stack so they can access the instances in this layer.
- SystemPackages 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_tagsconfiguration 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: 
- UseEbs boolOptimized Instances 
- Whether to use EBS-optimized instances.
- StackId string
- ID of the stack the layer will belong to.
- AutoAssign boolElastic Ips 
- Whether to automatically assign an elastic IP address to the layer's instances.
- AutoAssign boolPublic Ips 
- For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances.
- AutoHealing bool
- Whether to enable auto-healing for the layer.
- CloudwatchConfiguration MysqlLayer Cloudwatch Configuration Args 
- CustomConfigure []stringRecipes 
- CustomDeploy []stringRecipes 
- CustomInstance stringProfile Arn 
- The ARN of an IAM profile that will be used for the layer's instances.
- CustomJson string
- Custom JSON attributes to apply to the layer.
- CustomSecurity []stringGroup Ids 
- Ids for a set of security groups to apply to the layer's instances.
- CustomSetup []stringRecipes 
- CustomShutdown []stringRecipes 
- CustomUndeploy []stringRecipes 
- DrainElb boolOn Shutdown 
- Whether to enable Elastic Load Balancing connection draining.
- EbsVolumes []MysqlLayer Ebs Volume Args 
- ebs_volumeblocks, as described below, will each create an EBS volume and connect it to the layer's instances.
- ElasticLoad stringBalancer 
- Name of an Elastic Load Balancer to attach to this layer
- InstallUpdates boolOn Boot 
- Whether to install OS and package updates on each instance when it boots.
- InstanceShutdown intTimeout 
- The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
- LoadBased MysqlAuto Scaling Layer Load Based Auto Scaling Args 
- Name string
- A human-readable name for the layer.
- RootPassword string
- Root password to use for MySQL.
- RootPassword boolOn All Instances 
- Whether to set the root user password to all instances in the stack so they can access the instances in this layer.
- SystemPackages []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_tagsconfiguration 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: 
- UseEbs boolOptimized Instances 
- Whether to use EBS-optimized instances.
- stackId String
- ID of the stack the layer will belong to.
- autoAssign BooleanElastic Ips 
- Whether to automatically assign an elastic IP address to the layer's instances.
- autoAssign BooleanPublic Ips 
- For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances.
- autoHealing Boolean
- Whether to enable auto-healing for the layer.
- cloudwatchConfiguration MysqlLayer Cloudwatch Configuration 
- customConfigure List<String>Recipes 
- customDeploy List<String>Recipes 
- customInstance StringProfile Arn 
- The ARN of an IAM profile that will be used for the layer's instances.
- customJson String
- Custom JSON attributes to apply to the layer.
- customSecurity List<String>Group Ids 
- Ids for a set of security groups to apply to the layer's instances.
- customSetup List<String>Recipes 
- customShutdown List<String>Recipes 
- customUndeploy List<String>Recipes 
- drainElb BooleanOn Shutdown 
- Whether to enable Elastic Load Balancing connection draining.
- ebsVolumes List<MysqlLayer Ebs Volume> 
- ebs_volumeblocks, as described below, will each create an EBS volume and connect it to the layer's instances.
- elasticLoad StringBalancer 
- Name of an Elastic Load Balancer to attach to this layer
- installUpdates BooleanOn Boot 
- Whether to install OS and package updates on each instance when it boots.
- instanceShutdown IntegerTimeout 
- The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
- loadBased MysqlAuto Scaling Layer Load Based Auto Scaling 
- name String
- A human-readable name for the layer.
- rootPassword String
- Root password to use for MySQL.
- rootPassword BooleanOn All Instances 
- Whether to set the root user password to all instances in the stack so they can access the instances in this layer.
- systemPackages 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_tagsconfiguration 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: 
- useEbs BooleanOptimized Instances 
- Whether to use EBS-optimized instances.
- stackId string
- ID of the stack the layer will belong to.
- autoAssign booleanElastic Ips 
- Whether to automatically assign an elastic IP address to the layer's instances.
- autoAssign booleanPublic Ips 
- For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances.
- autoHealing boolean
- Whether to enable auto-healing for the layer.
- cloudwatchConfiguration MysqlLayer Cloudwatch Configuration 
- customConfigure string[]Recipes 
- customDeploy string[]Recipes 
- customInstance stringProfile Arn 
- The ARN of an IAM profile that will be used for the layer's instances.
- customJson string
- Custom JSON attributes to apply to the layer.
- customSecurity string[]Group Ids 
- Ids for a set of security groups to apply to the layer's instances.
- customSetup string[]Recipes 
- customShutdown string[]Recipes 
- customUndeploy string[]Recipes 
- drainElb booleanOn Shutdown 
- Whether to enable Elastic Load Balancing connection draining.
- ebsVolumes MysqlLayer Ebs Volume[] 
- ebs_volumeblocks, as described below, will each create an EBS volume and connect it to the layer's instances.
- elasticLoad stringBalancer 
- Name of an Elastic Load Balancer to attach to this layer
- installUpdates booleanOn Boot 
- Whether to install OS and package updates on each instance when it boots.
- instanceShutdown numberTimeout 
- The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
- loadBased MysqlAuto Scaling Layer Load Based Auto Scaling 
- name string
- A human-readable name for the layer.
- rootPassword string
- Root password to use for MySQL.
- rootPassword booleanOn All Instances 
- Whether to set the root user password to all instances in the stack so they can access the instances in this layer.
- systemPackages 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_tagsconfiguration 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: 
- useEbs booleanOptimized Instances 
- Whether to use EBS-optimized instances.
- 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 MysqlLayer Cloudwatch Configuration Args 
- 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[MysqlLayer Ebs Volume Args] 
- 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_ inttimeout 
- The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
- load_based_ Mysqlauto_ scaling Layer Load Based Auto Scaling Args 
- name str
- A human-readable name for the layer.
- root_password str
- Root password to use for MySQL.
- root_password_ boolon_ all_ instances 
- Whether to set the root user password to all instances in the stack so they can access the instances in this 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_tagsconfiguration 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.
- stackId String
- ID of the stack the layer will belong to.
- autoAssign BooleanElastic Ips 
- Whether to automatically assign an elastic IP address to the layer's instances.
- autoAssign BooleanPublic Ips 
- For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances.
- autoHealing Boolean
- Whether to enable auto-healing for the layer.
- cloudwatchConfiguration Property Map
- customConfigure List<String>Recipes 
- customDeploy List<String>Recipes 
- customInstance StringProfile Arn 
- The ARN of an IAM profile that will be used for the layer's instances.
- customJson String
- Custom JSON attributes to apply to the layer.
- customSecurity List<String>Group Ids 
- Ids for a set of security groups to apply to the layer's instances.
- customSetup List<String>Recipes 
- customShutdown List<String>Recipes 
- customUndeploy List<String>Recipes 
- drainElb BooleanOn Shutdown 
- Whether to enable Elastic Load Balancing connection draining.
- ebsVolumes List<Property Map>
- ebs_volumeblocks, as described below, will each create an EBS volume and connect it to the layer's instances.
- elasticLoad StringBalancer 
- Name of an Elastic Load Balancer to attach to this layer
- installUpdates BooleanOn Boot 
- Whether to install OS and package updates on each instance when it boots.
- instanceShutdown NumberTimeout 
- The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
- loadBased Property MapAuto Scaling 
- name String
- A human-readable name for the layer.
- rootPassword String
- Root password to use for MySQL.
- rootPassword BooleanOn All Instances 
- Whether to set the root user password to all instances in the stack so they can access the instances in this layer.
- systemPackages 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_tagsconfiguration 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: 
- useEbs BooleanOptimized Instances 
- Whether to use EBS-optimized instances.
Outputs
All input properties are implicitly available as output properties. Additionally, the MysqlLayer resource produces the following output properties:
Look up Existing MysqlLayer Resource
Get an existing MysqlLayer 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?: MysqlLayerState, opts?: CustomResourceOptions): MysqlLayer@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[MysqlLayerCloudwatchConfigurationArgs] = 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[MysqlLayerEbsVolumeArgs]] = 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[MysqlLayerLoadBasedAutoScalingArgs] = None,
        name: Optional[str] = None,
        root_password: Optional[str] = None,
        root_password_on_all_instances: Optional[bool] = 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) -> MysqlLayerfunc GetMysqlLayer(ctx *Context, name string, id IDInput, state *MysqlLayerState, opts ...ResourceOption) (*MysqlLayer, error)public static MysqlLayer Get(string name, Input<string> id, MysqlLayerState? state, CustomResourceOptions? opts = null)public static MysqlLayer get(String name, Output<String> id, MysqlLayerState state, CustomResourceOptions options)resources:  _:    type: aws:opsworks:MysqlLayer    get:      id: ${id}- 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.
- AutoAssign boolElastic Ips 
- Whether to automatically assign an elastic IP address to the layer's instances.
- AutoAssign boolPublic Ips 
- For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances.
- AutoHealing bool
- Whether to enable auto-healing for the layer.
- CloudwatchConfiguration MysqlLayer Cloudwatch Configuration 
- CustomConfigure List<string>Recipes 
- CustomDeploy List<string>Recipes 
- CustomInstance stringProfile Arn 
- The ARN of an IAM profile that will be used for the layer's instances.
- CustomJson string
- Custom JSON attributes to apply to the layer.
- CustomSecurity List<string>Group Ids 
- Ids for a set of security groups to apply to the layer's instances.
- CustomSetup List<string>Recipes 
- CustomShutdown List<string>Recipes 
- CustomUndeploy List<string>Recipes 
- DrainElb boolOn Shutdown 
- Whether to enable Elastic Load Balancing connection draining.
- EbsVolumes List<MysqlLayer Ebs Volume> 
- ebs_volumeblocks, as described below, will each create an EBS volume and connect it to the layer's instances.
- ElasticLoad stringBalancer 
- Name of an Elastic Load Balancer to attach to this layer
- InstallUpdates boolOn Boot 
- Whether to install OS and package updates on each instance when it boots.
- InstanceShutdown intTimeout 
- The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
- LoadBased MysqlAuto Scaling Layer Load Based Auto Scaling 
- Name string
- A human-readable name for the layer.
- RootPassword string
- Root password to use for MySQL.
- RootPassword boolOn All Instances 
- Whether to set the root user password to all instances in the stack so they can access the instances in this layer.
- StackId string
- ID of the stack the layer will belong to.
- SystemPackages 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_tagsconfiguration 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_tagsconfiguration block.
- UseEbs boolOptimized Instances 
- Whether to use EBS-optimized instances.
- Arn string
- The Amazon Resource Name(ARN) of the layer.
- AutoAssign boolElastic Ips 
- Whether to automatically assign an elastic IP address to the layer's instances.
- AutoAssign boolPublic Ips 
- For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances.
- AutoHealing bool
- Whether to enable auto-healing for the layer.
- CloudwatchConfiguration MysqlLayer Cloudwatch Configuration Args 
- CustomConfigure []stringRecipes 
- CustomDeploy []stringRecipes 
- CustomInstance stringProfile Arn 
- The ARN of an IAM profile that will be used for the layer's instances.
- CustomJson string
- Custom JSON attributes to apply to the layer.
- CustomSecurity []stringGroup Ids 
- Ids for a set of security groups to apply to the layer's instances.
- CustomSetup []stringRecipes 
- CustomShutdown []stringRecipes 
- CustomUndeploy []stringRecipes 
- DrainElb boolOn Shutdown 
- Whether to enable Elastic Load Balancing connection draining.
- EbsVolumes []MysqlLayer Ebs Volume Args 
- ebs_volumeblocks, as described below, will each create an EBS volume and connect it to the layer's instances.
- ElasticLoad stringBalancer 
- Name of an Elastic Load Balancer to attach to this layer
- InstallUpdates boolOn Boot 
- Whether to install OS and package updates on each instance when it boots.
- InstanceShutdown intTimeout 
- The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
- LoadBased MysqlAuto Scaling Layer Load Based Auto Scaling Args 
- Name string
- A human-readable name for the layer.
- RootPassword string
- Root password to use for MySQL.
- RootPassword boolOn All Instances 
- Whether to set the root user password to all instances in the stack so they can access the instances in this layer.
- StackId string
- ID of the stack the layer will belong to.
- SystemPackages []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_tagsconfiguration 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_tagsconfiguration block.
- UseEbs boolOptimized Instances 
- Whether to use EBS-optimized instances.
- arn String
- The Amazon Resource Name(ARN) of the layer.
- autoAssign BooleanElastic Ips 
- Whether to automatically assign an elastic IP address to the layer's instances.
- autoAssign BooleanPublic Ips 
- For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances.
- autoHealing Boolean
- Whether to enable auto-healing for the layer.
- cloudwatchConfiguration MysqlLayer Cloudwatch Configuration 
- customConfigure List<String>Recipes 
- customDeploy List<String>Recipes 
- customInstance StringProfile Arn 
- The ARN of an IAM profile that will be used for the layer's instances.
- customJson String
- Custom JSON attributes to apply to the layer.
- customSecurity List<String>Group Ids 
- Ids for a set of security groups to apply to the layer's instances.
- customSetup List<String>Recipes 
- customShutdown List<String>Recipes 
- customUndeploy List<String>Recipes 
- drainElb BooleanOn Shutdown 
- Whether to enable Elastic Load Balancing connection draining.
- ebsVolumes List<MysqlLayer Ebs Volume> 
- ebs_volumeblocks, as described below, will each create an EBS volume and connect it to the layer's instances.
- elasticLoad StringBalancer 
- Name of an Elastic Load Balancer to attach to this layer
- installUpdates BooleanOn Boot 
- Whether to install OS and package updates on each instance when it boots.
- instanceShutdown IntegerTimeout 
- The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
- loadBased MysqlAuto Scaling Layer Load Based Auto Scaling 
- name String
- A human-readable name for the layer.
- rootPassword String
- Root password to use for MySQL.
- rootPassword BooleanOn All Instances 
- Whether to set the root user password to all instances in the stack so they can access the instances in this layer.
- stackId String
- ID of the stack the layer will belong to.
- systemPackages 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_tagsconfiguration 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_tagsconfiguration block.
- useEbs BooleanOptimized Instances 
- Whether to use EBS-optimized instances.
- arn string
- The Amazon Resource Name(ARN) of the layer.
- autoAssign booleanElastic Ips 
- Whether to automatically assign an elastic IP address to the layer's instances.
- autoAssign booleanPublic Ips 
- For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances.
- autoHealing boolean
- Whether to enable auto-healing for the layer.
- cloudwatchConfiguration MysqlLayer Cloudwatch Configuration 
- customConfigure string[]Recipes 
- customDeploy string[]Recipes 
- customInstance stringProfile Arn 
- The ARN of an IAM profile that will be used for the layer's instances.
- customJson string
- Custom JSON attributes to apply to the layer.
- customSecurity string[]Group Ids 
- Ids for a set of security groups to apply to the layer's instances.
- customSetup string[]Recipes 
- customShutdown string[]Recipes 
- customUndeploy string[]Recipes 
- drainElb booleanOn Shutdown 
- Whether to enable Elastic Load Balancing connection draining.
- ebsVolumes MysqlLayer Ebs Volume[] 
- ebs_volumeblocks, as described below, will each create an EBS volume and connect it to the layer's instances.
- elasticLoad stringBalancer 
- Name of an Elastic Load Balancer to attach to this layer
- installUpdates booleanOn Boot 
- Whether to install OS and package updates on each instance when it boots.
- instanceShutdown numberTimeout 
- The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
- loadBased MysqlAuto Scaling Layer Load Based Auto Scaling 
- name string
- A human-readable name for the layer.
- rootPassword string
- Root password to use for MySQL.
- rootPassword booleanOn All Instances 
- Whether to set the root user password to all instances in the stack so they can access the instances in this layer.
- stackId string
- ID of the stack the layer will belong to.
- systemPackages 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_tagsconfiguration 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_tagsconfiguration block.
- useEbs 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 MysqlLayer Cloudwatch Configuration Args 
- 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[MysqlLayer Ebs Volume Args] 
- 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_ inttimeout 
- The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
- load_based_ Mysqlauto_ scaling Layer Load Based Auto Scaling Args 
- name str
- A human-readable name for the layer.
- root_password str
- Root password to use for MySQL.
- root_password_ boolon_ all_ instances 
- Whether to set the root user password to all instances in the stack so they can access the instances in this layer.
- 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_tagsconfiguration 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_tagsconfiguration block.
- use_ebs_ booloptimized_ instances 
- Whether to use EBS-optimized instances.
- arn String
- The Amazon Resource Name(ARN) of the layer.
- autoAssign BooleanElastic Ips 
- Whether to automatically assign an elastic IP address to the layer's instances.
- autoAssign BooleanPublic Ips 
- For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances.
- autoHealing Boolean
- Whether to enable auto-healing for the layer.
- cloudwatchConfiguration Property Map
- customConfigure List<String>Recipes 
- customDeploy List<String>Recipes 
- customInstance StringProfile Arn 
- The ARN of an IAM profile that will be used for the layer's instances.
- customJson String
- Custom JSON attributes to apply to the layer.
- customSecurity List<String>Group Ids 
- Ids for a set of security groups to apply to the layer's instances.
- customSetup List<String>Recipes 
- customShutdown List<String>Recipes 
- customUndeploy List<String>Recipes 
- drainElb BooleanOn Shutdown 
- Whether to enable Elastic Load Balancing connection draining.
- ebsVolumes List<Property Map>
- ebs_volumeblocks, as described below, will each create an EBS volume and connect it to the layer's instances.
- elasticLoad StringBalancer 
- Name of an Elastic Load Balancer to attach to this layer
- installUpdates BooleanOn Boot 
- Whether to install OS and package updates on each instance when it boots.
- instanceShutdown NumberTimeout 
- The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
- loadBased Property MapAuto Scaling 
- name String
- A human-readable name for the layer.
- rootPassword String
- Root password to use for MySQL.
- rootPassword BooleanOn All Instances 
- Whether to set the root user password to all instances in the stack so they can access the instances in this layer.
- stackId String
- ID of the stack the layer will belong to.
- systemPackages 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_tagsconfiguration 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_tagsconfiguration block.
- useEbs BooleanOptimized Instances 
- Whether to use EBS-optimized instances.
Supporting Types
MysqlLayerCloudwatchConfiguration, MysqlLayerCloudwatchConfigurationArgs        
- enabled Boolean
- logStreams List<Property Map>
MysqlLayerCloudwatchConfigurationLogStream, MysqlLayerCloudwatchConfigurationLogStreamArgs            
- File string
- LogGroup stringName 
- BatchCount int
- BatchSize int
- BufferDuration int
- DatetimeFormat string
- Encoding string
- FileFingerprint stringLines 
- InitialPosition string
- MultilineStart stringPattern 
- TimeZone string
- File string
- LogGroup stringName 
- BatchCount int
- BatchSize int
- BufferDuration int
- DatetimeFormat string
- Encoding string
- FileFingerprint stringLines 
- InitialPosition string
- MultilineStart stringPattern 
- TimeZone string
- file String
- logGroup StringName 
- batchCount Integer
- batchSize Integer
- bufferDuration Integer
- datetimeFormat String
- encoding String
- fileFingerprint StringLines 
- initialPosition String
- multilineStart StringPattern 
- timeZone String
- file string
- logGroup stringName 
- batchCount number
- batchSize number
- bufferDuration number
- datetimeFormat string
- encoding string
- fileFingerprint stringLines 
- initialPosition string
- multilineStart stringPattern 
- timeZone string
- file str
- log_group_ strname 
- batch_count int
- batch_size int
- buffer_duration int
- datetime_format str
- encoding str
- file_fingerprint_ strlines 
- initial_position str
- multiline_start_ strpattern 
- time_zone str
- file String
- logGroup StringName 
- batchCount Number
- batchSize Number
- bufferDuration Number
- datetimeFormat String
- encoding String
- fileFingerprint StringLines 
- initialPosition String
- multilineStart StringPattern 
- timeZone String
MysqlLayerEbsVolume, MysqlLayerEbsVolumeArgs        
- MountPoint string
- The path to mount the EBS volume on the layer's instances.
- NumberOf 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.
- RaidLevel string
- The RAID level to use for the volume.
- Type string
- The type of volume to create. This may be standard(the default),io1orgp2.
- MountPoint string
- The path to mount the EBS volume on the layer's instances.
- NumberOf 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.
- RaidLevel string
- The RAID level to use for the volume.
- Type string
- The type of volume to create. This may be standard(the default),io1orgp2.
- mountPoint String
- The path to mount the EBS volume on the layer's instances.
- numberOf IntegerDisks 
- The number of disks to use for the EBS volume.
- size Integer
- The size of the volume in gigabytes.
- encrypted Boolean
- iops Integer
- For PIOPS volumes, the IOPS per disk.
- raidLevel String
- The RAID level to use for the volume.
- type String
- The type of volume to create. This may be standard(the default),io1orgp2.
- mountPoint string
- The path to mount the EBS volume on the layer's instances.
- numberOf 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.
- raidLevel 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_ 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 str
- The RAID level to use for the volume.
- type str
- The type of volume to create. This may be standard(the default),io1orgp2.
- mountPoint String
- The path to mount the EBS volume on the layer's instances.
- numberOf 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.
- raidLevel String
- The RAID level to use for the volume.
- type String
- The type of volume to create. This may be standard(the default),io1orgp2.
MysqlLayerLoadBasedAutoScaling, MysqlLayerLoadBasedAutoScalingArgs            
MysqlLayerLoadBasedAutoScalingDownscaling, MysqlLayerLoadBasedAutoScalingDownscalingArgs              
- Alarms List<string>
- CpuThreshold double
- IgnoreMetrics intTime 
- InstanceCount int
- LoadThreshold double
- MemoryThreshold double
- ThresholdsWait intTime 
- Alarms []string
- CpuThreshold float64
- IgnoreMetrics intTime 
- InstanceCount int
- LoadThreshold float64
- MemoryThreshold float64
- ThresholdsWait intTime 
- alarms List<String>
- cpuThreshold Double
- ignoreMetrics IntegerTime 
- instanceCount Integer
- loadThreshold Double
- memoryThreshold Double
- thresholdsWait IntegerTime 
- alarms string[]
- cpuThreshold number
- ignoreMetrics numberTime 
- instanceCount number
- loadThreshold number
- memoryThreshold number
- thresholdsWait numberTime 
- alarms Sequence[str]
- cpu_threshold float
- ignore_metrics_ inttime 
- instance_count int
- load_threshold float
- memory_threshold float
- thresholds_wait_ inttime 
- alarms List<String>
- cpuThreshold Number
- ignoreMetrics NumberTime 
- instanceCount Number
- loadThreshold Number
- memoryThreshold Number
- thresholdsWait NumberTime 
MysqlLayerLoadBasedAutoScalingUpscaling, MysqlLayerLoadBasedAutoScalingUpscalingArgs              
- Alarms List<string>
- CpuThreshold double
- IgnoreMetrics intTime 
- InstanceCount int
- LoadThreshold double
- MemoryThreshold double
- ThresholdsWait intTime 
- Alarms []string
- CpuThreshold float64
- IgnoreMetrics intTime 
- InstanceCount int
- LoadThreshold float64
- MemoryThreshold float64
- ThresholdsWait intTime 
- alarms List<String>
- cpuThreshold Double
- ignoreMetrics IntegerTime 
- instanceCount Integer
- loadThreshold Double
- memoryThreshold Double
- thresholdsWait IntegerTime 
- alarms string[]
- cpuThreshold number
- ignoreMetrics numberTime 
- instanceCount number
- loadThreshold number
- memoryThreshold number
- thresholdsWait numberTime 
- alarms Sequence[str]
- cpu_threshold float
- ignore_metrics_ inttime 
- instance_count int
- load_threshold float
- memory_threshold float
- thresholds_wait_ inttime 
- alarms List<String>
- cpuThreshold Number
- ignoreMetrics NumberTime 
- instanceCount Number
- loadThreshold Number
- memoryThreshold Number
- thresholdsWait NumberTime 
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the awsTerraform Provider.