Class CustomResourceProps.Jsii$Proxy

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.cloudformation.CustomResourceProps.Jsii$Proxy
All Implemented Interfaces:
CustomResourceProps, software.amazon.jsii.JsiiSerializable
Enclosing interface:
CustomResourceProps

@Stability(Deprecated) @Deprecated @Internal public static final class CustomResourceProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CustomResourceProps
Deprecated.
An implementation for CustomResourceProps
  • Nested Class Summary

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

    software.amazon.jsii.JsiiObject.InitializationMode

    Nested classes/interfaces inherited from interface software.amazon.awscdk.services.cloudformation.CustomResourceProps

    CustomResourceProps.Builder, CustomResourceProps.Jsii$Proxy
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Deprecated.
    Constructor that initializes the object based on literal property values passed by the CustomResourceProps.Builder.
    protected
    Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
    Deprecated.
    Constructor that initializes the object based on values retrieved from the JsiiObject.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.fasterxml.jackson.databind.JsonNode
    Deprecated.
     
    final boolean
    Deprecated.
     
    Deprecated.
    (deprecated) Properties to pass to the Lambda.
    Deprecated.
    (deprecated) The provider which implements the custom resource.
    Deprecated.
    (deprecated) The policy to apply when this resource is removed from the application.
    final String
    Deprecated.
    (deprecated) For custom resources, you can specify AWS::CloudFormation::CustomResource (the default) as the resource type, or you can specify your own resource type name.
    final int
    Deprecated.
     

    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, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Jsii$Proxy

      protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
      Deprecated.
      Constructor that initializes the object based on values retrieved from the JsiiObject.
      Parameters:
      objRef - Reference to the JSII managed object.
    • Jsii$Proxy

      protected Jsii$Proxy(CustomResourceProps.Builder builder)
      Deprecated.
      Constructor that initializes the object based on literal property values passed by the CustomResourceProps.Builder.
  • Method Details

    • getProvider

      public final ICustomResourceProvider getProvider()
      Deprecated.
      Description copied from interface: CustomResourceProps
      (deprecated) The provider which implements the custom resource.

      You can implement a provider by listening to raw AWS CloudFormation events through an SNS topic or an AWS Lambda function or use the CDK's custom resource provider framework which makes it easier to implement robust providers.

       import software.amazon.awscdk.customresources.*;
       import software.amazon.awscdk.services.lambda.*;
       import software.amazon.awscdk.core.Stack;
       Function myOnEventLambda;
       Function myIsCompleteLambda;
       Stack stack = new Stack();
       Provider provider = Provider.Builder.create(stack, "myProvider")
               .onEventHandler(myOnEventLambda)
               .isCompleteHandler(myIsCompleteLambda)
               .build();
       

       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);
       

       import software.amazon.awscdk.services.cloudformation.*;
       import software.amazon.awscdk.services.sns.*;
       Topic myTopic;
       // publish lifecycle events to an SNS topic:
       CustomResourceProvider provider = CustomResourceProvider.fromTopic(myTopic);
       
      Specified by:
      getProvider in interface CustomResourceProps
    • getProperties

      public final Map<String,Object> getProperties()
      Deprecated.
      Description copied from interface: CustomResourceProps
      (deprecated) Properties to pass to the Lambda.

      Default: - No properties.

      Specified by:
      getProperties in interface CustomResourceProps
    • getRemovalPolicy

      public final RemovalPolicy getRemovalPolicy()
      Deprecated.
      Description copied from interface: CustomResourceProps
      (deprecated) The policy to apply when this resource is removed from the application.

      Default: cdk.RemovalPolicy.Destroy

      Specified by:
      getRemovalPolicy in interface CustomResourceProps
    • getResourceType

      public final String getResourceType()
      Deprecated.
      Description copied from interface: CustomResourceProps
      (deprecated) For custom resources, you can specify AWS::CloudFormation::CustomResource (the default) as the resource type, or you can specify your own resource type name.

      For example, you can use "Custom::MyCustomResourceTypeName".

      Custom resource type names must begin with "Custom::" and can include alphanumeric characters and the following characters: _@-. You can specify a custom resource type name up to a maximum length of 60 characters. You cannot change the type during an update.

      Using your own resource type names helps you quickly differentiate the types of custom resources in your stack. For example, if you had two custom resources that conduct two different ping tests, you could name their type as Custom::PingTester to make them easily identifiable as ping testers (instead of using AWS::CloudFormation::CustomResource).

      Default: - AWS::CloudFormation::CustomResource

      Specified by:
      getResourceType in interface CustomResourceProps
      See Also:
    • $jsii$toJson

      @Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
      Deprecated.
      Specified by:
      $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
    • equals

      public final boolean equals(Object o)
      Deprecated.
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Deprecated.
      Overrides:
      hashCode in class Object