Interface AwsApiProps

All Superinterfaces:
AwsApiInput, software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
AwsApiProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.113.0 (build fc68b25)", date="2025-09-15T14:51:57.974Z") @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());
 
  • Method Details

    • getPolicyStatement

      @Stability(Stable) @Nullable default PolicyStatement 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

      @Stability(Stable) static AwsApiProps.Builder builder()
      Returns:
      a AwsApiProps.Builder of AwsApiProps