Class Provider

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.customresources.Provider
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)", date="2024-05-02T15:58:34.881Z") @Stability(Stable) public class Provider extends software.constructs.Construct
Defines an AWS CloudFormation custom resource provider.

Example:

 Function onEvent;
 Function isComplete;
 Role myRole;
 Provider myProvider = Provider.Builder.create(this, "MyProvider")
         .onEventHandler(onEvent)
         .isCompleteHandler(isComplete)
         .logGroup(LogGroup.Builder.create(this, "MyProviderLogs")
                 .retention(RetentionDays.ONE_DAY)
                 .build())
         .role(myRole)
         .providerFunctionName("the-lambda-name")
         .build();
 
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    A fluent builder for Provider.

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode

    Nested classes/interfaces inherited from interface software.constructs.IConstruct

    software.constructs.IConstruct.Jsii$Default, software.constructs.IConstruct.Jsii$Proxy
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Provider(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    Provider(software.amazon.jsii.JsiiObjectRef objRef)
     
     
    Provider(software.constructs.Construct scope, String id, ProviderProps props)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    The user-defined AWS Lambda function which is invoked asynchronously in order to determine if the operation is complete.
    The user-defined AWS Lambda function which is invoked for all resource lifecycle operations (CREATE/UPDATE/DELETE).
    The service token to use in order to define custom resources that are backed by this provider.

    Methods inherited from class software.constructs.Construct

    getNode, isConstruct, toString

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Constructor Details

    • Provider

      protected Provider(software.amazon.jsii.JsiiObjectRef objRef)
    • Provider

      protected Provider(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • Provider

      @Stability(Stable) public Provider(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull ProviderProps props)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      props - This parameter is required.
  • Method Details

    • getOnEventHandler

      @Stability(Stable) @NotNull public IFunction getOnEventHandler()
      The user-defined AWS Lambda function which is invoked for all resource lifecycle operations (CREATE/UPDATE/DELETE).
    • getServiceToken

      @Stability(Stable) @NotNull public String getServiceToken()
      The service token to use in order to define custom resources that are backed by this provider.
    • getIsCompleteHandler

      @Stability(Stable) @Nullable public IFunction getIsCompleteHandler()
      The user-defined AWS Lambda function which is invoked asynchronously in order to determine if the operation is complete.