UNPKG

951 BTypeScriptView Raw
1import * as lambda from '@aws-cdk/aws-lambda';
2import { Duration, NestedStack } from '@aws-cdk/core';
3import * as cr from '@aws-cdk/custom-resources';
4import { Construct } from 'constructs';
5/**
6 * Properties for a ReplicaProvider
7 */
8export interface ReplicaProviderProps {
9 /**
10 * The timeout for the replication operation.
11 *
12 * @default Duration.minutes(30)
13 */
14 readonly timeout?: Duration;
15}
16export declare class ReplicaProvider extends NestedStack {
17 /**
18 * Creates a stack-singleton resource provider nested stack.
19 */
20 static getOrCreate(scope: Construct, props?: ReplicaProviderProps): ReplicaProvider;
21 /**
22 * The custom resource provider.
23 */
24 readonly provider: cr.Provider;
25 /**
26 * The onEvent handler
27 */
28 readonly onEventHandler: lambda.Function;
29 /**
30 * The isComplete handler
31 */
32 readonly isCompleteHandler: lambda.Function;
33 private constructor();
34}