Class: AWSCDK::Sagemaker::CfnAppImageConfig::ContainerConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
sagemaker/cfn_app_image_config.rb

Overview

The configuration used to run the application image container.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(container_arguments: nil, container_entrypoint: nil, container_environment_variables: nil) ⇒ ContainerConfigProperty

Returns a new instance of ContainerConfigProperty.

Parameters:



637
638
639
640
641
642
643
644
# File 'sagemaker/cfn_app_image_config.rb', line 637

def initialize(container_arguments: nil, container_entrypoint: nil, container_environment_variables: nil)
  @container_arguments = container_arguments
  Jsii::Type.check_type(@container_arguments, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "containerArguments") unless @container_arguments.nil?
  @container_entrypoint = container_entrypoint
  Jsii::Type.check_type(@container_entrypoint, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "containerEntrypoint") unless @container_entrypoint.nil?
  @container_environment_variables = container_environment_variables
  Jsii::Type.check_type(@container_environment_variables, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2FnZW1ha2VyLkNmbkFwcEltYWdlQ29uZmlnLkN1c3RvbUltYWdlQ29udGFpbmVyRW52aXJvbm1lbnRWYXJpYWJsZVByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "containerEnvironmentVariables") unless @container_environment_variables.nil?
end

Instance Attribute Details

#container_argumentsArray<String>? (readonly)

The arguments for the container when you're running the application.



650
651
652
# File 'sagemaker/cfn_app_image_config.rb', line 650

def container_arguments
  @container_arguments
end

#container_entrypointArray<String>? (readonly)

The entrypoint used to run the application in the container.



655
656
657
# File 'sagemaker/cfn_app_image_config.rb', line 655

def container_entrypoint
  @container_entrypoint
end

#container_environment_variablesAWSCDK::IResolvable, ... (readonly)

The environment variables to set in the container.



660
661
662
# File 'sagemaker/cfn_app_image_config.rb', line 660

def container_environment_variables
  @container_environment_variables
end

Class Method Details

.jsii_propertiesObject



662
663
664
665
666
667
668
# File 'sagemaker/cfn_app_image_config.rb', line 662

def self.jsii_properties
  {
    :container_arguments => "containerArguments",
    :container_entrypoint => "containerEntrypoint",
    :container_environment_variables => "containerEnvironmentVariables",
  }
end

Instance Method Details

#to_jsiiObject



670
671
672
673
674
675
676
677
678
# File 'sagemaker/cfn_app_image_config.rb', line 670

def to_jsii
  result = {}
  result.merge!({
    "containerArguments" => @container_arguments,
    "containerEntrypoint" => @container_entrypoint,
    "containerEnvironmentVariables" => @container_environment_variables,
  })
  result.compact
end