Class: AWSCDK::AppSync::CfnSourceAPIAssociation::SourceAPIAssociationConfigProperty

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

Overview

Describes properties used to specify configurations related to a source API.

This is a property of the AWS:AppSync:SourceApiAssociation type.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(merge_type: nil) ⇒ SourceAPIAssociationConfigProperty

Returns a new instance of SourceAPIAssociationConfigProperty.

Parameters:

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

    The property that indicates which merging option is enabled in the source API association.



614
615
616
617
# File 'app_sync/cfn_source_api_association.rb', line 614

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

Instance Attribute Details

#merge_typeString? (readonly)

The property that indicates which merging option is enabled in the source API association.

Valid merge types are MANUAL_MERGE (default) and AUTO_MERGE . Manual merges are the default behavior and require the user to trigger any changes from the source APIs to the merged API manually. Auto merges subscribe the merged API to the changes performed on the source APIs so that any change in the source APIs are also made to the merged API. Auto merges use MergedApiExecutionRoleArn to perform merge operations.

The following values are valid:

MANUAL_MERGE | AUTO_MERGE



629
630
631
# File 'app_sync/cfn_source_api_association.rb', line 629

def merge_type
  @merge_type
end

Class Method Details

.jsii_propertiesObject



631
632
633
634
635
# File 'app_sync/cfn_source_api_association.rb', line 631

def self.jsii_properties
  {
    :merge_type => "mergeType",
  }
end

Instance Method Details

#to_jsiiObject



637
638
639
640
641
642
643
# File 'app_sync/cfn_source_api_association.rb', line 637

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