Class: AWSCDK::Interfaces::AWSSagemaker::EndpointConfigReference

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
interfaces/aws_sagemaker/endpoint_config_reference.rb

Overview

A reference to a EndpointConfig resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(endpoint_config_id:, endpoint_config_name:) ⇒ EndpointConfigReference

Returns a new instance of EndpointConfigReference.

Parameters:

  • endpoint_config_id (String)

    The Id of the EndpointConfig resource.

  • endpoint_config_name (String)

    The EndpointConfigName of the EndpointConfig resource.



9
10
11
12
13
14
# File 'interfaces/aws_sagemaker/endpoint_config_reference.rb', line 9

def initialize(endpoint_config_id:, endpoint_config_name:)
  @endpoint_config_id = endpoint_config_id
  Jsii::Type.check_type(@endpoint_config_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "endpointConfigId")
  @endpoint_config_name = endpoint_config_name
  Jsii::Type.check_type(@endpoint_config_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "endpointConfigName")
end

Instance Attribute Details

#endpoint_config_idString (readonly)

The Id of the EndpointConfig resource.

Returns:

  • (String)


19
20
21
# File 'interfaces/aws_sagemaker/endpoint_config_reference.rb', line 19

def endpoint_config_id
  @endpoint_config_id
end

#endpoint_config_nameString (readonly)

The EndpointConfigName of the EndpointConfig resource.

Returns:

  • (String)


23
24
25
# File 'interfaces/aws_sagemaker/endpoint_config_reference.rb', line 23

def endpoint_config_name
  @endpoint_config_name
end

Class Method Details

.jsii_propertiesObject



25
26
27
28
29
30
# File 'interfaces/aws_sagemaker/endpoint_config_reference.rb', line 25

def self.jsii_properties
  {
    :endpoint_config_id => "endpointConfigId",
    :endpoint_config_name => "endpointConfigName",
  }
end

Instance Method Details

#to_jsiiObject



32
33
34
35
36
37
38
39
# File 'interfaces/aws_sagemaker/endpoint_config_reference.rb', line 32

def to_jsii
  result = {}
  result.merge!({
    "endpointConfigId" => @endpoint_config_id,
    "endpointConfigName" => @endpoint_config_name,
  })
  result.compact
end