Class: AWSCDK::Events::CfnRule::AppSyncParametersProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
events/cfn_rule.rb

Overview

Contains the GraphQL operation to be parsed and executed, if the event target is an AWS AppSync API.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(graph_ql_operation:) ⇒ AppSyncParametersProperty

Returns a new instance of AppSyncParametersProperty.

Parameters:

  • graph_ql_operation (String)

    The GraphQL operation; that is, the query, mutation, or subscription to be parsed and executed by the GraphQL service.



654
655
656
657
# File 'events/cfn_rule.rb', line 654

def initialize(graph_ql_operation:)
  @graph_ql_operation = graph_ql_operation
  Jsii::Type.check_type(@graph_ql_operation, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "graphQlOperation")
end

Instance Attribute Details

#graph_ql_operationString (readonly)

The GraphQL operation; that is, the query, mutation, or subscription to be parsed and executed by the GraphQL service.

For more information, see Operations in the AWS AppSync User Guide .



665
666
667
# File 'events/cfn_rule.rb', line 665

def graph_ql_operation
  @graph_ql_operation
end

Class Method Details

.jsii_propertiesObject



667
668
669
670
671
# File 'events/cfn_rule.rb', line 667

def self.jsii_properties
  {
    :graph_ql_operation => "graphQlOperation",
  }
end

Instance Method Details

#to_jsiiObject



673
674
675
676
677
678
679
# File 'events/cfn_rule.rb', line 673

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