@Deprecated public static final class CustomResourceProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CustomResourceProps
CustomResourceProps
CustomResourceProps.Builder, CustomResourceProps.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Deprecated.
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
Modifier and Type | Method and Description |
---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson()
Deprecated.
|
boolean |
equals(java.lang.Object o)
Deprecated.
|
java.util.Map<java.lang.String,java.lang.Object> |
getProperties()
Deprecated.
(deprecated) Properties to pass to the Lambda.
|
ICustomResourceProvider |
getProvider()
Deprecated.
(deprecated) The provider which implements the custom resource.
|
RemovalPolicy |
getRemovalPolicy()
Deprecated.
(deprecated) The policy to apply when this resource is removed from the application.
|
java.lang.String |
getResourceType()
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.
|
int |
hashCode()
Deprecated.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
builder
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef
- Reference to the JSII managed object.public final ICustomResourceProvider getProvider()
CustomResourceProps
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);
getProvider
in interface CustomResourceProps
public final java.util.Map<java.lang.String,java.lang.Object> getProperties()
CustomResourceProps
Default: - No properties.
getProperties
in interface CustomResourceProps
public final RemovalPolicy getRemovalPolicy()
CustomResourceProps
Default: cdk.RemovalPolicy.Destroy
getRemovalPolicy
in interface CustomResourceProps
public final java.lang.String getResourceType()
CustomResourceProps
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
public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
public final boolean equals(java.lang.Object o)
public final int hashCode()