CfnDevicePropsMixin
- class aws_cdk.mixins_preview.aws_sagemaker.mixins.CfnDevicePropsMixin(props, *, strategy=None)
Bases:
MixinThe
AWS::SageMaker::Deviceresource is an Amazon SageMaker resource type that allows you to register your Devices against an existing SageMaker Edge Manager DeviceFleet.Each device must be listed individually in the CFN specification.
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-device.html
- CloudformationResource:
AWS::SageMaker::Device
- Mixin:
true
- ExampleMetadata:
fixture=_generated
Example:
from aws_cdk import CfnTag # 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_sagemaker import mixins as sagemaker_mixins cfn_device_props_mixin = sagemaker_mixins.CfnDevicePropsMixin(sagemaker_mixins.CfnDeviceMixinProps( device=sagemaker_mixins.CfnDevicePropsMixin.DeviceProperty( description="description", device_name="deviceName", iot_thing_name="iotThingName" ), device_fleet_name="deviceFleetName", tags=[CfnTag( key="key", value="value" )] ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::SageMaker::Device.- Parameters:
props (
Union[CfnDeviceMixinProps,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:
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['device', 'deviceFleetName', 'tags']
Static Methods
- classmethod is_mixin(x)
(experimental) 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.- Stability:
experimental
DeviceProperty
- class CfnDevicePropsMixin.DeviceProperty(*, description=None, device_name=None, iot_thing_name=None)
Bases:
objectInformation of a particular device.
- Parameters:
description (
Optional[str]) – Description of the device.device_name (
Optional[str]) – The name of the device.iot_thing_name (
Optional[str]) – AWS Internet of Things (IoT) object name.
- 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.mixins_preview.aws_sagemaker import mixins as sagemaker_mixins device_property = sagemaker_mixins.CfnDevicePropsMixin.DeviceProperty( description="description", device_name="deviceName", iot_thing_name="iotThingName" )
Attributes
- description
Description of the device.
- device_name
The name of the device.
- iot_thing_name
AWS Internet of Things (IoT) object name.