@byteplus/pulumi-bytepluscc 0.0.35 → 0.0.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/alb/acl.d.ts +20 -21
- package/alb/acl.js +2 -2
- package/alb/acl.js.map +1 -1
- package/alb/certificate.d.ts +19 -3
- package/alb/certificate.js +3 -4
- package/alb/certificate.js.map +1 -1
- package/alb/getAcl.d.ts +11 -11
- package/alb/getCertificate.d.ts +5 -1
- package/alb/getCertificate.js.map +1 -1
- package/alb/getListener.d.ts +20 -20
- package/alb/getServerGroup.d.ts +9 -9
- package/alb/listener.d.ts +52 -52
- package/alb/listener.js +1 -1
- package/alb/serverGroup.d.ts +24 -24
- package/alb/serverGroup.js +1 -1
- package/bmq/getGroup.d.ts +10 -10
- package/bmq/getInstance.d.ts +13 -13
- package/bmq/group.d.ts +23 -43
- package/bmq/group.js +1 -21
- package/bmq/group.js.map +1 -1
- package/bmq/instance.d.ts +44 -44
- package/bmq/instance.js +6 -6
- package/cloudidentity/userProvisioning.d.ts +2 -2
- package/cloudidentity/userProvisioning.js +2 -2
- package/cloudmonitor/eventRule.d.ts +226 -0
- package/cloudmonitor/eventRule.js +126 -0
- package/cloudmonitor/eventRule.js.map +1 -0
- package/cloudmonitor/getEventRule.d.ts +65 -0
- package/cloudmonitor/getEventRule.js +28 -0
- package/cloudmonitor/getEventRule.js.map +1 -0
- package/cloudmonitor/getEventRules.d.ts +22 -0
- package/cloudmonitor/getEventRules.js +24 -0
- package/cloudmonitor/getEventRules.js.map +1 -0
- package/cloudmonitor/getRule.d.ts +11 -11
- package/cloudmonitor/index.d.ts +9 -0
- package/cloudmonitor/index.js +12 -1
- package/cloudmonitor/index.js.map +1 -1
- package/cloudmonitor/rule.d.ts +33 -33
- package/cr/getRegistry.d.ts +11 -11
- package/cr/getVpcEndpoint.d.ts +45 -0
- package/cr/getVpcEndpoint.js +28 -0
- package/cr/getVpcEndpoint.js.map +1 -0
- package/cr/getVpcEndpoints.d.ts +22 -0
- package/cr/getVpcEndpoints.js +24 -0
- package/cr/getVpcEndpoints.js.map +1 -0
- package/cr/index.d.ts +9 -0
- package/cr/index.js +12 -1
- package/cr/index.js.map +1 -1
- package/cr/registry.d.ts +28 -28
- package/cr/registry.js +1 -1
- package/cr/vpcEndpoint.d.ts +62 -0
- package/cr/vpcEndpoint.js +66 -0
- package/cr/vpcEndpoint.js.map +1 -0
- package/directconnect/connection.d.ts +332 -0
- package/directconnect/connection.js +163 -0
- package/directconnect/connection.js.map +1 -0
- package/directconnect/getConnection.d.ts +145 -0
- package/directconnect/getConnection.js +28 -0
- package/directconnect/getConnection.js.map +1 -0
- package/directconnect/getConnections.d.ts +22 -0
- package/directconnect/getConnections.js +24 -0
- package/directconnect/getConnections.js.map +1 -0
- package/directconnect/index.d.ts +9 -0
- package/directconnect/index.js +12 -1
- package/directconnect/index.js.map +1 -1
- package/dns/backupSchedule.d.ts +89 -0
- package/dns/backupSchedule.js +80 -0
- package/dns/backupSchedule.js.map +1 -0
- package/dns/getBackupSchedule.d.ts +48 -0
- package/dns/getBackupSchedule.js +28 -0
- package/dns/getBackupSchedule.js.map +1 -0
- package/dns/getBackupSchedules.d.ts +22 -0
- package/dns/getBackupSchedules.js +24 -0
- package/dns/getBackupSchedules.js.map +1 -0
- package/dns/index.d.ts +9 -0
- package/dns/index.js +12 -1
- package/dns/index.js.map +1 -1
- package/fwcenter/addressBook.d.ts +210 -0
- package/fwcenter/addressBook.js +115 -0
- package/fwcenter/addressBook.js.map +1 -0
- package/fwcenter/controlPolicy.d.ts +437 -0
- package/fwcenter/controlPolicy.js +183 -0
- package/fwcenter/controlPolicy.js.map +1 -0
- package/fwcenter/getAddressBook.d.ts +93 -0
- package/fwcenter/getAddressBook.js +28 -0
- package/fwcenter/getAddressBook.js.map +1 -0
- package/fwcenter/getAddressBooks.d.ts +22 -0
- package/fwcenter/getAddressBooks.js +24 -0
- package/fwcenter/getAddressBooks.js.map +1 -0
- package/fwcenter/getControlPolicies.d.ts +22 -0
- package/fwcenter/getControlPolicies.js +24 -0
- package/fwcenter/getControlPolicies.js.map +1 -0
- package/fwcenter/getControlPolicy.d.ts +185 -0
- package/fwcenter/getControlPolicy.js +28 -0
- package/fwcenter/getControlPolicy.js.map +1 -0
- package/fwcenter/getVpcFireWallAclRule.d.ts +189 -0
- package/fwcenter/getVpcFireWallAclRule.js +28 -0
- package/fwcenter/getVpcFireWallAclRule.js.map +1 -0
- package/fwcenter/getVpcFireWallAclRules.d.ts +22 -0
- package/fwcenter/getVpcFireWallAclRules.js +24 -0
- package/fwcenter/getVpcFireWallAclRules.js.map +1 -0
- package/fwcenter/index.d.ts +27 -0
- package/fwcenter/index.js +34 -1
- package/fwcenter/index.js.map +1 -1
- package/fwcenter/vpcFireWallAclRule.d.ts +446 -0
- package/fwcenter/vpcFireWallAclRule.js +186 -0
- package/fwcenter/vpcFireWallAclRule.js.map +1 -0
- package/gtm/getGtm.d.ts +9 -0
- package/gtm/getGtm.js.map +1 -1
- package/gtm/getPolicies.d.ts +22 -0
- package/gtm/getPolicies.js +24 -0
- package/gtm/getPolicies.js.map +1 -0
- package/gtm/getPolicy.d.ts +65 -0
- package/gtm/getPolicy.js +28 -0
- package/gtm/getPolicy.js.map +1 -0
- package/gtm/gtm.d.ts +18 -0
- package/gtm/gtm.js +4 -0
- package/gtm/gtm.js.map +1 -1
- package/gtm/index.d.ts +9 -0
- package/gtm/index.js +12 -1
- package/gtm/index.js.map +1 -1
- package/gtm/policy.d.ts +114 -0
- package/gtm/policy.js +76 -0
- package/gtm/policy.js.map +1 -0
- package/iam/accesskey.d.ts +0 -4
- package/iam/accesskey.js +1 -1
- package/iam/accesskey.js.map +1 -1
- package/kafka/allowList.d.ts +0 -22
- package/kafka/allowList.js +0 -22
- package/kafka/allowList.js.map +1 -1
- package/kafka/getGroup.d.ts +65 -0
- package/kafka/getGroup.js +28 -0
- package/kafka/getGroup.js.map +1 -0
- package/kafka/getGroups.d.ts +22 -0
- package/kafka/getGroups.js +24 -0
- package/kafka/getGroups.js.map +1 -0
- package/kafka/group.d.ts +127 -0
- package/kafka/group.js +93 -0
- package/kafka/group.js.map +1 -0
- package/kafka/index.d.ts +9 -0
- package/kafka/index.js +12 -1
- package/kafka/index.js.map +1 -1
- package/organization/getServiceControlPolicyEnabler.d.ts +48 -0
- package/organization/getServiceControlPolicyEnabler.js +28 -0
- package/organization/getServiceControlPolicyEnabler.js.map +1 -0
- package/organization/getServiceControlPolicyEnablers.d.ts +22 -0
- package/organization/getServiceControlPolicyEnablers.js +24 -0
- package/organization/getServiceControlPolicyEnablers.js.map +1 -0
- package/organization/index.d.ts +9 -0
- package/organization/index.js +12 -1
- package/organization/index.js.map +1 -1
- package/organization/serviceControlPolicyEnabler.d.ts +78 -0
- package/organization/serviceControlPolicyEnabler.js +71 -0
- package/organization/serviceControlPolicyEnabler.js.map +1 -0
- package/package.json +1 -1
- package/rabbitmq/allowList.d.ts +0 -17
- package/rabbitmq/allowList.js +0 -17
- package/rabbitmq/allowList.js.map +1 -1
- package/rdsmysql/allowList.d.ts +1 -0
- package/rdsmysql/allowList.js +1 -1
- package/rdsmysql/allowList.js.map +1 -1
- package/rdsmysql/getInstance.d.ts +16 -0
- package/rdsmysql/getInstance.js.map +1 -1
- package/rdsmysql/instance.d.ts +48 -0
- package/rdsmysql/instance.js +8 -0
- package/rdsmysql/instance.js.map +1 -1
- package/redis/getInstance.d.ts +4 -0
- package/redis/getInstance.js.map +1 -1
- package/redis/instance.d.ts +3 -0
- package/redis/instance.js +3 -0
- package/redis/instance.js.map +1 -1
- package/redis/parameterGroup.d.ts +2 -2
- package/redis/parameterGroup.js +2 -2
- package/tls/alarmWebhookIntegrationType.d.ts +159 -0
- package/tls/alarmWebhookIntegrationType.js +108 -0
- package/tls/alarmWebhookIntegrationType.js.map +1 -0
- package/tls/etl.d.ts +222 -0
- package/tls/etl.js +113 -0
- package/tls/etl.js.map +1 -0
- package/tls/getAlarmWebhookIntegrationType.d.ts +73 -0
- package/tls/getAlarmWebhookIntegrationType.js +28 -0
- package/tls/getAlarmWebhookIntegrationType.js.map +1 -0
- package/tls/getAlarmWebhookIntegrationTypes.d.ts +22 -0
- package/tls/getAlarmWebhookIntegrationTypes.js +24 -0
- package/tls/getAlarmWebhookIntegrationTypes.js.map +1 -0
- package/tls/getEtl.d.ts +109 -0
- package/tls/getEtl.js +28 -0
- package/tls/getEtl.js.map +1 -0
- package/tls/getEtls.d.ts +22 -0
- package/tls/getEtls.js +24 -0
- package/tls/getEtls.js.map +1 -0
- package/tls/getHost.d.ts +52 -0
- package/tls/getHost.js +28 -0
- package/tls/getHost.js.map +1 -0
- package/tls/getHostGroup.d.ts +113 -0
- package/tls/getHostGroup.js +28 -0
- package/tls/getHostGroup.js.map +1 -0
- package/tls/getHostGroups.d.ts +22 -0
- package/tls/getHostGroups.js +24 -0
- package/tls/getHostGroups.js.map +1 -0
- package/tls/getHosts.d.ts +22 -0
- package/tls/getHosts.js +24 -0
- package/tls/getHosts.js.map +1 -0
- package/tls/host.d.ts +97 -0
- package/tls/host.js +82 -0
- package/tls/host.js.map +1 -0
- package/tls/hostGroup.d.ts +254 -0
- package/tls/hostGroup.js +121 -0
- package/tls/hostGroup.js.map +1 -0
- package/tls/index.d.ts +36 -0
- package/tls/index.js +46 -1
- package/tls/index.js.map +1 -1
- package/types/input.d.ts +1091 -107
- package/types/output.d.ts +6134 -4076
- package/vke/node.d.ts +1 -1
- package/vke/node.js +0 -3
- package/vke/node.js.map +1 -1
- package/vmp/ruleFile.d.ts +2 -2
- package/vmp/ruleFile.js +2 -2
- package/vpc/vpc.d.ts +4 -0
- package/vpc/vpc.js +1 -1
- package/vpc/vpc.js.map +1 -1
- package/waf/getHostGroup.d.ts +69 -0
- package/waf/getHostGroup.js +28 -0
- package/waf/getHostGroup.js.map +1 -0
- package/waf/getHostGroups.d.ts +22 -0
- package/waf/getHostGroups.js +24 -0
- package/waf/getHostGroups.js.map +1 -0
- package/waf/hostGroup.d.ts +135 -0
- package/waf/hostGroup.js +92 -0
- package/waf/hostGroup.js.map +1 -0
- package/waf/index.d.ts +9 -0
- package/waf/index.js +12 -1
- package/waf/index.js.map +1 -1
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "../types/input";
|
|
3
|
+
import * as outputs from "../types/output";
|
|
4
|
+
/**
|
|
5
|
+
* Webhook integration configuration is used to manage alert notification channels such as DingTalk, Feishu, WeCom, and custom Webhooks
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as bytepluscc from "@byteplus/pulumi-bytepluscc";
|
|
12
|
+
*
|
|
13
|
+
* const example = new bytepluscc.tls.AlarmWebhookIntegrationType("Example", {
|
|
14
|
+
* webhookName: "ccapi-test-1002replace",
|
|
15
|
+
* webhookSecret: "",
|
|
16
|
+
* webhookType: "custom",
|
|
17
|
+
* webhookUrl: "https://open.feishu.cn/open-apis/bot/v2/hook/79a2f8dxxxxxxx",
|
|
18
|
+
* webhookHeaders: [
|
|
19
|
+
* {
|
|
20
|
+
* key: "Content-Type",
|
|
21
|
+
* value: "application/json",
|
|
22
|
+
* },
|
|
23
|
+
* {
|
|
24
|
+
* key: "env",
|
|
25
|
+
* value: "pre",
|
|
26
|
+
* },
|
|
27
|
+
* ],
|
|
28
|
+
* webhookMethod: "PUT",
|
|
29
|
+
* });
|
|
30
|
+
* ```
|
|
31
|
+
*
|
|
32
|
+
* ## Import
|
|
33
|
+
*
|
|
34
|
+
* ```sh
|
|
35
|
+
* $ pulumi import bytepluscc:tls/alarmWebhookIntegrationType:AlarmWebhookIntegrationType example "webhook_id"
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
export declare class AlarmWebhookIntegrationType extends pulumi.CustomResource {
|
|
39
|
+
/**
|
|
40
|
+
* Get an existing AlarmWebhookIntegrationType resource's state with the given name, ID, and optional extra
|
|
41
|
+
* properties used to qualify the lookup.
|
|
42
|
+
*
|
|
43
|
+
* @param name The _unique_ name of the resulting resource.
|
|
44
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
45
|
+
* @param state Any extra arguments used during the lookup.
|
|
46
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
47
|
+
*/
|
|
48
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AlarmWebhookIntegrationTypeState, opts?: pulumi.CustomResourceOptions): AlarmWebhookIntegrationType;
|
|
49
|
+
/**
|
|
50
|
+
* Returns true if the given object is an instance of AlarmWebhookIntegrationType. This is designed to work even
|
|
51
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
52
|
+
*/
|
|
53
|
+
static isInstance(obj: any): obj is AlarmWebhookIntegrationType;
|
|
54
|
+
/**
|
|
55
|
+
* Webhook integration configuration creation time
|
|
56
|
+
*/
|
|
57
|
+
readonly createTime: pulumi.Output<string>;
|
|
58
|
+
/**
|
|
59
|
+
* Webhook integration configuration last modified time
|
|
60
|
+
*/
|
|
61
|
+
readonly modifyTime: pulumi.Output<string>;
|
|
62
|
+
readonly webhookHeaders: pulumi.Output<outputs.tls.AlarmWebhookIntegrationTypeWebhookHeader[]>;
|
|
63
|
+
/**
|
|
64
|
+
* Webhook integration configuration ID
|
|
65
|
+
*/
|
|
66
|
+
readonly webhookId: pulumi.Output<string>;
|
|
67
|
+
/**
|
|
68
|
+
* Custom Webhook request methods; only POST and PUT are supported
|
|
69
|
+
*/
|
|
70
|
+
readonly webhookMethod: pulumi.Output<string>;
|
|
71
|
+
/**
|
|
72
|
+
* Webhook integration configuration name
|
|
73
|
+
*/
|
|
74
|
+
readonly webhookName: pulumi.Output<string>;
|
|
75
|
+
/**
|
|
76
|
+
* Webhook encryption key. If WebhookType is set to lark and signature verification is enabled in the Feishu bot security settings, enter the Feishu bot signature key here. For details, refer to the custom bot usage guide. If WebhookType is set to dingtalk and a signature value is configured in the DingTalk bot, enter the DingTalk bot signature value here. For details, refer to bot development documentation
|
|
77
|
+
*/
|
|
78
|
+
readonly webhookSecret: pulumi.Output<string>;
|
|
79
|
+
/**
|
|
80
|
+
* Webhook type. custom: custom Webhook address. lark: Feishu. dingtalk: DingTalk. wechat: WeCom
|
|
81
|
+
*/
|
|
82
|
+
readonly webhookType: pulumi.Output<string>;
|
|
83
|
+
/**
|
|
84
|
+
* Webhook request URL
|
|
85
|
+
*/
|
|
86
|
+
readonly webhookUrl: pulumi.Output<string>;
|
|
87
|
+
/**
|
|
88
|
+
* Create a AlarmWebhookIntegrationType resource with the given unique name, arguments, and options.
|
|
89
|
+
*
|
|
90
|
+
* @param name The _unique_ name of the resource.
|
|
91
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
92
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
93
|
+
*/
|
|
94
|
+
constructor(name: string, args: AlarmWebhookIntegrationTypeArgs, opts?: pulumi.CustomResourceOptions);
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Input properties used for looking up and filtering AlarmWebhookIntegrationType resources.
|
|
98
|
+
*/
|
|
99
|
+
export interface AlarmWebhookIntegrationTypeState {
|
|
100
|
+
/**
|
|
101
|
+
* Webhook integration configuration creation time
|
|
102
|
+
*/
|
|
103
|
+
createTime?: pulumi.Input<string>;
|
|
104
|
+
/**
|
|
105
|
+
* Webhook integration configuration last modified time
|
|
106
|
+
*/
|
|
107
|
+
modifyTime?: pulumi.Input<string>;
|
|
108
|
+
webhookHeaders?: pulumi.Input<pulumi.Input<inputs.tls.AlarmWebhookIntegrationTypeWebhookHeader>[]>;
|
|
109
|
+
/**
|
|
110
|
+
* Webhook integration configuration ID
|
|
111
|
+
*/
|
|
112
|
+
webhookId?: pulumi.Input<string>;
|
|
113
|
+
/**
|
|
114
|
+
* Custom Webhook request methods; only POST and PUT are supported
|
|
115
|
+
*/
|
|
116
|
+
webhookMethod?: pulumi.Input<string>;
|
|
117
|
+
/**
|
|
118
|
+
* Webhook integration configuration name
|
|
119
|
+
*/
|
|
120
|
+
webhookName?: pulumi.Input<string>;
|
|
121
|
+
/**
|
|
122
|
+
* Webhook encryption key. If WebhookType is set to lark and signature verification is enabled in the Feishu bot security settings, enter the Feishu bot signature key here. For details, refer to the custom bot usage guide. If WebhookType is set to dingtalk and a signature value is configured in the DingTalk bot, enter the DingTalk bot signature value here. For details, refer to bot development documentation
|
|
123
|
+
*/
|
|
124
|
+
webhookSecret?: pulumi.Input<string>;
|
|
125
|
+
/**
|
|
126
|
+
* Webhook type. custom: custom Webhook address. lark: Feishu. dingtalk: DingTalk. wechat: WeCom
|
|
127
|
+
*/
|
|
128
|
+
webhookType?: pulumi.Input<string>;
|
|
129
|
+
/**
|
|
130
|
+
* Webhook request URL
|
|
131
|
+
*/
|
|
132
|
+
webhookUrl?: pulumi.Input<string>;
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* The set of arguments for constructing a AlarmWebhookIntegrationType resource.
|
|
136
|
+
*/
|
|
137
|
+
export interface AlarmWebhookIntegrationTypeArgs {
|
|
138
|
+
webhookHeaders?: pulumi.Input<pulumi.Input<inputs.tls.AlarmWebhookIntegrationTypeWebhookHeader>[]>;
|
|
139
|
+
/**
|
|
140
|
+
* Custom Webhook request methods; only POST and PUT are supported
|
|
141
|
+
*/
|
|
142
|
+
webhookMethod?: pulumi.Input<string>;
|
|
143
|
+
/**
|
|
144
|
+
* Webhook integration configuration name
|
|
145
|
+
*/
|
|
146
|
+
webhookName: pulumi.Input<string>;
|
|
147
|
+
/**
|
|
148
|
+
* Webhook encryption key. If WebhookType is set to lark and signature verification is enabled in the Feishu bot security settings, enter the Feishu bot signature key here. For details, refer to the custom bot usage guide. If WebhookType is set to dingtalk and a signature value is configured in the DingTalk bot, enter the DingTalk bot signature value here. For details, refer to bot development documentation
|
|
149
|
+
*/
|
|
150
|
+
webhookSecret?: pulumi.Input<string>;
|
|
151
|
+
/**
|
|
152
|
+
* Webhook type. custom: custom Webhook address. lark: Feishu. dingtalk: DingTalk. wechat: WeCom
|
|
153
|
+
*/
|
|
154
|
+
webhookType: pulumi.Input<string>;
|
|
155
|
+
/**
|
|
156
|
+
* Webhook request URL
|
|
157
|
+
*/
|
|
158
|
+
webhookUrl: pulumi.Input<string>;
|
|
159
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.AlarmWebhookIntegrationType = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Webhook integration configuration is used to manage alert notification channels such as DingTalk, Feishu, WeCom, and custom Webhooks
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as bytepluscc from "@byteplus/pulumi-bytepluscc";
|
|
16
|
+
*
|
|
17
|
+
* const example = new bytepluscc.tls.AlarmWebhookIntegrationType("Example", {
|
|
18
|
+
* webhookName: "ccapi-test-1002replace",
|
|
19
|
+
* webhookSecret: "",
|
|
20
|
+
* webhookType: "custom",
|
|
21
|
+
* webhookUrl: "https://open.feishu.cn/open-apis/bot/v2/hook/79a2f8dxxxxxxx",
|
|
22
|
+
* webhookHeaders: [
|
|
23
|
+
* {
|
|
24
|
+
* key: "Content-Type",
|
|
25
|
+
* value: "application/json",
|
|
26
|
+
* },
|
|
27
|
+
* {
|
|
28
|
+
* key: "env",
|
|
29
|
+
* value: "pre",
|
|
30
|
+
* },
|
|
31
|
+
* ],
|
|
32
|
+
* webhookMethod: "PUT",
|
|
33
|
+
* });
|
|
34
|
+
* ```
|
|
35
|
+
*
|
|
36
|
+
* ## Import
|
|
37
|
+
*
|
|
38
|
+
* ```sh
|
|
39
|
+
* $ pulumi import bytepluscc:tls/alarmWebhookIntegrationType:AlarmWebhookIntegrationType example "webhook_id"
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
class AlarmWebhookIntegrationType extends pulumi.CustomResource {
|
|
43
|
+
/**
|
|
44
|
+
* Get an existing AlarmWebhookIntegrationType resource's state with the given name, ID, and optional extra
|
|
45
|
+
* properties used to qualify the lookup.
|
|
46
|
+
*
|
|
47
|
+
* @param name The _unique_ name of the resulting resource.
|
|
48
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
49
|
+
* @param state Any extra arguments used during the lookup.
|
|
50
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
51
|
+
*/
|
|
52
|
+
static get(name, id, state, opts) {
|
|
53
|
+
return new AlarmWebhookIntegrationType(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Returns true if the given object is an instance of AlarmWebhookIntegrationType. This is designed to work even
|
|
57
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
58
|
+
*/
|
|
59
|
+
static isInstance(obj) {
|
|
60
|
+
if (obj === undefined || obj === null) {
|
|
61
|
+
return false;
|
|
62
|
+
}
|
|
63
|
+
return obj['__pulumiType'] === AlarmWebhookIntegrationType.__pulumiType;
|
|
64
|
+
}
|
|
65
|
+
constructor(name, argsOrState, opts) {
|
|
66
|
+
let resourceInputs = {};
|
|
67
|
+
opts = opts || {};
|
|
68
|
+
if (opts.id) {
|
|
69
|
+
const state = argsOrState;
|
|
70
|
+
resourceInputs["createTime"] = state ? state.createTime : undefined;
|
|
71
|
+
resourceInputs["modifyTime"] = state ? state.modifyTime : undefined;
|
|
72
|
+
resourceInputs["webhookHeaders"] = state ? state.webhookHeaders : undefined;
|
|
73
|
+
resourceInputs["webhookId"] = state ? state.webhookId : undefined;
|
|
74
|
+
resourceInputs["webhookMethod"] = state ? state.webhookMethod : undefined;
|
|
75
|
+
resourceInputs["webhookName"] = state ? state.webhookName : undefined;
|
|
76
|
+
resourceInputs["webhookSecret"] = state ? state.webhookSecret : undefined;
|
|
77
|
+
resourceInputs["webhookType"] = state ? state.webhookType : undefined;
|
|
78
|
+
resourceInputs["webhookUrl"] = state ? state.webhookUrl : undefined;
|
|
79
|
+
}
|
|
80
|
+
else {
|
|
81
|
+
const args = argsOrState;
|
|
82
|
+
if ((!args || args.webhookName === undefined) && !opts.urn) {
|
|
83
|
+
throw new Error("Missing required property 'webhookName'");
|
|
84
|
+
}
|
|
85
|
+
if ((!args || args.webhookType === undefined) && !opts.urn) {
|
|
86
|
+
throw new Error("Missing required property 'webhookType'");
|
|
87
|
+
}
|
|
88
|
+
if ((!args || args.webhookUrl === undefined) && !opts.urn) {
|
|
89
|
+
throw new Error("Missing required property 'webhookUrl'");
|
|
90
|
+
}
|
|
91
|
+
resourceInputs["webhookHeaders"] = args ? args.webhookHeaders : undefined;
|
|
92
|
+
resourceInputs["webhookMethod"] = args ? args.webhookMethod : undefined;
|
|
93
|
+
resourceInputs["webhookName"] = args ? args.webhookName : undefined;
|
|
94
|
+
resourceInputs["webhookSecret"] = args ? args.webhookSecret : undefined;
|
|
95
|
+
resourceInputs["webhookType"] = args ? args.webhookType : undefined;
|
|
96
|
+
resourceInputs["webhookUrl"] = args ? args.webhookUrl : undefined;
|
|
97
|
+
resourceInputs["createTime"] = undefined /*out*/;
|
|
98
|
+
resourceInputs["modifyTime"] = undefined /*out*/;
|
|
99
|
+
resourceInputs["webhookId"] = undefined /*out*/;
|
|
100
|
+
}
|
|
101
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
102
|
+
super(AlarmWebhookIntegrationType.__pulumiType, name, resourceInputs, opts);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
exports.AlarmWebhookIntegrationType = AlarmWebhookIntegrationType;
|
|
106
|
+
/** @internal */
|
|
107
|
+
AlarmWebhookIntegrationType.__pulumiType = 'bytepluscc:tls/alarmWebhookIntegrationType:AlarmWebhookIntegrationType';
|
|
108
|
+
//# sourceMappingURL=alarmWebhookIntegrationType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alarmWebhookIntegrationType.js","sourceRoot":"","sources":["../../tls/alarmWebhookIntegrationType.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,MAAa,2BAA4B,SAAQ,MAAM,CAAC,cAAc;IAClE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAwC,EAAE,IAAmC;QACtI,OAAO,IAAI,2BAA2B,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAClF,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,2BAA2B,CAAC,YAAY,CAAC;IAC5E,CAAC;IA4CD,YAAY,IAAY,EAAE,WAAgF,EAAE,IAAmC;QAC3I,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA2D,CAAC;YAC1E,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,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package/tls/etl.d.ts
ADDED
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "../types/input";
|
|
3
|
+
import * as outputs from "../types/output";
|
|
4
|
+
/**
|
|
5
|
+
* The data processing task cleanses, transforms, and distributes log data in the log service, processing data from the source log topic and outputting it to the target log topic
|
|
6
|
+
*
|
|
7
|
+
* ## Import
|
|
8
|
+
*
|
|
9
|
+
* ```sh
|
|
10
|
+
* $ pulumi import bytepluscc:tls/etl:Etl example "task_id"
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
export declare class Etl extends pulumi.CustomResource {
|
|
14
|
+
/**
|
|
15
|
+
* Get an existing Etl resource's state with the given name, ID, and optional extra
|
|
16
|
+
* properties used to qualify the lookup.
|
|
17
|
+
*
|
|
18
|
+
* @param name The _unique_ name of the resulting resource.
|
|
19
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
20
|
+
* @param state Any extra arguments used during the lookup.
|
|
21
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
22
|
+
*/
|
|
23
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: EtlState, opts?: pulumi.CustomResourceOptions): Etl;
|
|
24
|
+
/**
|
|
25
|
+
* Returns true if the given object is an instance of Etl. This is designed to work even
|
|
26
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
27
|
+
*/
|
|
28
|
+
static isInstance(obj: any): obj is Etl;
|
|
29
|
+
/**
|
|
30
|
+
* Creation time of the data processing task
|
|
31
|
+
*/
|
|
32
|
+
readonly createTime: pulumi.Output<string>;
|
|
33
|
+
/**
|
|
34
|
+
* Brief description of the data processing task. Does not support <>, ', \, or \. Length: 0–64 characters
|
|
35
|
+
*/
|
|
36
|
+
readonly description: pulumi.Output<string>;
|
|
37
|
+
/**
|
|
38
|
+
* Syntax type of the processing rule. Fixed as NORMAL
|
|
39
|
+
*/
|
|
40
|
+
readonly dslType: pulumi.Output<string>;
|
|
41
|
+
/**
|
|
42
|
+
* Whether the data processing task is enabled. true: Enabled. false: Disabled
|
|
43
|
+
*/
|
|
44
|
+
readonly enable: pulumi.Output<boolean>;
|
|
45
|
+
/**
|
|
46
|
+
* Task scheduling status. WAITING: Preparing. RUNNING: Running. STOPPING: Stopping. STOPPED: Stopped. RESTARTING: Restarting
|
|
47
|
+
*/
|
|
48
|
+
readonly etlStatus: pulumi.Output<string>;
|
|
49
|
+
/**
|
|
50
|
+
* The processing start time of the data processing task, in seconds as a Unix timestamp
|
|
51
|
+
*/
|
|
52
|
+
readonly fromTime: pulumi.Output<number>;
|
|
53
|
+
/**
|
|
54
|
+
* The most recent activation time of the data processing task
|
|
55
|
+
*/
|
|
56
|
+
readonly lastEnableTime: pulumi.Output<string>;
|
|
57
|
+
/**
|
|
58
|
+
* Modification time of the data processing task
|
|
59
|
+
*/
|
|
60
|
+
readonly modifyTime: pulumi.Output<string>;
|
|
61
|
+
/**
|
|
62
|
+
* Data processing task name
|
|
63
|
+
*/
|
|
64
|
+
readonly name: pulumi.Output<string>;
|
|
65
|
+
/**
|
|
66
|
+
* Log project ID to which the data processing task belongs
|
|
67
|
+
*/
|
|
68
|
+
readonly projectId: pulumi.Output<string>;
|
|
69
|
+
/**
|
|
70
|
+
* Log project name to which the data processing task belongs
|
|
71
|
+
*/
|
|
72
|
+
readonly projectName: pulumi.Output<string>;
|
|
73
|
+
/**
|
|
74
|
+
* Processing rule script used by the data processing task
|
|
75
|
+
*/
|
|
76
|
+
readonly script: pulumi.Output<string>;
|
|
77
|
+
/**
|
|
78
|
+
* Source log topic ID of the data processing task
|
|
79
|
+
*/
|
|
80
|
+
readonly sourceTopicId: pulumi.Output<string>;
|
|
81
|
+
/**
|
|
82
|
+
* Source log topic name of the data processing task
|
|
83
|
+
*/
|
|
84
|
+
readonly sourceTopicName: pulumi.Output<string>;
|
|
85
|
+
readonly targetResources: pulumi.Output<outputs.tls.EtlTargetResource[]>;
|
|
86
|
+
/**
|
|
87
|
+
* Data processing task ID
|
|
88
|
+
*/
|
|
89
|
+
readonly taskId: pulumi.Output<string>;
|
|
90
|
+
/**
|
|
91
|
+
* Type of the data processing task. Fixed as Resident
|
|
92
|
+
*/
|
|
93
|
+
readonly taskType: pulumi.Output<string>;
|
|
94
|
+
/**
|
|
95
|
+
* The processing end time of the data processing task, in seconds as a Unix timestamp
|
|
96
|
+
*/
|
|
97
|
+
readonly toTime: pulumi.Output<number>;
|
|
98
|
+
/**
|
|
99
|
+
* Create a Etl resource with the given unique name, arguments, and options.
|
|
100
|
+
*
|
|
101
|
+
* @param name The _unique_ name of the resource.
|
|
102
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
103
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
104
|
+
*/
|
|
105
|
+
constructor(name: string, args: EtlArgs, opts?: pulumi.CustomResourceOptions);
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Input properties used for looking up and filtering Etl resources.
|
|
109
|
+
*/
|
|
110
|
+
export interface EtlState {
|
|
111
|
+
/**
|
|
112
|
+
* Creation time of the data processing task
|
|
113
|
+
*/
|
|
114
|
+
createTime?: pulumi.Input<string>;
|
|
115
|
+
/**
|
|
116
|
+
* Brief description of the data processing task. Does not support <>, ', \, or \. Length: 0–64 characters
|
|
117
|
+
*/
|
|
118
|
+
description?: pulumi.Input<string>;
|
|
119
|
+
/**
|
|
120
|
+
* Syntax type of the processing rule. Fixed as NORMAL
|
|
121
|
+
*/
|
|
122
|
+
dslType?: pulumi.Input<string>;
|
|
123
|
+
/**
|
|
124
|
+
* Whether the data processing task is enabled. true: Enabled. false: Disabled
|
|
125
|
+
*/
|
|
126
|
+
enable?: pulumi.Input<boolean>;
|
|
127
|
+
/**
|
|
128
|
+
* Task scheduling status. WAITING: Preparing. RUNNING: Running. STOPPING: Stopping. STOPPED: Stopped. RESTARTING: Restarting
|
|
129
|
+
*/
|
|
130
|
+
etlStatus?: pulumi.Input<string>;
|
|
131
|
+
/**
|
|
132
|
+
* The processing start time of the data processing task, in seconds as a Unix timestamp
|
|
133
|
+
*/
|
|
134
|
+
fromTime?: pulumi.Input<number>;
|
|
135
|
+
/**
|
|
136
|
+
* The most recent activation time of the data processing task
|
|
137
|
+
*/
|
|
138
|
+
lastEnableTime?: pulumi.Input<string>;
|
|
139
|
+
/**
|
|
140
|
+
* Modification time of the data processing task
|
|
141
|
+
*/
|
|
142
|
+
modifyTime?: pulumi.Input<string>;
|
|
143
|
+
/**
|
|
144
|
+
* Data processing task name
|
|
145
|
+
*/
|
|
146
|
+
name?: pulumi.Input<string>;
|
|
147
|
+
/**
|
|
148
|
+
* Log project ID to which the data processing task belongs
|
|
149
|
+
*/
|
|
150
|
+
projectId?: pulumi.Input<string>;
|
|
151
|
+
/**
|
|
152
|
+
* Log project name to which the data processing task belongs
|
|
153
|
+
*/
|
|
154
|
+
projectName?: pulumi.Input<string>;
|
|
155
|
+
/**
|
|
156
|
+
* Processing rule script used by the data processing task
|
|
157
|
+
*/
|
|
158
|
+
script?: pulumi.Input<string>;
|
|
159
|
+
/**
|
|
160
|
+
* Source log topic ID of the data processing task
|
|
161
|
+
*/
|
|
162
|
+
sourceTopicId?: pulumi.Input<string>;
|
|
163
|
+
/**
|
|
164
|
+
* Source log topic name of the data processing task
|
|
165
|
+
*/
|
|
166
|
+
sourceTopicName?: pulumi.Input<string>;
|
|
167
|
+
targetResources?: pulumi.Input<pulumi.Input<inputs.tls.EtlTargetResource>[]>;
|
|
168
|
+
/**
|
|
169
|
+
* Data processing task ID
|
|
170
|
+
*/
|
|
171
|
+
taskId?: pulumi.Input<string>;
|
|
172
|
+
/**
|
|
173
|
+
* Type of the data processing task. Fixed as Resident
|
|
174
|
+
*/
|
|
175
|
+
taskType?: pulumi.Input<string>;
|
|
176
|
+
/**
|
|
177
|
+
* The processing end time of the data processing task, in seconds as a Unix timestamp
|
|
178
|
+
*/
|
|
179
|
+
toTime?: pulumi.Input<number>;
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* The set of arguments for constructing a Etl resource.
|
|
183
|
+
*/
|
|
184
|
+
export interface EtlArgs {
|
|
185
|
+
/**
|
|
186
|
+
* Brief description of the data processing task. Does not support <>, ', \, or \. Length: 0–64 characters
|
|
187
|
+
*/
|
|
188
|
+
description?: pulumi.Input<string>;
|
|
189
|
+
/**
|
|
190
|
+
* Syntax type of the processing rule. Fixed as NORMAL
|
|
191
|
+
*/
|
|
192
|
+
dslType: pulumi.Input<string>;
|
|
193
|
+
/**
|
|
194
|
+
* Whether the data processing task is enabled. true: Enabled. false: Disabled
|
|
195
|
+
*/
|
|
196
|
+
enable: pulumi.Input<boolean>;
|
|
197
|
+
/**
|
|
198
|
+
* The processing start time of the data processing task, in seconds as a Unix timestamp
|
|
199
|
+
*/
|
|
200
|
+
fromTime?: pulumi.Input<number>;
|
|
201
|
+
/**
|
|
202
|
+
* Data processing task name
|
|
203
|
+
*/
|
|
204
|
+
name: pulumi.Input<string>;
|
|
205
|
+
/**
|
|
206
|
+
* Processing rule script used by the data processing task
|
|
207
|
+
*/
|
|
208
|
+
script: pulumi.Input<string>;
|
|
209
|
+
/**
|
|
210
|
+
* Source log topic ID of the data processing task
|
|
211
|
+
*/
|
|
212
|
+
sourceTopicId: pulumi.Input<string>;
|
|
213
|
+
targetResources: pulumi.Input<pulumi.Input<inputs.tls.EtlTargetResource>[]>;
|
|
214
|
+
/**
|
|
215
|
+
* Type of the data processing task. Fixed as Resident
|
|
216
|
+
*/
|
|
217
|
+
taskType: pulumi.Input<string>;
|
|
218
|
+
/**
|
|
219
|
+
* The processing end time of the data processing task, in seconds as a Unix timestamp
|
|
220
|
+
*/
|
|
221
|
+
toTime?: pulumi.Input<number>;
|
|
222
|
+
}
|
package/tls/etl.js
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.Etl = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* The data processing task cleanses, transforms, and distributes log data in the log service, processing data from the source log topic and outputting it to the target log topic
|
|
10
|
+
*
|
|
11
|
+
* ## Import
|
|
12
|
+
*
|
|
13
|
+
* ```sh
|
|
14
|
+
* $ pulumi import bytepluscc:tls/etl:Etl example "task_id"
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
class Etl extends pulumi.CustomResource {
|
|
18
|
+
/**
|
|
19
|
+
* Get an existing Etl resource's state with the given name, ID, and optional extra
|
|
20
|
+
* properties used to qualify the lookup.
|
|
21
|
+
*
|
|
22
|
+
* @param name The _unique_ name of the resulting resource.
|
|
23
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
24
|
+
* @param state Any extra arguments used during the lookup.
|
|
25
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
26
|
+
*/
|
|
27
|
+
static get(name, id, state, opts) {
|
|
28
|
+
return new Etl(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Returns true if the given object is an instance of Etl. This is designed to work even
|
|
32
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
33
|
+
*/
|
|
34
|
+
static isInstance(obj) {
|
|
35
|
+
if (obj === undefined || obj === null) {
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
return obj['__pulumiType'] === Etl.__pulumiType;
|
|
39
|
+
}
|
|
40
|
+
constructor(name, argsOrState, opts) {
|
|
41
|
+
let resourceInputs = {};
|
|
42
|
+
opts = opts || {};
|
|
43
|
+
if (opts.id) {
|
|
44
|
+
const state = argsOrState;
|
|
45
|
+
resourceInputs["createTime"] = state ? state.createTime : undefined;
|
|
46
|
+
resourceInputs["description"] = state ? state.description : undefined;
|
|
47
|
+
resourceInputs["dslType"] = state ? state.dslType : undefined;
|
|
48
|
+
resourceInputs["enable"] = state ? state.enable : undefined;
|
|
49
|
+
resourceInputs["etlStatus"] = state ? state.etlStatus : undefined;
|
|
50
|
+
resourceInputs["fromTime"] = state ? state.fromTime : undefined;
|
|
51
|
+
resourceInputs["lastEnableTime"] = state ? state.lastEnableTime : undefined;
|
|
52
|
+
resourceInputs["modifyTime"] = state ? state.modifyTime : undefined;
|
|
53
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
54
|
+
resourceInputs["projectId"] = state ? state.projectId : undefined;
|
|
55
|
+
resourceInputs["projectName"] = state ? state.projectName : undefined;
|
|
56
|
+
resourceInputs["script"] = state ? state.script : undefined;
|
|
57
|
+
resourceInputs["sourceTopicId"] = state ? state.sourceTopicId : undefined;
|
|
58
|
+
resourceInputs["sourceTopicName"] = state ? state.sourceTopicName : undefined;
|
|
59
|
+
resourceInputs["targetResources"] = state ? state.targetResources : undefined;
|
|
60
|
+
resourceInputs["taskId"] = state ? state.taskId : undefined;
|
|
61
|
+
resourceInputs["taskType"] = state ? state.taskType : undefined;
|
|
62
|
+
resourceInputs["toTime"] = state ? state.toTime : undefined;
|
|
63
|
+
}
|
|
64
|
+
else {
|
|
65
|
+
const args = argsOrState;
|
|
66
|
+
if ((!args || args.dslType === undefined) && !opts.urn) {
|
|
67
|
+
throw new Error("Missing required property 'dslType'");
|
|
68
|
+
}
|
|
69
|
+
if ((!args || args.enable === undefined) && !opts.urn) {
|
|
70
|
+
throw new Error("Missing required property 'enable'");
|
|
71
|
+
}
|
|
72
|
+
if ((!args || args.name === undefined) && !opts.urn) {
|
|
73
|
+
throw new Error("Missing required property 'name'");
|
|
74
|
+
}
|
|
75
|
+
if ((!args || args.script === undefined) && !opts.urn) {
|
|
76
|
+
throw new Error("Missing required property 'script'");
|
|
77
|
+
}
|
|
78
|
+
if ((!args || args.sourceTopicId === undefined) && !opts.urn) {
|
|
79
|
+
throw new Error("Missing required property 'sourceTopicId'");
|
|
80
|
+
}
|
|
81
|
+
if ((!args || args.targetResources === undefined) && !opts.urn) {
|
|
82
|
+
throw new Error("Missing required property 'targetResources'");
|
|
83
|
+
}
|
|
84
|
+
if ((!args || args.taskType === undefined) && !opts.urn) {
|
|
85
|
+
throw new Error("Missing required property 'taskType'");
|
|
86
|
+
}
|
|
87
|
+
resourceInputs["description"] = args ? args.description : undefined;
|
|
88
|
+
resourceInputs["dslType"] = args ? args.dslType : undefined;
|
|
89
|
+
resourceInputs["enable"] = args ? args.enable : undefined;
|
|
90
|
+
resourceInputs["fromTime"] = args ? args.fromTime : undefined;
|
|
91
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
92
|
+
resourceInputs["script"] = args ? args.script : undefined;
|
|
93
|
+
resourceInputs["sourceTopicId"] = args ? args.sourceTopicId : undefined;
|
|
94
|
+
resourceInputs["targetResources"] = args ? args.targetResources : undefined;
|
|
95
|
+
resourceInputs["taskType"] = args ? args.taskType : undefined;
|
|
96
|
+
resourceInputs["toTime"] = args ? args.toTime : undefined;
|
|
97
|
+
resourceInputs["createTime"] = undefined /*out*/;
|
|
98
|
+
resourceInputs["etlStatus"] = undefined /*out*/;
|
|
99
|
+
resourceInputs["lastEnableTime"] = undefined /*out*/;
|
|
100
|
+
resourceInputs["modifyTime"] = undefined /*out*/;
|
|
101
|
+
resourceInputs["projectId"] = undefined /*out*/;
|
|
102
|
+
resourceInputs["projectName"] = undefined /*out*/;
|
|
103
|
+
resourceInputs["sourceTopicName"] = undefined /*out*/;
|
|
104
|
+
resourceInputs["taskId"] = undefined /*out*/;
|
|
105
|
+
}
|
|
106
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
107
|
+
super(Etl.__pulumiType, name, resourceInputs, opts);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
exports.Etl = Etl;
|
|
111
|
+
/** @internal */
|
|
112
|
+
Etl.__pulumiType = 'bytep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