Class: AWSCDK::ECS::CfnTaskDefinition::DeviceProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ECS::CfnTaskDefinition::DeviceProperty
- Defined in:
- ecs/cfn_task_definition.rb
Overview
The Device property specifies 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.
1525 1526 1527 1528 1529 1530 1531 1532 |
# File 'ecs/cfn_task_definition.rb', line 1525 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.
1538 1539 1540 |
# File 'ecs/cfn_task_definition.rb', line 1538 def container_path @container_path end |
#host_path ⇒ String? (readonly)
The path for the device on the host container instance.
1543 1544 1545 |
# File 'ecs/cfn_task_definition.rb', line 1543 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.
1550 1551 1552 |
# File 'ecs/cfn_task_definition.rb', line 1550 def @permissions end |
Class Method Details
.jsii_properties ⇒ Object
1552 1553 1554 1555 1556 1557 1558 |
# File 'ecs/cfn_task_definition.rb', line 1552 def self.jsii_properties { :container_path => "containerPath", :host_path => "hostPath", :permissions => "permissions", } end |
Instance Method Details
#to_jsii ⇒ Object
1560 1561 1562 1563 1564 1565 1566 1567 1568 |
# File 'ecs/cfn_task_definition.rb', line 1560 def to_jsii result = {} result.merge!({ "containerPath" => @container_path, "hostPath" => @host_path, "permissions" => @permissions, }) result.compact end |