Class: AWSCDK::GameLift::CfnContainerGroupDefinition::ContainerMountPointProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::GameLift::CfnContainerGroupDefinition::ContainerMountPointProperty
- Defined in:
- game_lift/cfn_container_group_definition.rb
Overview
A mount point that binds a container to a file or directory on the host system.
Part of: GameServerContainerDefinition , , SupportContainerDefinition ,
Instance Attribute Summary collapse
-
#access_level ⇒ String?
readonly
The type of access for the container.
-
#container_path ⇒ String?
readonly
The mount path on the container.
-
#instance_path ⇒ String
readonly
The path to the source file or directory.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(instance_path:, access_level: nil, container_path: nil) ⇒ ContainerMountPointProperty
constructor
A new instance of ContainerMountPointProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(instance_path:, access_level: nil, container_path: nil) ⇒ ContainerMountPointProperty
Returns a new instance of ContainerMountPointProperty.
873 874 875 876 877 878 879 880 |
# File 'game_lift/cfn_container_group_definition.rb', line 873 def initialize(instance_path:, access_level: nil, container_path: nil) @instance_path = instance_path Jsii::Type.check_type(@instance_path, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "instancePath") @access_level = access_level Jsii::Type.check_type(@access_level, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "accessLevel") unless @access_level.nil? @container_path = container_path Jsii::Type.check_type(@container_path, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "containerPath") unless @container_path.nil? end |
Instance Attribute Details
#access_level ⇒ String? (readonly)
The type of access for the container.
891 892 893 |
# File 'game_lift/cfn_container_group_definition.rb', line 891 def access_level @access_level end |
#container_path ⇒ String? (readonly)
The mount path on the container.
If this property isn't set, the instance path is used.
898 899 900 |
# File 'game_lift/cfn_container_group_definition.rb', line 898 def container_path @container_path end |
#instance_path ⇒ String (readonly)
The path to the source file or directory.
886 887 888 |
# File 'game_lift/cfn_container_group_definition.rb', line 886 def instance_path @instance_path end |
Class Method Details
.jsii_properties ⇒ Object
900 901 902 903 904 905 906 |
# File 'game_lift/cfn_container_group_definition.rb', line 900 def self.jsii_properties { :instance_path => "instancePath", :access_level => "accessLevel", :container_path => "containerPath", } end |
Instance Method Details
#to_jsii ⇒ Object
908 909 910 911 912 913 914 915 916 |
# File 'game_lift/cfn_container_group_definition.rb', line 908 def to_jsii result = {} result.merge!({ "instancePath" => @instance_path, "accessLevel" => @access_level, "containerPath" => @container_path, }) result.compact end |