Class: AWSCDK::Route53Targets::AppSyncTarget

Inherits:
Jsii::Object
  • Object
show all
Includes:
AWSCDK::Route53::IAliasRecordTarget
Defined in:
route53_targets/app_sync_target.rb

Overview

Defines an AppSync Graphql API as the alias target.

Requires that the domain name will be defined through GraphqlApiProps.domainName.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(graphql_api) ⇒ AppSyncTarget

Returns a new instance of AppSyncTarget.

Parameters:



13
14
15
16
# File 'route53_targets/app_sync_target.rb', line 13

def initialize(graphql_api)
  Jsii::Type.check_type(graphql_api, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwc3luYy5HcmFwaHFsQXBpIn0=")), "graphqlApi")
  Jsii::Object.instance_method(:initialize).bind(self).call(graphql_api)
end

Class Method Details

.jsii_overridable_methodsObject



18
19
20
21
22
# File 'route53_targets/app_sync_target.rb', line 18

def self.jsii_overridable_methods
  {
    :bind => { kind: :method, name: "bind", is_optional: false },
  }
end

Instance Method Details

#bind(_record, _zone = nil) ⇒ AWSCDK::Route53::AliasRecordTargetConfig

Return hosted zone ID and DNS name, usable for Route53 alias targets.

Parameters:

Returns:



29
30
31
32
33
# File 'route53_targets/app_sync_target.rb', line 29

def bind(_record, _zone = nil)
  Jsii::Type.check_type(_record, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfcm91dGU1My5JUmVjb3JkU2V0In0=")), "_record")
  Jsii::Type.check_type(_zone, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfcm91dGU1My5JSG9zdGVkWm9uZSJ9")), "_zone") unless _zone.nil?
  jsii_call_method("bind", [_record, _zone])
end