AWS Classic
getInvocation
Use this data source to invoke custom lambda functions as data source. The lambda function is invoked with RequestResponse invocation type.
Using getInvocation
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getInvocation(args: GetInvocationArgs, opts?: InvokeOptions): Promise<GetInvocationResult>
function getInvocationOutput(args: GetInvocationOutputArgs, opts?: InvokeOptions): Output<GetInvocationResult>
def get_invocation(function_name: Optional[str] = None,
input: Optional[str] = None,
qualifier: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetInvocationResult
def get_invocation_output(function_name: Optional[pulumi.Input[str]] = None,
input: Optional[pulumi.Input[str]] = None,
qualifier: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetInvocationResult]
func LookupInvocation(ctx *Context, args *LookupInvocationArgs, opts ...InvokeOption) (*LookupInvocationResult, error)
func LookupInvocationOutput(ctx *Context, args *LookupInvocationOutputArgs, opts ...InvokeOption) LookupInvocationResultOutput
> Note: This function is named LookupInvocation
in the Go SDK.
public static class GetInvocation
{
public static Task<GetInvocationResult> InvokeAsync(GetInvocationArgs args, InvokeOptions? opts = null)
public static Output<GetInvocationResult> Invoke(GetInvocationInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetInvocationResult> getInvocation(GetInvocationArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
Function: aws:lambda/getInvocation:getInvocation
Arguments:
# Arguments dictionary
The following arguments are supported:
- Function
Name string The name of the lambda function.
- Input string
A string in JSON format that is passed as payload to the lambda function.
- Qualifier string
The qualifier (a.k.a version) of the lambda function. Defaults to
$LATEST
.
- Function
Name string The name of the lambda function.
- Input string
A string in JSON format that is passed as payload to the lambda function.
- Qualifier string
The qualifier (a.k.a version) of the lambda function. Defaults to
$LATEST
.
- function
Name String The name of the lambda function.
- input String
A string in JSON format that is passed as payload to the lambda function.
- qualifier String
The qualifier (a.k.a version) of the lambda function. Defaults to
$LATEST
.
- function
Name string The name of the lambda function.
- input string
A string in JSON format that is passed as payload to the lambda function.
- qualifier string
The qualifier (a.k.a version) of the lambda function. Defaults to
$LATEST
.
- function_
name str The name of the lambda function.
- input str
A string in JSON format that is passed as payload to the lambda function.
- qualifier str
The qualifier (a.k.a version) of the lambda function. Defaults to
$LATEST
.
- function
Name String The name of the lambda function.
- input String
A string in JSON format that is passed as payload to the lambda function.
- qualifier String
The qualifier (a.k.a version) of the lambda function. Defaults to
$LATEST
.
getInvocation Result
The following output properties are available:
- Function
Name string - Id string
The provider-assigned unique ID for this managed resource.
- Input string
- Result string
String result of the lambda function invocation.
- Qualifier string
- Function
Name string - Id string
The provider-assigned unique ID for this managed resource.
- Input string
- Result string
String result of the lambda function invocation.
- Qualifier string
- function
Name String - id String
The provider-assigned unique ID for this managed resource.
- input String
- result String
String result of the lambda function invocation.
- qualifier String
- function
Name string - id string
The provider-assigned unique ID for this managed resource.
- input string
- result string
String result of the lambda function invocation.
- qualifier string
- function_
name str - id str
The provider-assigned unique ID for this managed resource.
- input str
- result str
String result of the lambda function invocation.
- qualifier str
- function
Name String - id String
The provider-assigned unique ID for this managed resource.
- input String
- result String
String result of the lambda function invocation.
- qualifier String
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
aws
Terraform Provider.