Class: AWSCDK::GameLift::CfnContainerGroupDefinition::ContainerMountPointProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(instance_path:, access_level: nil, container_path: nil) ⇒ ContainerMountPointProperty

Returns a new instance of ContainerMountPointProperty.

Parameters:

  • instance_path (String)

    The path to the source file or directory.

  • access_level (String, nil) (defaults to: nil)

    The type of access for the container.

  • container_path (String, nil) (defaults to: nil)

    The mount path on the container.



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_levelString? (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_pathString? (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_pathString (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_propertiesObject



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_jsiiObject



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