@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)",
date="2023-03-22T19:35:45.247Z")
public interface SdkCallsPolicyOptions
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();
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() |
java.util.List<java.lang.String> |
getResources()
The resources that the calls will have access to.
|
java.util.List<java.lang.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.
static SdkCallsPolicyOptions.Builder builder()
SdkCallsPolicyOptions.Builder
of SdkCallsPolicyOptions