@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.319Z") @Stability(value=Stable) public class AwsApi extends software.amazon.jsii.JsiiObject implements IRuleTarget
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.events.targets.*;
import software.amazon.awscdk.services.iam.*;
Object parameters;
PolicyStatement policyStatement;
AwsApi awsApi = AwsApi.Builder.create()
.action("action")
.service("service")
// the properties below are optional
.apiVersion("apiVersion")
.catchErrorPattern("catchErrorPattern")
.parameters(parameters)
.policyStatement(policyStatement)
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
AwsApi.Builder
A fluent builder for
AwsApi. |
software.amazon.jsii.JsiiObject.InitializationModeIRuleTarget.Jsii$Default, IRuleTarget.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
AwsApi(AwsApiProps props) |
protected |
AwsApi(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
AwsApi(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
RuleTargetConfig |
bind(IRule rule)
Returns a RuleTarget that can be used to trigger this AwsApi as a result from an EventBridge event.
|
RuleTargetConfig |
bind(IRule rule,
String id)
Returns a RuleTarget that can be used to trigger this AwsApi as a result from an EventBridge event.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected AwsApi(software.amazon.jsii.JsiiObjectRef objRef)
protected AwsApi(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public AwsApi(@NotNull
AwsApiProps props)
props - This parameter is required.@Stability(value=Stable) @NotNull public RuleTargetConfig bind(@NotNull IRule rule, @Nullable String id)
bind in interface IRuleTargetrule - This parameter is required.id - @Stability(value=Stable) @NotNull public RuleTargetConfig bind(@NotNull IRule rule)
bind in interface IRuleTargetrule - This parameter is required.Copyright © 2022. All rights reserved.