Class: AWSCDK::AppSync::SourceAPIAssociationAttributes

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

Overview

The attributes for imported AppSync Source Api Association.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(association_arn:, merged_api:, source_api:) ⇒ SourceAPIAssociationAttributes

Returns a new instance of SourceAPIAssociationAttributes.

Parameters:



10
11
12
13
14
15
16
17
# File 'app_sync/source_api_association_attributes.rb', line 10

def initialize(association_arn:, merged_api:, source_api:)
  @association_arn = association_arn
  Jsii::Type.check_type(@association_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "associationArn")
  @merged_api = merged_api
  Jsii::Type.check_type(@merged_api, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwc3luYy5JR3JhcGhxbEFwaSJ9")), "mergedApi")
  @source_api = source_api
  Jsii::Type.check_type(@source_api, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwc3luYy5JR3JhcGhxbEFwaSJ9")), "sourceApi")
end

Instance Attribute Details

#association_arnString (readonly)

The association arn.

Returns:

  • (String)


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

def association_arn
  @association_arn
end

#merged_apiAWSCDK::AppSync::IGraphqlAPI (readonly)

The merged api in the association.



26
27
28
# File 'app_sync/source_api_association_attributes.rb', line 26

def merged_api
  @merged_api
end

#source_apiAWSCDK::AppSync::IGraphqlAPI (readonly)

The source api in the association.



30
31
32
# File 'app_sync/source_api_association_attributes.rb', line 30

def source_api
  @source_api
end

Class Method Details

.jsii_propertiesObject



32
33
34
35
36
37
38
# File 'app_sync/source_api_association_attributes.rb', line 32

def self.jsii_properties
  {
    :association_arn => "associationArn",
    :merged_api => "mergedApi",
    :source_api => "sourceApi",
  }
end

Instance Method Details

#to_jsiiObject



40
41
42
43
44
45
46
47
48
# File 'app_sync/source_api_association_attributes.rb', line 40

def to_jsii
  result = {}
  result.merge!({
    "associationArn" => @association_arn,
    "mergedApi" => @merged_api,
    "sourceApi" => @source_api,
  })
  result.compact
end