Class: AWSCDK::Pipes::CfnPipe::PipeEnrichmentParametersProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
pipes/cfn_pipe.rb

Overview

The parameters required to set up enrichment on your pipe.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(http_parameters: nil, input_template: nil) ⇒ PipeEnrichmentParametersProperty

Returns a new instance of PipeEnrichmentParametersProperty.

Parameters:



2115
2116
2117
2118
2119
2120
# File 'pipes/cfn_pipe.rb', line 2115

def initialize(http_parameters: nil, input_template: nil)
  @http_parameters = http_parameters.is_a?(Hash) ? ::AWSCDK::Pipes::CfnPipe::PipeEnrichmentHttpParametersProperty.new(**http_parameters.transform_keys(&:to_sym)) : http_parameters
  Jsii::Type.check_type(@http_parameters, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19waXBlcy5DZm5QaXBlLlBpcGVFbnJpY2htZW50SHR0cFBhcmFtZXRlcnNQcm9wZXJ0eSJ9XX19")), "httpParameters") unless @http_parameters.nil?
  @input_template = input_template
  Jsii::Type.check_type(@input_template, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "inputTemplate") unless @input_template.nil?
end

Instance Attribute Details

#http_parametersAWSCDK::IResolvable, ... (readonly)

Contains the HTTP parameters to use when the target is a API Gateway REST endpoint or EventBridge ApiDestination.

If you specify an API Gateway REST API or EventBridge ApiDestination as a target, you can use this parameter to specify headers, path parameters, and query string keys/values as part of your target invoking request. If you're using ApiDestinations, the corresponding Connection can also have these values configured. In case of any conflicting keys, values from the Connection take precedence.



2128
2129
2130
# File 'pipes/cfn_pipe.rb', line 2128

def http_parameters
  @http_parameters
end

#input_templateString? (readonly)

Valid JSON text passed to the enrichment.

In this case, nothing from the event itself is passed to the enrichment. For more information, see The JavaScript Object Notation (JSON) Data Interchange Format .

To remove an input template, specify an empty string.



2137
2138
2139
# File 'pipes/cfn_pipe.rb', line 2137

def input_template
  @input_template
end

Class Method Details

.jsii_propertiesObject



2139
2140
2141
2142
2143
2144
# File 'pipes/cfn_pipe.rb', line 2139

def self.jsii_properties
  {
    :http_parameters => "httpParameters",
    :input_template => "inputTemplate",
  }
end

Instance Method Details

#to_jsiiObject



2146
2147
2148
2149
2150
2151
2152
2153
# File 'pipes/cfn_pipe.rb', line 2146

def to_jsii
  result = {}
  result.merge!({
    "httpParameters" => @http_parameters,
    "inputTemplate" => @input_template,
  })
  result.compact
end