Interface SdkCallsPolicyOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
SdkCallsPolicyOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:42.056Z")
@Stability(Stable)
public interface SdkCallsPolicyOptions
extends software.amazon.jsii.JsiiSerializable
Options for the auto-generation of policies based on the configured SDK calls.
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
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forSdkCallsPolicyOptionsstatic final classAn implementation forSdkCallsPolicyOptions -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getResources
The resources that the calls will have access to.It is best to use specific resource ARN's when possible. However, you can also use
AwsCustomResourcePolicy.ANY_RESOURCEto allow access to all resources. For example, whenonCreateis used to create a resource which you don't know the physical name of in advance.Note that will apply to ALL SDK calls.
-
builder
- Returns:
- a
SdkCallsPolicyOptions.BuilderofSdkCallsPolicyOptions
-