@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:42.894Z") @Stability(value=Stable) public interface SdkCallsPolicyOptions extends software.amazon.jsii.JsiiSerializable
Example:
AwsCustomResource getParameter = AwsCustomResource.Builder.create(this, "GetParameter")
.onUpdate(AwsSdkCall.builder() // will also be called for a CREATE event
.service("SSM")
.action("getParameter")
.parameters(Map.of(
"Name", "my-parameter",
"WithDecryption", true))
.physicalResourceId(PhysicalResourceId.of(Date.now().toString())).build())
.policy(AwsCustomResourcePolicy.fromSdkCalls(SdkCallsPolicyOptions.builder()
.resources(AwsCustomResourcePolicy.ANY_RESOURCE)
.build()))
.build();
// Use the value in another construct with
getParameter.getResponseField("Parameter.Value");
| Modifier and Type | Interface and Description |
|---|---|
static class |
SdkCallsPolicyOptions.Builder
A builder for
SdkCallsPolicyOptions |
static class |
SdkCallsPolicyOptions.Jsii$Proxy
An implementation for
SdkCallsPolicyOptions |
| Modifier and Type | Method and Description |
|---|---|
static SdkCallsPolicyOptions.Builder |
builder() |
List<String> |
getResources()
The resources that the calls will have access to.
|
@Stability(value=Stable) @NotNull List<String> getResources()
It is best to use specific resource ARN's when possible. However, you can also use AwsCustomResourcePolicy.ANY_RESOURCE
to allow access to all resources. For example, when onCreate is used to create a resource which you don't
know the physical name of in advance.
Note that will apply to ALL SDK calls.
@Stability(value=Stable) static SdkCallsPolicyOptions.Builder builder()
SdkCallsPolicyOptions.Builder of SdkCallsPolicyOptionsCopyright © 2022. All rights reserved.