@byteplus/pulumi-bytepluscc 0.0.12 → 0.0.14
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/README.md +2 -0
- package/alb/customizedCfg.d.ts +163 -0
- package/alb/customizedCfg.js +113 -0
- package/alb/customizedCfg.js.map +1 -0
- package/alb/getCustomizedCfg.d.ts +77 -0
- package/alb/getCustomizedCfg.js +28 -0
- package/alb/getCustomizedCfg.js.map +1 -0
- package/alb/getCustomizedCfgs.d.ts +22 -0
- package/alb/getCustomizedCfgs.js +24 -0
- package/alb/getCustomizedCfgs.js.map +1 -0
- package/alb/getHealthCheckTemplate.d.ts +109 -0
- package/alb/getHealthCheckTemplate.js +28 -0
- package/alb/getHealthCheckTemplate.js.map +1 -0
- package/alb/getHealthCheckTemplates.d.ts +22 -0
- package/alb/getHealthCheckTemplates.js +24 -0
- package/alb/getHealthCheckTemplates.js.map +1 -0
- package/alb/healthCheckTemplate.d.ts +270 -0
- package/alb/healthCheckTemplate.js +123 -0
- package/alb/healthCheckTemplate.js.map +1 -0
- package/alb/index.d.ts +18 -0
- package/alb/index.js +23 -1
- package/alb/index.js.map +1 -1
- package/clb/clb.d.ts +512 -0
- package/clb/clb.js +148 -0
- package/clb/clb.js.map +1 -0
- package/clb/getClb.d.ts +221 -0
- package/clb/getClb.js +28 -0
- package/clb/getClb.js.map +1 -0
- package/clb/getClbs.d.ts +22 -0
- package/clb/getClbs.js +24 -0
- package/clb/getClbs.js.map +1 -0
- package/clb/index.d.ts +9 -0
- package/clb/index.js +12 -1
- package/clb/index.js.map +1 -1
- package/config/vars.d.ts +8 -0
- package/config/vars.js +14 -0
- package/config/vars.js.map +1 -1
- package/ecs/deploymentSet.d.ts +173 -0
- package/ecs/deploymentSet.js +97 -0
- package/ecs/deploymentSet.js.map +1 -0
- package/ecs/getDeploymentSet.d.ts +81 -0
- package/ecs/getDeploymentSet.js +28 -0
- package/ecs/getDeploymentSet.js.map +1 -0
- package/ecs/getDeploymentSets.d.ts +22 -0
- package/ecs/getDeploymentSets.js +24 -0
- package/ecs/getDeploymentSets.js.map +1 -0
- package/ecs/getInstance.d.ts +11 -0
- package/ecs/getInstance.js.map +1 -1
- package/ecs/getLaunchTemplate.d.ts +73 -0
- package/ecs/getLaunchTemplate.js +28 -0
- package/ecs/getLaunchTemplate.js.map +1 -0
- package/ecs/getLaunchTemplateVersion.d.ts +153 -0
- package/ecs/getLaunchTemplateVersion.js +28 -0
- package/ecs/getLaunchTemplateVersion.js.map +1 -0
- package/ecs/getLaunchTemplateVersions.d.ts +22 -0
- package/ecs/getLaunchTemplateVersions.js +24 -0
- package/ecs/getLaunchTemplateVersions.js.map +1 -0
- package/ecs/getLaunchTemplates.d.ts +22 -0
- package/ecs/getLaunchTemplates.js +24 -0
- package/ecs/getLaunchTemplates.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/instance.d.ts +106 -11
- package/ecs/instance.js +24 -2
- package/ecs/instance.js.map +1 -1
- package/ecs/launchTemplate.d.ts +130 -0
- package/ecs/launchTemplate.js +77 -0
- package/ecs/launchTemplate.js.map +1 -0
- package/ecs/launchTemplateVersion.d.ts +364 -0
- package/ecs/launchTemplateVersion.js +114 -0
- package/ecs/launchTemplateVersion.js.map +1 -0
- package/iam/accesskey.d.ts +146 -0
- package/iam/accesskey.js +85 -0
- package/iam/accesskey.js.map +1 -0
- package/iam/getAccesskey.d.ts +76 -0
- package/iam/getAccesskey.js +28 -0
- package/iam/getAccesskey.js.map +1 -0
- package/iam/getAccesskeys.d.ts +22 -0
- package/iam/getAccesskeys.js +24 -0
- package/iam/getAccesskeys.js.map +1 -0
- package/iam/getRole.d.ts +6 -0
- package/iam/getRole.js.map +1 -1
- package/iam/index.d.ts +9 -0
- package/iam/index.js +12 -1
- package/iam/index.js.map +1 -1
- package/index.d.ts +3 -1
- package/index.js +5 -1
- package/index.js.map +1 -1
- package/kms/getKeyRing.d.ts +72 -0
- package/kms/getKeyRing.js +28 -0
- package/kms/getKeyRing.js.map +1 -0
- package/kms/getKeyRings.d.ts +22 -0
- package/kms/getKeyRings.js +24 -0
- package/kms/getKeyRings.js.map +1 -0
- package/kms/index.d.ts +9 -0
- package/kms/index.js +12 -1
- package/kms/index.js.map +1 -1
- package/kms/keyRing.d.ts +147 -0
- package/kms/keyRing.js +91 -0
- package/kms/keyRing.js.map +1 -0
- package/organization/account.d.ts +282 -0
- package/organization/account.js +112 -0
- package/organization/account.js.map +1 -0
- package/organization/getAccount.d.ts +137 -0
- package/organization/getAccount.js +28 -0
- package/organization/getAccount.js.map +1 -0
- package/organization/getAccounts.d.ts +22 -0
- package/organization/getAccounts.js +24 -0
- package/organization/getAccounts.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/package.json +1 -1
- package/provider.d.ts +16 -0
- package/provider.js +6 -4
- package/provider.js.map +1 -1
- package/rabbitmq/getInstance.d.ts +133 -0
- package/rabbitmq/getInstance.js +28 -0
- package/rabbitmq/getInstance.js.map +1 -0
- package/rabbitmq/getInstancePlugin.d.ts +72 -0
- package/rabbitmq/getInstancePlugin.js +28 -0
- package/rabbitmq/getInstancePlugin.js.map +1 -0
- package/rabbitmq/getInstancePlugins.d.ts +22 -0
- package/rabbitmq/getInstancePlugins.js +24 -0
- package/rabbitmq/getInstancePlugins.js.map +1 -0
- package/rabbitmq/getInstances.d.ts +22 -0
- package/rabbitmq/getInstances.js +24 -0
- package/rabbitmq/getInstances.js.map +1 -0
- package/rabbitmq/getPublicAddress.d.ts +129 -0
- package/rabbitmq/getPublicAddress.js +28 -0
- package/rabbitmq/getPublicAddress.js.map +1 -0
- package/rabbitmq/getPublicAddresses.d.ts +22 -0
- package/rabbitmq/getPublicAddresses.js +24 -0
- package/rabbitmq/getPublicAddresses.js.map +1 -0
- package/rabbitmq/index.d.ts +27 -0
- package/rabbitmq/index.js +50 -0
- package/rabbitmq/index.js.map +1 -0
- package/rabbitmq/instance.d.ts +280 -0
- package/rabbitmq/instance.js +128 -0
- package/rabbitmq/instance.js.map +1 -0
- package/rabbitmq/instancePlugin.d.ts +137 -0
- package/rabbitmq/instancePlugin.js +89 -0
- package/rabbitmq/instancePlugin.js.map +1 -0
- package/rabbitmq/publicAddress.d.ts +239 -0
- package/rabbitmq/publicAddress.js +120 -0
- package/rabbitmq/publicAddress.js.map +1 -0
- package/rdsmysql/allowList.d.ts +232 -0
- package/rdsmysql/allowList.js +92 -0
- package/rdsmysql/allowList.js.map +1 -0
- package/rdsmysql/backup.d.ts +240 -0
- package/rdsmysql/backup.js +119 -0
- package/rdsmysql/backup.js.map +1 -0
- package/rdsmysql/endpoint.d.ts +325 -0
- package/rdsmysql/endpoint.js +108 -0
- package/rdsmysql/endpoint.js.map +1 -0
- package/rdsmysql/getAllowList.d.ts +109 -0
- package/rdsmysql/getAllowList.js +28 -0
- package/rdsmysql/getAllowList.js.map +1 -0
- package/rdsmysql/getAllowLists.d.ts +22 -0
- package/rdsmysql/getAllowLists.js +24 -0
- package/rdsmysql/getAllowLists.js.map +1 -0
- package/rdsmysql/getBackup.d.ts +125 -0
- package/rdsmysql/getBackup.js +28 -0
- package/rdsmysql/getBackup.js.map +1 -0
- package/rdsmysql/getBackups.d.ts +22 -0
- package/rdsmysql/getBackups.js +24 -0
- package/rdsmysql/getBackups.js.map +1 -0
- package/rdsmysql/getEndpoint.d.ts +141 -0
- package/rdsmysql/getEndpoint.js +28 -0
- package/rdsmysql/getEndpoint.js.map +1 -0
- package/rdsmysql/getEndpoints.d.ts +22 -0
- package/rdsmysql/getEndpoints.js +24 -0
- package/rdsmysql/getEndpoints.js.map +1 -0
- package/rdsmysql/index.d.ts +27 -0
- package/rdsmysql/index.js +34 -1
- package/rdsmysql/index.js.map +1 -1
- package/rdspostgresql/allowList.d.ts +206 -0
- package/rdspostgresql/allowList.js +102 -0
- package/rdspostgresql/allowList.js.map +1 -0
- package/rdspostgresql/getAllowList.d.ts +93 -0
- package/rdspostgresql/getAllowList.js +28 -0
- package/rdspostgresql/getAllowList.js.map +1 -0
- package/rdspostgresql/getAllowLists.d.ts +22 -0
- package/rdspostgresql/getAllowLists.js +24 -0
- package/rdspostgresql/getAllowLists.js.map +1 -0
- package/rdspostgresql/index.d.ts +9 -0
- package/rdspostgresql/index.js +28 -0
- package/rdspostgresql/index.js.map +1 -0
- package/redis/account.d.ts +128 -0
- package/redis/account.js +95 -0
- package/redis/account.js.map +1 -0
- package/redis/endpointPublicAddress.d.ts +150 -0
- package/redis/endpointPublicAddress.js +93 -0
- package/redis/endpointPublicAddress.js.map +1 -0
- package/redis/getAccount.d.ts +60 -0
- package/redis/getAccount.js +28 -0
- package/redis/getAccount.js.map +1 -0
- package/redis/getAccounts.d.ts +22 -0
- package/redis/getAccounts.js +24 -0
- package/redis/getAccounts.js.map +1 -0
- package/redis/getEndpointPublicAddress.d.ts +72 -0
- package/redis/getEndpointPublicAddress.js +28 -0
- package/redis/getEndpointPublicAddress.js.map +1 -0
- package/redis/getEndpointPublicAddresses.d.ts +22 -0
- package/redis/getEndpointPublicAddresses.js +24 -0
- package/redis/getEndpointPublicAddresses.js.map +1 -0
- package/redis/index.d.ts +18 -0
- package/redis/index.js +23 -1
- package/redis/index.js.map +1 -1
- package/transitrouter/getVpcAttachment.d.ts +93 -0
- package/transitrouter/getVpcAttachment.js +28 -0
- package/transitrouter/getVpcAttachment.js.map +1 -0
- package/transitrouter/getVpcAttachments.d.ts +22 -0
- package/transitrouter/getVpcAttachments.js +24 -0
- package/transitrouter/getVpcAttachments.js.map +1 -0
- package/transitrouter/getVpnAttachment.d.ts +93 -0
- package/transitrouter/getVpnAttachment.js +28 -0
- package/transitrouter/getVpnAttachment.js.map +1 -0
- package/transitrouter/getVpnAttachments.d.ts +22 -0
- package/transitrouter/getVpnAttachments.js +24 -0
- package/transitrouter/getVpnAttachments.js.map +1 -0
- package/transitrouter/index.d.ts +18 -0
- package/transitrouter/index.js +23 -1
- package/transitrouter/index.js.map +1 -1
- package/transitrouter/vpcAttachment.d.ts +177 -0
- package/transitrouter/vpcAttachment.js +93 -0
- package/transitrouter/vpcAttachment.js.map +1 -0
- package/transitrouter/vpnAttachment.d.ts +202 -0
- package/transitrouter/vpnAttachment.js +113 -0
- package/transitrouter/vpnAttachment.js.map +1 -0
- package/types/input.d.ts +1671 -155
- package/types/output.d.ts +4117 -1013
- package/vke/defaultNodePool.d.ts +150 -0
- package/vke/defaultNodePool.js +86 -0
- package/vke/defaultNodePool.js.map +1 -0
- package/vke/getDefaultNodePool.d.ts +85 -0
- package/vke/getDefaultNodePool.js +28 -0
- package/vke/getDefaultNodePool.js.map +1 -0
- package/vke/getDefaultNodePools.d.ts +22 -0
- package/vke/getDefaultNodePools.js +24 -0
- package/vke/getDefaultNodePools.js.map +1 -0
- package/vke/getNode.d.ts +106 -0
- package/vke/getNode.js +28 -0
- package/vke/getNode.js.map +1 -0
- package/vke/getNodes.d.ts +22 -0
- package/vke/getNodes.js +24 -0
- package/vke/getNodes.js.map +1 -0
- package/vke/index.d.ts +18 -0
- package/vke/index.js +23 -1
- package/vke/index.js.map +1 -1
- package/vke/node.d.ts +238 -0
- package/vke/node.js +112 -0
- package/vke/node.js.map +1 -0
- package/vpc/flowLog.d.ts +266 -0
- package/vpc/flowLog.js +141 -0
- package/vpc/flowLog.js.map +1 -0
- package/vpc/getFlowLog.d.ts +117 -0
- package/vpc/getFlowLog.js +28 -0
- package/vpc/getFlowLog.js.map +1 -0
- package/vpc/getFlowLogs.d.ts +22 -0
- package/vpc/getFlowLogs.js +24 -0
- package/vpc/getFlowLogs.js.map +1 -0
- package/vpc/getHaVip.d.ts +101 -0
- package/vpc/getHaVip.js +28 -0
- package/vpc/getHaVip.js.map +1 -0
- package/vpc/getHaVips.d.ts +22 -0
- package/vpc/getHaVips.js +24 -0
- package/vpc/getHaVips.js.map +1 -0
- package/vpc/getIpv6AddressBandwidth.d.ts +117 -0
- package/vpc/getIpv6AddressBandwidth.js +28 -0
- package/vpc/getIpv6AddressBandwidth.js.map +1 -0
- package/vpc/getIpv6AddressBandwidths.d.ts +22 -0
- package/vpc/getIpv6AddressBandwidths.js +24 -0
- package/vpc/getIpv6AddressBandwidths.js.map +1 -0
- package/vpc/getIpv6Gateway.d.ts +77 -0
- package/vpc/getIpv6Gateway.js +28 -0
- package/vpc/getIpv6Gateway.js.map +1 -0
- package/vpc/getIpv6Gateways.d.ts +22 -0
- package/vpc/getIpv6Gateways.js +24 -0
- package/vpc/getIpv6Gateways.js.map +1 -0
- package/vpc/getTrafficMirrorFilter.d.ts +73 -0
- package/vpc/getTrafficMirrorFilter.js +28 -0
- package/vpc/getTrafficMirrorFilter.js.map +1 -0
- package/vpc/getTrafficMirrorFilterRule.d.ts +84 -0
- package/vpc/getTrafficMirrorFilterRule.js +28 -0
- package/vpc/getTrafficMirrorFilterRule.js.map +1 -0
- package/vpc/getTrafficMirrorFilterRules.d.ts +22 -0
- package/vpc/getTrafficMirrorFilterRules.js +24 -0
- package/vpc/getTrafficMirrorFilterRules.js.map +1 -0
- package/vpc/getTrafficMirrorFilters.d.ts +22 -0
- package/vpc/getTrafficMirrorFilters.js +24 -0
- package/vpc/getTrafficMirrorFilters.js.map +1 -0
- package/vpc/getTrafficMirrorSession.d.ts +101 -0
- package/vpc/getTrafficMirrorSession.js +28 -0
- package/vpc/getTrafficMirrorSession.js.map +1 -0
- package/vpc/getTrafficMirrorSessions.d.ts +22 -0
- package/vpc/getTrafficMirrorSessions.js +24 -0
- package/vpc/getTrafficMirrorSessions.js.map +1 -0
- package/vpc/getTrafficMirrorTarget.d.ts +77 -0
- package/vpc/getTrafficMirrorTarget.js +28 -0
- package/vpc/getTrafficMirrorTarget.js.map +1 -0
- package/vpc/getTrafficMirrorTargets.d.ts +22 -0
- package/vpc/getTrafficMirrorTargets.js +24 -0
- package/vpc/getTrafficMirrorTargets.js.map +1 -0
- package/vpc/getVpc.d.ts +4 -0
- package/vpc/getVpc.js.map +1 -1
- package/vpc/haVip.d.ts +223 -0
- package/vpc/haVip.js +116 -0
- package/vpc/haVip.js.map +1 -0
- package/vpc/index.d.ts +72 -0
- package/vpc/index.js +90 -1
- package/vpc/index.js.map +1 -1
- package/vpc/ipv6AddressBandwidth.d.ts +241 -0
- package/vpc/ipv6AddressBandwidth.js +121 -0
- package/vpc/ipv6AddressBandwidth.js.map +1 -0
- package/vpc/ipv6Gateway.d.ts +156 -0
- package/vpc/ipv6Gateway.js +97 -0
- package/vpc/ipv6Gateway.js.map +1 -0
- package/vpc/trafficMirrorFilter.d.ts +131 -0
- package/vpc/trafficMirrorFilter.js +91 -0
- package/vpc/trafficMirrorFilter.js.map +1 -0
- package/vpc/trafficMirrorFilterRule.d.ts +201 -0
- package/vpc/trafficMirrorFilterRule.js +118 -0
- package/vpc/trafficMirrorFilterRule.js.map +1 -0
- package/vpc/trafficMirrorSession.d.ts +229 -0
- package/vpc/trafficMirrorSession.js +123 -0
- package/vpc/trafficMirrorSession.js.map +1 -0
- package/vpc/trafficMirrorTarget.d.ts +161 -0
- package/vpc/trafficMirrorTarget.js +101 -0
- package/vpc/trafficMirrorTarget.js.map +1 -0
- package/vpc/vpc.d.ts +12 -0
- package/vpc/vpc.js +2 -0
- package/vpc/vpc.js.map +1 -1
- package/vpn/customerGateway.d.ts +186 -0
- package/vpn/customerGateway.js +101 -0
- package/vpn/customerGateway.js.map +1 -0
- package/vpn/getCustomerGateway.d.ts +89 -0
- package/vpn/getCustomerGateway.js +28 -0
- package/vpn/getCustomerGateway.js.map +1 -0
- package/vpn/getCustomerGateways.d.ts +22 -0
- package/vpn/getCustomerGateways.js +24 -0
- package/vpn/getCustomerGateways.js.map +1 -0
- package/vpn/index.d.ts +9 -0
- package/vpn/index.js +12 -1
- package/vpn/index.js.map +1 -1
package/rdsmysql/index.d.ts
CHANGED
|
@@ -1,9 +1,30 @@
|
|
|
1
|
+
export { AllowListArgs, AllowListState } from "./allowList";
|
|
2
|
+
export type AllowList = import("./allowList").AllowList;
|
|
3
|
+
export declare const AllowList: typeof import("./allowList").AllowList;
|
|
4
|
+
export { BackupArgs, BackupState } from "./backup";
|
|
5
|
+
export type Backup = import("./backup").Backup;
|
|
6
|
+
export declare const Backup: typeof import("./backup").Backup;
|
|
1
7
|
export { DatabaseArgs, DatabaseState } from "./database";
|
|
2
8
|
export type Database = import("./database").Database;
|
|
3
9
|
export declare const Database: typeof import("./database").Database;
|
|
4
10
|
export { DbAccountArgs, DbAccountState } from "./dbAccount";
|
|
5
11
|
export type DbAccount = import("./dbAccount").DbAccount;
|
|
6
12
|
export declare const DbAccount: typeof import("./dbAccount").DbAccount;
|
|
13
|
+
export { EndpointArgs, EndpointState } from "./endpoint";
|
|
14
|
+
export type Endpoint = import("./endpoint").Endpoint;
|
|
15
|
+
export declare const Endpoint: typeof import("./endpoint").Endpoint;
|
|
16
|
+
export { GetAllowListArgs, GetAllowListResult, GetAllowListOutputArgs } from "./getAllowList";
|
|
17
|
+
export declare const getAllowList: typeof import("./getAllowList").getAllowList;
|
|
18
|
+
export declare const getAllowListOutput: typeof import("./getAllowList").getAllowListOutput;
|
|
19
|
+
export { GetAllowListsResult } from "./getAllowLists";
|
|
20
|
+
export declare const getAllowLists: typeof import("./getAllowLists").getAllowLists;
|
|
21
|
+
export declare const getAllowListsOutput: typeof import("./getAllowLists").getAllowListsOutput;
|
|
22
|
+
export { GetBackupArgs, GetBackupResult, GetBackupOutputArgs } from "./getBackup";
|
|
23
|
+
export declare const getBackup: typeof import("./getBackup").getBackup;
|
|
24
|
+
export declare const getBackupOutput: typeof import("./getBackup").getBackupOutput;
|
|
25
|
+
export { GetBackupsResult } from "./getBackups";
|
|
26
|
+
export declare const getBackups: typeof import("./getBackups").getBackups;
|
|
27
|
+
export declare const getBackupsOutput: typeof import("./getBackups").getBackupsOutput;
|
|
7
28
|
export { GetDatabaseArgs, GetDatabaseResult, GetDatabaseOutputArgs } from "./getDatabase";
|
|
8
29
|
export declare const getDatabase: typeof import("./getDatabase").getDatabase;
|
|
9
30
|
export declare const getDatabaseOutput: typeof import("./getDatabase").getDatabaseOutput;
|
|
@@ -16,6 +37,12 @@ export declare const getDbAccountOutput: typeof import("./getDbAccount").getDbAc
|
|
|
16
37
|
export { GetDbAccountsResult } from "./getDbAccounts";
|
|
17
38
|
export declare const getDbAccounts: typeof import("./getDbAccounts").getDbAccounts;
|
|
18
39
|
export declare const getDbAccountsOutput: typeof import("./getDbAccounts").getDbAccountsOutput;
|
|
40
|
+
export { GetEndpointArgs, GetEndpointResult, GetEndpointOutputArgs } from "./getEndpoint";
|
|
41
|
+
export declare const getEndpoint: typeof import("./getEndpoint").getEndpoint;
|
|
42
|
+
export declare const getEndpointOutput: typeof import("./getEndpoint").getEndpointOutput;
|
|
43
|
+
export { GetEndpointsResult } from "./getEndpoints";
|
|
44
|
+
export declare const getEndpoints: typeof import("./getEndpoints").getEndpoints;
|
|
45
|
+
export declare const getEndpointsOutput: typeof import("./getEndpoints").getEndpointsOutput;
|
|
19
46
|
export { GetInstanceArgs, GetInstanceResult, GetInstanceOutputArgs } from "./getInstance";
|
|
20
47
|
export declare const getInstance: typeof import("./getInstance").getInstance;
|
|
21
48
|
export declare const getInstanceOutput: typeof import("./getInstance").getInstanceOutput;
|
package/rdsmysql/index.js
CHANGED
|
@@ -2,13 +2,31 @@
|
|
|
2
2
|
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.Instance = exports.getInstancesOutput = exports.getInstances = exports.getInstanceOutput = exports.getInstance = exports.getDbAccountsOutput = exports.getDbAccounts = exports.getDbAccountOutput = exports.getDbAccount = exports.getDatabasesOutput = exports.getDatabases = exports.getDatabaseOutput = exports.getDatabase = exports.DbAccount = exports.Database = void 0;
|
|
5
|
+
exports.Instance = exports.getInstancesOutput = exports.getInstances = exports.getInstanceOutput = exports.getInstance = exports.getEndpointsOutput = exports.getEndpoints = exports.getEndpointOutput = exports.getEndpoint = exports.getDbAccountsOutput = exports.getDbAccounts = exports.getDbAccountOutput = exports.getDbAccount = exports.getDatabasesOutput = exports.getDatabases = exports.getDatabaseOutput = exports.getDatabase = exports.getBackupsOutput = exports.getBackups = exports.getBackupOutput = exports.getBackup = exports.getAllowListsOutput = exports.getAllowLists = exports.getAllowListOutput = exports.getAllowList = exports.Endpoint = exports.DbAccount = exports.Database = exports.Backup = exports.AllowList = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
|
+
exports.AllowList = null;
|
|
9
|
+
utilities.lazyLoad(exports, ["AllowList"], () => require("./allowList"));
|
|
10
|
+
exports.Backup = null;
|
|
11
|
+
utilities.lazyLoad(exports, ["Backup"], () => require("./backup"));
|
|
8
12
|
exports.Database = null;
|
|
9
13
|
utilities.lazyLoad(exports, ["Database"], () => require("./database"));
|
|
10
14
|
exports.DbAccount = null;
|
|
11
15
|
utilities.lazyLoad(exports, ["DbAccount"], () => require("./dbAccount"));
|
|
16
|
+
exports.Endpoint = null;
|
|
17
|
+
utilities.lazyLoad(exports, ["Endpoint"], () => require("./endpoint"));
|
|
18
|
+
exports.getAllowList = null;
|
|
19
|
+
exports.getAllowListOutput = null;
|
|
20
|
+
utilities.lazyLoad(exports, ["getAllowList", "getAllowListOutput"], () => require("./getAllowList"));
|
|
21
|
+
exports.getAllowLists = null;
|
|
22
|
+
exports.getAllowListsOutput = null;
|
|
23
|
+
utilities.lazyLoad(exports, ["getAllowLists", "getAllowListsOutput"], () => require("./getAllowLists"));
|
|
24
|
+
exports.getBackup = null;
|
|
25
|
+
exports.getBackupOutput = null;
|
|
26
|
+
utilities.lazyLoad(exports, ["getBackup", "getBackupOutput"], () => require("./getBackup"));
|
|
27
|
+
exports.getBackups = null;
|
|
28
|
+
exports.getBackupsOutput = null;
|
|
29
|
+
utilities.lazyLoad(exports, ["getBackups", "getBackupsOutput"], () => require("./getBackups"));
|
|
12
30
|
exports.getDatabase = null;
|
|
13
31
|
exports.getDatabaseOutput = null;
|
|
14
32
|
utilities.lazyLoad(exports, ["getDatabase", "getDatabaseOutput"], () => require("./getDatabase"));
|
|
@@ -21,6 +39,12 @@ utilities.lazyLoad(exports, ["getDbAccount", "getDbAccountOutput"], () => requir
|
|
|
21
39
|
exports.getDbAccounts = null;
|
|
22
40
|
exports.getDbAccountsOutput = null;
|
|
23
41
|
utilities.lazyLoad(exports, ["getDbAccounts", "getDbAccountsOutput"], () => require("./getDbAccounts"));
|
|
42
|
+
exports.getEndpoint = null;
|
|
43
|
+
exports.getEndpointOutput = null;
|
|
44
|
+
utilities.lazyLoad(exports, ["getEndpoint", "getEndpointOutput"], () => require("./getEndpoint"));
|
|
45
|
+
exports.getEndpoints = null;
|
|
46
|
+
exports.getEndpointsOutput = null;
|
|
47
|
+
utilities.lazyLoad(exports, ["getEndpoints", "getEndpointsOutput"], () => require("./getEndpoints"));
|
|
24
48
|
exports.getInstance = null;
|
|
25
49
|
exports.getInstanceOutput = null;
|
|
26
50
|
utilities.lazyLoad(exports, ["getInstance", "getInstanceOutput"], () => require("./getInstance"));
|
|
@@ -33,10 +57,16 @@ const _module = {
|
|
|
33
57
|
version: utilities.getVersion(),
|
|
34
58
|
construct: (name, type, urn) => {
|
|
35
59
|
switch (type) {
|
|
60
|
+
case "bytepluscc:rdsmysql/allowList:AllowList":
|
|
61
|
+
return new exports.AllowList(name, undefined, { urn });
|
|
62
|
+
case "bytepluscc:rdsmysql/backup:Backup":
|
|
63
|
+
return new exports.Backup(name, undefined, { urn });
|
|
36
64
|
case "bytepluscc:rdsmysql/database:Database":
|
|
37
65
|
return new exports.Database(name, undefined, { urn });
|
|
38
66
|
case "bytepluscc:rdsmysql/dbAccount:DbAccount":
|
|
39
67
|
return new exports.DbAccount(name, undefined, { urn });
|
|
68
|
+
case "bytepluscc:rdsmysql/endpoint:Endpoint":
|
|
69
|
+
return new exports.Endpoint(name, undefined, { urn });
|
|
40
70
|
case "bytepluscc:rdsmysql/instance:Instance":
|
|
41
71
|
return new exports.Instance(name, undefined, { urn });
|
|
42
72
|
default:
|
|
@@ -44,7 +74,10 @@ const _module = {
|
|
|
44
74
|
}
|
|
45
75
|
},
|
|
46
76
|
};
|
|
77
|
+
pulumi.runtime.registerResourceModule("bytepluscc", "rdsmysql/allowList", _module);
|
|
78
|
+
pulumi.runtime.registerResourceModule("bytepluscc", "rdsmysql/backup", _module);
|
|
47
79
|
pulumi.runtime.registerResourceModule("bytepluscc", "rdsmysql/database", _module);
|
|
48
80
|
pulumi.runtime.registerResourceModule("bytepluscc", "rdsmysql/dbAccount", _module);
|
|
81
|
+
pulumi.runtime.registerResourceModule("bytepluscc", "rdsmysql/endpoint", _module);
|
|
49
82
|
pulumi.runtime.registerResourceModule("bytepluscc", "rdsmysql/instance", _module);
|
|
50
83
|
//# sourceMappingURL=index.js.map
|
package/rdsmysql/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../rdsmysql/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAK7B,QAAA,QAAQ,GAAyC,IAAW,CAAC;AAC1E,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,UAAU,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC;AAI1D,QAAA,SAAS,GAA2C,IAAW,CAAC;AAC7E,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,WAAW,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../rdsmysql/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0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AC,OAAO,CAAC,sBAAsB,CAAC,YAAY,EAAE,mBAAmB,EAAE,OAAO,CAAC,CAAA"}
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "../types/input";
|
|
3
|
+
import * as outputs from "../types/output";
|
|
4
|
+
/**
|
|
5
|
+
* 白名单是数据库连接的安全防控手段,只有白名单内的 IP 地址才能访问数据库。PostgreSQL 实例在创建后,不会绑定任何白名单,默认禁止所有 IP 地址访问实例。因此无论是通过私网还是通过公网连接访问实例,都需要先为实例配置白名单,才能保证实例可连接。
|
|
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 rdsPostgresqlAllowListDemo = new bytepluscc.rdspostgresql.AllowList("RdsPostgresqlAllowListDemo", {
|
|
14
|
+
* allowLists: [
|
|
15
|
+
* "1.2.3.4/32",
|
|
16
|
+
* "5.6.7.8/32",
|
|
17
|
+
* ],
|
|
18
|
+
* allowListCategory: "Ordinary",
|
|
19
|
+
* allowListDesc: "test",
|
|
20
|
+
* allowListName: "ccapi-test-1",
|
|
21
|
+
* allowListType: "IPv4",
|
|
22
|
+
* });
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* ## Import
|
|
26
|
+
*
|
|
27
|
+
* ```sh
|
|
28
|
+
* $ pulumi import bytepluscc:rdspostgresql/allowList:AllowList example "allow_list_id"
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
export declare class AllowList extends pulumi.CustomResource {
|
|
32
|
+
/**
|
|
33
|
+
* Get an existing AllowList resource's state with the given name, ID, and optional extra
|
|
34
|
+
* properties used to qualify the lookup.
|
|
35
|
+
*
|
|
36
|
+
* @param name The _unique_ name of the resulting resource.
|
|
37
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
38
|
+
* @param state Any extra arguments used during the lookup.
|
|
39
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
40
|
+
*/
|
|
41
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AllowListState, opts?: pulumi.CustomResourceOptions): AllowList;
|
|
42
|
+
/**
|
|
43
|
+
* Returns true if the given object is an instance of AllowList. 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: any): obj is AllowList;
|
|
47
|
+
/**
|
|
48
|
+
* 白名单分类。取值:Ordinary:普通白名单。Default:默认白名单。说明该参数作为请求参数时无默认值,不传入时则查询所有类别的白名单。
|
|
49
|
+
*/
|
|
50
|
+
readonly allowListCategory: pulumi.Output<string>;
|
|
51
|
+
/**
|
|
52
|
+
* 白名单的描述信息。长度在 200 字符以内。默认值为空字符串。
|
|
53
|
+
*/
|
|
54
|
+
readonly allowListDesc: pulumi.Output<string>;
|
|
55
|
+
/**
|
|
56
|
+
* 白名单 ID。
|
|
57
|
+
*/
|
|
58
|
+
readonly allowListId: pulumi.Output<string>;
|
|
59
|
+
/**
|
|
60
|
+
* 白名单中 IP 地址或 IP 地址段的数量。
|
|
61
|
+
*/
|
|
62
|
+
readonly allowListIpNum: pulumi.Output<number>;
|
|
63
|
+
/**
|
|
64
|
+
* 白名单名称的命名规则如下:在当前地域内,白名单名称唯一。以中文、字母或下划线(*)开头。只能包含中文、字母、数字、下划线(*)和中划线(-)。长度为 1~128 个字符。
|
|
65
|
+
*/
|
|
66
|
+
readonly allowListName: pulumi.Output<string>;
|
|
67
|
+
/**
|
|
68
|
+
* 白名单采用的网络协议类型。取值为 IPv4(默认值)。
|
|
69
|
+
*/
|
|
70
|
+
readonly allowListType: pulumi.Output<string>;
|
|
71
|
+
/**
|
|
72
|
+
* 白名单中包含的 IP 地址。支持以下两种格式:IP 地址格式。例如:10.23.12.24。CIDR 的 IP 地址段格式。例如:10.23.12.0/24(无类别域间路由,24 表示了地址中前缀的长度,范围为 1~32)。说明每个白名单最多可添加 300 个 IP 或 IP 地址段,当 IP 较多时,建议合并为 IP 段填入,例如10.23.12.0/24。禁止将 0.0.0.0/0 之外的形如 x.x.x.x/0 结尾的 IP 地址加入白名单。该字段不能与 UserAllowList 字段同时使用。
|
|
73
|
+
*/
|
|
74
|
+
readonly allowLists: pulumi.Output<string[]>;
|
|
75
|
+
/**
|
|
76
|
+
* 该白名单绑定的实例数量。
|
|
77
|
+
*/
|
|
78
|
+
readonly associatedInstanceNum: pulumi.Output<number>;
|
|
79
|
+
readonly associatedInstances: pulumi.Output<outputs.rdspostgresql.AllowListAssociatedInstance[]>;
|
|
80
|
+
/**
|
|
81
|
+
* 按 IP 地址查询白名单。支持传入多个 IP 地址,多个 IP 地址使用英文逗号(,)分隔。说明如果白名单包含了多个 IP 地址的任意子集,该白名单就会被返回。
|
|
82
|
+
*/
|
|
83
|
+
readonly ipAddress: pulumi.Output<string>;
|
|
84
|
+
/**
|
|
85
|
+
* 修改白名单的方式。取值:Cover:覆盖,即使用 AllowList 字段的值覆盖原白名单。默认值。Append:追加,即在原白名单中增加 AllowList 字段包含的 IP 地址。Delete:删除,即在原白名单中删除 AllowList 字段包含的 IP 地址。至少需要保留一个 IP 地址。注意如需修改的白名单绑定有安全组,或需要在修改白名单时为白名单绑定安全组,则 ModifyMode 只能取值为 Cover。
|
|
86
|
+
*/
|
|
87
|
+
readonly modifyMode: pulumi.Output<string>;
|
|
88
|
+
readonly securityGroupBindInfos: pulumi.Output<outputs.rdspostgresql.AllowListSecurityGroupBindInfo[]>;
|
|
89
|
+
/**
|
|
90
|
+
* 是否更新白名单所绑定的安全组。取值:true:更新。false:不更新。默认值。
|
|
91
|
+
*/
|
|
92
|
+
readonly updateSecurityGroup: pulumi.Output<boolean>;
|
|
93
|
+
/**
|
|
94
|
+
* 安全组之外的、需要加入白名单的 IP 地址。可输入 IP 地址或 CIDR 格式的 IP 地址段。说明该字段不能与 AllowList 字段同时使用。
|
|
95
|
+
*/
|
|
96
|
+
readonly userAllowList: pulumi.Output<string>;
|
|
97
|
+
/**
|
|
98
|
+
* Create a AllowList resource with the given unique name, arguments, and options.
|
|
99
|
+
*
|
|
100
|
+
* @param name The _unique_ name of the resource.
|
|
101
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
102
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
103
|
+
*/
|
|
104
|
+
constructor(name: string, args?: AllowListArgs, opts?: pulumi.CustomResourceOptions);
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Input properties used for looking up and filtering AllowList resources.
|
|
108
|
+
*/
|
|
109
|
+
export interface AllowListState {
|
|
110
|
+
/**
|
|
111
|
+
* 白名单分类。取值:Ordinary:普通白名单。Default:默认白名单。说明该参数作为请求参数时无默认值,不传入时则查询所有类别的白名单。
|
|
112
|
+
*/
|
|
113
|
+
allowListCategory?: pulumi.Input<string>;
|
|
114
|
+
/**
|
|
115
|
+
* 白名单的描述信息。长度在 200 字符以内。默认值为空字符串。
|
|
116
|
+
*/
|
|
117
|
+
allowListDesc?: pulumi.Input<string>;
|
|
118
|
+
/**
|
|
119
|
+
* 白名单 ID。
|
|
120
|
+
*/
|
|
121
|
+
allowListId?: pulumi.Input<string>;
|
|
122
|
+
/**
|
|
123
|
+
* 白名单中 IP 地址或 IP 地址段的数量。
|
|
124
|
+
*/
|
|
125
|
+
allowListIpNum?: pulumi.Input<number>;
|
|
126
|
+
/**
|
|
127
|
+
* 白名单名称的命名规则如下:在当前地域内,白名单名称唯一。以中文、字母或下划线(*)开头。只能包含中文、字母、数字、下划线(*)和中划线(-)。长度为 1~128 个字符。
|
|
128
|
+
*/
|
|
129
|
+
allowListName?: pulumi.Input<string>;
|
|
130
|
+
/**
|
|
131
|
+
* 白名单采用的网络协议类型。取值为 IPv4(默认值)。
|
|
132
|
+
*/
|
|
133
|
+
allowListType?: pulumi.Input<string>;
|
|
134
|
+
/**
|
|
135
|
+
* 白名单中包含的 IP 地址。支持以下两种格式:IP 地址格式。例如:10.23.12.24。CIDR 的 IP 地址段格式。例如:10.23.12.0/24(无类别域间路由,24 表示了地址中前缀的长度,范围为 1~32)。说明每个白名单最多可添加 300 个 IP 或 IP 地址段,当 IP 较多时,建议合并为 IP 段填入,例如10.23.12.0/24。禁止将 0.0.0.0/0 之外的形如 x.x.x.x/0 结尾的 IP 地址加入白名单。该字段不能与 UserAllowList 字段同时使用。
|
|
136
|
+
*/
|
|
137
|
+
allowLists?: pulumi.Input<pulumi.Input<string>[]>;
|
|
138
|
+
/**
|
|
139
|
+
* 该白名单绑定的实例数量。
|
|
140
|
+
*/
|
|
141
|
+
associatedInstanceNum?: pulumi.Input<number>;
|
|
142
|
+
associatedInstances?: pulumi.Input<pulumi.Input<inputs.rdspostgresql.AllowListAssociatedInstance>[]>;
|
|
143
|
+
/**
|
|
144
|
+
* 按 IP 地址查询白名单。支持传入多个 IP 地址,多个 IP 地址使用英文逗号(,)分隔。说明如果白名单包含了多个 IP 地址的任意子集,该白名单就会被返回。
|
|
145
|
+
*/
|
|
146
|
+
ipAddress?: pulumi.Input<string>;
|
|
147
|
+
/**
|
|
148
|
+
* 修改白名单的方式。取值:Cover:覆盖,即使用 AllowList 字段的值覆盖原白名单。默认值。Append:追加,即在原白名单中增加 AllowList 字段包含的 IP 地址。Delete:删除,即在原白名单中删除 AllowList 字段包含的 IP 地址。至少需要保留一个 IP 地址。注意如需修改的白名单绑定有安全组,或需要在修改白名单时为白名单绑定安全组,则 ModifyMode 只能取值为 Cover。
|
|
149
|
+
*/
|
|
150
|
+
modifyMode?: pulumi.Input<string>;
|
|
151
|
+
securityGroupBindInfos?: pulumi.Input<pulumi.Input<inputs.rdspostgresql.AllowListSecurityGroupBindInfo>[]>;
|
|
152
|
+
/**
|
|
153
|
+
* 是否更新白名单所绑定的安全组。取值:true:更新。false:不更新。默认值。
|
|
154
|
+
*/
|
|
155
|
+
updateSecurityGroup?: pulumi.Input<boolean>;
|
|
156
|
+
/**
|
|
157
|
+
* 安全组之外的、需要加入白名单的 IP 地址。可输入 IP 地址或 CIDR 格式的 IP 地址段。说明该字段不能与 AllowList 字段同时使用。
|
|
158
|
+
*/
|
|
159
|
+
userAllowList?: pulumi.Input<string>;
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* The set of arguments for constructing a AllowList resource.
|
|
163
|
+
*/
|
|
164
|
+
export interface AllowListArgs {
|
|
165
|
+
/**
|
|
166
|
+
* 白名单分类。取值:Ordinary:普通白名单。Default:默认白名单。说明该参数作为请求参数时无默认值,不传入时则查询所有类别的白名单。
|
|
167
|
+
*/
|
|
168
|
+
allowListCategory?: pulumi.Input<string>;
|
|
169
|
+
/**
|
|
170
|
+
* 白名单的描述信息。长度在 200 字符以内。默认值为空字符串。
|
|
171
|
+
*/
|
|
172
|
+
allowListDesc?: pulumi.Input<string>;
|
|
173
|
+
/**
|
|
174
|
+
* 白名单名称的命名规则如下:在当前地域内,白名单名称唯一。以中文、字母或下划线(*)开头。只能包含中文、字母、数字、下划线(*)和中划线(-)。长度为 1~128 个字符。
|
|
175
|
+
*/
|
|
176
|
+
allowListName?: pulumi.Input<string>;
|
|
177
|
+
/**
|
|
178
|
+
* 白名单采用的网络协议类型。取值为 IPv4(默认值)。
|
|
179
|
+
*/
|
|
180
|
+
allowListType?: pulumi.Input<string>;
|
|
181
|
+
/**
|
|
182
|
+
* 白名单中包含的 IP 地址。支持以下两种格式:IP 地址格式。例如:10.23.12.24。CIDR 的 IP 地址段格式。例如:10.23.12.0/24(无类别域间路由,24 表示了地址中前缀的长度,范围为 1~32)。说明每个白名单最多可添加 300 个 IP 或 IP 地址段,当 IP 较多时,建议合并为 IP 段填入,例如10.23.12.0/24。禁止将 0.0.0.0/0 之外的形如 x.x.x.x/0 结尾的 IP 地址加入白名单。该字段不能与 UserAllowList 字段同时使用。
|
|
183
|
+
*/
|
|
184
|
+
allowLists?: pulumi.Input<pulumi.Input<string>[]>;
|
|
185
|
+
/**
|
|
186
|
+
* 该白名单绑定的实例数量。
|
|
187
|
+
*/
|
|
188
|
+
associatedInstanceNum?: pulumi.Input<number>;
|
|
189
|
+
/**
|
|
190
|
+
* 按 IP 地址查询白名单。支持传入多个 IP 地址,多个 IP 地址使用英文逗号(,)分隔。说明如果白名单包含了多个 IP 地址的任意子集,该白名单就会被返回。
|
|
191
|
+
*/
|
|
192
|
+
ipAddress?: pulumi.Input<string>;
|
|
193
|
+
/**
|
|
194
|
+
* 修改白名单的方式。取值:Cover:覆盖,即使用 AllowList 字段的值覆盖原白名单。默认值。Append:追加,即在原白名单中增加 AllowList 字段包含的 IP 地址。Delete:删除,即在原白名单中删除 AllowList 字段包含的 IP 地址。至少需要保留一个 IP 地址。注意如需修改的白名单绑定有安全组,或需要在修改白名单时为白名单绑定安全组,则 ModifyMode 只能取值为 Cover。
|
|
195
|
+
*/
|
|
196
|
+
modifyMode?: pulumi.Input<string>;
|
|
197
|
+
securityGroupBindInfos?: pulumi.Input<pulumi.Input<inputs.rdspostgresql.AllowListSecurityGroupBindInfo>[]>;
|
|
198
|
+
/**
|
|
199
|
+
* 是否更新白名单所绑定的安全组。取值:true:更新。false:不更新。默认值。
|
|
200
|
+
*/
|
|
201
|
+
updateSecurityGroup?: pulumi.Input<boolean>;
|
|
202
|
+
/**
|
|
203
|
+
* 安全组之外的、需要加入白名单的 IP 地址。可输入 IP 地址或 CIDR 格式的 IP 地址段。说明该字段不能与 AllowList 字段同时使用。
|
|
204
|
+
*/
|
|
205
|
+
userAllowList?: pulumi.Input<string>;
|
|
206
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
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.AllowList = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* 白名单是数据库连接的安全防控手段,只有白名单内的 IP 地址才能访问数据库。PostgreSQL 实例在创建后,不会绑定任何白名单,默认禁止所有 IP 地址访问实例。因此无论是通过私网还是通过公网连接访问实例,都需要先为实例配置白名单,才能保证实例可连接。
|
|
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 rdsPostgresqlAllowListDemo = new bytepluscc.rdspostgresql.AllowList("RdsPostgresqlAllowListDemo", {
|
|
18
|
+
* allowLists: [
|
|
19
|
+
* "1.2.3.4/32",
|
|
20
|
+
* "5.6.7.8/32",
|
|
21
|
+
* ],
|
|
22
|
+
* allowListCategory: "Ordinary",
|
|
23
|
+
* allowListDesc: "test",
|
|
24
|
+
* allowListName: "ccapi-test-1",
|
|
25
|
+
* allowListType: "IPv4",
|
|
26
|
+
* });
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* ## Import
|
|
30
|
+
*
|
|
31
|
+
* ```sh
|
|
32
|
+
* $ pulumi import bytepluscc:rdspostgresql/allowList:AllowList example "allow_list_id"
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
class AllowList extends pulumi.CustomResource {
|
|
36
|
+
/**
|
|
37
|
+
* Get an existing AllowList resource's state with the given name, ID, and optional extra
|
|
38
|
+
* properties used to qualify the lookup.
|
|
39
|
+
*
|
|
40
|
+
* @param name The _unique_ name of the resulting resource.
|
|
41
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
42
|
+
* @param state Any extra arguments used during the lookup.
|
|
43
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
44
|
+
*/
|
|
45
|
+
static get(name, id, state, opts) {
|
|
46
|
+
return new AllowList(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Returns true if the given object is an instance of AllowList. This is designed to work even
|
|
50
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
51
|
+
*/
|
|
52
|
+
static isInstance(obj) {
|
|
53
|
+
if (obj === undefined || obj === null) {
|
|
54
|
+
return false;
|
|
55
|
+
}
|
|
56
|
+
return obj['__pulumiType'] === AllowList.__pulumiType;
|
|
57
|
+
}
|
|
58
|
+
constructor(name, argsOrState, opts) {
|
|
59
|
+
let resourceInputs = {};
|
|
60
|
+
opts = opts || {};
|
|
61
|
+
if (opts.id) {
|
|
62
|
+
const state = argsOrState;
|
|
63
|
+
resourceInputs["allowListCategory"] = state ? state.allowListCategory : undefined;
|
|
64
|
+
resourceInputs["allowListDesc"] = state ? state.allowListDesc : undefined;
|
|
65
|
+
resourceInputs["allowListId"] = state ? state.allowListId : undefined;
|
|
66
|
+
resourceInputs["allowListIpNum"] = state ? state.allowListIpNum : undefined;
|
|
67
|
+
resourceInputs["allowListName"] = state ? state.allowListName : undefined;
|
|
68
|
+
resourceInputs["allowListType"] = state ? state.allowListType : undefined;
|
|
69
|
+
resourceInputs["allowLists"] = state ? state.allowLists : undefined;
|
|
70
|
+
resourceInputs["associatedInstanceNum"] = state ? state.associatedInstanceNum : undefined;
|
|
71
|
+
resourceInputs["associatedInstances"] = state ? state.associatedInstances : undefined;
|
|
72
|
+
resourceInputs["ipAddress"] = state ? state.ipAddress : undefined;
|
|
73
|
+
resourceInputs["modifyMode"] = state ? state.modifyMode : undefined;
|
|
74
|
+
resourceInputs["securityGroupBindInfos"] = state ? state.securityGroupBindInfos : undefined;
|
|
75
|
+
resourceInputs["updateSecurityGroup"] = state ? state.updateSecurityGroup : undefined;
|
|
76
|
+
resourceInputs["userAllowList"] = state ? state.userAllowList : undefined;
|
|
77
|
+
}
|
|
78
|
+
else {
|
|
79
|
+
const args = argsOrState;
|
|
80
|
+
resourceInputs["allowListCategory"] = args ? args.allowListCategory : undefined;
|
|
81
|
+
resourceInputs["allowListDesc"] = args ? args.allowListDesc : undefined;
|
|
82
|
+
resourceInputs["allowListName"] = args ? args.allowListName : undefined;
|
|
83
|
+
resourceInputs["allowListType"] = args ? args.allowListType : undefined;
|
|
84
|
+
resourceInputs["allowLists"] = args ? args.allowLists : undefined;
|
|
85
|
+
resourceInputs["associatedInstanceNum"] = args ? args.associatedInstanceNum : undefined;
|
|
86
|
+
resourceInputs["ipAddress"] = args ? args.ipAddress : undefined;
|
|
87
|
+
resourceInputs["modifyMode"] = args ? args.modifyMode : undefined;
|
|
88
|
+
resourceInputs["securityGroupBindInfos"] = args ? args.securityGroupBindInfos : undefined;
|
|
89
|
+
resourceInputs["updateSecurityGroup"] = args ? args.updateSecurityGroup : undefined;
|
|
90
|
+
resourceInputs["userAllowList"] = args ? args.userAllowList : undefined;
|
|
91
|
+
resourceInputs["allowListId"] = undefined /*out*/;
|
|
92
|
+
resourceInputs["allowListIpNum"] = undefined /*out*/;
|
|
93
|
+
resourceInputs["associatedInstances"] = undefined /*out*/;
|
|
94
|
+
}
|
|
95
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
96
|
+
super(AllowList.__pulumiType, name, resourceInputs, opts);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
exports.AllowList = AllowList;
|
|
100
|
+
/** @internal */
|
|
101
|
+
AllowList.__pulumiType = 'bytepluscc:rdspostgresql/allowList:AllowList';
|
|
102
|
+
//# sourceMappingURL=allowList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"allowList.js","sourceRoot":"","sources":["../../rdspostgresql/allowList.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAa,SA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AAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,SAAS,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC9D,CAAC;;AA7HL,8BA8HC;AAhHG,gBAAgB;AACO,sBAAY,GAAG,8CAA8C,CAAC"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as outputs from "../types/output";
|
|
3
|
+
/**
|
|
4
|
+
* Data Source schema for Byteplus::RDSPostgreSQL::AllowList
|
|
5
|
+
*/
|
|
6
|
+
export declare function getAllowList(args: GetAllowListArgs, opts?: pulumi.InvokeOptions): Promise<GetAllowListResult>;
|
|
7
|
+
/**
|
|
8
|
+
* A collection of arguments for invoking getAllowList.
|
|
9
|
+
*/
|
|
10
|
+
export interface GetAllowListArgs {
|
|
11
|
+
/**
|
|
12
|
+
* Uniquely identifies the resource.
|
|
13
|
+
*/
|
|
14
|
+
id: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* A collection of values returned by getAllowList.
|
|
18
|
+
*/
|
|
19
|
+
export interface GetAllowListResult {
|
|
20
|
+
/**
|
|
21
|
+
* 白名单分类。取值:Ordinary:普通白名单。Default:默认白名单。说明该参数作为请求参数时无默认值,不传入时则查询所有类别的白名单。
|
|
22
|
+
*/
|
|
23
|
+
readonly allowListCategory: string;
|
|
24
|
+
/**
|
|
25
|
+
* 白名单的描述信息。长度在 200 字符以内。默认值为空字符串。
|
|
26
|
+
*/
|
|
27
|
+
readonly allowListDesc: string;
|
|
28
|
+
/**
|
|
29
|
+
* 白名单 ID。
|
|
30
|
+
*/
|
|
31
|
+
readonly allowListId: string;
|
|
32
|
+
/**
|
|
33
|
+
* 白名单中 IP 地址或 IP 地址段的数量。
|
|
34
|
+
*/
|
|
35
|
+
readonly allowListIpNum: number;
|
|
36
|
+
/**
|
|
37
|
+
* 白名单名称的命名规则如下:在当前地域内,白名单名称唯一。以中文、字母或下划线(*)开头。只能包含中文、字母、数字、下划线(*)和中划线(-)。长度为 1~128 个字符。
|
|
38
|
+
*/
|
|
39
|
+
readonly allowListName: string;
|
|
40
|
+
/**
|
|
41
|
+
* 白名单采用的网络协议类型。取值为 IPv4(默认值)。
|
|
42
|
+
*/
|
|
43
|
+
readonly allowListType: string;
|
|
44
|
+
/**
|
|
45
|
+
* 白名单中包含的 IP 地址。支持以下两种格式:IP 地址格式。例如:10.23.12.24。CIDR 的 IP 地址段格式。例如:10.23.12.0/24(无类别域间路由,24 表示了地址中前缀的长度,范围为 1~32)。说明每个白名单最多可添加 300 个 IP 或 IP 地址段,当 IP 较多时,建议合并为 IP 段填入,例如10.23.12.0/24。禁止将 0.0.0.0/0 之外的形如 x.x.x.x/0 结尾的 IP 地址加入白名单。该字段不能与 UserAllowList 字段同时使用。
|
|
46
|
+
*/
|
|
47
|
+
readonly allowLists: string[];
|
|
48
|
+
/**
|
|
49
|
+
* 该白名单绑定的实例数量。
|
|
50
|
+
*/
|
|
51
|
+
readonly associatedInstanceNum: number;
|
|
52
|
+
/**
|
|
53
|
+
* 该白名单绑定的实例列表,包含实例 ID 和实例名称信息。
|
|
54
|
+
*/
|
|
55
|
+
readonly associatedInstances: outputs.rdspostgresql.GetAllowListAssociatedInstance[];
|
|
56
|
+
/**
|
|
57
|
+
* Uniquely identifies the resource.
|
|
58
|
+
*/
|
|
59
|
+
readonly id: string;
|
|
60
|
+
/**
|
|
61
|
+
* 按 IP 地址查询白名单。支持传入多个 IP 地址,多个 IP 地址使用英文逗号(,)分隔。说明如果白名单包含了多个 IP 地址的任意子集,该白名单就会被返回。
|
|
62
|
+
*/
|
|
63
|
+
readonly ipAddress: string;
|
|
64
|
+
/**
|
|
65
|
+
* 修改白名单的方式。取值:Cover:覆盖,即使用 AllowList 字段的值覆盖原白名单。默认值。Append:追加,即在原白名单中增加 AllowList 字段包含的 IP 地址。Delete:删除,即在原白名单中删除 AllowList 字段包含的 IP 地址。至少需要保留一个 IP 地址。注意如需修改的白名单绑定有安全组,或需要在修改白名单时为白名单绑定安全组,则 ModifyMode 只能取值为 Cover。
|
|
66
|
+
*/
|
|
67
|
+
readonly modifyMode: string;
|
|
68
|
+
/**
|
|
69
|
+
* 该白名单绑定的安全组列表。
|
|
70
|
+
*/
|
|
71
|
+
readonly securityGroupBindInfos: outputs.rdspostgresql.GetAllowListSecurityGroupBindInfo[];
|
|
72
|
+
/**
|
|
73
|
+
* 是否更新白名单所绑定的安全组。取值:true:更新。false:不更新。默认值。
|
|
74
|
+
*/
|
|
75
|
+
readonly updateSecurityGroup: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* 安全组之外的、需要加入白名单的 IP 地址。可输入 IP 地址或 CIDR 格式的 IP 地址段。说明该字段不能与 AllowList 字段同时使用。
|
|
78
|
+
*/
|
|
79
|
+
readonly userAllowList: string;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Data Source schema for Byteplus::RDSPostgreSQL::AllowList
|
|
83
|
+
*/
|
|
84
|
+
export declare function getAllowListOutput(args: GetAllowListOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetAllowListResult>;
|
|
85
|
+
/**
|
|
86
|
+
* A collection of arguments for invoking getAllowList.
|
|
87
|
+
*/
|
|
88
|
+
export interface GetAllowListOutputArgs {
|
|
89
|
+
/**
|
|
90
|
+
* Uniquely identifies the resource.
|
|
91
|
+
*/
|
|
92
|
+
id: pulumi.Input<string>;
|
|
93
|
+
}
|
|
@@ -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.getAllowListOutput = exports.getAllowList = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Data Source schema for Byteplus::RDSPostgreSQL::AllowList
|
|
10
|
+
*/
|
|
11
|
+
function getAllowList(args, opts) {
|
|
12
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
13
|
+
return pulumi.runtime.invoke("bytepluscc:rdspostgresql/getAllowList:getAllowList", {
|
|
14
|
+
"id": args.id,
|
|
15
|
+
}, opts);
|
|
16
|
+
}
|
|
17
|
+
exports.getAllowList = getAllowList;
|
|
18
|
+
/**
|
|
19
|
+
* Data Source schema for Byteplus::RDSPostgreSQL::AllowList
|
|
20
|
+
*/
|
|
21
|
+
function getAllowListOutput(args, opts) {
|
|
22
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
23
|
+
return pulumi.runtime.invokeOutput("bytepluscc:rdspostgresql/getAllowList:getAllowList", {
|
|
24
|
+
"id": args.id,
|
|
25
|
+
}, opts);
|
|
26
|
+
}
|
|
27
|
+
exports.getAllowListOutput = getAllowListOutput;
|
|
28
|
+
//# sourceMappingURL=getAllowList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAllowList.js","sourceRoot":"","sources":["../../rdspostgresql/getAllowList.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;GAEG;AACH,SAAgB,YAAY,CAAC,IAAsB,EAAE,IAA2B;IAC5E,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,oDAAoD,EAAE;QAC/E,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,oCAKC;AA6ED;;GAEG;AACH,SAAgB,kBAAkB,CAAC,IAA4B,EAAE,IAAiC;IAC9F,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,oDAAoD,EAAE;QACrF,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,gDAKC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Plural Data Source schema for Byteplus::RDSPostgreSQL::AllowList
|
|
4
|
+
*/
|
|
5
|
+
export declare function getAllowLists(opts?: pulumi.InvokeOptions): Promise<GetAllowListsResult>;
|
|
6
|
+
/**
|
|
7
|
+
* A collection of values returned by getAllowLists.
|
|
8
|
+
*/
|
|
9
|
+
export interface GetAllowListsResult {
|
|
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::RDSPostgreSQL::AllowList
|
|
21
|
+
*/
|
|
22
|
+
export declare function getAllowListsOutput(opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetAllowListsResult>;
|
|
@@ -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.getAllowListsOutput = exports.getAllowLists = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Plural Data Source schema for Byteplus::RDSPostgreSQL::AllowList
|
|
10
|
+
*/
|
|
11
|
+
function getAllowLists(opts) {
|
|
12
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
13
|
+
return pulumi.runtime.invoke("bytepluscc:rdspostgresql/getAllowLists:getAllowLists", {}, opts);
|
|
14
|
+
}
|
|
15
|
+
exports.getAllowLists = getAllowLists;
|
|
16
|
+
/**
|
|
17
|
+
* Plural Data Source schema for Byteplus::RDSPostgreSQL::AllowList
|
|
18
|
+
*/
|
|
19
|
+
function getAllowListsOutput(opts) {
|
|
20
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
21
|
+
return pulumi.runtime.invokeOutput("bytepluscc:rdspostgresql/getAllowLists:getAllowLists", {}, opts);
|
|
22
|
+
}
|
|
23
|
+
exports.getAllowListsOutput = getAllowListsOutput;
|
|
24
|
+
//# sourceMappingURL=getAllowLists.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAllowLists.js","sourceRoot":"","sources":["../../rdspostgresql/getAllowLists.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;GAEG;AACH,SAAgB,aAAa,CAAC,IAA2B;IACrD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,sDAAsD,EAAE,EACpF,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAJD,sCAIC;AAeD;;GAEG;AACH,SAAgB,mBAAmB,CAAC,IAAiC;IACjE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,sDAAsD,EAAE,EAC1F,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAJD,kDAIC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { AllowListArgs, AllowListState } from "./allowList";
|
|
2
|
+
export type AllowList = import("./allowList").AllowList;
|
|
3
|
+
export declare const AllowList: typeof import("./allowList").AllowList;
|
|
4
|
+
export { GetAllowListArgs, GetAllowListResult, GetAllowListOutputArgs } from "./getAllowList";
|
|
5
|
+
export declare const getAllowList: typeof import("./getAllowList").getAllowList;
|
|
6
|
+
export declare const getAllowListOutput: typeof import("./getAllowList").getAllowListOutput;
|
|
7
|
+
export { GetAllowListsResult } from "./getAllowLists";
|
|
8
|
+
export declare const getAllowLists: typeof import("./getAllowLists").getAllowLists;
|
|
9
|
+
export declare const getAllowListsOutput: typeof import("./getAllowLists").getAllowListsOutput;
|