CfnInstanceProps

class aws_cdk.aws_opsworks.CfnInstanceProps(*, agent_version=None, ami_id=None, architecture=None, auto_scaling_type=None, availability_zone=None, block_device_mappings=None, ebs_optimized=None, elastic_ips=None, hostname=None, install_updates_on_boot=None, instance_type, layer_ids, os=None, root_device_type=None, ssh_key_name=None, stack_id, subnet_id=None, tenancy=None, time_based_auto_scaling=None, virtualization_type=None, volumes=None)

Bases: object

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

Parameters
  • agent_version (Optional[str]) – AWS::OpsWorks::Instance.AgentVersion.

  • ami_id (Optional[str]) – AWS::OpsWorks::Instance.AmiId.

  • architecture (Optional[str]) – AWS::OpsWorks::Instance.Architecture.

  • auto_scaling_type (Optional[str]) – AWS::OpsWorks::Instance.AutoScalingType.

  • availability_zone (Optional[str]) – AWS::OpsWorks::Instance.AvailabilityZone.

  • block_device_mappings (Union[IResolvable, Sequence[Union[IResolvable, BlockDeviceMappingProperty]], None]) – AWS::OpsWorks::Instance.BlockDeviceMappings.

  • ebs_optimized (Union[bool, IResolvable, None]) – AWS::OpsWorks::Instance.EbsOptimized.

  • elastic_ips (Optional[Sequence[str]]) – AWS::OpsWorks::Instance.ElasticIps.

  • hostname (Optional[str]) – AWS::OpsWorks::Instance.Hostname.

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

  • instance_type (str) – AWS::OpsWorks::Instance.InstanceType.

  • layer_ids (Sequence[str]) – AWS::OpsWorks::Instance.LayerIds.

  • os (Optional[str]) – AWS::OpsWorks::Instance.Os.

  • root_device_type (Optional[str]) – AWS::OpsWorks::Instance.RootDeviceType.

  • ssh_key_name (Optional[str]) – AWS::OpsWorks::Instance.SshKeyName.

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

  • subnet_id (Optional[str]) – AWS::OpsWorks::Instance.SubnetId.

  • tenancy (Optional[str]) – AWS::OpsWorks::Instance.Tenancy.

  • time_based_auto_scaling (Union[IResolvable, TimeBasedAutoScalingProperty, None]) – AWS::OpsWorks::Instance.TimeBasedAutoScaling.

  • virtualization_type (Optional[str]) – AWS::OpsWorks::Instance.VirtualizationType.

  • volumes (Optional[Sequence[str]]) – AWS::OpsWorks::Instance.Volumes.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-instance.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

cfn_instance_props = opsworks.CfnInstanceProps(
    instance_type="instanceType",
    layer_ids=["layerIds"],
    stack_id="stackId",

    # the properties below are optional
    agent_version="agentVersion",
    ami_id="amiId",
    architecture="architecture",
    auto_scaling_type="autoScalingType",
    availability_zone="availabilityZone",
    block_device_mappings=[opsworks.CfnInstance.BlockDeviceMappingProperty(
        device_name="deviceName",
        ebs=opsworks.CfnInstance.EbsBlockDeviceProperty(
            delete_on_termination=False,
            iops=123,
            snapshot_id="snapshotId",
            volume_size=123,
            volume_type="volumeType"
        ),
        no_device="noDevice",
        virtual_name="virtualName"
    )],
    ebs_optimized=False,
    elastic_ips=["elasticIps"],
    hostname="hostname",
    install_updates_on_boot=False,
    os="os",
    root_device_type="rootDeviceType",
    ssh_key_name="sshKeyName",
    subnet_id="subnetId",
    tenancy="tenancy",
    time_based_auto_scaling=opsworks.CfnInstance.TimeBasedAutoScalingProperty(
        friday={
            "friday_key": "friday"
        },
        monday={
            "monday_key": "monday"
        },
        saturday={
            "saturday_key": "saturday"
        },
        sunday={
            "sunday_key": "sunday"
        },
        thursday={
            "thursday_key": "thursday"
        },
        tuesday={
            "tuesday_key": "tuesday"
        },
        wednesday={
            "wednesday_key": "wednesday"
        }
    ),
    virtualization_type="virtualizationType",
    volumes=["volumes"]
)

Attributes

agent_version

AWS::OpsWorks::Instance.AgentVersion.

Link

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

Return type

Optional[str]

ami_id

AWS::OpsWorks::Instance.AmiId.

Link

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

Return type

Optional[str]

architecture

AWS::OpsWorks::Instance.Architecture.

Link

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

Return type

Optional[str]

auto_scaling_type

AWS::OpsWorks::Instance.AutoScalingType.

Link

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

Return type

Optional[str]

availability_zone

AWS::OpsWorks::Instance.AvailabilityZone.

Link

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

Return type

Optional[str]

block_device_mappings

AWS::OpsWorks::Instance.BlockDeviceMappings.

Link

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

Return type

Union[IResolvable, List[Union[IResolvable, BlockDeviceMappingProperty]], None]

ebs_optimized

AWS::OpsWorks::Instance.EbsOptimized.

Link

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

Return type

Union[bool, IResolvable, None]

elastic_ips

AWS::OpsWorks::Instance.ElasticIps.

Link

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

Return type

Optional[List[str]]

hostname

AWS::OpsWorks::Instance.Hostname.

Link

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

Return type

Optional[str]

install_updates_on_boot

AWS::OpsWorks::Instance.InstallUpdatesOnBoot.

Link

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

Return type

Union[bool, IResolvable, None]

instance_type

AWS::OpsWorks::Instance.InstanceType.

Link

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

Return type

str

layer_ids

AWS::OpsWorks::Instance.LayerIds.

Link

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

Return type

List[str]

os

AWS::OpsWorks::Instance.Os.

Link

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

Return type

Optional[str]

root_device_type

AWS::OpsWorks::Instance.RootDeviceType.

Link

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

Return type

Optional[str]

ssh_key_name

AWS::OpsWorks::Instance.SshKeyName.

Link

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

Return type

Optional[str]

stack_id

AWS::OpsWorks::Instance.StackId.

Link

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

Return type

str

subnet_id

AWS::OpsWorks::Instance.SubnetId.

Link

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

Return type

Optional[str]

tenancy

AWS::OpsWorks::Instance.Tenancy.

Link

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

Return type

Optional[str]

time_based_auto_scaling

AWS::OpsWorks::Instance.TimeBasedAutoScaling.

Link

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

Return type

Union[IResolvable, TimeBasedAutoScalingProperty, None]

virtualization_type

AWS::OpsWorks::Instance.VirtualizationType.

Link

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

Return type

Optional[str]

volumes

AWS::OpsWorks::Instance.Volumes.

Link

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

Return type

Optional[List[str]]