CfnWorkerPropsMixin
- class aws_cdk.cfn_property_mixins.aws_deadline.CfnWorkerPropsMixin(props, *, strategy=None)
Bases:
MixinDefinition 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
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.
HostPropertiesRequestProperty
- class CfnWorkerPropsMixin.HostPropertiesRequestProperty(*, host_name=None, ip_addresses=None)
Bases:
objectThe 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:
- 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.
- ip_addresses
The IP addresses for a host.
IpAddressesProperty
- class CfnWorkerPropsMixin.IpAddressesProperty(*, ip_v4_addresses=None, ip_v6_addresses=None)
Bases:
objectThe 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:
- 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.
- ip_v6_addresses
The IpV6 address for the network and node component.