@Stability(value=Experimental) public static final class AwsApiProps.Builder extends Object implements software.amazon.jsii.Builder<AwsApiProps>
AwsApiProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
AwsApiProps.Builder |
action(String action)
Sets the value of
AwsApiInput.getAction() |
AwsApiProps.Builder |
apiVersion(String apiVersion)
Sets the value of
AwsApiInput.getApiVersion() |
AwsApiProps |
build()
Builds the configured instance.
|
AwsApiProps.Builder |
catchErrorPattern(String catchErrorPattern)
Sets the value of
AwsApiInput.getCatchErrorPattern() |
AwsApiProps.Builder |
parameters(Object parameters)
Sets the value of
AwsApiInput.getParameters() |
AwsApiProps.Builder |
policyStatement(PolicyStatement policyStatement)
Sets the value of
AwsApiProps.getPolicyStatement() |
AwsApiProps.Builder |
service(String service)
Sets the value of
AwsApiInput.getService() |
@Stability(value=Experimental) public AwsApiProps.Builder policyStatement(PolicyStatement policyStatement)
AwsApiProps.getPolicyStatement()policyStatement - The IAM policy statement to allow the API call.
Use only if
resource restriction is needed.this@Stability(value=Experimental) public AwsApiProps.Builder action(String action)
AwsApiInput.getAction()action - The service action to call. This parameter is required.this@Stability(value=Experimental) public AwsApiProps.Builder service(String service)
AwsApiInput.getService()service - The service to call. This parameter is required.this@Stability(value=Experimental) public AwsApiProps.Builder apiVersion(String apiVersion)
AwsApiInput.getApiVersion()apiVersion - API version to use for the service.this@Stability(value=Experimental) public AwsApiProps.Builder catchErrorPattern(String catchErrorPattern)
AwsApiInput.getCatchErrorPattern()catchErrorPattern - The regex pattern to use to catch API errors.
The code property of the
Error object will be tested against this pattern. If there is a match an
error will not be thrown.this@Stability(value=Experimental) public AwsApiProps.Builder parameters(Object parameters)
AwsApiInput.getParameters()parameters - The parameters for the service action.this@Stability(value=Experimental) public AwsApiProps build()
build in interface software.amazon.jsii.Builder<AwsApiProps>AwsApiPropsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.