Class: AWSCDK::Sagemaker::CfnDeviceFleetProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
sagemaker/cfn_device_fleet_props.rb

Overview

Properties for defining a CfnDeviceFleet.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(device_fleet_name:, output_config:, role_arn:, description: nil, tags: nil) ⇒ CfnDeviceFleetProps

Returns a new instance of CfnDeviceFleetProps.

Parameters:



14
15
16
17
18
19
20
21
22
23
24
25
# File 'sagemaker/cfn_device_fleet_props.rb', line 14

def initialize(device_fleet_name:, output_config:, role_arn:, description: nil, tags: nil)
  @device_fleet_name = device_fleet_name
  Jsii::Type.check_type(@device_fleet_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "deviceFleetName")
  @output_config = output_config.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnDeviceFleet::EdgeOutputConfigProperty.new(**output_config.transform_keys(&:to_sym)) : output_config
  Jsii::Type.check_type(@output_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuRGV2aWNlRmxlZXQuRWRnZU91dHB1dENvbmZpZ1Byb3BlcnR5In1dfX0=")), "outputConfig")
  @role_arn = role_arn
  Jsii::Type.check_type(@role_arn, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoic3RyaW5nIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19pYW0uSVJvbGVSZWYifV19fQ==")), "roleArn")
  @description = description
  Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil?
  @tags = tags.is_a?(Array) ? tags.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil?
end

Instance Attribute Details

#descriptionString? (readonly)

A description of the fleet.



46
47
48
# File 'sagemaker/cfn_device_fleet_props.rb', line 46

def description
  @description
end

#device_fleet_nameString (readonly)

Name of the device fleet.



31
32
33
# File 'sagemaker/cfn_device_fleet_props.rb', line 31

def device_fleet_name
  @device_fleet_name
end

#output_configAWSCDK::IResolvable, AWSCDK::Sagemaker::CfnDeviceFleet::EdgeOutputConfigProperty (readonly)

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



36
37
38
# File 'sagemaker/cfn_device_fleet_props.rb', line 36

def output_config
  @output_config
end

#role_arnString, AWSCDK::Interfaces::AWSIAM::IRoleRef (readonly)

The Amazon Resource Name (ARN) that has access to AWS Internet of Things (IoT).



41
42
43
# File 'sagemaker/cfn_device_fleet_props.rb', line 41

def role_arn
  @role_arn
end

#tagsArray<AWSCDK::CfnTag>? (readonly)

An array of key-value pairs that contain metadata to help you categorize and organize your device fleets.

Each tag consists of a key and a value, both of which you define.



53
54
55
# File 'sagemaker/cfn_device_fleet_props.rb', line 53

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



55
56
57
58
59
60
61
62
63
# File 'sagemaker/cfn_device_fleet_props.rb', line 55

def self.jsii_properties
  {
    :device_fleet_name => "deviceFleetName",
    :output_config => "outputConfig",
    :role_arn => "roleArn",
    :description => "description",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



65
66
67
68
69
70
71
72
73
74
75
# File 'sagemaker/cfn_device_fleet_props.rb', line 65

def to_jsii
  result = {}
  result.merge!({
    "deviceFleetName" => @device_fleet_name,
    "outputConfig" => @output_config,
    "roleArn" => @role_arn,
    "description" => @description,
    "tags" => @tags,
  })
  result.compact
end