public static final class AwsSdkCall.Builder
extends java.lang.Object
AwsSdkCall
Constructor and Description |
---|
Builder() |
public AwsSdkCall.Builder action(java.lang.String action)
AwsSdkCall.getAction()
action
- The service action to call. This parameter is required.this
public AwsSdkCall.Builder service(java.lang.String service)
AwsSdkCall.getService()
service
- The service to call. This parameter is required.this
public AwsSdkCall.Builder apiVersion(java.lang.String apiVersion)
AwsSdkCall.getApiVersion()
apiVersion
- API version to use for the service.this
public AwsSdkCall.Builder assumedRoleArn(java.lang.String assumedRoleArn)
AwsSdkCall.getAssumedRoleArn()
assumedRoleArn
- Used for running the SDK calls in underlying lambda with a different role Can be used primarily for cross-account requests to for example connect hostedzone with a shared vpc.
Example for Route53 / associateVPCWithHostedZonethis
public AwsSdkCall.Builder ignoreErrorCodesMatching(java.lang.String ignoreErrorCodesMatching)
AwsSdkCall.getIgnoreErrorCodesMatching()
ignoreErrorCodesMatching
- 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
@Deprecated public AwsSdkCall.Builder outputPath(java.lang.String outputPath)
AwsSdkCall.getOutputPath()
outputPath
- Restrict the data returned by the custom resource to a specific path in the API response.
Use this to limit the data returned by the custom
resource if working with API calls that could potentially result in custom
response objects exceeding the hard limit of 4096 bytes.
Example for ECS / updateService: 'service.deploymentConfiguration.maximumPercent'
this
public AwsSdkCall.Builder outputPaths(java.util.List<java.lang.String> outputPaths)
AwsSdkCall.getOutputPaths()
outputPaths
- Restrict the data returned by the custom resource to specific paths in the API response.
Use this to limit the data returned by the custom
resource if working with API calls that could potentially result in custom
response objects exceeding the hard limit of 4096 bytes.
Example for ECS / updateService: ['service.deploymentConfiguration.maximumPercent']
this
public AwsSdkCall.Builder parameters(java.lang.Object parameters)
AwsSdkCall.getParameters()
parameters
- The parameters for the service action.this
public AwsSdkCall.Builder physicalResourceId(PhysicalResourceId physicalResourceId)
AwsSdkCall.getPhysicalResourceId()
physicalResourceId
- The physical resource id of the custom resource for this call.
Mandatory for onCreate or onUpdate calls.this
public AwsSdkCall.Builder region(java.lang.String region)
AwsSdkCall.getRegion()
region
- The region to send service requests to.
Note: Cross-region operations are generally considered an anti-pattern.
Consider first deploying a stack in that region.this
public AwsSdkCall build()
AwsSdkCall
java.lang.NullPointerException
- if any required attribute was not provided