CfnWorkerPropsMixin

class aws_cdk.cfn_property_mixins.aws_deadline.CfnWorkerPropsMixin(props, *, strategy=None)

Bases: Mixin

Definition of AWS::Deadline::Worker Resource Type.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-worker.html

CloudformationResource:

AWS::Deadline::Worker

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_deadline as deadline
import aws_cdk as cdk

# merge_strategy: cdk.IMergeStrategy

cfn_worker_props_mixin = deadline.CfnWorkerPropsMixin(deadline.CfnWorkerMixinProps(
    farm_id="farmId",
    fleet_id="fleetId",
    host_properties=deadline.CfnWorkerPropsMixin.HostPropertiesRequestProperty(
        host_name="hostName",
        ip_addresses=deadline.CfnWorkerPropsMixin.IpAddressesProperty(
            ip_v4_addresses=["ipV4Addresses"],
            ip_v6_addresses=["ipV6Addresses"]
        )
    ),
    tags=[deadline.CfnWorkerPropsMixin.TagsItemsProperty(
        key="key",
        value="value"
    )]
),
    strategy=merge_strategy
)

Create a mixin to apply properties to AWS::Deadline::Worker.

Parameters:
  • props (Union[CfnWorkerMixinProps, 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 = ['farmId', 'fleetId', 'hostProperties', '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.

HostPropertiesRequestProperty

class CfnWorkerPropsMixin.HostPropertiesRequestProperty(*, host_name=None, ip_addresses=None)

Bases: object

The host property details.

Parameters:
  • host_name (Optional[str]) – The host name.

  • ip_addresses (Union[IResolvable, IpAddressesProperty, Dict[str, Any], None]) – The IP addresses for a host.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-deadline-worker-hostpropertiesrequest.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_deadline as deadline

host_properties_request_property = deadline.CfnWorkerPropsMixin.HostPropertiesRequestProperty(
    host_name="hostName",
    ip_addresses=deadline.CfnWorkerPropsMixin.IpAddressesProperty(
        ip_v4_addresses=["ipV4Addresses"],
        ip_v6_addresses=["ipV6Addresses"]
    )
)

Attributes

host_name

The host name.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-deadline-worker-hostpropertiesrequest.html#cfn-deadline-worker-hostpropertiesrequest-hostname

ip_addresses

The IP addresses for a host.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-deadline-worker-hostpropertiesrequest.html#cfn-deadline-worker-hostpropertiesrequest-ipaddresses

IpAddressesProperty

class CfnWorkerPropsMixin.IpAddressesProperty(*, ip_v4_addresses=None, ip_v6_addresses=None)

Bases: object

The IP addresses for a host.

Parameters:
  • ip_v4_addresses (Optional[Sequence[str]]) – The IpV4 address of the network.

  • ip_v6_addresses (Optional[Sequence[str]]) – The IpV6 address for the network and node component.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-deadline-worker-ipaddresses.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_deadline as deadline

ip_addresses_property = deadline.CfnWorkerPropsMixin.IpAddressesProperty(
    ip_v4_addresses=["ipV4Addresses"],
    ip_v6_addresses=["ipV6Addresses"]
)

Attributes

ip_v4_addresses

The IpV4 address of the network.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-deadline-worker-ipaddresses.html#cfn-deadline-worker-ipaddresses-ipv4addresses

ip_v6_addresses

The IpV6 address for the network and node component.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-deadline-worker-ipaddresses.html#cfn-deadline-worker-ipaddresses-ipv6addresses

TagsItemsProperty

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

Bases: object

Parameters:
  • key (Optional[str])

  • value (Optional[str])

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-deadline-worker-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_deadline as deadline

tags_items_property = deadline.CfnWorkerPropsMixin.TagsItemsProperty(
    key="key",
    value="value"
)

Attributes

key

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

Type:

see

value

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

Type:

see