Class CfnCustomResource.Builder

java.lang.Object
software.amazon.awscdk.services.cloudformation.CfnCustomResource.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCustomResource>
Enclosing class:
CfnCustomResource

@Stability(Stable) public static final class CfnCustomResource.Builder extends Object implements software.amazon.jsii.Builder<CfnCustomResource>
A fluent builder for CfnCustomResource.
  • Method Details

    • create

      @Stability(Stable) public static CfnCustomResource.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnCustomResource.Builder.
    • serviceToken

      @Stability(Stable) public CfnCustomResource.Builder serviceToken(String serviceToken)

      Only one property is defined by AWS for a custom resource: ServiceToken .

      All other properties are defined by the service provider.

      The service token that was given to the template developer by the service provider to access the service, such as an Amazon SNS topic ARN or Lambda function ARN. The service token must be from the same Region in which you are creating the stack.

      Updates aren't supported.

      Parameters:
      serviceToken -

      Only one property is defined by AWS for a custom resource: ServiceToken .

      This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnCustomResource build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnCustomResource>
      Returns:
      a newly built instance of CfnCustomResource.