Module: Sfn::MockMacros

Includes:
ApiGateway, Lambda, NativeIntegration, OptimisedStepFunction, SdkIntegration, SecretsManager, Sns, Sqs, StepFunction
Defined in:
lib/sfn/mock_macros.rb,
lib/sfn/mock_macros/sns.rb,
lib/sfn/mock_macros/sqs.rb,
lib/sfn/mock_macros/lambda.rb,
lib/sfn/mock_macros/api_gateway.rb,
lib/sfn/mock_macros/step_function.rb,
lib/sfn/mock_macros/sdk_integration.rb,
lib/sfn/mock_macros/secrets_manager.rb,
lib/sfn/mock_macros/native_integration.rb,
lib/sfn/mock_macros/optimised_step_function.rb

Defined Under Namespace

Modules: ApiGateway, Lambda, NativeIntegration, OptimisedStepFunction, SdkIntegration, SecretsManager, Sns, Sqs, StepFunction

Class Method Summary collapse

Methods included from StepFunction

response

Methods included from Sqs

response

Methods included from Sns

response

Methods included from SecretsManager

response, response_body

Methods included from SdkIntegration

response

Methods included from OptimisedStepFunction

response

Methods included from NativeIntegration

response

Methods included from Lambda

response

Methods included from ApiGateway

response

Class Method Details

.gateway_payload(data) ⇒ Object



61
62
63
64
# File 'lib/sfn/mock_macros.rb', line 61

def self.gateway_payload(data)
  warn '[DEPRECATION] `gateway_payload` is deprecated.  Please use `gateway_response` instead.'
  ApiGateway.response(data)
end

.gateway_response(data) ⇒ Object



25
26
27
# File 'lib/sfn/mock_macros.rb', line 25

def self.gateway_response(data)
  ApiGateway.response(data)
end

.lambda_payload(data) ⇒ Object



66
67
68
69
# File 'lib/sfn/mock_macros.rb', line 66

def self.lambda_payload(data)
  warn '[DEPRECATION] `lambda_payload` is deprecated.  Please use `lambda_response` instead.'
  Lambda.response(data)
end

.lambda_response(data) ⇒ Object



29
30
31
# File 'lib/sfn/mock_macros.rb', line 29

def self.lambda_response(data)
  Lambda.response(data)
end

.native_integration_response(data) ⇒ Object



33
34
35
# File 'lib/sfn/mock_macros.rb', line 33

def self.native_integration_response(data)
  NativeIntegration.response(data)
end

.optimised_step_function_response(data) ⇒ Object



37
38
39
# File 'lib/sfn/mock_macros.rb', line 37

def self.optimised_step_function_response(data)
  OptimisedStepFunction.response(data)
end

.sdk_integration_response(data) ⇒ Object



41
42
43
# File 'lib/sfn/mock_macros.rb', line 41

def self.sdk_integration_response(data)
  SdkIntegration.response(data)
end

.secrets_manager_response(data) ⇒ Object



45
46
47
# File 'lib/sfn/mock_macros.rb', line 45

def self.secrets_manager_response(data)
  SecretsManager.response(data)
end

.sns_payload(data) ⇒ Object



71
72
73
74
# File 'lib/sfn/mock_macros.rb', line 71

def self.sns_payload(data)
  warn '[DEPRECATION] `sns_payload` is deprecated.  Please use `sns_response` instead.'
  Sns.response(data)
end

.sns_response(data) ⇒ Object



49
50
51
# File 'lib/sfn/mock_macros.rb', line 49

def self.sns_response(data)
  Sns.response(data)
end

.sqs_response(data) ⇒ Object



53
54
55
# File 'lib/sfn/mock_macros.rb', line 53

def self.sqs_response(data)
  Sqs.response(data)
end

.step_function_payload(data) ⇒ Object



76
77
78
79
# File 'lib/sfn/mock_macros.rb', line 76

def self.step_function_payload(data)
  warn '[DEPRECATION] `step_function_payload` is deprecated.  Please use `step_function_response` instead.'
  StepFunction.response(data)
end

.step_function_response(data, _optimised = false) ⇒ Object



57
58
59
# File 'lib/sfn/mock_macros.rb', line 57

def self.step_function_response(data, _optimised = false)
  StepFunction.response(data)
end