CfnClusterMixinProps

class aws_cdk.mixins_preview.aws_pcs.mixins.CfnClusterMixinProps(*, name=None, networking=None, scheduler=None, size=None, slurm_configuration=None, tags=None)

Bases: object

Properties for CfnClusterPropsMixin.

Parameters:
  • name (Optional[str]) – The name that identifies the cluster.

  • networking (Union[IResolvable, NetworkingProperty, Dict[str, Any], None]) – The networking configuration for the cluster’s control plane.

  • scheduler (Union[IResolvable, SchedulerProperty, Dict[str, Any], None]) – The cluster management and job scheduling software associated with the cluster.

  • size (Optional[str]) – The size of the cluster. - SMALL : 32 compute nodes and 256 jobs - MEDIUM : 512 compute nodes and 8192 jobs - LARGE : 2048 compute nodes and 16,384 jobs

  • slurm_configuration (Union[IResolvable, SlurmConfigurationProperty, Dict[str, Any], None]) – Additional options related to the Slurm scheduler.

  • tags (Optional[Mapping[str, str]]) – 1 or more tags added to the resource. Each tag consists of a tag key and tag value. The tag value is optional and can be an empty string.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pcs-cluster.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_pcs import mixins as pcs_mixins

cfn_cluster_mixin_props = pcs_mixins.CfnClusterMixinProps(
    name="name",
    networking=pcs_mixins.CfnClusterPropsMixin.NetworkingProperty(
        network_type="networkType",
        security_group_ids=["securityGroupIds"],
        subnet_ids=["subnetIds"]
    ),
    scheduler=pcs_mixins.CfnClusterPropsMixin.SchedulerProperty(
        type="type",
        version="version"
    ),
    size="size",
    slurm_configuration=pcs_mixins.CfnClusterPropsMixin.SlurmConfigurationProperty(
        accounting=pcs_mixins.CfnClusterPropsMixin.AccountingProperty(
            default_purge_time_in_days=123,
            mode="mode"
        ),
        auth_key=pcs_mixins.CfnClusterPropsMixin.AuthKeyProperty(
            secret_arn="secretArn",
            secret_version="secretVersion"
        ),
        jwt_auth=pcs_mixins.CfnClusterPropsMixin.JwtAuthProperty(
            jwt_key=pcs_mixins.CfnClusterPropsMixin.JwtKeyProperty(
                secret_arn="secretArn",
                secret_version="secretVersion"
            )
        ),
        scale_down_idle_time_in_seconds=123,
        slurm_custom_settings=[pcs_mixins.CfnClusterPropsMixin.SlurmCustomSettingProperty(
            parameter_name="parameterName",
            parameter_value="parameterValue"
        )],
        slurm_rest=pcs_mixins.CfnClusterPropsMixin.SlurmRestProperty(
            mode="mode"
        )
    ),
    tags={
        "tags_key": "tags"
    }
)

Attributes

name

The name that identifies the cluster.

See:

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

networking

The networking configuration for the cluster’s control plane.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pcs-cluster.html#cfn-pcs-cluster-networking

scheduler

The cluster management and job scheduling software associated with the cluster.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pcs-cluster.html#cfn-pcs-cluster-scheduler

size

The size of the cluster.

  • SMALL : 32 compute nodes and 256 jobs

  • MEDIUM : 512 compute nodes and 8192 jobs

  • LARGE : 2048 compute nodes and 16,384 jobs

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pcs-cluster.html#cfn-pcs-cluster-size

slurm_configuration

Additional options related to the Slurm scheduler.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pcs-cluster.html#cfn-pcs-cluster-slurmconfiguration

tags

1 or more tags added to the resource.

Each tag consists of a tag key and tag value. The tag value is optional and can be an empty string.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pcs-cluster.html#cfn-pcs-cluster-tags