AwsApiInput Struct
Rule target input for an AwsApi target.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_events_targets as events_targets } from 'aws-cdk-lib';
declare const parameters: any;
const awsApiInput: events_targets.AwsApiInput = {
action: 'action',
service: 'service',
// the properties below are optional
apiVersion: 'apiVersion',
catchErrorPattern: 'catchErrorPattern',
parameters: parameters,
};
Properties
The service action to call.
apiVersionoptionalstringapi_versionoptionalstrapiVersionoptionalStringApiVersionoptionalstringApiVersionoptional*stringdeprecated#the handler code was migrated to AWS SDK for JavaScript v3, which does not support this feature anymore
catchErrorPatternoptionalstringcatch_error_patternoptionalstrcatchErrorPatternoptionalStringCatchErrorPatternoptionalstringCatchErrorPatternoptional*string#The regex pattern to use to catch API errors.
Default: do not catch errors
The code property of the Error object will be tested against this pattern. If there is a match an error will not be thrown.
parametersoptionalanyparametersoptionalAnyparametersoptionalObjectParametersoptionalobjectParametersoptionalinterface{}#The parameters for the service action.
Default: no parameters
The service to call.