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 Details

    • Builder

      public Builder()
  • Method Details

    • resources

      @Stability(Stable) public SdkCallsPolicyOptions.Builder resources(List<String> resources)
      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 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.

      Returns:
      this
    • build

      @Stability(Stable) public SdkCallsPolicyOptions build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<SdkCallsPolicyOptions>
      Returns:
      a new instance of SdkCallsPolicyOptions
      Throws:
      NullPointerException - if any required attribute was not provided