CfnVolumeProps

class aws_cdk.aws_opsworks.CfnVolumeProps(*, ec2_volume_id, stack_id, mount_point=None, name=None)

Bases: object

Properties for defining a CfnVolume.

Parameters
  • ec2_volume_id (str) – The Amazon EC2 volume ID.

  • stack_id (str) – The stack ID.

  • mount_point (Optional[str]) – The volume mount point. For example, “/mnt/disk1”.

  • name (Optional[str]) – The volume name. Volume names are a maximum of 128 characters.

Link

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

ExampleMetadata

fixture=_generated

Example:

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

cfn_volume_props = opsworks.CfnVolumeProps(
    ec2_volume_id="ec2VolumeId",
    stack_id="stackId",

    # the properties below are optional
    mount_point="mountPoint",
    name="name"
)

Attributes

ec2_volume_id

The Amazon EC2 volume ID.

Link

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

Return type

str

mount_point

The volume mount point.

For example, “/mnt/disk1”.

Link

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

Return type

Optional[str]

name

The volume name.

Volume names are a maximum of 128 characters.

Link

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

Return type

Optional[str]

stack_id

The stack ID.

Link

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

Return type

str