CfnClusterPropsMixin

class aws_cdk.cfn_property_mixins.aws_cloudhsm.CfnClusterPropsMixin(props, *, strategy=None)

Bases: Mixin

Creates and manages an AWS CloudHSM cluster.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudhsm-cluster.html

CloudformationResource:

AWS::CloudHSM::Cluster

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_cloudhsm as cloudhsm
import aws_cdk as cdk

# merge_strategy: cdk.IMergeStrategy

cfn_cluster_props_mixin = cloudhsm.CfnClusterPropsMixin(cloudhsm.CfnClusterMixinProps(
    backup_retention_policy=cloudhsm.CfnClusterPropsMixin.BackupRetentionPolicyProperty(
        type="type",
        value="value"
    ),
    hsm_type="hsmType",
    mode="mode",
    network_type="networkType",
    subnet_ids=["subnetIds"],
    tags=[cloudhsm.CfnClusterPropsMixin.TagsItemsProperty(
        key="key",
        value="value"
    )]
),
    strategy=merge_strategy
)

Create a mixin to apply properties to AWS::CloudHSM::Cluster.

Parameters:
  • props (Union[CfnClusterMixinProps, 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 = ['backupRetentionPolicy', 'hsmType', 'mode', 'networkType', 'subnetIds', 'tags']

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.

BackupRetentionPolicyProperty

class CfnClusterPropsMixin.BackupRetentionPolicyProperty(*, type=None, value=None)

Bases: object

A policy that defines how the service retains backups.

Parameters:
  • type (Optional[str]) – The type of backup retention policy.

  • value (Optional[str]) – Use a value between 7 - 379.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudhsm-cluster-backupretentionpolicy.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.cfn_property_mixins import aws_cloudhsm as cloudhsm

backup_retention_policy_property = cloudhsm.CfnClusterPropsMixin.BackupRetentionPolicyProperty(
    type="type",
    value="value"
)

Attributes

type

The type of backup retention policy.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudhsm-cluster-backupretentionpolicy.html#cfn-cloudhsm-cluster-backupretentionpolicy-type

value

Use a value between 7 - 379.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudhsm-cluster-backupretentionpolicy.html#cfn-cloudhsm-cluster-backupretentionpolicy-value

TagsItemsProperty

class CfnClusterPropsMixin.TagsItemsProperty(*, key=None, value=None)

Bases: object

Parameters:
  • key (Optional[str]) – The key of the tag.

  • value (Optional[str]) – The value of the tag.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudhsm-cluster-tagsitems.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.cfn_property_mixins import aws_cloudhsm as cloudhsm

tags_items_property = cloudhsm.CfnClusterPropsMixin.TagsItemsProperty(
    key="key",
    value="value"
)

Attributes

key

The key of the tag.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudhsm-cluster-tagsitems.html#cfn-cloudhsm-cluster-tagsitems-key

value

The value of the tag.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudhsm-cluster-tagsitems.html#cfn-cloudhsm-cluster-tagsitems-value