alicloud.MscSubWebhook
Explore with Pulumi AI
Provides a Msc Sub Webhook resource.
NOTE: Available since v1.141.0.
Create MscSubWebhook Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MscSubWebhook(name: string, args: MscSubWebhookArgs, opts?: CustomResourceOptions);
@overload
def MscSubWebhook(resource_name: str,
args: MscSubWebhookArgs,
opts: Optional[ResourceOptions] = None)
@overload
def MscSubWebhook(resource_name: str,
opts: Optional[ResourceOptions] = None,
server_url: Optional[str] = None,
webhook_name: Optional[str] = None)
func NewMscSubWebhook(ctx *Context, name string, args MscSubWebhookArgs, opts ...ResourceOption) (*MscSubWebhook, error)
public MscSubWebhook(string name, MscSubWebhookArgs args, CustomResourceOptions? opts = null)
public MscSubWebhook(String name, MscSubWebhookArgs args)
public MscSubWebhook(String name, MscSubWebhookArgs args, CustomResourceOptions options)
type: alicloud:MscSubWebhook
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args MscSubWebhookArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args MscSubWebhookArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args MscSubWebhookArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MscSubWebhookArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MscSubWebhookArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var mscSubWebhookResource = new AliCloud.MscSubWebhook("mscSubWebhookResource", new()
{
ServerUrl = "string",
WebhookName = "string",
});
example, err := alicloud.NewMscSubWebhook(ctx, "mscSubWebhookResource", &alicloud.MscSubWebhookArgs{
ServerUrl: pulumi.String("string"),
WebhookName: pulumi.String("string"),
})
var mscSubWebhookResource = new MscSubWebhook("mscSubWebhookResource", MscSubWebhookArgs.builder()
.serverUrl("string")
.webhookName("string")
.build());
msc_sub_webhook_resource = alicloud.MscSubWebhook("mscSubWebhookResource",
server_url="string",
webhook_name="string")
const mscSubWebhookResource = new alicloud.MscSubWebhook("mscSubWebhookResource", {
serverUrl: "string",
webhookName: "string",
});
type: alicloud:MscSubWebhook
properties:
serverUrl: string
webhookName: string
MscSubWebhook Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The MscSubWebhook resource accepts the following input properties:
- Server
Url string - The serverUrl of the Webhook. This url must start with
https://oapi.dingtalk.com/robot/send?access_token=
. - Webhook
Name string - The name of the Webhook. Note: The name must be
2
to12
characters in length, and can contain uppercase and lowercase letters.
- Server
Url string - The serverUrl of the Webhook. This url must start with
https://oapi.dingtalk.com/robot/send?access_token=
. - Webhook
Name string - The name of the Webhook. Note: The name must be
2
to12
characters in length, and can contain uppercase and lowercase letters.
- server
Url String - The serverUrl of the Webhook. This url must start with
https://oapi.dingtalk.com/robot/send?access_token=
. - webhook
Name String - The name of the Webhook. Note: The name must be
2
to12
characters in length, and can contain uppercase and lowercase letters.
- server
Url string - The serverUrl of the Webhook. This url must start with
https://oapi.dingtalk.com/robot/send?access_token=
. - webhook
Name string - The name of the Webhook. Note: The name must be
2
to12
characters in length, and can contain uppercase and lowercase letters.
- server_
url str - The serverUrl of the Webhook. This url must start with
https://oapi.dingtalk.com/robot/send?access_token=
. - webhook_
name str - The name of the Webhook. Note: The name must be
2
to12
characters in length, and can contain uppercase and lowercase letters.
- server
Url String - The serverUrl of the Webhook. This url must start with
https://oapi.dingtalk.com/robot/send?access_token=
. - webhook
Name String - The name of the Webhook. Note: The name must be
2
to12
characters in length, and can contain uppercase and lowercase letters.
Outputs
All input properties are implicitly available as output properties. Additionally, the MscSubWebhook resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing MscSubWebhook Resource
Get an existing MscSubWebhook resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: MscSubWebhookState, opts?: CustomResourceOptions): MscSubWebhook
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
server_url: Optional[str] = None,
webhook_name: Optional[str] = None) -> MscSubWebhook
func GetMscSubWebhook(ctx *Context, name string, id IDInput, state *MscSubWebhookState, opts ...ResourceOption) (*MscSubWebhook, error)
public static MscSubWebhook Get(string name, Input<string> id, MscSubWebhookState? state, CustomResourceOptions? opts = null)
public static MscSubWebhook get(String name, Output<String> id, MscSubWebhookState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Server
Url string - The serverUrl of the Webhook. This url must start with
https://oapi.dingtalk.com/robot/send?access_token=
. - Webhook
Name string - The name of the Webhook. Note: The name must be
2
to12
characters in length, and can contain uppercase and lowercase letters.
- Server
Url string - The serverUrl of the Webhook. This url must start with
https://oapi.dingtalk.com/robot/send?access_token=
. - Webhook
Name string - The name of the Webhook. Note: The name must be
2
to12
characters in length, and can contain uppercase and lowercase letters.
- server
Url String - The serverUrl of the Webhook. This url must start with
https://oapi.dingtalk.com/robot/send?access_token=
. - webhook
Name String - The name of the Webhook. Note: The name must be
2
to12
characters in length, and can contain uppercase and lowercase letters.
- server
Url string - The serverUrl of the Webhook. This url must start with
https://oapi.dingtalk.com/robot/send?access_token=
. - webhook
Name string - The name of the Webhook. Note: The name must be
2
to12
characters in length, and can contain uppercase and lowercase letters.
- server_
url str - The serverUrl of the Webhook. This url must start with
https://oapi.dingtalk.com/robot/send?access_token=
. - webhook_
name str - The name of the Webhook. Note: The name must be
2
to12
characters in length, and can contain uppercase and lowercase letters.
- server
Url String - The serverUrl of the Webhook. This url must start with
https://oapi.dingtalk.com/robot/send?access_token=
. - webhook
Name String - The name of the Webhook. Note: The name must be
2
to12
characters in length, and can contain uppercase and lowercase letters.
Import
Msc Sub Webhook can be imported using the id, e.g.
$ pulumi import alicloud:index/mscSubWebhook:MscSubWebhook example <id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.