Skip to content

CustomResourceProps

Properties for defining a CustomResource.

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

Initializer

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkros"
&alicloudroscdkros.CustomResourceProps {
    ServiceToken: interface{},
    Timeout: interface{},
    HttpConfig: interface{},
    Parameters: interface{},
}

Properties

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

ServiceTokenRequired

ServiceToken interface{}
  • Type: interface{}

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 interface{}
  • Type: interface{}

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

HttpConfig interface{}
  • Type: interface{}

Property httpConfig: Config for HTTP&HTTPS service provider.


ParametersOptional

Parameters interface{}
  • Type: interface{}

Property parameters: Parameters to be passed to service provider.