Interface AwsSdkCall
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
AwsSdkCall.Jsii$Proxy
Example:
AwsCustomResource awsCustom = AwsCustomResource.Builder.create(this, "aws-custom") .onCreate(AwsSdkCall.builder() .service("...") .action("...") .parameters(Map.of( "text", "...")) .physicalResourceId(PhysicalResourceId.of("...")) .build()) .onUpdate(AwsSdkCall.builder() .service("...") .action("...") .parameters(Map.of( "text", "...", "resourceId", new PhysicalResourceIdReference())) .build()) .policy(AwsCustomResourcePolicy.fromSdkCalls(SdkCallsPolicyOptions.builder() .resources(AwsCustomResourcePolicy.ANY_RESOURCE) .build())) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forAwsSdkCall
static final class
An implementation forAwsSdkCall
-
Method Summary
Modifier and TypeMethodDescriptionstatic AwsSdkCall.Builder
builder()
The service action to call.default String
API version to use for the service.default String
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.default String
The regex pattern to use to catch API errors.default String
Deprecated.use outputPaths insteadRestrict the data returned by the custom resource to specific paths in the API response.default Object
The parameters for the service action.default PhysicalResourceId
The physical resource id of the custom resource for this call.default String
The region to send service requests to.The service to call.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAction
The service action to call.- See Also:
-
getService
The service to call.- See Also:
-
getApiVersion
API version to use for the service.Default: - use latest available API version
- See Also:
-
getAssumedRoleArn
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 / associateVPCWithHostedZone
Default: - run without assuming role
-
getIgnoreErrorCodesMatching
The regex pattern to use to catch API errors.The
code
property of theError
object will be tested against this pattern. If there is a match an error will not be thrown.Default: - do not catch errors
-
getOutputPath
Deprecated.use outputPaths instead(deprecated) 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'
Default: - return all data
-
getOutputPaths
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']
Default: - return all data
-
getParameters
The parameters for the service action.Default: - no parameters
- See Also:
-
getPhysicalResourceId
The physical resource id of the custom resource for this call.Mandatory for onCreate or onUpdate calls.
Default: - no physical resource id
-
getRegion
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.
Default: - the region where this custom resource is deployed
-
builder
- Returns:
- a
AwsSdkCall.Builder
ofAwsSdkCall
-