Class CustomResourceProvider

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.cloudformation.CustomResourceProvider
All Implemented Interfaces:
ICustomResourceProvider, software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:41.609Z") @Stability(Deprecated) @Deprecated public class CustomResourceProvider extends software.amazon.jsii.JsiiObject implements ICustomResourceProvider
Deprecated.
use core.CustomResource instead
(deprecated) Represents a provider for an AWS CloudFormation custom resources.

Example:

 import software.amazon.awscdk.services.cloudformation.*;
 import software.amazon.awscdk.services.lambda.*;
 Function myFunction;
 // invoke an AWS Lambda function when a lifecycle event occurs:
 CustomResourceProvider provider = CustomResourceProvider.fromLambda(myFunction);
 

  • Constructor Details

    • CustomResourceProvider

      protected CustomResourceProvider(software.amazon.jsii.JsiiObjectRef objRef)
      Deprecated.
    • CustomResourceProvider

      protected CustomResourceProvider(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
      Deprecated.
  • Method Details

    • fromLambda

      @Stability(Deprecated) @Deprecated @NotNull public static CustomResourceProvider fromLambda(@NotNull IFunction handler)
      Deprecated.
      (deprecated) The Lambda provider that implements this custom resource.

      We recommend using a lambda.SingletonFunction for this.

      Parameters:
      handler - This parameter is required.
    • fromTopic

      @Stability(Deprecated) @Deprecated @NotNull public static CustomResourceProvider fromTopic(@NotNull ITopic topic)
      Deprecated.
      (deprecated) The SNS Topic for the provider that implements this custom resource.

      Parameters:
      topic - This parameter is required.
    • lambda

      @Stability(Deprecated) @Deprecated @NotNull public static CustomResourceProvider lambda(@NotNull IFunction handler)
      Deprecated.
      use fromLambda
      (deprecated) Use AWS Lambda as a provider.

      Parameters:
      handler - This parameter is required.
    • topic

      @Stability(Deprecated) @Deprecated @NotNull public static CustomResourceProvider topic(@NotNull ITopic topic)
      Deprecated.
      use fromTopic
      (deprecated) Use an SNS topic as the provider.

      Parameters:
      topic - This parameter is required.
    • bind

      @Stability(Deprecated) @Deprecated @NotNull public CustomResourceProviderConfig bind(@NotNull Construct __)
      Deprecated.
      (deprecated) Called when this provider is used by a CustomResource.

      Specified by:
      bind in interface ICustomResourceProvider
      Parameters:
      _ - This parameter is required.
      Returns:
      provider configuration
    • getServiceToken

      @Stability(Deprecated) @Deprecated @NotNull public String getServiceToken()
      Deprecated.
      (deprecated) the ServiceToken which contains the ARN for this provider.