Class: AWSCDK::ECS::CfnDaemonTaskDefinition::DeviceProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ECS::CfnDaemonTaskDefinition::DeviceProperty
- Defined in:
- ecs/cfn_daemon_task_definition.rb
Overview
An object representing a container instance host device.
Instance Attribute Summary collapse
-
#container_path ⇒ String?
readonly
The path inside the container at which to expose the host device.
-
#host_path ⇒ String?
readonly
The path for the device on the host container instance.
-
#permissions ⇒ Array<String>?
readonly
The explicit permissions to provide to the container for the device.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(container_path: nil, host_path: nil, permissions: nil) ⇒ DeviceProperty
constructor
A new instance of DeviceProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(container_path: nil, host_path: nil, permissions: nil) ⇒ DeviceProperty
Returns a new instance of DeviceProperty.
1088 1089 1090 1091 1092 1093 1094 1095 |
# File 'ecs/cfn_daemon_task_definition.rb', line 1088 def initialize(container_path: nil, host_path: nil, permissions: nil) @container_path = container_path Jsii::Type.check_type(@container_path, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "containerPath") unless @container_path.nil? @host_path = host_path Jsii::Type.check_type(@host_path, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "hostPath") unless @host_path.nil? @permissions = Jsii::Type.check_type(@permissions, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "permissions") unless @permissions.nil? end |
Instance Attribute Details
#container_path ⇒ String? (readonly)
The path inside the container at which to expose the host device.
1101 1102 1103 |
# File 'ecs/cfn_daemon_task_definition.rb', line 1101 def container_path @container_path end |
#host_path ⇒ String? (readonly)
The path for the device on the host container instance.
1106 1107 1108 |
# File 'ecs/cfn_daemon_task_definition.rb', line 1106 def host_path @host_path end |
#permissions ⇒ Array<String>? (readonly)
The explicit permissions to provide to the container for the device.
By default, the container has permissions for read, write, and mknod for the device.
1113 1114 1115 |
# File 'ecs/cfn_daemon_task_definition.rb', line 1113 def @permissions end |
Class Method Details
.jsii_properties ⇒ Object
1115 1116 1117 1118 1119 1120 1121 |
# File 'ecs/cfn_daemon_task_definition.rb', line 1115 def self.jsii_properties { :container_path => "containerPath", :host_path => "hostPath", :permissions => "permissions", } end |
Instance Method Details
#to_jsii ⇒ Object
1123 1124 1125 1126 1127 1128 1129 1130 1131 |
# File 'ecs/cfn_daemon_task_definition.rb', line 1123 def to_jsii result = {} result.merge!({ "containerPath" => @container_path, "hostPath" => @host_path, "permissions" => @permissions, }) result.compact end |