CfnCustomResourceProps Struct
Properties for defining a CfnCustomResource.
| Source | |
|---|---|
| Type last changed |
Example
ts
// 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,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk as cdk
cfn_custom_resource_props = cdk.CfnCustomResourceProps(
service_token="serviceToken",
# the properties below are optional
service_timeout=123
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;
CfnCustomResourceProps cfnCustomResourceProps = CfnCustomResourceProps.builder()
.serviceToken("serviceToken")
// the properties below are optional
.serviceTimeout(123)
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK;
var cfnCustomResourceProps = new CfnCustomResourceProps {
ServiceToken = "serviceToken",
// the properties below are optional
ServiceTimeout = 123
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import cdk "github.com/aws/aws-cdk-go/awscdk"
cfnCustomResourceProps := &CfnCustomResourceProps{
ServiceToken: jsii.String("serviceToken"),
// the properties below are optional
ServiceTimeout: jsii.Number(123),
}
Properties
serviceTimeoutoptionalnumberservice_timeoutoptionalint | floatserviceTimeoutoptionalNumberServiceTimeoutoptionaldoubleServiceTimeoutoptional*float64 #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).
serviceTokenstringservice_tokenstrserviceTokenStringServiceTokenstringServiceToken*string required #The service token, such as an Amazon topic ARN or Lambda function ARN.
The service token must be from the same Region as the stack.
Updates aren't supported.