CfnLayerProps

class aws_cdk.aws_opsworks.CfnLayerProps(*, attributes=None, auto_assign_elastic_ips, auto_assign_public_ips, custom_instance_profile_arn=None, custom_json=None, custom_recipes=None, custom_security_group_ids=None, enable_auto_healing, install_updates_on_boot=None, lifecycle_event_configuration=None, load_based_auto_scaling=None, name, packages=None, shortname, stack_id, tags=None, type, use_ebs_optimized_instances=None, volume_configurations=None)

Bases: object

Properties for defining a AWS::OpsWorks::Layer.

Parameters
  • attributes (Union[IResolvable, Mapping[str, str], None]) – AWS::OpsWorks::Layer.Attributes.

  • auto_assign_elastic_ips (Union[bool, IResolvable]) – AWS::OpsWorks::Layer.AutoAssignElasticIps.

  • auto_assign_public_ips (Union[bool, IResolvable]) – AWS::OpsWorks::Layer.AutoAssignPublicIps.

  • custom_instance_profile_arn (Optional[str]) – AWS::OpsWorks::Layer.CustomInstanceProfileArn.

  • custom_json (Optional[Any]) – AWS::OpsWorks::Layer.CustomJson.

  • custom_recipes (Union[IResolvable, RecipesProperty, None]) – AWS::OpsWorks::Layer.CustomRecipes.

  • custom_security_group_ids (Optional[Sequence[str]]) – AWS::OpsWorks::Layer.CustomSecurityGroupIds.

  • enable_auto_healing (Union[bool, IResolvable]) – AWS::OpsWorks::Layer.EnableAutoHealing.

  • install_updates_on_boot (Union[bool, IResolvable, None]) – AWS::OpsWorks::Layer.InstallUpdatesOnBoot.

  • lifecycle_event_configuration (Union[IResolvable, LifecycleEventConfigurationProperty, None]) – AWS::OpsWorks::Layer.LifecycleEventConfiguration.

  • load_based_auto_scaling (Union[IResolvable, LoadBasedAutoScalingProperty, None]) – AWS::OpsWorks::Layer.LoadBasedAutoScaling.

  • name (str) – AWS::OpsWorks::Layer.Name.

  • packages (Optional[Sequence[str]]) – AWS::OpsWorks::Layer.Packages.

  • shortname (str) – AWS::OpsWorks::Layer.Shortname.

  • stack_id (str) – AWS::OpsWorks::Layer.StackId.

  • tags (Optional[Sequence[CfnTag]]) – AWS::OpsWorks::Layer.Tags.

  • type (str) – AWS::OpsWorks::Layer.Type.

  • use_ebs_optimized_instances (Union[bool, IResolvable, None]) – AWS::OpsWorks::Layer.UseEbsOptimizedInstances.

  • volume_configurations (Union[IResolvable, Sequence[Union[IResolvable, VolumeConfigurationProperty]], None]) – AWS::OpsWorks::Layer.VolumeConfigurations.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-layer.html

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_opsworks as opsworks

# custom_json is of type object

cfn_layer_props = opsworks.CfnLayerProps(
    auto_assign_elastic_ips=False,
    auto_assign_public_ips=False,
    enable_auto_healing=False,
    name="name",
    shortname="shortname",
    stack_id="stackId",
    type="type",

    # the properties below are optional
    attributes={
        "attributes_key": "attributes"
    },
    custom_instance_profile_arn="customInstanceProfileArn",
    custom_json=custom_json,
    custom_recipes=opsworks.CfnLayer.RecipesProperty(
        configure=["configure"],
        deploy=["deploy"],
        setup=["setup"],
        shutdown=["shutdown"],
        undeploy=["undeploy"]
    ),
    custom_security_group_ids=["customSecurityGroupIds"],
    install_updates_on_boot=False,
    lifecycle_event_configuration=opsworks.CfnLayer.LifecycleEventConfigurationProperty(
        shutdown_event_configuration=opsworks.CfnLayer.ShutdownEventConfigurationProperty(
            delay_until_elb_connections_drained=False,
            execution_timeout=123
        )
    ),
    load_based_auto_scaling=opsworks.CfnLayer.LoadBasedAutoScalingProperty(
        down_scaling=opsworks.CfnLayer.AutoScalingThresholdsProperty(
            cpu_threshold=123,
            ignore_metrics_time=123,
            instance_count=123,
            load_threshold=123,
            memory_threshold=123,
            thresholds_wait_time=123
        ),
        enable=False,
        up_scaling=opsworks.CfnLayer.AutoScalingThresholdsProperty(
            cpu_threshold=123,
            ignore_metrics_time=123,
            instance_count=123,
            load_threshold=123,
            memory_threshold=123,
            thresholds_wait_time=123
        )
    ),
    packages=["packages"],
    tags=[CfnTag(
        key="key",
        value="value"
    )],
    use_ebs_optimized_instances=False,
    volume_configurations=[opsworks.CfnLayer.VolumeConfigurationProperty(
        encrypted=False,
        iops=123,
        mount_point="mountPoint",
        number_of_disks=123,
        raid_level=123,
        size=123,
        volume_type="volumeType"
    )]
)

Attributes

attributes

AWS::OpsWorks::Layer.Attributes.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-layer.html#cfn-opsworks-layer-attributes

Return type

Union[IResolvable, Mapping[str, str], None]

auto_assign_elastic_ips

AWS::OpsWorks::Layer.AutoAssignElasticIps.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-layer.html#cfn-opsworks-layer-autoassignelasticips

Return type

Union[bool, IResolvable]

auto_assign_public_ips

AWS::OpsWorks::Layer.AutoAssignPublicIps.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-layer.html#cfn-opsworks-layer-autoassignpublicips

Return type

Union[bool, IResolvable]

custom_instance_profile_arn

AWS::OpsWorks::Layer.CustomInstanceProfileArn.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-layer.html#cfn-opsworks-layer-custominstanceprofilearn

Return type

Optional[str]

custom_json

AWS::OpsWorks::Layer.CustomJson.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-layer.html#cfn-opsworks-layer-customjson

Return type

Any

custom_recipes

AWS::OpsWorks::Layer.CustomRecipes.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-layer.html#cfn-opsworks-layer-customrecipes

Return type

Union[IResolvable, RecipesProperty, None]

custom_security_group_ids

AWS::OpsWorks::Layer.CustomSecurityGroupIds.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-layer.html#cfn-opsworks-layer-customsecuritygroupids

Return type

Optional[List[str]]

enable_auto_healing

AWS::OpsWorks::Layer.EnableAutoHealing.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-layer.html#cfn-opsworks-layer-enableautohealing

Return type

Union[bool, IResolvable]

install_updates_on_boot

AWS::OpsWorks::Layer.InstallUpdatesOnBoot.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-layer.html#cfn-opsworks-layer-installupdatesonboot

Return type

Union[bool, IResolvable, None]

lifecycle_event_configuration

AWS::OpsWorks::Layer.LifecycleEventConfiguration.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-layer.html#cfn-opsworks-layer-lifecycleeventconfiguration

Return type

Union[IResolvable, LifecycleEventConfigurationProperty, None]

load_based_auto_scaling

AWS::OpsWorks::Layer.LoadBasedAutoScaling.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-layer.html#cfn-opsworks-layer-loadbasedautoscaling

Return type

Union[IResolvable, LoadBasedAutoScalingProperty, None]

name

AWS::OpsWorks::Layer.Name.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-layer.html#cfn-opsworks-layer-name

Return type

str

packages

AWS::OpsWorks::Layer.Packages.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-layer.html#cfn-opsworks-layer-packages

Return type

Optional[List[str]]

shortname

AWS::OpsWorks::Layer.Shortname.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-layer.html#cfn-opsworks-layer-shortname

Return type

str

stack_id

AWS::OpsWorks::Layer.StackId.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-layer.html#cfn-opsworks-layer-stackid

Return type

str

tags

AWS::OpsWorks::Layer.Tags.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-layer.html#cfn-opsworks-layer-tags

Return type

Optional[List[CfnTag]]

type

AWS::OpsWorks::Layer.Type.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-layer.html#cfn-opsworks-layer-type

Return type

str

use_ebs_optimized_instances

AWS::OpsWorks::Layer.UseEbsOptimizedInstances.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-layer.html#cfn-opsworks-layer-useebsoptimizedinstances

Return type

Union[bool, IResolvable, None]

volume_configurations

AWS::OpsWorks::Layer.VolumeConfigurations.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-layer.html#cfn-opsworks-layer-volumeconfigurations

Return type

Union[IResolvable, List[Union[IResolvable, VolumeConfigurationProperty]], None]