Class SdkCallsPolicyOptions.Builder
java.lang.Object
software.amazon.awscdk.customresources.SdkCallsPolicyOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<SdkCallsPolicyOptions>
- Enclosing interface:
SdkCallsPolicyOptions
@Stability(Stable)
public static final class SdkCallsPolicyOptions.Builder
extends Object
implements software.amazon.jsii.Builder<SdkCallsPolicyOptions>
A builder for
SdkCallsPolicyOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofSdkCallsPolicyOptions.getResources()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
resources
Sets the value ofSdkCallsPolicyOptions.getResources()
- Parameters:
resources
- The resources that the calls will have access to. This parameter is required. It is best to use specific resource ARN's when possible. However, you can also useAwsCustomResourcePolicy.ANY_RESOURCE
to allow access to all resources. For example, whenonCreate
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.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<SdkCallsPolicyOptions>
- Returns:
- a new instance of
SdkCallsPolicyOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-