@Generated(value="jsii-pacmak/1.26.0 (build 7d76e02)", date="2021-03-25T11:29:28.781Z") @Stability(value=Deprecated) @Deprecated public interface CustomResourceProps extends software.amazon.jsii.JsiiSerializable
| Modifier and Type | Interface and Description |
|---|---|
static class |
CustomResourceProps.Builder
Deprecated.
|
static class |
CustomResourceProps.Jsii$Proxy
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static CustomResourceProps.Builder |
builder()
Deprecated.
|
default Map<String,Object> |
getProperties()
Deprecated.
|
ICustomResourceProvider |
getProvider()
Deprecated.
|
default RemovalPolicy |
getRemovalPolicy()
Deprecated.
|
default String |
getResourceType()
Deprecated.
|
@Stability(value=Deprecated) @Deprecated @NotNull ICustomResourceProvider getProvider()
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.
// Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
provider: new custom_resources.Provider({
onEventHandler: myOnEventLambda,
isCompleteHandler: myIsCompleteLambda, // optional
});
// Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826 provider: CustomResourceProvider.fromLambda(myFunction)
// Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826 provider: CustomResourceProvider.fromTopic(myTopic)
@Stability(value=Deprecated) @Deprecated @Nullable default Map<String,Object> getProperties()
Default: - No properties.
@Stability(value=Deprecated) @Deprecated @Nullable default RemovalPolicy getRemovalPolicy()
Default: cdk.RemovalPolicy.Destroy
@Stability(value=Deprecated) @Deprecated @Nullable default String getResourceType()
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
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cfn-customresource.html#aws-cfn-resource-type-name@Stability(value=Deprecated) @Deprecated static CustomResourceProps.Builder builder()
CustomResourceProps.Builder of CustomResourcePropsCopyright © 2021. All rights reserved.