interface CfnCustomResourceProps
Language | Type name |
---|---|
.NET | Amazon.CDK.CfnCustomResourceProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2#CfnCustomResourceProps |
Java | software.amazon.awscdk.CfnCustomResourceProps |
Python | aws_cdk.CfnCustomResourceProps |
TypeScript | aws-cdk-lib » CfnCustomResourceProps |
Properties for defining a CfnCustomResource
.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';
const cfnCustomResourceProps: cdk.CfnCustomResourceProps = {
serviceToken: 'serviceToken',
// the properties below are optional
serviceTimeout: 123,
};
Properties
Name | Type | Description |
---|---|---|
service | string | The service token, such as an Amazon SNS topic ARN or Lambda function ARN. |
service | number | The maximum time, in seconds, that can elapse before a custom resource operation times out. |
serviceToken
Type:
string
The service token, such as an Amazon SNS topic ARN or Lambda function ARN.
The service token must be from the same Region as the stack.
Updates aren't supported.
serviceTimeout?
Type:
number
(optional)
The maximum time, in seconds, that can elapse before a custom resource operation times out.
The value must be an integer from 1 to 3600. The default value is 3600 seconds (1 hour).