@byteplus/pulumi-bytepluscc 0.0.7 → 0.0.11
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 +152 -0
- package/alb/acl.js +98 -0
- package/alb/acl.js.map +1 -0
- package/alb/getAcl.d.ts +81 -0
- package/alb/getAcl.js +28 -0
- package/alb/getAcl.js.map +1 -0
- package/alb/getAcls.d.ts +22 -0
- package/alb/getAcls.js +24 -0
- package/alb/getAcls.js.map +1 -0
- package/alb/getLoadBalancer.d.ts +153 -0
- package/alb/getLoadBalancer.js +28 -0
- package/alb/getLoadBalancer.js.map +1 -0
- package/alb/getLoadBalancers.d.ts +22 -0
- package/alb/getLoadBalancers.js +24 -0
- package/alb/getLoadBalancers.js.map +1 -0
- package/alb/getServerGroup.d.ts +109 -0
- package/alb/getServerGroup.js +28 -0
- package/alb/getServerGroup.js.map +1 -0
- package/alb/getServerGroups.d.ts +22 -0
- package/alb/getServerGroups.js +24 -0
- package/alb/getServerGroups.js.map +1 -0
- package/alb/index.d.ts +27 -0
- package/alb/index.js +34 -1
- package/alb/index.js.map +1 -1
- package/alb/loadBalancer.d.ts +341 -0
- package/alb/loadBalancer.js +120 -0
- package/alb/loadBalancer.js.map +1 -0
- package/alb/serverGroup.d.ts +219 -0
- package/alb/serverGroup.js +95 -0
- package/alb/serverGroup.js.map +1 -0
- package/autoscaling/getScalingConfiguration.d.ts +4 -1
- package/autoscaling/getScalingConfiguration.js.map +1 -1
- package/autoscaling/scalingConfiguration.d.ts +3 -3
- package/bmq/getGroup.d.ts +77 -0
- package/bmq/getGroup.js +28 -0
- package/bmq/getGroup.js.map +1 -0
- package/bmq/getGroups.d.ts +22 -0
- package/bmq/getGroups.js +24 -0
- package/bmq/getGroups.js.map +1 -0
- package/bmq/group.d.ts +137 -0
- package/bmq/group.js +76 -0
- package/bmq/group.js.map +1 -0
- package/bmq/index.d.ts +9 -0
- package/bmq/index.js +12 -1
- package/bmq/index.js.map +1 -1
- package/cdn/getShareConfig.d.ts +1 -1
- package/cdn/shareConfig.d.ts +3 -3
- package/cdn/shareConfig.js +2 -2
- package/cdn/shareConfig.js.map +1 -1
- package/clb/acl.d.ts +166 -0
- package/clb/acl.js +107 -0
- package/clb/acl.js.map +1 -0
- package/clb/certificate.d.ts +187 -0
- package/clb/certificate.js +109 -0
- package/clb/certificate.js.map +1 -0
- package/clb/getAcl.d.ts +85 -0
- package/clb/getAcl.js +28 -0
- package/clb/getAcl.js.map +1 -0
- package/clb/getAcls.d.ts +22 -0
- package/clb/getAcls.js +24 -0
- package/clb/getAcls.js.map +1 -0
- package/clb/getCertificate.d.ts +89 -0
- package/clb/getCertificate.js +28 -0
- package/clb/getCertificate.js.map +1 -0
- package/clb/getCertificates.d.ts +22 -0
- package/clb/getCertificates.js +24 -0
- package/clb/getCertificates.js.map +1 -0
- package/clb/getListener.d.ts +5 -1
- package/clb/getListener.js.map +1 -1
- package/clb/getNlb.d.ts +141 -0
- package/clb/getNlb.js +28 -0
- package/clb/getNlb.js.map +1 -0
- package/clb/getNlbListener.d.ts +109 -0
- package/clb/getNlbListener.js +28 -0
- package/clb/getNlbListener.js.map +1 -0
- package/clb/getNlbListeners.d.ts +22 -0
- package/clb/getNlbListeners.js +24 -0
- package/clb/getNlbListeners.js.map +1 -0
- package/clb/getNlbServerGroup.d.ts +145 -0
- package/clb/getNlbServerGroup.js +28 -0
- package/clb/getNlbServerGroup.js.map +1 -0
- package/clb/getNlbServerGroups.d.ts +22 -0
- package/clb/getNlbServerGroups.js +24 -0
- package/clb/getNlbServerGroups.js.map +1 -0
- package/clb/getNlbs.d.ts +22 -0
- package/clb/getNlbs.js +24 -0
- package/clb/getNlbs.js.map +1 -0
- package/clb/getServerGroup.d.ts +85 -0
- package/clb/getServerGroup.js +28 -0
- package/clb/getServerGroup.js.map +1 -0
- package/clb/getServerGroups.d.ts +22 -0
- package/clb/getServerGroups.js +24 -0
- package/clb/getServerGroups.js.map +1 -0
- package/clb/index.d.ts +54 -0
- package/clb/index.js +67 -1
- package/clb/index.js.map +1 -1
- package/clb/listener.d.ts +11 -3
- package/clb/listener.js +2 -0
- package/clb/listener.js.map +1 -1
- package/clb/nlb.d.ts +297 -0
- package/clb/nlb.js +120 -0
- package/clb/nlb.js.map +1 -0
- package/clb/nlbListener.d.ts +251 -0
- package/clb/nlbListener.js +126 -0
- package/clb/nlbListener.js.map +1 -0
- package/clb/nlbServerGroup.d.ts +325 -0
- package/clb/nlbServerGroup.js +116 -0
- package/clb/nlbServerGroup.js.map +1 -0
- package/clb/serverGroup.d.ts +151 -0
- package/clb/serverGroup.js +83 -0
- package/clb/serverGroup.js.map +1 -0
- package/cloudmonitor/getRule.d.ts +169 -0
- package/cloudmonitor/getRule.js +28 -0
- package/cloudmonitor/getRule.js.map +1 -0
- package/cloudmonitor/getRules.d.ts +22 -0
- package/cloudmonitor/getRules.js +24 -0
- package/cloudmonitor/getRules.js.map +1 -0
- package/cloudmonitor/index.d.ts +9 -0
- package/cloudmonitor/index.js +28 -0
- package/cloudmonitor/index.js.map +1 -0
- package/cloudmonitor/rule.d.ts +387 -0
- package/cloudmonitor/rule.js +152 -0
- package/cloudmonitor/rule.js.map +1 -0
- package/cr/getNameSpace.d.ts +52 -0
- package/cr/getNameSpace.js +28 -0
- package/cr/getNameSpace.js.map +1 -0
- package/cr/getNameSpaces.d.ts +22 -0
- package/cr/getNameSpaces.js +24 -0
- package/cr/getNameSpaces.js.map +1 -0
- package/cr/getRegistries.d.ts +22 -0
- package/cr/getRegistries.js +24 -0
- package/cr/getRegistries.js.map +1 -0
- package/cr/getRegistry.d.ts +81 -0
- package/cr/getRegistry.js +28 -0
- package/cr/getRegistry.js.map +1 -0
- package/cr/index.d.ts +18 -0
- package/cr/index.js +23 -1
- package/cr/index.js.map +1 -1
- package/cr/nameSpace.d.ts +102 -0
- package/cr/nameSpace.js +83 -0
- package/cr/nameSpace.js.map +1 -0
- package/cr/registry.d.ts +159 -0
- package/cr/registry.js +98 -0
- package/cr/registry.js.map +1 -0
- package/directconnect/directConnectGateway.d.ts +202 -0
- package/directconnect/directConnectGateway.js +106 -0
- package/directconnect/directConnectGateway.js.map +1 -0
- package/directconnect/getDirectConnectGateway.d.ts +101 -0
- package/directconnect/getDirectConnectGateway.js +28 -0
- package/directconnect/getDirectConnectGateway.js.map +1 -0
- package/directconnect/getDirectConnectGateways.d.ts +22 -0
- package/directconnect/getDirectConnectGateways.js +24 -0
- package/directconnect/getDirectConnectGateways.js.map +1 -0
- package/directconnect/index.d.ts +9 -0
- package/directconnect/index.js +28 -0
- package/directconnect/index.js.map +1 -0
- package/ecs/command.d.ts +213 -0
- package/ecs/command.js +99 -0
- package/ecs/command.js.map +1 -0
- package/ecs/getCommand.d.ts +105 -0
- package/ecs/getCommand.js +28 -0
- package/ecs/getCommand.js.map +1 -0
- package/ecs/getCommands.d.ts +22 -0
- package/ecs/getCommands.js +24 -0
- package/ecs/getCommands.js.map +1 -0
- package/ecs/getInvocation.d.ts +149 -0
- package/ecs/getInvocation.js +28 -0
- package/ecs/getInvocation.js.map +1 -0
- package/ecs/getInvocations.d.ts +22 -0
- package/ecs/getInvocations.js +24 -0
- package/ecs/getInvocations.js.map +1 -0
- package/ecs/getKeypair.d.ts +77 -0
- package/ecs/getKeypair.js +28 -0
- package/ecs/getKeypair.js.map +1 -0
- package/ecs/getKeypairs.d.ts +22 -0
- package/ecs/getKeypairs.js +24 -0
- package/ecs/getKeypairs.js.map +1 -0
- package/ecs/index.d.ts +27 -0
- package/ecs/index.js +34 -1
- package/ecs/index.js.map +1 -1
- package/ecs/invocation.d.ts +338 -0
- package/ecs/invocation.js +149 -0
- package/ecs/invocation.js.map +1 -0
- package/ecs/keypair.d.ts +159 -0
- package/ecs/keypair.js +96 -0
- package/ecs/keypair.js.map +1 -0
- package/filenas/getInstance.d.ts +109 -0
- package/filenas/getInstance.js +28 -0
- package/filenas/getInstance.js.map +1 -0
- package/filenas/getInstances.d.ts +22 -0
- package/filenas/getInstances.js +24 -0
- package/filenas/getInstances.js.map +1 -0
- package/filenas/getSnapshot.d.ts +92 -0
- package/filenas/getSnapshot.js +28 -0
- package/filenas/getSnapshot.js.map +1 -0
- package/filenas/getSnapshots.d.ts +22 -0
- package/filenas/getSnapshots.js +24 -0
- package/filenas/getSnapshots.js.map +1 -0
- package/filenas/index.d.ts +18 -0
- package/filenas/index.js +39 -0
- package/filenas/index.js.map +1 -0
- package/filenas/instance.d.ts +248 -0
- package/filenas/instance.js +125 -0
- package/filenas/instance.js.map +1 -0
- package/filenas/snapshot.d.ts +182 -0
- package/filenas/snapshot.js +103 -0
- package/filenas/snapshot.js.map +1 -0
- package/{firewallcenter → fwcenter}/dnsControlPolicy.d.ts +6 -6
- package/{firewallcenter → fwcenter}/dnsControlPolicy.js +2 -2
- package/fwcenter/dnsControlPolicy.js.map +1 -0
- package/{firewallcenter → fwcenter}/getDnsControlPolicies.d.ts +2 -2
- package/{firewallcenter → fwcenter}/getDnsControlPolicies.js +4 -4
- package/fwcenter/getDnsControlPolicies.js.map +1 -0
- package/{firewallcenter → fwcenter}/getDnsControlPolicy.d.ts +4 -4
- package/{firewallcenter → fwcenter}/getDnsControlPolicy.js +4 -4
- package/fwcenter/getDnsControlPolicy.js.map +1 -0
- package/{firewallcenter → fwcenter}/index.js +2 -2
- package/fwcenter/index.js.map +1 -0
- package/iam/getGroup.d.ts +73 -0
- package/iam/getGroup.js +28 -0
- package/iam/getGroup.js.map +1 -0
- package/iam/getGroups.d.ts +22 -0
- package/iam/getGroups.js +24 -0
- package/iam/getGroups.js.map +1 -0
- package/iam/group.d.ts +121 -0
- package/iam/group.js +77 -0
- package/iam/group.js.map +1 -0
- package/iam/index.d.ts +9 -0
- package/iam/index.js +12 -1
- package/iam/index.js.map +1 -1
- package/iam/policy.d.ts +0 -4
- package/iam/policy.js +1 -1
- package/iam/policy.js.map +1 -1
- package/index.d.ts +8 -2
- package/index.js +15 -3
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/rdsmysql/database.d.ts +106 -0
- package/rdsmysql/database.js +74 -0
- package/rdsmysql/database.js.map +1 -0
- package/rdsmysql/getDatabase.d.ts +61 -0
- package/rdsmysql/getDatabase.js +28 -0
- package/rdsmysql/getDatabase.js.map +1 -0
- package/rdsmysql/getDatabases.d.ts +22 -0
- package/rdsmysql/getDatabases.js +24 -0
- package/rdsmysql/getDatabases.js.map +1 -0
- package/rdsmysql/index.d.ts +9 -0
- package/rdsmysql/index.js +12 -1
- package/rdsmysql/index.js.map +1 -1
- package/transitrouter/getTransitRouter.d.ts +93 -0
- package/transitrouter/getTransitRouter.js +28 -0
- package/transitrouter/getTransitRouter.js.map +1 -0
- package/transitrouter/getTransitRouterRouteEntries.d.ts +22 -0
- package/transitrouter/getTransitRouterRouteEntries.js +24 -0
- package/transitrouter/getTransitRouterRouteEntries.js.map +1 -0
- package/transitrouter/getTransitRouterRouteEntry.d.ts +84 -0
- package/transitrouter/getTransitRouterRouteEntry.js +28 -0
- package/transitrouter/getTransitRouterRouteEntry.js.map +1 -0
- package/transitrouter/getTransitRouterRouteTable.d.ts +81 -0
- package/transitrouter/getTransitRouterRouteTable.js +28 -0
- package/transitrouter/getTransitRouterRouteTable.js.map +1 -0
- package/transitrouter/getTransitRouterRouteTables.d.ts +22 -0
- package/transitrouter/getTransitRouterRouteTables.js +24 -0
- package/transitrouter/getTransitRouterRouteTables.js.map +1 -0
- package/transitrouter/getTransitRouters.d.ts +22 -0
- package/transitrouter/getTransitRouters.js +24 -0
- package/transitrouter/getTransitRouters.js.map +1 -0
- package/transitrouter/index.d.ts +27 -0
- package/transitrouter/index.js +50 -0
- package/transitrouter/index.js.map +1 -0
- package/transitrouter/transitRouter.d.ts +182 -0
- package/transitrouter/transitRouter.js +102 -0
- package/transitrouter/transitRouter.js.map +1 -0
- package/transitrouter/transitRouterRouteEntry.d.ts +165 -0
- package/transitrouter/transitRouterRouteEntry.js +89 -0
- package/transitrouter/transitRouterRouteEntry.js.map +1 -0
- package/transitrouter/transitRouterRouteTable.d.ts +159 -0
- package/transitrouter/transitRouterRouteTable.js +98 -0
- package/transitrouter/transitRouterRouteTable.js.map +1 -0
- package/types/input.d.ts +1590 -32
- package/types/output.d.ts +6263 -2939
- package/vefaas/kafkaTrigger.d.ts +1 -1
- package/vefaas/kafkaTrigger.js +3 -0
- package/vefaas/kafkaTrigger.js.map +1 -1
- package/vmp/getWorkspace.d.ts +109 -0
- package/vmp/getWorkspace.js +28 -0
- package/vmp/getWorkspace.js.map +1 -0
- package/vmp/getWorkspaces.d.ts +22 -0
- package/vmp/getWorkspaces.js +24 -0
- package/vmp/getWorkspaces.js.map +1 -0
- package/vmp/index.d.ts +9 -0
- package/vmp/index.js +28 -0
- package/vmp/index.js.map +1 -0
- package/vmp/workspace.d.ts +235 -0
- package/vmp/workspace.js +119 -0
- package/vmp/workspace.js.map +1 -0
- package/vpc/bandwidthPackage.d.ts +257 -0
- package/vpc/bandwidthPackage.js +103 -0
- package/vpc/bandwidthPackage.js.map +1 -0
- package/vpc/eip.d.ts +382 -0
- package/vpc/eip.js +125 -0
- package/vpc/eip.js.map +1 -0
- package/vpc/getBandwidthPackage.d.ts +125 -0
- package/vpc/getBandwidthPackage.js +28 -0
- package/vpc/getBandwidthPackage.js.map +1 -0
- package/vpc/getBandwidthPackages.d.ts +22 -0
- package/vpc/getBandwidthPackages.js +24 -0
- package/vpc/getBandwidthPackages.js.map +1 -0
- package/vpc/getEip.d.ts +169 -0
- package/vpc/getEip.js +28 -0
- package/vpc/getEip.js.map +1 -0
- package/vpc/getEips.d.ts +22 -0
- package/vpc/getEips.js +24 -0
- package/vpc/getEips.js.map +1 -0
- package/vpc/getNetworkAcl.d.ts +93 -0
- package/vpc/getNetworkAcl.js +28 -0
- package/vpc/getNetworkAcl.js.map +1 -0
- package/vpc/getNetworkAcls.d.ts +22 -0
- package/vpc/getNetworkAcls.js +24 -0
- package/vpc/getNetworkAcls.js.map +1 -0
- package/vpc/getPrefixList.d.ts +93 -0
- package/vpc/getPrefixList.js +28 -0
- package/vpc/getPrefixList.js.map +1 -0
- package/vpc/getPrefixLists.d.ts +22 -0
- package/vpc/getPrefixLists.js +24 -0
- package/vpc/getPrefixLists.js.map +1 -0
- package/vpc/getRouteTable.d.ts +105 -0
- package/vpc/getRouteTable.js +28 -0
- package/vpc/getRouteTable.js.map +1 -0
- package/vpc/getRouteTables.d.ts +22 -0
- package/vpc/getRouteTables.js +24 -0
- package/vpc/getRouteTables.js.map +1 -0
- package/vpc/index.d.ts +45 -0
- package/vpc/index.js +56 -1
- package/vpc/index.js.map +1 -1
- package/vpc/networkAcl.d.ts +143 -0
- package/vpc/networkAcl.js +87 -0
- package/vpc/networkAcl.js.map +1 -0
- package/vpc/prefixList.d.ts +180 -0
- package/vpc/prefixList.js +110 -0
- package/vpc/prefixList.js.map +1 -0
- package/vpc/routeTable.d.ts +199 -0
- package/vpc/routeTable.js +93 -0
- package/vpc/routeTable.js.map +1 -0
- package/vpn/getVpnGateway.d.ts +165 -0
- package/vpn/getVpnGateway.js +28 -0
- package/vpn/getVpnGateway.js.map +1 -0
- package/vpn/getVpnGateways.d.ts +22 -0
- package/vpn/getVpnGateways.js +24 -0
- package/vpn/getVpnGateways.js.map +1 -0
- package/vpn/index.d.ts +9 -0
- package/vpn/index.js +28 -0
- package/vpn/index.js.map +1 -0
- package/vpn/vpnGateway.d.ts +389 -0
- package/vpn/vpnGateway.js +152 -0
- package/vpn/vpnGateway.js.map +1 -0
- package/firewallcenter/dnsControlPolicy.js.map +0 -1
- package/firewallcenter/getDnsControlPolicies.js.map +0 -1
- package/firewallcenter/getDnsControlPolicy.js.map +0 -1
- package/firewallcenter/index.js.map +0 -1
- /package/{firewallcenter → fwcenter}/index.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../directconnect/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAK7B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+
* 自定义命令是云助手提供的满足您个性化运维需求的功能,您可以在预置的公共命令不满足需求时创建自定义命令,并通过运维任务在实例中批量执行您编写的自定义命令。
|
|
6
|
+
*
|
|
7
|
+
* ## Import
|
|
8
|
+
*
|
|
9
|
+
* ```sh
|
|
10
|
+
* $ pulumi import bytepluscc:ecs/command:Command example "command_id"
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
export declare class Command extends pulumi.CustomResource {
|
|
14
|
+
/**
|
|
15
|
+
* Get an existing Command 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?: CommandState, opts?: pulumi.CustomResourceOptions): Command;
|
|
24
|
+
/**
|
|
25
|
+
* Returns true if the given object is an instance of Command. 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 Command;
|
|
29
|
+
/**
|
|
30
|
+
* 命令内容。请根据ContentEncoding参数传入相应命令内容。命令内容不能超过16KB。
|
|
31
|
+
*/
|
|
32
|
+
readonly commandContent: pulumi.Output<string>;
|
|
33
|
+
/**
|
|
34
|
+
* 自定义命令ID。
|
|
35
|
+
*/
|
|
36
|
+
readonly commandId: pulumi.Output<string>;
|
|
37
|
+
/**
|
|
38
|
+
* 命令内容是否经过Base64编码处理。Base64(默认):经过Base64编码处理。PlainText: 未进行编码处理。
|
|
39
|
+
*/
|
|
40
|
+
readonly contentEncoding: pulumi.Output<string>;
|
|
41
|
+
/**
|
|
42
|
+
* 创建时间。
|
|
43
|
+
*/
|
|
44
|
+
readonly createdTime: pulumi.Output<string>;
|
|
45
|
+
/**
|
|
46
|
+
* 命令描述,默认为空字符串。字符长度0~256。不限制特殊字符。
|
|
47
|
+
*/
|
|
48
|
+
readonly description: pulumi.Output<string>;
|
|
49
|
+
/**
|
|
50
|
+
* 创建的命令是否使用自定义参数。false:默认,表示不使用自定义参数。true:表示使用自定义参数。
|
|
51
|
+
*/
|
|
52
|
+
readonly enableParameter: pulumi.Output<boolean>;
|
|
53
|
+
/**
|
|
54
|
+
* 命令被调用次数。
|
|
55
|
+
*/
|
|
56
|
+
readonly invocationTimes: pulumi.Output<number>;
|
|
57
|
+
/**
|
|
58
|
+
* 命令名称。字符长度1~32。不限制特殊字符。
|
|
59
|
+
*/
|
|
60
|
+
readonly name: pulumi.Output<string>;
|
|
61
|
+
readonly parameterDefinitions: pulumi.Output<outputs.ecs.CommandParameterDefinition[]>;
|
|
62
|
+
/**
|
|
63
|
+
* 资源所属项目,一个资源只能归属于一个项目。
|
|
64
|
+
*/
|
|
65
|
+
readonly projectName: pulumi.Output<string>;
|
|
66
|
+
/**
|
|
67
|
+
* 命令的提供方。
|
|
68
|
+
*/
|
|
69
|
+
readonly providerName: pulumi.Output<string>;
|
|
70
|
+
readonly tags: pulumi.Output<outputs.ecs.CommandTag[]>;
|
|
71
|
+
/**
|
|
72
|
+
* 创建的命令在ECS实例中执行时最大的超时时间,单位为秒。取值范围:30~86400。默认值:60。
|
|
73
|
+
*/
|
|
74
|
+
readonly timeout: pulumi.Output<number>;
|
|
75
|
+
/**
|
|
76
|
+
* 命令的类型。Shell:表示创建一个在Linux实例中运行的Shell脚本。Python:表示创建一个Python脚本。Bat:表示创建一个Bat脚本。PowerShell:表示创建一个PowerShell脚本。
|
|
77
|
+
*/
|
|
78
|
+
readonly type: pulumi.Output<string>;
|
|
79
|
+
/**
|
|
80
|
+
* 更新时间。
|
|
81
|
+
*/
|
|
82
|
+
readonly updatedTime: pulumi.Output<string>;
|
|
83
|
+
/**
|
|
84
|
+
* 执行命令时的用户名。
|
|
85
|
+
*/
|
|
86
|
+
readonly username: pulumi.Output<string>;
|
|
87
|
+
/**
|
|
88
|
+
* 创建的命令在ECS实例中运行的目录。
|
|
89
|
+
*/
|
|
90
|
+
readonly workingDir: pulumi.Output<string>;
|
|
91
|
+
/**
|
|
92
|
+
* Create a Command resource with the given unique name, arguments, and options.
|
|
93
|
+
*
|
|
94
|
+
* @param name The _unique_ name of the resource.
|
|
95
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
96
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
97
|
+
*/
|
|
98
|
+
constructor(name: string, args: CommandArgs, opts?: pulumi.CustomResourceOptions);
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Input properties used for looking up and filtering Command resources.
|
|
102
|
+
*/
|
|
103
|
+
export interface CommandState {
|
|
104
|
+
/**
|
|
105
|
+
* 命令内容。请根据ContentEncoding参数传入相应命令内容。命令内容不能超过16KB。
|
|
106
|
+
*/
|
|
107
|
+
commandContent?: pulumi.Input<string>;
|
|
108
|
+
/**
|
|
109
|
+
* 自定义命令ID。
|
|
110
|
+
*/
|
|
111
|
+
commandId?: pulumi.Input<string>;
|
|
112
|
+
/**
|
|
113
|
+
* 命令内容是否经过Base64编码处理。Base64(默认):经过Base64编码处理。PlainText: 未进行编码处理。
|
|
114
|
+
*/
|
|
115
|
+
contentEncoding?: pulumi.Input<string>;
|
|
116
|
+
/**
|
|
117
|
+
* 创建时间。
|
|
118
|
+
*/
|
|
119
|
+
createdTime?: pulumi.Input<string>;
|
|
120
|
+
/**
|
|
121
|
+
* 命令描述,默认为空字符串。字符长度0~256。不限制特殊字符。
|
|
122
|
+
*/
|
|
123
|
+
description?: pulumi.Input<string>;
|
|
124
|
+
/**
|
|
125
|
+
* 创建的命令是否使用自定义参数。false:默认,表示不使用自定义参数。true:表示使用自定义参数。
|
|
126
|
+
*/
|
|
127
|
+
enableParameter?: pulumi.Input<boolean>;
|
|
128
|
+
/**
|
|
129
|
+
* 命令被调用次数。
|
|
130
|
+
*/
|
|
131
|
+
invocationTimes?: pulumi.Input<number>;
|
|
132
|
+
/**
|
|
133
|
+
* 命令名称。字符长度1~32。不限制特殊字符。
|
|
134
|
+
*/
|
|
135
|
+
name?: pulumi.Input<string>;
|
|
136
|
+
parameterDefinitions?: pulumi.Input<pulumi.Input<inputs.ecs.CommandParameterDefinition>[]>;
|
|
137
|
+
/**
|
|
138
|
+
* 资源所属项目,一个资源只能归属于一个项目。
|
|
139
|
+
*/
|
|
140
|
+
projectName?: pulumi.Input<string>;
|
|
141
|
+
/**
|
|
142
|
+
* 命令的提供方。
|
|
143
|
+
*/
|
|
144
|
+
providerName?: pulumi.Input<string>;
|
|
145
|
+
tags?: pulumi.Input<pulumi.Input<inputs.ecs.CommandTag>[]>;
|
|
146
|
+
/**
|
|
147
|
+
* 创建的命令在ECS实例中执行时最大的超时时间,单位为秒。取值范围:30~86400。默认值:60。
|
|
148
|
+
*/
|
|
149
|
+
timeout?: pulumi.Input<number>;
|
|
150
|
+
/**
|
|
151
|
+
* 命令的类型。Shell:表示创建一个在Linux实例中运行的Shell脚本。Python:表示创建一个Python脚本。Bat:表示创建一个Bat脚本。PowerShell:表示创建一个PowerShell脚本。
|
|
152
|
+
*/
|
|
153
|
+
type?: pulumi.Input<string>;
|
|
154
|
+
/**
|
|
155
|
+
* 更新时间。
|
|
156
|
+
*/
|
|
157
|
+
updatedTime?: pulumi.Input<string>;
|
|
158
|
+
/**
|
|
159
|
+
* 执行命令时的用户名。
|
|
160
|
+
*/
|
|
161
|
+
username?: pulumi.Input<string>;
|
|
162
|
+
/**
|
|
163
|
+
* 创建的命令在ECS实例中运行的目录。
|
|
164
|
+
*/
|
|
165
|
+
workingDir?: pulumi.Input<string>;
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* The set of arguments for constructing a Command resource.
|
|
169
|
+
*/
|
|
170
|
+
export interface CommandArgs {
|
|
171
|
+
/**
|
|
172
|
+
* 命令内容。请根据ContentEncoding参数传入相应命令内容。命令内容不能超过16KB。
|
|
173
|
+
*/
|
|
174
|
+
commandContent: pulumi.Input<string>;
|
|
175
|
+
/**
|
|
176
|
+
* 命令内容是否经过Base64编码处理。Base64(默认):经过Base64编码处理。PlainText: 未进行编码处理。
|
|
177
|
+
*/
|
|
178
|
+
contentEncoding?: pulumi.Input<string>;
|
|
179
|
+
/**
|
|
180
|
+
* 命令描述,默认为空字符串。字符长度0~256。不限制特殊字符。
|
|
181
|
+
*/
|
|
182
|
+
description?: pulumi.Input<string>;
|
|
183
|
+
/**
|
|
184
|
+
* 创建的命令是否使用自定义参数。false:默认,表示不使用自定义参数。true:表示使用自定义参数。
|
|
185
|
+
*/
|
|
186
|
+
enableParameter?: pulumi.Input<boolean>;
|
|
187
|
+
/**
|
|
188
|
+
* 命令名称。字符长度1~32。不限制特殊字符。
|
|
189
|
+
*/
|
|
190
|
+
name: pulumi.Input<string>;
|
|
191
|
+
parameterDefinitions?: pulumi.Input<pulumi.Input<inputs.ecs.CommandParameterDefinition>[]>;
|
|
192
|
+
/**
|
|
193
|
+
* 资源所属项目,一个资源只能归属于一个项目。
|
|
194
|
+
*/
|
|
195
|
+
projectName?: pulumi.Input<string>;
|
|
196
|
+
tags?: pulumi.Input<pulumi.Input<inputs.ecs.CommandTag>[]>;
|
|
197
|
+
/**
|
|
198
|
+
* 创建的命令在ECS实例中执行时最大的超时时间,单位为秒。取值范围:30~86400。默认值:60。
|
|
199
|
+
*/
|
|
200
|
+
timeout?: pulumi.Input<number>;
|
|
201
|
+
/**
|
|
202
|
+
* 命令的类型。Shell:表示创建一个在Linux实例中运行的Shell脚本。Python:表示创建一个Python脚本。Bat:表示创建一个Bat脚本。PowerShell:表示创建一个PowerShell脚本。
|
|
203
|
+
*/
|
|
204
|
+
type: pulumi.Input<string>;
|
|
205
|
+
/**
|
|
206
|
+
* 执行命令时的用户名。
|
|
207
|
+
*/
|
|
208
|
+
username?: pulumi.Input<string>;
|
|
209
|
+
/**
|
|
210
|
+
* 创建的命令在ECS实例中运行的目录。
|
|
211
|
+
*/
|
|
212
|
+
workingDir?: pulumi.Input<string>;
|
|
213
|
+
}
|
package/ecs/command.js
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
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.Command = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* 自定义命令是云助手提供的满足您个性化运维需求的功能,您可以在预置的公共命令不满足需求时创建自定义命令,并通过运维任务在实例中批量执行您编写的自定义命令。
|
|
10
|
+
*
|
|
11
|
+
* ## Import
|
|
12
|
+
*
|
|
13
|
+
* ```sh
|
|
14
|
+
* $ pulumi import bytepluscc:ecs/command:Command example "command_id"
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
class Command extends pulumi.CustomResource {
|
|
18
|
+
/**
|
|
19
|
+
* Get an existing Command 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 Command(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Returns true if the given object is an instance of Command. 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'] === Command.__pulumiType;
|
|
39
|
+
}
|
|
40
|
+
constructor(name, argsOrState, opts) {
|
|
41
|
+
let resourceInputs = {};
|
|
42
|
+
opts = opts || {};
|
|
43
|
+
if (opts.id) {
|
|
44
|
+
const state = argsOrState;
|
|
45
|
+
resourceInputs["commandContent"] = state ? state.commandContent : undefined;
|
|
46
|
+
resourceInputs["commandId"] = state ? state.commandId : undefined;
|
|
47
|
+
resourceInputs["contentEncoding"] = state ? state.contentEncoding : undefined;
|
|
48
|
+
resourceInputs["createdTime"] = state ? state.createdTime : undefined;
|
|
49
|
+
resourceInputs["description"] = state ? state.description : undefined;
|
|
50
|
+
resourceInputs["enableParameter"] = state ? state.enableParameter : undefined;
|
|
51
|
+
resourceInputs["invocationTimes"] = state ? state.invocationTimes : undefined;
|
|
52
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
53
|
+
resourceInputs["parameterDefinitions"] = state ? state.parameterDefinitions : undefined;
|
|
54
|
+
resourceInputs["projectName"] = state ? state.projectName : undefined;
|
|
55
|
+
resourceInputs["providerName"] = state ? state.providerName : undefined;
|
|
56
|
+
resourceInputs["tags"] = state ? state.tags : undefined;
|
|
57
|
+
resourceInputs["timeout"] = state ? state.timeout : undefined;
|
|
58
|
+
resourceInputs["type"] = state ? state.type : undefined;
|
|
59
|
+
resourceInputs["updatedTime"] = state ? state.updatedTime : undefined;
|
|
60
|
+
resourceInputs["username"] = state ? state.username : undefined;
|
|
61
|
+
resourceInputs["workingDir"] = state ? state.workingDir : undefined;
|
|
62
|
+
}
|
|
63
|
+
else {
|
|
64
|
+
const args = argsOrState;
|
|
65
|
+
if ((!args || args.commandContent === undefined) && !opts.urn) {
|
|
66
|
+
throw new Error("Missing required property 'commandContent'");
|
|
67
|
+
}
|
|
68
|
+
if ((!args || args.name === undefined) && !opts.urn) {
|
|
69
|
+
throw new Error("Missing required property 'name'");
|
|
70
|
+
}
|
|
71
|
+
if ((!args || args.type === undefined) && !opts.urn) {
|
|
72
|
+
throw new Error("Missing required property 'type'");
|
|
73
|
+
}
|
|
74
|
+
resourceInputs["commandContent"] = args ? args.commandContent : undefined;
|
|
75
|
+
resourceInputs["contentEncoding"] = args ? args.contentEncoding : undefined;
|
|
76
|
+
resourceInputs["description"] = args ? args.description : undefined;
|
|
77
|
+
resourceInputs["enableParameter"] = args ? args.enableParameter : undefined;
|
|
78
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
79
|
+
resourceInputs["parameterDefinitions"] = args ? args.parameterDefinitions : undefined;
|
|
80
|
+
resourceInputs["projectName"] = args ? args.projectName : undefined;
|
|
81
|
+
resourceInputs["tags"] = args ? args.tags : undefined;
|
|
82
|
+
resourceInputs["timeout"] = args ? args.timeout : undefined;
|
|
83
|
+
resourceInputs["type"] = args ? args.type : undefined;
|
|
84
|
+
resourceInputs["username"] = args ? args.username : undefined;
|
|
85
|
+
resourceInputs["workingDir"] = args ? args.workingDir : undefined;
|
|
86
|
+
resourceInputs["commandId"] = undefined /*out*/;
|
|
87
|
+
resourceInputs["createdTime"] = undefined /*out*/;
|
|
88
|
+
resourceInputs["invocationTimes"] = undefined /*out*/;
|
|
89
|
+
resourceInputs["providerName"] = undefined /*out*/;
|
|
90
|
+
resourceInputs["updatedTime"] = undefined /*out*/;
|
|
91
|
+
}
|
|
92
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
93
|
+
super(Command.__pulumiType, name, resourceInputs, opts);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
exports.Command = Command;
|
|
97
|
+
/** @internal */
|
|
98
|
+
Command.__pulumiType = 'bytepluscc:ecs/command:Command';
|
|
99
|
+
//# sourceMappingURL=command.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command.js","sourceRoot":"","sources":["../../ecs/command.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAA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;;AAxJL,0BAyJC;AA3IG,gBAAgB;AACO,oBAAY,GAAG,gCAAgC,CAAC"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as outputs from "../types/output";
|
|
3
|
+
/**
|
|
4
|
+
* Data Source schema for Byteplus::ECS::Command
|
|
5
|
+
*/
|
|
6
|
+
export declare function getCommand(args: GetCommandArgs, opts?: pulumi.InvokeOptions): Promise<GetCommandResult>;
|
|
7
|
+
/**
|
|
8
|
+
* A collection of arguments for invoking getCommand.
|
|
9
|
+
*/
|
|
10
|
+
export interface GetCommandArgs {
|
|
11
|
+
/**
|
|
12
|
+
* Uniquely identifies the resource.
|
|
13
|
+
*/
|
|
14
|
+
id: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* A collection of values returned by getCommand.
|
|
18
|
+
*/
|
|
19
|
+
export interface GetCommandResult {
|
|
20
|
+
/**
|
|
21
|
+
* 命令内容。请根据ContentEncoding参数传入相应命令内容。命令内容不能超过16KB。
|
|
22
|
+
*/
|
|
23
|
+
readonly commandContent: string;
|
|
24
|
+
/**
|
|
25
|
+
* 自定义命令ID。
|
|
26
|
+
*/
|
|
27
|
+
readonly commandId: string;
|
|
28
|
+
/**
|
|
29
|
+
* 命令内容是否经过Base64编码处理。Base64(默认):经过Base64编码处理。PlainText: 未进行编码处理。
|
|
30
|
+
*/
|
|
31
|
+
readonly contentEncoding: string;
|
|
32
|
+
/**
|
|
33
|
+
* 创建时间。
|
|
34
|
+
*/
|
|
35
|
+
readonly createdTime: string;
|
|
36
|
+
/**
|
|
37
|
+
* 命令描述,默认为空字符串。字符长度0~256。不限制特殊字符。
|
|
38
|
+
*/
|
|
39
|
+
readonly description: string;
|
|
40
|
+
/**
|
|
41
|
+
* 创建的命令是否使用自定义参数。false:默认,表示不使用自定义参数。true:表示使用自定义参数。
|
|
42
|
+
*/
|
|
43
|
+
readonly enableParameter: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Uniquely identifies the resource.
|
|
46
|
+
*/
|
|
47
|
+
readonly id: string;
|
|
48
|
+
/**
|
|
49
|
+
* 命令被调用次数。
|
|
50
|
+
*/
|
|
51
|
+
readonly invocationTimes: number;
|
|
52
|
+
/**
|
|
53
|
+
* 命令名称。字符长度1~32。不限制特殊字符。
|
|
54
|
+
*/
|
|
55
|
+
readonly name: string;
|
|
56
|
+
/**
|
|
57
|
+
* 自定义参数定义信息。
|
|
58
|
+
*/
|
|
59
|
+
readonly parameterDefinitions: outputs.ecs.GetCommandParameterDefinition[];
|
|
60
|
+
/**
|
|
61
|
+
* 资源所属项目,一个资源只能归属于一个项目。
|
|
62
|
+
*/
|
|
63
|
+
readonly projectName: string;
|
|
64
|
+
/**
|
|
65
|
+
* 命令的提供方。
|
|
66
|
+
*/
|
|
67
|
+
readonly providerName: string;
|
|
68
|
+
/**
|
|
69
|
+
* 标签键值对。
|
|
70
|
+
*/
|
|
71
|
+
readonly tags: outputs.ecs.GetCommandTag[];
|
|
72
|
+
/**
|
|
73
|
+
* 创建的命令在ECS实例中执行时最大的超时时间,单位为秒。取值范围:30~86400。默认值:60。
|
|
74
|
+
*/
|
|
75
|
+
readonly timeout: number;
|
|
76
|
+
/**
|
|
77
|
+
* 命令的类型。Shell:表示创建一个在Linux实例中运行的Shell脚本。Python:表示创建一个Python脚本。Bat:表示创建一个Bat脚本。PowerShell:表示创建一个PowerShell脚本。
|
|
78
|
+
*/
|
|
79
|
+
readonly type: string;
|
|
80
|
+
/**
|
|
81
|
+
* 更新时间。
|
|
82
|
+
*/
|
|
83
|
+
readonly updatedTime: string;
|
|
84
|
+
/**
|
|
85
|
+
* 执行命令时的用户名。
|
|
86
|
+
*/
|
|
87
|
+
readonly username: string;
|
|
88
|
+
/**
|
|
89
|
+
* 创建的命令在ECS实例中运行的目录。
|
|
90
|
+
*/
|
|
91
|
+
readonly workingDir: string;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Data Source schema for Byteplus::ECS::Command
|
|
95
|
+
*/
|
|
96
|
+
export declare function getCommandOutput(args: GetCommandOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetCommandResult>;
|
|
97
|
+
/**
|
|
98
|
+
* A collection of arguments for invoking getCommand.
|
|
99
|
+
*/
|
|
100
|
+
export interface GetCommandOutputArgs {
|
|
101
|
+
/**
|
|
102
|
+
* Uniquely identifies the resource.
|
|
103
|
+
*/
|
|
104
|
+
id: pulumi.Input<string>;
|
|
105
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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.getCommandOutput = exports.getCommand = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Data Source schema for Byteplus::ECS::Command
|
|
10
|
+
*/
|
|
11
|
+
function getCommand(args, opts) {
|
|
12
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
13
|
+
return pulumi.runtime.invoke("bytepluscc:ecs/getCommand:getCommand", {
|
|
14
|
+
"id": args.id,
|
|
15
|
+
}, opts);
|
|
16
|
+
}
|
|
17
|
+
exports.getCommand = getCommand;
|
|
18
|
+
/**
|
|
19
|
+
* Data Source schema for Byteplus::ECS::Command
|
|
20
|
+
*/
|
|
21
|
+
function getCommandOutput(args, opts) {
|
|
22
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
23
|
+
return pulumi.runtime.invokeOutput("bytepluscc:ecs/getCommand:getCommand", {
|
|
24
|
+
"id": args.id,
|
|
25
|
+
}, opts);
|
|
26
|
+
}
|
|
27
|
+
exports.getCommandOutput = getCommandOutput;
|
|
28
|
+
//# sourceMappingURL=getCommand.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getCommand.js","sourceRoot":"","sources":["../../ecs/getCommand.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;GAEG;AACH,SAAgB,UAAU,CAAC,IAAoB,EAAE,IAA2B;IACxE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,sCAAsC,EAAE;QACjE,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,gCAKC;AAyFD;;GAEG;AACH,SAAgB,gBAAgB,CAAC,IAA0B,EAAE,IAAiC;IAC1F,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,sCAAsC,EAAE;QACvE,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,4CAKC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Plural Data Source schema for Byteplus::ECS::Command
|
|
4
|
+
*/
|
|
5
|
+
export declare function getCommands(opts?: pulumi.InvokeOptions): Promise<GetCommandsResult>;
|
|
6
|
+
/**
|
|
7
|
+
* A collection of values returned by getCommands.
|
|
8
|
+
*/
|
|
9
|
+
export interface GetCommandsResult {
|
|
10
|
+
/**
|
|
11
|
+
* Uniquely identifies the data source.
|
|
12
|
+
*/
|
|
13
|
+
readonly id: string;
|
|
14
|
+
/**
|
|
15
|
+
* Set of Resource Identifiers.
|
|
16
|
+
*/
|
|
17
|
+
readonly ids: string[];
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Plural Data Source schema for Byteplus::ECS::Command
|
|
21
|
+
*/
|
|
22
|
+
export declare function getCommandsOutput(opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetCommandsResult>;
|
|
@@ -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.getCommandsOutput = exports.getCommands = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Plural Data Source schema for Byteplus::ECS::Command
|
|
10
|
+
*/
|
|
11
|
+
function getCommands(opts) {
|
|
12
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
13
|
+
return pulumi.runtime.invoke("bytepluscc:ecs/getCommands:getCommands", {}, opts);
|
|
14
|
+
}
|
|
15
|
+
exports.getCommands = getCommands;
|
|
16
|
+
/**
|
|
17
|
+
* Plural Data Source schema for Byteplus::ECS::Command
|
|
18
|
+
*/
|
|
19
|
+
function getCommandsOutput(opts) {
|
|
20
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
21
|
+
return pulumi.runtime.invokeOutput("bytepluscc:ecs/getCommands:getCommands", {}, opts);
|
|
22
|
+
}
|
|
23
|
+
exports.getCommandsOutput = getCommandsOutput;
|
|
24
|
+
//# sourceMappingURL=getCommands.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getCommands.js","sourceRoot":"","sources":["../../ecs/getCommands.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;GAEG;AACH,SAAgB,WAAW,CAAC,IAA2B;IACnD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,wCAAwC,EAAE,EACtE,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAJD,kCAIC;AAeD;;GAEG;AACH,SAAgB,iBAAiB,CAAC,IAAiC;IAC/D,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,wCAAwC,EAAE,EAC5E,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAJD,8CAIC"}
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as outputs from "../types/output";
|
|
3
|
+
/**
|
|
4
|
+
* Data Source schema for Byteplus::ECS::Invocation
|
|
5
|
+
*/
|
|
6
|
+
export declare function getInvocation(args: GetInvocationArgs, opts?: pulumi.InvokeOptions): Promise<GetInvocationResult>;
|
|
7
|
+
/**
|
|
8
|
+
* A collection of arguments for invoking getInvocation.
|
|
9
|
+
*/
|
|
10
|
+
export interface GetInvocationArgs {
|
|
11
|
+
/**
|
|
12
|
+
* Uniquely identifies the resource.
|
|
13
|
+
*/
|
|
14
|
+
id: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* A collection of values returned by getInvocation.
|
|
18
|
+
*/
|
|
19
|
+
export interface GetInvocationResult {
|
|
20
|
+
/**
|
|
21
|
+
* 命令内容。
|
|
22
|
+
*/
|
|
23
|
+
readonly commandContent: string;
|
|
24
|
+
/**
|
|
25
|
+
* 被调用命令的描述。
|
|
26
|
+
*/
|
|
27
|
+
readonly commandDescription: string;
|
|
28
|
+
/**
|
|
29
|
+
* 命令ID。
|
|
30
|
+
*/
|
|
31
|
+
readonly commandId: string;
|
|
32
|
+
/**
|
|
33
|
+
* 任务触发时的命令名称。
|
|
34
|
+
*/
|
|
35
|
+
readonly commandName: string;
|
|
36
|
+
/**
|
|
37
|
+
* 被调用命令的提供方。
|
|
38
|
+
*/
|
|
39
|
+
readonly commandProvider: string;
|
|
40
|
+
/**
|
|
41
|
+
* 作业触发的命令类型。
|
|
42
|
+
*/
|
|
43
|
+
readonly commandType: string;
|
|
44
|
+
/**
|
|
45
|
+
* 被调用命令是否使用自定义参数。true:已启用。false:未启用。
|
|
46
|
+
*/
|
|
47
|
+
readonly enableParameter: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* 任务结束时间。
|
|
50
|
+
*/
|
|
51
|
+
readonly endTime: string;
|
|
52
|
+
/**
|
|
53
|
+
* 执行频率。RepeatMode=Rate 时本参数必填。格式:<执行间隔数值><执行间隔单位>,执行间隔单位:支持分钟(5m-60m)、小时(1h-24h)和天(1d-7d)。执行间隔基于固定频率,与作业实际执行需要的时间无关。创建作业后基于LaunchTime执行一次,根据间隔设置确定下一次执行时间。
|
|
54
|
+
*/
|
|
55
|
+
readonly frequency: string;
|
|
56
|
+
/**
|
|
57
|
+
* Uniquely identifies the resource.
|
|
58
|
+
*/
|
|
59
|
+
readonly id: string;
|
|
60
|
+
/**
|
|
61
|
+
* 实例ID列表,最多支持200个ID。
|
|
62
|
+
*/
|
|
63
|
+
readonly instanceIds: string[];
|
|
64
|
+
/**
|
|
65
|
+
* 执行实例数量。
|
|
66
|
+
*/
|
|
67
|
+
readonly instanceNumber: number;
|
|
68
|
+
/**
|
|
69
|
+
* 作业描述,默认为空字符串,不超过256个字符。
|
|
70
|
+
*/
|
|
71
|
+
readonly invocationDescription: string;
|
|
72
|
+
/**
|
|
73
|
+
* 任务执行 ID。
|
|
74
|
+
*/
|
|
75
|
+
readonly invocationId: string;
|
|
76
|
+
/**
|
|
77
|
+
* 作业名称。不超过64个字符。暂不限制特殊字符。同地域下作业名称可重复。
|
|
78
|
+
*/
|
|
79
|
+
readonly invocationName: string;
|
|
80
|
+
/**
|
|
81
|
+
* 单台实例执行命令的结果。
|
|
82
|
+
*/
|
|
83
|
+
readonly invocationResults: outputs.ecs.GetInvocationInvocationResult[];
|
|
84
|
+
/**
|
|
85
|
+
* 命令执行的总执行状态。
|
|
86
|
+
*/
|
|
87
|
+
readonly invocationStatus: string;
|
|
88
|
+
/**
|
|
89
|
+
* 执行时间。
|
|
90
|
+
*/
|
|
91
|
+
readonly launchTime: string;
|
|
92
|
+
/**
|
|
93
|
+
* 任务触发时的命令自定义参数定义。
|
|
94
|
+
*/
|
|
95
|
+
readonly parameterDefinitions: outputs.ecs.GetInvocationParameterDefinition[];
|
|
96
|
+
/**
|
|
97
|
+
* 命令中包含自定义参数时,需通过本参数传入自定义参数的键值对。自定义参数个数范围为0~60。Key不允许为空字符串,最多支持64个字符。Value允许为空字符串。自定义参数与原始命令内容在Base64编码后,综合长度不能超过16KB。设置的自定义参数名集合必须为创建命令时定义的参数集的子集。对于未传入的参数,使用默认值代替。
|
|
98
|
+
*/
|
|
99
|
+
readonly parameters: string;
|
|
100
|
+
/**
|
|
101
|
+
* 资源所属项目,一个资源只能归属于一个项目。
|
|
102
|
+
*/
|
|
103
|
+
readonly projectName: string;
|
|
104
|
+
/**
|
|
105
|
+
* 周期结束时间,仅适用于周期任务(Rate)。
|
|
106
|
+
*/
|
|
107
|
+
readonly recurrenceEndTime: string;
|
|
108
|
+
/**
|
|
109
|
+
* 设置命令执行的方式。Once:默认,表示立即执行命令。Rate:周期执行命令,需要通过Frequency参数传入Rate表达式指定执行周期。Fixed:定时执行命令,需要通过LaunchTime参数指定的执行时间。
|
|
110
|
+
*/
|
|
111
|
+
readonly repeatMode: string;
|
|
112
|
+
/**
|
|
113
|
+
* 任务开始时间。
|
|
114
|
+
*/
|
|
115
|
+
readonly startTime: string;
|
|
116
|
+
/**
|
|
117
|
+
* 标签键值对。
|
|
118
|
+
*/
|
|
119
|
+
readonly tags: outputs.ecs.GetInvocationTag[];
|
|
120
|
+
/**
|
|
121
|
+
* 创建的命令在ECS实例中执行时最大的超时时间,单位为秒。默认值:60。可选范围为:30~86400。
|
|
122
|
+
*/
|
|
123
|
+
readonly timeout: number;
|
|
124
|
+
/**
|
|
125
|
+
* 在ECS实例中执行命令的用户名称。
|
|
126
|
+
*/
|
|
127
|
+
readonly username: string;
|
|
128
|
+
/**
|
|
129
|
+
* 自定义windows用户的密码。
|
|
130
|
+
*/
|
|
131
|
+
readonly windowsPassword: string;
|
|
132
|
+
/**
|
|
133
|
+
* 创建的命令在ECS实例中运行的目录。
|
|
134
|
+
*/
|
|
135
|
+
readonly workingDir: string;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Data Source schema for Byteplus::ECS::Invocation
|
|
139
|
+
*/
|
|
140
|
+
export declare function getInvocationOutput(args: GetInvocationOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetInvocationResult>;
|
|
141
|
+
/**
|
|
142
|
+
* A collection of arguments for invoking getInvocation.
|
|
143
|
+
*/
|
|
144
|
+
export interface GetInvocationOutputArgs {
|
|
145
|
+
/**
|
|
146
|
+
* Uniquely identifies the resource.
|
|
147
|
+
*/
|
|
148
|
+
id: pulumi.Input<string>;
|
|
149
|
+
}
|