CfnDeviceFleetPropsMixin

class aws_cdk.mixins_preview.aws_sagemaker.mixins.CfnDeviceFleetPropsMixin(props, *, strategy=None)

Bases: Mixin

The AWS::SageMaker::DeviceFleet resource is an Amazon SageMaker resource type that allows you to create a DeviceFleet that manages your SageMaker Edge Manager Devices.

You must register your devices against the DeviceFleet separately.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-devicefleet.html

CloudformationResource:

AWS::SageMaker::DeviceFleet

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.mixins_preview import mixins
from aws_cdk.mixins_preview.aws_sagemaker import mixins as sagemaker_mixins

cfn_device_fleet_props_mixin = sagemaker_mixins.CfnDeviceFleetPropsMixin(sagemaker_mixins.CfnDeviceFleetMixinProps(
    description="description",
    device_fleet_name="deviceFleetName",
    output_config=sagemaker_mixins.CfnDeviceFleetPropsMixin.EdgeOutputConfigProperty(
        kms_key_id="kmsKeyId",
        s3_output_location="s3OutputLocation"
    ),
    role_arn="roleArn",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
),
    strategy=mixins.PropertyMergeStrategy.OVERRIDE
)

Create a mixin to apply properties to AWS::SageMaker::DeviceFleet.

Parameters:
  • props (Union[CfnDeviceFleetMixinProps, 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:

IConstruct

supports(construct)

Check if this mixin supports the given construct.

Parameters:

construct (IConstruct)

Return type:

bool

Attributes

CFN_PROPERTY_KEYS = ['description', 'deviceFleetName', 'outputConfig', 'roleArn', 'tags']

Static Methods

classmethod is_mixin(x)

(experimental) 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.

Stability:

experimental

EdgeOutputConfigProperty

class CfnDeviceFleetPropsMixin.EdgeOutputConfigProperty(*, kms_key_id=None, s3_output_location=None)

Bases: object

The output configuration for storing sample data collected by the fleet.

Parameters:
  • kms_key_id (Optional[str]) – The AWS Key Management Service ( AWS KMS) key that Amazon SageMaker uses to encrypt data on the storage volume after compilation job. If you don’t provide a KMS key ID, Amazon SageMaker uses the default KMS key for Amazon S3 for your role’s account.

  • s3_output_location (Optional[str]) – The Amazon Simple Storage (S3) bucket URI.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-devicefleet-edgeoutputconfig.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_sagemaker import mixins as sagemaker_mixins

edge_output_config_property = sagemaker_mixins.CfnDeviceFleetPropsMixin.EdgeOutputConfigProperty(
    kms_key_id="kmsKeyId",
    s3_output_location="s3OutputLocation"
)

Attributes

kms_key_id

The AWS Key Management Service ( AWS KMS) key that Amazon SageMaker uses to encrypt data on the storage volume after compilation job.

If you don’t provide a KMS key ID, Amazon SageMaker uses the default KMS key for Amazon S3 for your role’s account.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-devicefleet-edgeoutputconfig.html#cfn-sagemaker-devicefleet-edgeoutputconfig-kmskeyid

s3_output_location

The Amazon Simple Storage (S3) bucket URI.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-devicefleet-edgeoutputconfig.html#cfn-sagemaker-devicefleet-edgeoutputconfig-s3outputlocation