Class: AWSCDK::AppSync::CfnDomainNameAPIAssociationProps

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

Overview

Properties for defining a CfnDomainNameApiAssociation.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_id:, domain_name:) ⇒ CfnDomainNameAPIAssociationProps

Returns a new instance of CfnDomainNameAPIAssociationProps.

Parameters:



11
12
13
14
15
16
# File 'app_sync/cfn_domain_name_api_association_props.rb', line 11

def initialize(api_id:, domain_name:)
  @api_id = api_id
  Jsii::Type.check_type(@api_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "apiId")
  @domain_name = domain_name
  Jsii::Type.check_type(@domain_name, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoic3RyaW5nIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19hcHBzeW5jLklEb21haW5OYW1lUmVmIn1dfX0=")), "domainName")
end

Instance Attribute Details

#api_idString (readonly)

The API ID.



22
23
24
# File 'app_sync/cfn_domain_name_api_association_props.rb', line 22

def api_id
  @api_id
end

#domain_nameString, AWSCDK::Interfaces::AWSAppsync::IDomainNameRef (readonly)

The domain name.



27
28
29
# File 'app_sync/cfn_domain_name_api_association_props.rb', line 27

def domain_name
  @domain_name
end

Class Method Details

.jsii_propertiesObject



29
30
31
32
33
34
# File 'app_sync/cfn_domain_name_api_association_props.rb', line 29

def self.jsii_properties
  {
    :api_id => "apiId",
    :domain_name => "domainName",
  }
end

Instance Method Details

#to_jsiiObject



36
37
38
39
40
41
42
43
# File 'app_sync/cfn_domain_name_api_association_props.rb', line 36

def to_jsii
  result = {}
  result.merge!({
    "apiId" => @api_id,
    "domainName" => @domain_name,
  })
  result.compact
end