CfnVolumePropsMixin

class aws_cdk.mixins_preview.aws_workspacesinstances.mixins.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.mixins_preview import mixins
from aws_cdk.mixins_preview.aws_workspacesinstances import mixins as workspacesinstances_mixins

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

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

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

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

Methods

apply_to(construct)

Apply the mixin properties to the construct.

Parameters:

construct (IConstruct)

Return type:

IConstruct

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)

(experimental) 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.

Stability:

experimental

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:

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

tag_specification_property = workspacesinstances_mixins.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