@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
package/tls/getHosts.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
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.getHostsOutput = exports.getHosts = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Plural Data Source schema for Byteplus::TLS::Host
|
|
10
|
+
*/
|
|
11
|
+
function getHosts(opts) {
|
|
12
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
13
|
+
return pulumi.runtime.invoke("bytepluscc:tls/getHosts:getHosts", {}, opts);
|
|
14
|
+
}
|
|
15
|
+
exports.getHosts = getHosts;
|
|
16
|
+
/**
|
|
17
|
+
* Plural Data Source schema for Byteplus::TLS::Host
|
|
18
|
+
*/
|
|
19
|
+
function getHostsOutput(opts) {
|
|
20
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
21
|
+
return pulumi.runtime.invokeOutput("bytepluscc:tls/getHosts:getHosts", {}, opts);
|
|
22
|
+
}
|
|
23
|
+
exports.getHostsOutput = getHostsOutput;
|
|
24
|
+
//# sourceMappingURL=getHosts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getHosts.js","sourceRoot":"","sources":["../../tls/getHosts.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;GAEG;AACH,SAAgB,QAAQ,CAAC,IAA2B;IAChD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,kCAAkC,EAAE,EAChE,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAJD,4BAIC;AAeD;;GAEG;AACH,SAAgB,cAAc,CAAC,IAAiC;IAC5D,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,kCAAkC,EAAE,EACtE,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAJD,wCAIC"}
|
package/tls/host.d.ts
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Host in the log service, used to manage server nodes for log collection
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as bytepluscc from "@byteplus/pulumi-bytepluscc";
|
|
10
|
+
*
|
|
11
|
+
* const tLSHostDemo = new bytepluscc.tls.Host("TLSHostDemo", {
|
|
12
|
+
* hostGroupId: "cef95463-1bc0-410f-9c4b-3114xxxxxx",
|
|
13
|
+
* ip: "192.168.1.3",
|
|
14
|
+
* });
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* ## Import
|
|
18
|
+
*
|
|
19
|
+
* ```sh
|
|
20
|
+
* $ pulumi import bytepluscc:tls/host:Host example "host_group_id|ip"
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare class Host extends pulumi.CustomResource {
|
|
24
|
+
/**
|
|
25
|
+
* Get an existing Host resource's state with the given name, ID, and optional extra
|
|
26
|
+
* properties used to qualify the lookup.
|
|
27
|
+
*
|
|
28
|
+
* @param name The _unique_ name of the resulting resource.
|
|
29
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
30
|
+
* @param state Any extra arguments used during the lookup.
|
|
31
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
32
|
+
*/
|
|
33
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: HostState, opts?: pulumi.CustomResourceOptions): Host;
|
|
34
|
+
/**
|
|
35
|
+
* Returns true if the given object is an instance of Host. This is designed to work even
|
|
36
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
37
|
+
*/
|
|
38
|
+
static isInstance(obj: any): obj is Host;
|
|
39
|
+
/**
|
|
40
|
+
* Agent heartbeat status. 0: Heartbeat normal 1: Heartbeat abnormal
|
|
41
|
+
*/
|
|
42
|
+
readonly heartbeatStatus: pulumi.Output<number>;
|
|
43
|
+
/**
|
|
44
|
+
* Machine group ID to which the host belongs
|
|
45
|
+
*/
|
|
46
|
+
readonly hostGroupId: pulumi.Output<string>;
|
|
47
|
+
/**
|
|
48
|
+
* Host IP address
|
|
49
|
+
*/
|
|
50
|
+
readonly ip: pulumi.Output<string>;
|
|
51
|
+
/**
|
|
52
|
+
* Log collector version
|
|
53
|
+
*/
|
|
54
|
+
readonly logCollectorVersion: pulumi.Output<string>;
|
|
55
|
+
/**
|
|
56
|
+
* Create a Host resource with the given unique name, arguments, and options.
|
|
57
|
+
*
|
|
58
|
+
* @param name The _unique_ name of the resource.
|
|
59
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
60
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
61
|
+
*/
|
|
62
|
+
constructor(name: string, args: HostArgs, opts?: pulumi.CustomResourceOptions);
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Input properties used for looking up and filtering Host resources.
|
|
66
|
+
*/
|
|
67
|
+
export interface HostState {
|
|
68
|
+
/**
|
|
69
|
+
* Agent heartbeat status. 0: Heartbeat normal 1: Heartbeat abnormal
|
|
70
|
+
*/
|
|
71
|
+
heartbeatStatus?: pulumi.Input<number>;
|
|
72
|
+
/**
|
|
73
|
+
* Machine group ID to which the host belongs
|
|
74
|
+
*/
|
|
75
|
+
hostGroupId?: pulumi.Input<string>;
|
|
76
|
+
/**
|
|
77
|
+
* Host IP address
|
|
78
|
+
*/
|
|
79
|
+
ip?: pulumi.Input<string>;
|
|
80
|
+
/**
|
|
81
|
+
* Log collector version
|
|
82
|
+
*/
|
|
83
|
+
logCollectorVersion?: pulumi.Input<string>;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* The set of arguments for constructing a Host resource.
|
|
87
|
+
*/
|
|
88
|
+
export interface HostArgs {
|
|
89
|
+
/**
|
|
90
|
+
* Machine group ID to which the host belongs
|
|
91
|
+
*/
|
|
92
|
+
hostGroupId: pulumi.Input<string>;
|
|
93
|
+
/**
|
|
94
|
+
* Host IP address
|
|
95
|
+
*/
|
|
96
|
+
ip: pulumi.Input<string>;
|
|
97
|
+
}
|
package/tls/host.js
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
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.Host = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Host in the log service, used to manage server nodes for log collection
|
|
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 tLSHostDemo = new bytepluscc.tls.Host("TLSHostDemo", {
|
|
18
|
+
* hostGroupId: "cef95463-1bc0-410f-9c4b-3114xxxxxx",
|
|
19
|
+
* ip: "192.168.1.3",
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* ## Import
|
|
24
|
+
*
|
|
25
|
+
* ```sh
|
|
26
|
+
* $ pulumi import bytepluscc:tls/host:Host example "host_group_id|ip"
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
class Host extends pulumi.CustomResource {
|
|
30
|
+
/**
|
|
31
|
+
* Get an existing Host resource's state with the given name, ID, and optional extra
|
|
32
|
+
* properties used to qualify the lookup.
|
|
33
|
+
*
|
|
34
|
+
* @param name The _unique_ name of the resulting resource.
|
|
35
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
36
|
+
* @param state Any extra arguments used during the lookup.
|
|
37
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
38
|
+
*/
|
|
39
|
+
static get(name, id, state, opts) {
|
|
40
|
+
return new Host(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Returns true if the given object is an instance of Host. This is designed to work even
|
|
44
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
45
|
+
*/
|
|
46
|
+
static isInstance(obj) {
|
|
47
|
+
if (obj === undefined || obj === null) {
|
|
48
|
+
return false;
|
|
49
|
+
}
|
|
50
|
+
return obj['__pulumiType'] === Host.__pulumiType;
|
|
51
|
+
}
|
|
52
|
+
constructor(name, argsOrState, opts) {
|
|
53
|
+
let resourceInputs = {};
|
|
54
|
+
opts = opts || {};
|
|
55
|
+
if (opts.id) {
|
|
56
|
+
const state = argsOrState;
|
|
57
|
+
resourceInputs["heartbeatStatus"] = state ? state.heartbeatStatus : undefined;
|
|
58
|
+
resourceInputs["hostGroupId"] = state ? state.hostGroupId : undefined;
|
|
59
|
+
resourceInputs["ip"] = state ? state.ip : undefined;
|
|
60
|
+
resourceInputs["logCollectorVersion"] = state ? state.logCollectorVersion : undefined;
|
|
61
|
+
}
|
|
62
|
+
else {
|
|
63
|
+
const args = argsOrState;
|
|
64
|
+
if ((!args || args.hostGroupId === undefined) && !opts.urn) {
|
|
65
|
+
throw new Error("Missing required property 'hostGroupId'");
|
|
66
|
+
}
|
|
67
|
+
if ((!args || args.ip === undefined) && !opts.urn) {
|
|
68
|
+
throw new Error("Missing required property 'ip'");
|
|
69
|
+
}
|
|
70
|
+
resourceInputs["hostGroupId"] = args ? args.hostGroupId : undefined;
|
|
71
|
+
resourceInputs["ip"] = args ? args.ip : undefined;
|
|
72
|
+
resourceInputs["heartbeatStatus"] = undefined /*out*/;
|
|
73
|
+
resourceInputs["logCollectorVersion"] = undefined /*out*/;
|
|
74
|
+
}
|
|
75
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
76
|
+
super(Host.__pulumiType, name, resourceInputs, opts);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
exports.Host = Host;
|
|
80
|
+
/** @internal */
|
|
81
|
+
Host.__pulumiType = 'bytepluscc:tls/host:Host';
|
|
82
|
+
//# sourceMappingURL=host.js.map
|
package/tls/host.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"host.js","sourceRoot":"","sources":["../../tls/host.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAa,IAAK,SAAQ,MAAM,CAAC,cAAc;IAC3C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAiB,EAAE,IAAmC;QAC/G,OAAO,IAAI,IAAI,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC3D,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI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AAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;YAClD,cAAc,CAAC,iBAAiB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACtD,cAAc,CAAC,qBAAqB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC7D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,IAAI,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACzD,CAAC;;AA7EL,oBA8EC;AAhEG,gBAAgB;AACO,iBAAY,GAAG,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "../types/input";
|
|
3
|
+
import * as outputs from "../types/output";
|
|
4
|
+
/**
|
|
5
|
+
* Machine group in Log Service, used to manage a group of log collection machines.
|
|
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 tLSHostGroupDemo = new bytepluscc.tls.HostGroup("TLSHostGroupDemo", {
|
|
14
|
+
* autoUpdate: true,
|
|
15
|
+
* hostGroupName: "ccapi-test-1",
|
|
16
|
+
* hostGroupType: "IP",
|
|
17
|
+
* hostIpLists: [
|
|
18
|
+
* "192.168.1.1",
|
|
19
|
+
* "192.168.1.2",
|
|
20
|
+
* ],
|
|
21
|
+
* serviceLogging: false,
|
|
22
|
+
* updateEndTime: "06:00",
|
|
23
|
+
* updateStartTime: "00:00",
|
|
24
|
+
* iamProjectName: "default",
|
|
25
|
+
* });
|
|
26
|
+
* ```
|
|
27
|
+
*
|
|
28
|
+
* ## Import
|
|
29
|
+
*
|
|
30
|
+
* ```sh
|
|
31
|
+
* $ pulumi import bytepluscc:tls/hostGroup:HostGroup example "host_group_id"
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
export declare class HostGroup extends pulumi.CustomResource {
|
|
35
|
+
/**
|
|
36
|
+
* Get an existing HostGroup resource's state with the given name, ID, and optional extra
|
|
37
|
+
* properties used to qualify the lookup.
|
|
38
|
+
*
|
|
39
|
+
* @param name The _unique_ name of the resulting resource.
|
|
40
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
41
|
+
* @param state Any extra arguments used during the lookup.
|
|
42
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
43
|
+
*/
|
|
44
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: HostGroupState, opts?: pulumi.CustomResourceOptions): HostGroup;
|
|
45
|
+
/**
|
|
46
|
+
* Returns true if the given object is an instance of HostGroup. This is designed to work even
|
|
47
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
48
|
+
*/
|
|
49
|
+
static isInstance(obj: any): obj is HostGroup;
|
|
50
|
+
/**
|
|
51
|
+
* Number of abnormal machines.
|
|
52
|
+
*/
|
|
53
|
+
readonly abnormalHeartbeatStatusNumber: pulumi.Output<number>;
|
|
54
|
+
/**
|
|
55
|
+
* Latest agent version.
|
|
56
|
+
*/
|
|
57
|
+
readonly agentLatestVersion: pulumi.Output<string>;
|
|
58
|
+
/**
|
|
59
|
+
* Whether LogCollector installed on machine group servers enables automatic upgrade. true: Log Service will check for upgrade conditions during the specified time period each day. If conditions are met, LogCollector upgrades automatically without manual intervention. false: (default) LogCollector does not upgrade automatically. Only LogCollector V1.0.8 and later versions support automatic upgrade.
|
|
60
|
+
*/
|
|
61
|
+
readonly autoUpdate: pulumi.Output<boolean>;
|
|
62
|
+
/**
|
|
63
|
+
* Creation time.
|
|
64
|
+
*/
|
|
65
|
+
readonly createTime: pulumi.Output<string>;
|
|
66
|
+
/**
|
|
67
|
+
* Clean all machines with abnormal heartbeat in the machine group with one click. Machines without heartbeat records cannot be deleted currently
|
|
68
|
+
*/
|
|
69
|
+
readonly deleteAbnormalHosts: pulumi.Output<boolean>;
|
|
70
|
+
/**
|
|
71
|
+
* Number of machines.
|
|
72
|
+
*/
|
|
73
|
+
readonly hostCount: pulumi.Output<number>;
|
|
74
|
+
/**
|
|
75
|
+
* Host group ID
|
|
76
|
+
*/
|
|
77
|
+
readonly hostGroupId: pulumi.Output<string>;
|
|
78
|
+
/**
|
|
79
|
+
* Host group name
|
|
80
|
+
*/
|
|
81
|
+
readonly hostGroupName: pulumi.Output<string>;
|
|
82
|
+
/**
|
|
83
|
+
* Type of machine group. Includes: IP: machine IP. Set the machine IP list using the HostIpList parameter. Label: machine identifier. Set the machine identifier using the HostIdentifier parameter.
|
|
84
|
+
*/
|
|
85
|
+
readonly hostGroupType: pulumi.Output<string>;
|
|
86
|
+
/**
|
|
87
|
+
* Machine identifier. Required when HostGroupType is Label.
|
|
88
|
+
*/
|
|
89
|
+
readonly hostIdentifier: pulumi.Output<string>;
|
|
90
|
+
/**
|
|
91
|
+
* List of IP addresses for the host group. Required when HostGroupType is IP.
|
|
92
|
+
*/
|
|
93
|
+
readonly hostIpLists: pulumi.Output<string[]>;
|
|
94
|
+
/**
|
|
95
|
+
* IAM project name. If this parameter is not specified, Log Service adds the machine group to the IAM project named default.
|
|
96
|
+
*/
|
|
97
|
+
readonly iamProjectName: pulumi.Output<string>;
|
|
98
|
+
/**
|
|
99
|
+
* Modification time.
|
|
100
|
+
*/
|
|
101
|
+
readonly modifyTime: pulumi.Output<string>;
|
|
102
|
+
/**
|
|
103
|
+
* Number of healthy machines.
|
|
104
|
+
*/
|
|
105
|
+
readonly normalHeartbeatStatusNumber: pulumi.Output<number>;
|
|
106
|
+
/**
|
|
107
|
+
* Number of rules
|
|
108
|
+
*/
|
|
109
|
+
readonly ruleCount: pulumi.Output<number>;
|
|
110
|
+
readonly rules: pulumi.Output<outputs.tls.HostGroupRule[]>;
|
|
111
|
+
/**
|
|
112
|
+
* Enable Logcollector service log feature. true: enabled. false: (default) disabled.
|
|
113
|
+
*/
|
|
114
|
+
readonly serviceLogging: pulumi.Output<boolean>;
|
|
115
|
+
/**
|
|
116
|
+
* Auto upgrade end time in HH:MM format. Required only when AutoUpdate is set to true. It is recommended to schedule auto upgrade during off-peak business hours. LogCollector may restart during the auto upgrade, but logs will not be lost.
|
|
117
|
+
*/
|
|
118
|
+
readonly updateEndTime: pulumi.Output<string>;
|
|
119
|
+
/**
|
|
120
|
+
* Automatic upgrade start time, in HH:MM format. Only required when AutoUpdate is set to true. It is recommended to schedule automatic upgrades during off-peak hours. LogCollector may restart during the upgrade, but logs will not be lost.
|
|
121
|
+
*/
|
|
122
|
+
readonly updateStartTime: pulumi.Output<string>;
|
|
123
|
+
/**
|
|
124
|
+
* Create a HostGroup resource with the given unique name, arguments, and options.
|
|
125
|
+
*
|
|
126
|
+
* @param name The _unique_ name of the resource.
|
|
127
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
128
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
129
|
+
*/
|
|
130
|
+
constructor(name: string, args: HostGroupArgs, opts?: pulumi.CustomResourceOptions);
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Input properties used for looking up and filtering HostGroup resources.
|
|
134
|
+
*/
|
|
135
|
+
export interface HostGroupState {
|
|
136
|
+
/**
|
|
137
|
+
* Number of abnormal machines.
|
|
138
|
+
*/
|
|
139
|
+
abnormalHeartbeatStatusNumber?: pulumi.Input<number>;
|
|
140
|
+
/**
|
|
141
|
+
* Latest agent version.
|
|
142
|
+
*/
|
|
143
|
+
agentLatestVersion?: pulumi.Input<string>;
|
|
144
|
+
/**
|
|
145
|
+
* Whether LogCollector installed on machine group servers enables automatic upgrade. true: Log Service will check for upgrade conditions during the specified time period each day. If conditions are met, LogCollector upgrades automatically without manual intervention. false: (default) LogCollector does not upgrade automatically. Only LogCollector V1.0.8 and later versions support automatic upgrade.
|
|
146
|
+
*/
|
|
147
|
+
autoUpdate?: pulumi.Input<boolean>;
|
|
148
|
+
/**
|
|
149
|
+
* Creation time.
|
|
150
|
+
*/
|
|
151
|
+
createTime?: pulumi.Input<string>;
|
|
152
|
+
/**
|
|
153
|
+
* Clean all machines with abnormal heartbeat in the machine group with one click. Machines without heartbeat records cannot be deleted currently
|
|
154
|
+
*/
|
|
155
|
+
deleteAbnormalHosts?: pulumi.Input<boolean>;
|
|
156
|
+
/**
|
|
157
|
+
* Number of machines.
|
|
158
|
+
*/
|
|
159
|
+
hostCount?: pulumi.Input<number>;
|
|
160
|
+
/**
|
|
161
|
+
* Host group ID
|
|
162
|
+
*/
|
|
163
|
+
hostGroupId?: pulumi.Input<string>;
|
|
164
|
+
/**
|
|
165
|
+
* Host group name
|
|
166
|
+
*/
|
|
167
|
+
hostGroupName?: pulumi.Input<string>;
|
|
168
|
+
/**
|
|
169
|
+
* Type of machine group. Includes: IP: machine IP. Set the machine IP list using the HostIpList parameter. Label: machine identifier. Set the machine identifier using the HostIdentifier parameter.
|
|
170
|
+
*/
|
|
171
|
+
hostGroupType?: pulumi.Input<string>;
|
|
172
|
+
/**
|
|
173
|
+
* Machine identifier. Required when HostGroupType is Label.
|
|
174
|
+
*/
|
|
175
|
+
hostIdentifier?: pulumi.Input<string>;
|
|
176
|
+
/**
|
|
177
|
+
* List of IP addresses for the host group. Required when HostGroupType is IP.
|
|
178
|
+
*/
|
|
179
|
+
hostIpLists?: pulumi.Input<pulumi.Input<string>[]>;
|
|
180
|
+
/**
|
|
181
|
+
* IAM project name. If this parameter is not specified, Log Service adds the machine group to the IAM project named default.
|
|
182
|
+
*/
|
|
183
|
+
iamProjectName?: pulumi.Input<string>;
|
|
184
|
+
/**
|
|
185
|
+
* Modification time.
|
|
186
|
+
*/
|
|
187
|
+
modifyTime?: pulumi.Input<string>;
|
|
188
|
+
/**
|
|
189
|
+
* Number of healthy machines.
|
|
190
|
+
*/
|
|
191
|
+
normalHeartbeatStatusNumber?: pulumi.Input<number>;
|
|
192
|
+
/**
|
|
193
|
+
* Number of rules
|
|
194
|
+
*/
|
|
195
|
+
ruleCount?: pulumi.Input<number>;
|
|
196
|
+
rules?: pulumi.Input<pulumi.Input<inputs.tls.HostGroupRule>[]>;
|
|
197
|
+
/**
|
|
198
|
+
* Enable Logcollector service log feature. true: enabled. false: (default) disabled.
|
|
199
|
+
*/
|
|
200
|
+
serviceLogging?: pulumi.Input<boolean>;
|
|
201
|
+
/**
|
|
202
|
+
* Auto upgrade end time in HH:MM format. Required only when AutoUpdate is set to true. It is recommended to schedule auto upgrade during off-peak business hours. LogCollector may restart during the auto upgrade, but logs will not be lost.
|
|
203
|
+
*/
|
|
204
|
+
updateEndTime?: pulumi.Input<string>;
|
|
205
|
+
/**
|
|
206
|
+
* Automatic upgrade start time, in HH:MM format. Only required when AutoUpdate is set to true. It is recommended to schedule automatic upgrades during off-peak hours. LogCollector may restart during the upgrade, but logs will not be lost.
|
|
207
|
+
*/
|
|
208
|
+
updateStartTime?: pulumi.Input<string>;
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* The set of arguments for constructing a HostGroup resource.
|
|
212
|
+
*/
|
|
213
|
+
export interface HostGroupArgs {
|
|
214
|
+
/**
|
|
215
|
+
* Whether LogCollector installed on machine group servers enables automatic upgrade. true: Log Service will check for upgrade conditions during the specified time period each day. If conditions are met, LogCollector upgrades automatically without manual intervention. false: (default) LogCollector does not upgrade automatically. Only LogCollector V1.0.8 and later versions support automatic upgrade.
|
|
216
|
+
*/
|
|
217
|
+
autoUpdate?: pulumi.Input<boolean>;
|
|
218
|
+
/**
|
|
219
|
+
* Clean all machines with abnormal heartbeat in the machine group with one click. Machines without heartbeat records cannot be deleted currently
|
|
220
|
+
*/
|
|
221
|
+
deleteAbnormalHosts?: pulumi.Input<boolean>;
|
|
222
|
+
/**
|
|
223
|
+
* Host group name
|
|
224
|
+
*/
|
|
225
|
+
hostGroupName: pulumi.Input<string>;
|
|
226
|
+
/**
|
|
227
|
+
* Type of machine group. Includes: IP: machine IP. Set the machine IP list using the HostIpList parameter. Label: machine identifier. Set the machine identifier using the HostIdentifier parameter.
|
|
228
|
+
*/
|
|
229
|
+
hostGroupType: pulumi.Input<string>;
|
|
230
|
+
/**
|
|
231
|
+
* Machine identifier. Required when HostGroupType is Label.
|
|
232
|
+
*/
|
|
233
|
+
hostIdentifier?: pulumi.Input<string>;
|
|
234
|
+
/**
|
|
235
|
+
* List of IP addresses for the host group. Required when HostGroupType is IP.
|
|
236
|
+
*/
|
|
237
|
+
hostIpLists?: pulumi.Input<pulumi.Input<string>[]>;
|
|
238
|
+
/**
|
|
239
|
+
* IAM project name. If this parameter is not specified, Log Service adds the machine group to the IAM project named default.
|
|
240
|
+
*/
|
|
241
|
+
iamProjectName?: pulumi.Input<string>;
|
|
242
|
+
/**
|
|
243
|
+
* Enable Logcollector service log feature. true: enabled. false: (default) disabled.
|
|
244
|
+
*/
|
|
245
|
+
serviceLogging?: pulumi.Input<boolean>;
|
|
246
|
+
/**
|
|
247
|
+
* Auto upgrade end time in HH:MM format. Required only when AutoUpdate is set to true. It is recommended to schedule auto upgrade during off-peak business hours. LogCollector may restart during the auto upgrade, but logs will not be lost.
|
|
248
|
+
*/
|
|
249
|
+
updateEndTime?: pulumi.Input<string>;
|
|
250
|
+
/**
|
|
251
|
+
* Automatic upgrade start time, in HH:MM format. Only required when AutoUpdate is set to true. It is recommended to schedule automatic upgrades during off-peak hours. LogCollector may restart during the upgrade, but logs will not be lost.
|
|
252
|
+
*/
|
|
253
|
+
updateStartTime?: pulumi.Input<string>;
|
|
254
|
+
}
|
package/tls/hostGroup.js
ADDED
|
@@ -0,0 +1,121 @@
|
|
|
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.HostGroup = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Machine group in Log Service, used to manage a group of log collection machines.
|
|
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 tLSHostGroupDemo = new bytepluscc.tls.HostGroup("TLSHostGroupDemo", {
|
|
18
|
+
* autoUpdate: true,
|
|
19
|
+
* hostGroupName: "ccapi-test-1",
|
|
20
|
+
* hostGroupType: "IP",
|
|
21
|
+
* hostIpLists: [
|
|
22
|
+
* "192.168.1.1",
|
|
23
|
+
* "192.168.1.2",
|
|
24
|
+
* ],
|
|
25
|
+
* serviceLogging: false,
|
|
26
|
+
* updateEndTime: "06:00",
|
|
27
|
+
* updateStartTime: "00:00",
|
|
28
|
+
* iamProjectName: "default",
|
|
29
|
+
* });
|
|
30
|
+
* ```
|
|
31
|
+
*
|
|
32
|
+
* ## Import
|
|
33
|
+
*
|
|
34
|
+
* ```sh
|
|
35
|
+
* $ pulumi import bytepluscc:tls/hostGroup:HostGroup example "host_group_id"
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
class HostGroup extends pulumi.CustomResource {
|
|
39
|
+
/**
|
|
40
|
+
* Get an existing HostGroup 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, id, state, opts) {
|
|
49
|
+
return new HostGroup(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Returns true if the given object is an instance of HostGroup. This is designed to work even
|
|
53
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
54
|
+
*/
|
|
55
|
+
static isInstance(obj) {
|
|
56
|
+
if (obj === undefined || obj === null) {
|
|
57
|
+
return false;
|
|
58
|
+
}
|
|
59
|
+
return obj['__pulumiType'] === HostGroup.__pulumiType;
|
|
60
|
+
}
|
|
61
|
+
constructor(name, argsOrState, opts) {
|
|
62
|
+
let resourceInputs = {};
|
|
63
|
+
opts = opts || {};
|
|
64
|
+
if (opts.id) {
|
|
65
|
+
const state = argsOrState;
|
|
66
|
+
resourceInputs["abnormalHeartbeatStatusNumber"] = state ? state.abnormalHeartbeatStatusNumber : undefined;
|
|
67
|
+
resourceInputs["agentLatestVersion"] = state ? state.agentLatestVersion : undefined;
|
|
68
|
+
resourceInputs["autoUpdate"] = state ? state.autoUpdate : undefined;
|
|
69
|
+
resourceInputs["createTime"] = state ? state.createTime : undefined;
|
|
70
|
+
resourceInputs["deleteAbnormalHosts"] = state ? state.deleteAbnormalHosts : undefined;
|
|
71
|
+
resourceInputs["hostCount"] = state ? state.hostCount : undefined;
|
|
72
|
+
resourceInputs["hostGroupId"] = state ? state.hostGroupId : undefined;
|
|
73
|
+
resourceInputs["hostGroupName"] = state ? state.hostGroupName : undefined;
|
|
74
|
+
resourceInputs["hostGroupType"] = state ? state.hostGroupType : undefined;
|
|
75
|
+
resourceInputs["hostIdentifier"] = state ? state.hostIdentifier : undefined;
|
|
76
|
+
resourceInputs["hostIpLists"] = state ? state.hostIpLists : undefined;
|
|
77
|
+
resourceInputs["iamProjectName"] = state ? state.iamProjectName : undefined;
|
|
78
|
+
resourceInputs["modifyTime"] = state ? state.modifyTime : undefined;
|
|
79
|
+
resourceInputs["normalHeartbeatStatusNumber"] = state ? state.normalHeartbeatStatusNumber : undefined;
|
|
80
|
+
resourceInputs["ruleCount"] = state ? state.ruleCount : undefined;
|
|
81
|
+
resourceInputs["rules"] = state ? state.rules : undefined;
|
|
82
|
+
resourceInputs["serviceLogging"] = state ? state.serviceLogging : undefined;
|
|
83
|
+
resourceInputs["updateEndTime"] = state ? state.updateEndTime : undefined;
|
|
84
|
+
resourceInputs["updateStartTime"] = state ? state.updateStartTime : undefined;
|
|
85
|
+
}
|
|
86
|
+
else {
|
|
87
|
+
const args = argsOrState;
|
|
88
|
+
if ((!args || args.hostGroupName === undefined) && !opts.urn) {
|
|
89
|
+
throw new Error("Missing required property 'hostGroupName'");
|
|
90
|
+
}
|
|
91
|
+
if ((!args || args.hostGroupType === undefined) && !opts.urn) {
|
|
92
|
+
throw new Error("Missing required property 'hostGroupType'");
|
|
93
|
+
}
|
|
94
|
+
resourceInputs["autoUpdate"] = args ? args.autoUpdate : undefined;
|
|
95
|
+
resourceInputs["deleteAbnormalHosts"] = args ? args.deleteAbnormalHosts : undefined;
|
|
96
|
+
resourceInputs["hostGroupName"] = args ? args.hostGroupName : undefined;
|
|
97
|
+
resourceInputs["hostGroupType"] = args ? args.hostGroupType : undefined;
|
|
98
|
+
resourceInputs["hostIdentifier"] = args ? args.hostIdentifier : undefined;
|
|
99
|
+
resourceInputs["hostIpLists"] = args ? args.hostIpLists : undefined;
|
|
100
|
+
resourceInputs["iamProjectName"] = args ? args.iamProjectName : undefined;
|
|
101
|
+
resourceInputs["serviceLogging"] = args ? args.serviceLogging : undefined;
|
|
102
|
+
resourceInputs["updateEndTime"] = args ? args.updateEndTime : undefined;
|
|
103
|
+
resourceInputs["updateStartTime"] = args ? args.updateStartTime : undefined;
|
|
104
|
+
resourceInputs["abnormalHeartbeatStatusNumber"] = undefined /*out*/;
|
|
105
|
+
resourceInputs["agentLatestVersion"] = undefined /*out*/;
|
|
106
|
+
resourceInputs["createTime"] = undefined /*out*/;
|
|
107
|
+
resourceInputs["hostCount"] = undefined /*out*/;
|
|
108
|
+
resourceInputs["hostGroupId"] = undefined /*out*/;
|
|
109
|
+
resourceInputs["modifyTime"] = undefined /*out*/;
|
|
110
|
+
resourceInputs["normalHeartbeatStatusNumber"] = undefined /*out*/;
|
|
111
|
+
resourceInputs["ruleCount"] = undefined /*out*/;
|
|
112
|
+
resourceInputs["rules"] = undefined /*out*/;
|
|
113
|
+
}
|
|
114
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
115
|
+
super(HostGroup.__pulumiType, name, resourceInputs, opts);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
exports.HostGroup = HostGroup;
|
|
119
|
+
/** @internal */
|
|
120
|
+
HostGroup.__pulumiType = 'bytepluscc:tls/hostGroup:HostGroup';
|
|
121
|
+
//# sourceMappingURL=hostGroup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hostGroup.js","sourceRoot":"","sources":["../../tls/hostGroup.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAa,SAAU,SAAQ,MAAM,CAAC,cAAc;IAChD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAsB,EAAE,IAAmC;QACpH,OAAO,IAAI,SAAS,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAChE,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,SAAS,CAAC,YAAY,C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AC,iBAAiB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5E,cAAc,CAAC,+BAA+B,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACpE,cAAc,CAAC,oBAAoB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACzD,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAClD,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjD,cAAc,CAAC,6BAA6B,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAClE,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC/C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,SAAS,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC9D,CAAC;;AApKL,8BAqKC;AAvJG,gBAAgB;AACO,sBAAY,GAAG,oCAAoC,CAAC"}
|
package/tls/index.d.ts
CHANGED
|
@@ -4,9 +4,15 @@ export declare const Alarm: typeof import("./alarm").Alarm;
|
|
|
4
4
|
export { AlarmNotifyGroupArgs, AlarmNotifyGroupState } from "./alarmNotifyGroup";
|
|
5
5
|
export type AlarmNotifyGroup = import("./alarmNotifyGroup").AlarmNotifyGroup;
|
|
6
6
|
export declare const AlarmNotifyGroup: typeof import("./alarmNotifyGroup").AlarmNotifyGroup;
|
|
7
|
+
export { AlarmWebhookIntegrationTypeArgs, AlarmWebhookIntegrationTypeState } from "./alarmWebhookIntegrationType";
|
|
8
|
+
export type AlarmWebhookIntegrationType = import("./alarmWebhookIntegrationType").AlarmWebhookIntegrationType;
|
|
9
|
+
export declare const AlarmWebhookIntegrationType: typeof import("./alarmWebhookIntegrationType").AlarmWebhookIntegrationType;
|
|
7
10
|
export { ConsumerGroupArgs, ConsumerGroupState } from "./consumerGroup";
|
|
8
11
|
export type ConsumerGroup = import("./consumerGroup").ConsumerGroup;
|
|
9
12
|
export declare const ConsumerGroup: typeof import("./consumerGroup").ConsumerGroup;
|
|
13
|
+
export { EtlArgs, EtlState } from "./etl";
|
|
14
|
+
export type Etl = import("./etl").Etl;
|
|
15
|
+
export declare const Etl: typeof import("./etl").Etl;
|
|
10
16
|
export { GetAlarmArgs, GetAlarmResult, GetAlarmOutputArgs } from "./getAlarm";
|
|
11
17
|
export declare const getAlarm: typeof import("./getAlarm").getAlarm;
|
|
12
18
|
export declare const getAlarmOutput: typeof import("./getAlarm").getAlarmOutput;
|
|
@@ -16,6 +22,12 @@ export declare const getAlarmNotifyGroupOutput: typeof import("./getAlarmNotifyG
|
|
|
16
22
|
export { GetAlarmNotifyGroupsResult } from "./getAlarmNotifyGroups";
|
|
17
23
|
export declare const getAlarmNotifyGroups: typeof import("./getAlarmNotifyGroups").getAlarmNotifyGroups;
|
|
18
24
|
export declare const getAlarmNotifyGroupsOutput: typeof import("./getAlarmNotifyGroups").getAlarmNotifyGroupsOutput;
|
|
25
|
+
export { GetAlarmWebhookIntegrationTypeArgs, GetAlarmWebhookIntegrationTypeResult, GetAlarmWebhookIntegrationTypeOutputArgs } from "./getAlarmWebhookIntegrationType";
|
|
26
|
+
export declare const getAlarmWebhookIntegrationType: typeof import("./getAlarmWebhookIntegrationType").getAlarmWebhookIntegrationType;
|
|
27
|
+
export declare const getAlarmWebhookIntegrationTypeOutput: typeof import("./getAlarmWebhookIntegrationType").getAlarmWebhookIntegrationTypeOutput;
|
|
28
|
+
export { GetAlarmWebhookIntegrationTypesResult } from "./getAlarmWebhookIntegrationTypes";
|
|
29
|
+
export declare const getAlarmWebhookIntegrationTypes: typeof import("./getAlarmWebhookIntegrationTypes").getAlarmWebhookIntegrationTypes;
|
|
30
|
+
export declare const getAlarmWebhookIntegrationTypesOutput: typeof import("./getAlarmWebhookIntegrationTypes").getAlarmWebhookIntegrationTypesOutput;
|
|
19
31
|
export { GetAlarmsResult } from "./getAlarms";
|
|
20
32
|
export declare const getAlarms: typeof import("./getAlarms").getAlarms;
|
|
21
33
|
export declare const getAlarmsOutput: typeof import("./getAlarms").getAlarmsOutput;
|
|
@@ -25,6 +37,24 @@ export declare const getConsumerGroupOutput: typeof import("./getConsumerGroup")
|
|
|
25
37
|
export { GetConsumerGroupsResult } from "./getConsumerGroups";
|
|
26
38
|
export declare const getConsumerGroups: typeof import("./getConsumerGroups").getConsumerGroups;
|
|
27
39
|
export declare const getConsumerGroupsOutput: typeof import("./getConsumerGroups").getConsumerGroupsOutput;
|
|
40
|
+
export { GetEtlArgs, GetEtlResult, GetEtlOutputArgs } from "./getEtl";
|
|
41
|
+
export declare const getEtl: typeof import("./getEtl").getEtl;
|
|
42
|
+
export declare const getEtlOutput: typeof import("./getEtl").getEtlOutput;
|
|
43
|
+
export { GetEtlsResult } from "./getEtls";
|
|
44
|
+
export declare const getEtls: typeof import("./getEtls").getEtls;
|
|
45
|
+
export declare const getEtlsOutput: typeof import("./getEtls").getEtlsOutput;
|
|
46
|
+
export { GetHostArgs, GetHostResult, GetHostOutputArgs } from "./getHost";
|
|
47
|
+
export declare const getHost: typeof import("./getHost").getHost;
|
|
48
|
+
export declare const getHostOutput: typeof import("./getHost").getHostOutput;
|
|
49
|
+
export { GetHostGroupArgs, GetHostGroupResult, GetHostGroupOutputArgs } from "./getHostGroup";
|
|
50
|
+
export declare const getHostGroup: typeof import("./getHostGroup").getHostGroup;
|
|
51
|
+
export declare const getHostGroupOutput: typeof import("./getHostGroup").getHostGroupOutput;
|
|
52
|
+
export { GetHostGroupsResult } from "./getHostGroups";
|
|
53
|
+
export declare const getHostGroups: typeof import("./getHostGroups").getHostGroups;
|
|
54
|
+
export declare const getHostGroupsOutput: typeof import("./getHostGroups").getHostGroupsOutput;
|
|
55
|
+
export { GetHostsResult } from "./getHosts";
|
|
56
|
+
export declare const getHosts: typeof import("./getHosts").getHosts;
|
|
57
|
+
export declare const getHostsOutput: typeof import("./getHosts").getHostsOutput;
|
|
28
58
|
export { GetImportTaskArgs, GetImportTaskResult, GetImportTaskOutputArgs } from "./getImportTask";
|
|
29
59
|
export declare const getImportTask: typeof import("./getImportTask").getImportTask;
|
|
30
60
|
export declare const getImportTaskOutput: typeof import("./getImportTask").getImportTaskOutput;
|
|
@@ -67,6 +97,12 @@ export declare const getTopicOutput: typeof import("./getTopic").getTopicOutput;
|
|
|
67
97
|
export { GetTopicsResult } from "./getTopics";
|
|
68
98
|
export declare const getTopics: typeof import("./getTopics").getTopics;
|
|
69
99
|
export declare const getTopicsOutput: typeof import("./getTopics").getTopicsOutput;
|
|
100
|
+
export { HostArgs, HostState } from "./host";
|
|
101
|
+
export type Host = import("./host").Host;
|
|
102
|
+
export declare const Host: typeof import("./host").Host;
|
|
103
|
+
export { HostGroupArgs, HostGroupState } from "./hostGroup";
|
|
104
|
+
export type HostGroup = import("./hostGroup").HostGroup;
|
|
105
|
+
export declare const HostGroup: typeof import("./hostGroup").HostGroup;
|
|
70
106
|
export { ImportTaskArgs, ImportTaskState } from "./importTask";
|
|
71
107
|
export type ImportTask = import("./importTask").ImportTask;
|
|
72
108
|
export declare const ImportTask: typeof import("./importTask").ImportTask;
|