CfnVolumePropsMixin

class aws_cdk.cfn_property_mixins.aws_workspacesinstances.CfnVolumePropsMixin(props, *, strategy=None)

Bases: Mixin

Resource Type definition for AWS::WorkspacesInstances::Volume - Manages WorkSpaces Volume resources.

See:

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

CloudformationResource:

AWS::WorkspacesInstances::Volume

Mixin:

true

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.cfn_property_mixins import aws_workspacesinstances as workspacesinstances
import aws_cdk as cdk

# merge_strategy: cdk.IMergeStrategy

cfn_volume_props_mixin = workspacesinstances.CfnVolumePropsMixin(workspacesinstances.CfnVolumeMixinProps(
    availability_zone="availabilityZone",
    encrypted=False,
    iops=123,
    kms_key_id="kmsKeyId",
    size_in_gb=123,
    snapshot_id="snapshotId",
    tag_specifications=[workspacesinstances.CfnVolumePropsMixin.TagSpecificationProperty(
        resource_type="resourceType",
        tags=[cdk.CfnTag(
            key="key",
            value="value"
        )]
    )],
    throughput=123,
    volume_type="volumeType"
),
    strategy=merge_strategy
)

Create a mixin to apply properties to AWS::WorkspacesInstances::Volume.

Parameters:
  • props (Union[CfnVolumeMixinProps, Dict[str, Any]]) – L1 properties to apply.

  • strategy (Optional[IMergeStrategy]) – Strategy for merging nested properties. Default: - PropertyMergeStrategy.combine()

Methods

apply_to(construct)

Apply the mixin properties to the construct.

Parameters:

construct (IConstruct)

Return type:

None

supports(construct)

Check if this mixin supports the given construct.

Parameters:

construct (IConstruct)

Return type:

bool

Attributes

CFN_PROPERTY_KEYS = ['availabilityZone', 'encrypted', 'iops', 'kmsKeyId', 'sizeInGb', 'snapshotId', 'tagSpecifications', 'throughput', 'volumeType']

Static Methods

classmethod is_mixin(x)

Checks if x is a Mixin.

Parameters:

x (Any) – Any object.

Return type:

bool

Returns:

true if x is an object created from a class which extends Mixin.

TagSpecificationProperty

class CfnVolumePropsMixin.TagSpecificationProperty(*, resource_type=None, tags=None)

Bases: object

Parameters:
  • resource_type (Optional[str])

  • tags (Optional[Sequence[Union[CfnTag, Dict[str, Any]]]]) – The tags to apply to the resource.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-workspacesinstances-volume-tagspecification.html

ExampleMetadata:

fixture=_generated

Example:

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

tag_specification_property = workspacesinstances.CfnVolumePropsMixin.TagSpecificationProperty(
    resource_type="resourceType",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)

Attributes

resource_type

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-workspacesinstances-volume-tagspecification.html#cfn-workspacesinstances-volume-tagspecification-resourcetype

Type:

see

tags

The tags to apply to the resource.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-workspacesinstances-volume-tagspecification.html#cfn-workspacesinstances-volume-tagspecification-tags