| Modifier and Type | Method and Description |
|---|---|
AwsApi.Builder |
action(String action)
The service action to call.
|
AwsApi.Builder |
apiVersion(String apiVersion)
API version to use for the service.
|
AwsApi |
build() |
AwsApi.Builder |
catchErrorPattern(String catchErrorPattern)
The regex pattern to use to catch API errors.
|
static AwsApi.Builder |
create() |
AwsApi.Builder |
parameters(Object parameters)
The parameters for the service action.
|
AwsApi.Builder |
policyStatement(PolicyStatement policyStatement)
The IAM policy statement to allow the API call.
|
AwsApi.Builder |
service(String service)
The service to call.
|
@Stability(value=Stable) public static AwsApi.Builder create()
AwsApi.Builder.@Stability(value=Stable) public AwsApi.Builder action(String action)
action - The service action to call. This parameter is required.this@Stability(value=Stable) public AwsApi.Builder service(String service)
service - The service to call. This parameter is required.this@Stability(value=Stable) public AwsApi.Builder apiVersion(String apiVersion)
Default: - use latest available API version
apiVersion - API version to use for the service. This parameter is required.this@Stability(value=Stable) public AwsApi.Builder catchErrorPattern(String catchErrorPattern)
The code property of the
Error object will be tested against this pattern. If there is a match an
error will not be thrown.
Default: - do not catch errors
catchErrorPattern - The regex pattern to use to catch API errors. This parameter is required.this@Stability(value=Stable) public AwsApi.Builder parameters(Object parameters)
Default: - no parameters
parameters - The parameters for the service action. This parameter is required.this@Stability(value=Stable) public AwsApi.Builder policyStatement(PolicyStatement policyStatement)
Use only if resource restriction is needed.
Default: - extract the permission from the API call
policyStatement - The IAM policy statement to allow the API call. This parameter is required.thisCopyright © 2022. All rights reserved.