Skip to content

CustomResourceProps

Properties for defining a CustomResource.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ros-customresource

Initializer

import { CustomResourceProps } from '@alicloud/ros-cdk-ros'
const customResourceProps: CustomResourceProps = { ... }

Properties

Name Type Description
serviceToken string | @alicloud/ros-cdk-core.IResolvable Property serviceToken: The service token that was given to the template developer by the service provider to access the service.
timeout number | @alicloud/ros-cdk-core.IResolvable Property timeout: Timeout seconds before service provider responses.
httpConfig @alicloud/ros-cdk-core.IResolvable | HttpConfigProperty Property httpConfig: Config for HTTP&HTTPS service provider.
parameters @alicloud/ros-cdk-core.IResolvable | {[ key: string ]: any} Property parameters: Parameters to be passed to service provider.

serviceTokenRequired

public readonly serviceToken: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property serviceToken: The service token that was given to the template developer by the service provider to access the service.

Allowed values: - Function Compute: acs:fc:::services\/\/functions\/ - MNS Queue: acs:mns:::queues\/ or acs:mns:::\/queues\/ - MNS Topic: acs:mns:::topics\/ or acs:mns:::\/topics\/ - HTTP&HTTPS: web[options]: Two options are supported: - sync: sync HTTP&HTTPS request. - idempotent: indicates that the Create request is idempotent. Update and Delete requests should be always idempotent. Examples: - acs:fc:cn-hangzhou:123456789:services\/test-service\/functions\/test-function - acs:mns:cn-hangzhou:123456789:queues\/test-queue - acs:mns:cn-hangzhou:123456789:\/queues\/test-queue - acs:mns:cn-hangzhou:123456789:topics\/test-topic - acs:mns:cn-hangzhou:123456789:\/topics\/test-topic - web:https:\/\/abc.com - web[sync]:http:\/\/abc.com - web[sync,idempotent]:https:\/\/abc.com


timeoutRequired

public readonly timeout: number | IResolvable;
  • Type: number | @alicloud/ros-cdk-core.IResolvable

Property timeout: Timeout seconds before service provider responses.

It takes effects only if the type of ServiceToken is Function Compute, MNS Queue, MNS Topic or async HTTP&HTTPS request. Timeout seconds are always 10 for sync HTTP&HTTPS request.


httpConfigOptional

public readonly httpConfig: IResolvable | HttpConfigProperty;

Property httpConfig: Config for HTTP&HTTPS service provider.


parametersOptional

public readonly parameters: IResolvable | {[ key: string ]: any};
  • Type: @alicloud/ros-cdk-core.IResolvable | {[ key: string ]: any}

Property parameters: Parameters to be passed to service provider.