1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. MscSubWebhook
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

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 This property is required. string
The unique name of the resource.
args This property is required. MscSubWebhookArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. MscSubWebhookArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. MscSubWebhookArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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",
});
Copy
example, err := alicloud.NewMscSubWebhook(ctx, "mscSubWebhookResource", &alicloud.MscSubWebhookArgs{
	ServerUrl:   pulumi.String("string"),
	WebhookName: pulumi.String("string"),
})
Copy
var mscSubWebhookResource = new MscSubWebhook("mscSubWebhookResource", MscSubWebhookArgs.builder()
    .serverUrl("string")
    .webhookName("string")
    .build());
Copy
msc_sub_webhook_resource = alicloud.MscSubWebhook("mscSubWebhookResource",
    server_url="string",
    webhook_name="string")
Copy
const mscSubWebhookResource = new alicloud.MscSubWebhook("mscSubWebhookResource", {
    serverUrl: "string",
    webhookName: "string",
});
Copy
type: alicloud:MscSubWebhook
properties:
    serverUrl: string
    webhookName: string
Copy

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:

ServerUrl This property is required. string
The serverUrl of the Webhook. This url must start with https://oapi.dingtalk.com/robot/send?access_token=.
WebhookName This property is required. string
The name of the Webhook. Note: The name must be 2 to 12 characters in length, and can contain uppercase and lowercase letters.
ServerUrl This property is required. string
The serverUrl of the Webhook. This url must start with https://oapi.dingtalk.com/robot/send?access_token=.
WebhookName This property is required. string
The name of the Webhook. Note: The name must be 2 to 12 characters in length, and can contain uppercase and lowercase letters.
serverUrl This property is required. String
The serverUrl of the Webhook. This url must start with https://oapi.dingtalk.com/robot/send?access_token=.
webhookName This property is required. String
The name of the Webhook. Note: The name must be 2 to 12 characters in length, and can contain uppercase and lowercase letters.
serverUrl This property is required. string
The serverUrl of the Webhook. This url must start with https://oapi.dingtalk.com/robot/send?access_token=.
webhookName This property is required. string
The name of the Webhook. Note: The name must be 2 to 12 characters in length, and can contain uppercase and lowercase letters.
server_url This property is required. str
The serverUrl of the Webhook. This url must start with https://oapi.dingtalk.com/robot/send?access_token=.
webhook_name This property is required. str
The name of the Webhook. Note: The name must be 2 to 12 characters in length, and can contain uppercase and lowercase letters.
serverUrl This property is required. String
The serverUrl of the Webhook. This url must start with https://oapi.dingtalk.com/robot/send?access_token=.
webhookName This property is required. String
The name of the Webhook. Note: The name must be 2 to 12 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)
resources:  _:    type: alicloud:MscSubWebhook    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.
The following state arguments are supported:
ServerUrl string
The serverUrl of the Webhook. This url must start with https://oapi.dingtalk.com/robot/send?access_token=.
WebhookName string
The name of the Webhook. Note: The name must be 2 to 12 characters in length, and can contain uppercase and lowercase letters.
ServerUrl string
The serverUrl of the Webhook. This url must start with https://oapi.dingtalk.com/robot/send?access_token=.
WebhookName string
The name of the Webhook. Note: The name must be 2 to 12 characters in length, and can contain uppercase and lowercase letters.
serverUrl String
The serverUrl of the Webhook. This url must start with https://oapi.dingtalk.com/robot/send?access_token=.
webhookName String
The name of the Webhook. Note: The name must be 2 to 12 characters in length, and can contain uppercase and lowercase letters.
serverUrl string
The serverUrl of the Webhook. This url must start with https://oapi.dingtalk.com/robot/send?access_token=.
webhookName string
The name of the Webhook. Note: The name must be 2 to 12 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 to 12 characters in length, and can contain uppercase and lowercase letters.
serverUrl String
The serverUrl of the Webhook. This url must start with https://oapi.dingtalk.com/robot/send?access_token=.
webhookName String
The name of the Webhook. Note: The name must be 2 to 12 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>
Copy

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.