Class: AWSCDK::AppSync::CfnAPI::DNSMapProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
app_sync/cfn_api.rb

Overview

A map of DNS names for the Api.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(http: nil, realtime: nil) ⇒ DNSMapProperty

Returns a new instance of DNSMapProperty.

Parameters:

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

    The domain name of the Api's HTTP endpoint.

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

    The domain name of the Api's real-time endpoint.



745
746
747
748
749
750
# File 'app_sync/cfn_api.rb', line 745

def initialize(http: nil, realtime: nil)
  @http = http
  Jsii::Type.check_type(@http, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "http") unless @http.nil?
  @realtime = realtime
  Jsii::Type.check_type(@realtime, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "realtime") unless @realtime.nil?
end

Instance Attribute Details

#httpString? (readonly)

The domain name of the Api's HTTP endpoint.



756
757
758
# File 'app_sync/cfn_api.rb', line 756

def http
  @http
end

#realtimeString? (readonly)

The domain name of the Api's real-time endpoint.



761
762
763
# File 'app_sync/cfn_api.rb', line 761

def realtime
  @realtime
end

Class Method Details

.jsii_propertiesObject



763
764
765
766
767
768
# File 'app_sync/cfn_api.rb', line 763

def self.jsii_properties
  {
    :http => "http",
    :realtime => "realtime",
  }
end

Instance Method Details

#to_jsiiObject



770
771
772
773
774
775
776
777
# File 'app_sync/cfn_api.rb', line 770

def to_jsii
  result = {}
  result.merge!({
    "http" => @http,
    "realtime" => @realtime,
  })
  result.compact
end