Class: AWSCDK::Sagemaker::CfnDeviceFleetProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Sagemaker::CfnDeviceFleetProps
- Defined in:
- sagemaker/cfn_device_fleet_props.rb
Overview
Properties for defining a CfnDeviceFleet.
Instance Attribute Summary collapse
-
#description ⇒ String?
readonly
A description of the fleet.
-
#device_fleet_name ⇒ String
readonly
Name of the device fleet.
-
#output_config ⇒ AWSCDK::IResolvable, AWSCDK::Sagemaker::CfnDeviceFleet::EdgeOutputConfigProperty
readonly
The output configuration for storing sample data collected by the fleet.
-
#role_arn ⇒ String, AWSCDK::Interfaces::AWSIAM::IRoleRef
readonly
The Amazon Resource Name (ARN) that has access to AWS Internet of Things (IoT).
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
An array of key-value pairs that contain metadata to help you categorize and organize your device fleets.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(device_fleet_name:, output_config:, role_arn:, description: nil, tags: nil) ⇒ CfnDeviceFleetProps
constructor
A new instance of CfnDeviceFleetProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(device_fleet_name:, output_config:, role_arn:, description: nil, tags: nil) ⇒ CfnDeviceFleetProps
Returns a new instance of CfnDeviceFleetProps.
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 = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? end |
Instance Attribute Details
#description ⇒ String? (readonly)
A description of the fleet.
46 47 48 |
# File 'sagemaker/cfn_device_fleet_props.rb', line 46 def description @description end |
#device_fleet_name ⇒ String (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_config ⇒ AWSCDK::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_arn ⇒ String, 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 |
#tags ⇒ Array<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 end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |