Skip to content

CustomResourceProps

Properties for defining a CustomResource.

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

Initializer

using AlibabaCloud.SDK.ROS.CDK.Ros;
new CustomResourceProps {
    object ServiceToken,
    object Timeout,
    object HttpConfig = null,
    object Parameters = null
};

Properties

Name Type Description
ServiceToken object Property serviceToken: The service token that was given to the template developer by the service provider to access the service.
Timeout object Property timeout: Timeout seconds before service provider responses.
HttpConfig object Property httpConfig: Config for HTTP&HTTPS service provider.
Parameters object Property parameters: Parameters to be passed to service provider.

ServiceTokenRequired

public object ServiceToken { get; set; }
  • Type: object

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 object Timeout { get; set; }
  • Type: object

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 object HttpConfig { get; set; }
  • Type: object

Property httpConfig: Config for HTTP&HTTPS service provider.


ParametersOptional

public object Parameters { get; set; }
  • Type: object

Property parameters: Parameters to be passed to service provider.