Class AwsApi
Use an AWS Lambda function that makes API calls as an event rule target.
Inheritance
System.Object
AwsApi
Implements
Namespace: Amazon.CDK.AWS.Events.Targets
Assembly: Amazon.CDK.AWS.Events.Targets.dll
Syntax (csharp)
public class AwsApi : DeputyBase, IRuleTarget
Syntax (vb)
Public Class AwsApi
Inherits DeputyBase
Implements IRuleTarget
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Events.Targets;
using Amazon.CDK.AWS.IAM;
var parameters;
PolicyStatement policyStatement;
var awsApi = new AwsApi(new AwsApiProps {
Action = "action",
Service = "service",
// the properties below are optional
ApiVersion = "apiVersion",
CatchErrorPattern = "catchErrorPattern",
Parameters = parameters,
PolicyStatement = policyStatement
});
Synopsis
Constructors
AwsApi(IAwsApiProps) | |
AwsApi(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
AwsApi(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Methods
Bind(IRule, String) | Returns a RuleTarget that can be used to trigger this AwsApi as a result from an EventBridge event. |
Constructors
AwsApi(IAwsApiProps)
AwsApi(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected AwsApi(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
AwsApi(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected AwsApi(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Methods
Bind(IRule, String)
Returns a RuleTarget that can be used to trigger this AwsApi as a result from an EventBridge event.
public virtual IRuleTargetConfig Bind(IRule rule, string id = null)
Parameters
- rule IRule
- id System.String
Returns