Interface AwsApiProps
- All Superinterfaces:
AwsApiInput,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
AwsApiProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.121.0 (build d7af9b9)",
date="2025-12-18T18:20:10.710Z")
@Stability(Stable)
public interface AwsApiProps
extends software.amazon.jsii.JsiiSerializable, AwsApiInput
Properties for an AwsApi target.
Example:
Rule rule = Rule.Builder.create(this, "Rule")
.schedule(Schedule.rate(Duration.hours(1)))
.build();
rule.addTarget(AwsApi.Builder.create()
.service("ECS")
.action("updateService")
.parameters(Map.of(
"service", "my-service",
"forceNewDeployment", true))
.build());
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forAwsApiPropsstatic final classAn implementation forAwsApiProps -
Method Summary
Modifier and TypeMethodDescriptionstatic AwsApiProps.Builderbuilder()default PolicyStatementThe IAM policy statement to allow the API call.Methods inherited from interface software.amazon.awscdk.services.events.targets.AwsApiInput
getAction, getApiVersion, getCatchErrorPattern, getParameters, getServiceMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getPolicyStatement
The IAM policy statement to allow the API call.Use only if resource restriction is needed.
Default: - extract the permission from the API call
-
builder
- Returns:
- a
AwsApiProps.BuilderofAwsApiProps
-