Skip to content

CustomResourceProps

Properties for defining a CustomResource.

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

Initializer

import ros_cdk_ros
ros_cdk_ros.CustomResourceProps(
  service_token: typing.Union[str, IResolvable],
  timeout: typing.Union[typing.Union[int, float], IResolvable],
  http_config: typing.Union[IResolvable, HttpConfigProperty] = None,
  parameters: typing.Union[IResolvable, typing.Mapping[typing.Any]] = None
)

Properties

Name Type Description
service_token typing.Union[str, 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 typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property timeout: Timeout seconds before service provider responses.
http_config typing.Union[ros_cdk_core.IResolvable, HttpConfigProperty] Property httpConfig: Config for HTTP&HTTPS service provider.
parameters typing.Union[ros_cdk_core.IResolvable, typing.Mapping[typing.Any]] Property parameters: Parameters to be passed to service provider.

service_tokenRequired

service_token: typing.Union[str, IResolvable]
  • Type: typing.Union[str, 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

timeout: typing.Union[typing.Union[int, float], IResolvable]
  • Type: typing.Union[typing.Union[int, float], 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.


http_configOptional

http_config: typing.Union[IResolvable, HttpConfigProperty]

Property httpConfig: Config for HTTP&HTTPS service provider.


parametersOptional

parameters: typing.Union[IResolvable, typing.Mapping[typing.Any]]
  • Type: typing.Union[ros_cdk_core.IResolvable, typing.Mapping[typing.Any]]

Property parameters: Parameters to be passed to service provider.