@volcengine/pulumi-volcenginecc 0.0.37 → 0.0.39
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 +1 -0
- package/config/vars.d.ts +5 -0
- package/config/vars.js +7 -0
- package/config/vars.js.map +1 -1
- package/directconnect/gatewayRoute.d.ts +142 -0
- package/directconnect/gatewayRoute.js +96 -0
- package/directconnect/gatewayRoute.js.map +1 -0
- package/directconnect/getGatewayRoute.d.ts +72 -0
- package/directconnect/getGatewayRoute.js +28 -0
- package/directconnect/getGatewayRoute.js.map +1 -0
- package/directconnect/getGatewayRoutes.d.ts +22 -0
- package/directconnect/getGatewayRoutes.js +24 -0
- package/directconnect/getGatewayRoutes.js.map +1 -0
- package/directconnect/getVirtualInterface.d.ts +133 -0
- package/directconnect/getVirtualInterface.js +28 -0
- package/directconnect/getVirtualInterface.js.map +1 -0
- package/directconnect/getVirtualInterfaces.d.ts +22 -0
- package/directconnect/getVirtualInterfaces.js +24 -0
- package/directconnect/getVirtualInterfaces.js.map +1 -0
- package/directconnect/index.d.ts +18 -0
- package/directconnect/index.js +23 -1
- package/directconnect/index.js.map +1 -1
- package/directconnect/virtualInterface.d.ts +336 -0
- package/directconnect/virtualInterface.js +149 -0
- package/directconnect/virtualInterface.js.map +1 -0
- package/gtm/getPool.d.ts +81 -0
- package/gtm/getPool.js +28 -0
- package/gtm/getPool.js.map +1 -0
- package/gtm/getPools.d.ts +22 -0
- package/gtm/getPools.js +24 -0
- package/gtm/getPools.js.map +1 -0
- package/gtm/index.d.ts +9 -0
- package/gtm/index.js +28 -0
- package/gtm/index.js.map +1 -0
- package/gtm/pool.d.ts +154 -0
- package/gtm/pool.js +87 -0
- package/gtm/pool.js.map +1 -0
- package/iam/getRole.d.ts +10 -0
- package/iam/getRole.js.map +1 -1
- package/iam/role.d.ts +18 -34
- package/iam/role.js +3 -36
- package/iam/role.js.map +1 -1
- package/index.d.ts +2 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/kms/getKey.d.ts +24 -0
- package/kms/getKey.js.map +1 -1
- package/kms/getSecret.d.ts +128 -0
- package/kms/getSecret.js +28 -0
- package/kms/getSecret.js.map +1 -0
- package/kms/getSecrets.d.ts +22 -0
- package/kms/getSecrets.js +24 -0
- package/kms/getSecrets.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/key.d.ts +72 -0
- package/kms/key.js +12 -0
- package/kms/key.js.map +1 -1
- package/kms/secret.d.ts +289 -0
- package/kms/secret.js +131 -0
- package/kms/secret.js.map +1 -0
- package/package.json +1 -1
- package/provider.d.ts +10 -0
- package/provider.js +2 -1
- package/provider.js.map +1 -1
- package/rdspostgresql/getParameterTemplate.d.ts +89 -0
- package/rdspostgresql/getParameterTemplate.js +28 -0
- package/rdspostgresql/getParameterTemplate.js.map +1 -0
- package/rdspostgresql/getParameterTemplates.d.ts +22 -0
- package/rdspostgresql/getParameterTemplates.js +24 -0
- package/rdspostgresql/getParameterTemplates.js.map +1 -0
- package/rdspostgresql/index.d.ts +9 -0
- package/rdspostgresql/index.js +12 -1
- package/rdspostgresql/index.js.map +1 -1
- package/rdspostgresql/parameterTemplate.d.ts +186 -0
- package/rdspostgresql/parameterTemplate.js +118 -0
- package/rdspostgresql/parameterTemplate.js.map +1 -0
- package/redis/getInstance.d.ts +9 -5
- package/redis/getInstance.js.map +1 -1
- package/redis/instance.d.ts +25 -13
- package/redis/instance.js +2 -0
- package/redis/instance.js.map +1 -1
- package/tls/alarm.d.ts +215 -0
- package/tls/alarm.js +110 -0
- package/tls/alarm.js.map +1 -0
- package/tls/getAlarm.d.ts +109 -0
- package/tls/getAlarm.js +28 -0
- package/tls/getAlarm.js.map +1 -0
- package/tls/getAlarms.d.ts +22 -0
- package/tls/getAlarms.js +24 -0
- package/tls/getAlarms.js.map +1 -0
- package/tls/index.d.ts +9 -0
- package/tls/index.js +12 -1
- package/tls/index.js.map +1 -1
- package/types/input.d.ts +274 -1
- package/types/output.d.ts +805 -2
- package/vpn/getSslVpnServer.d.ts +109 -0
- package/vpn/getSslVpnServer.js +28 -0
- package/vpn/getSslVpnServer.js.map +1 -0
- package/vpn/getSslVpnServers.d.ts +22 -0
- package/vpn/getSslVpnServers.js +24 -0
- package/vpn/getSslVpnServers.js.map +1 -0
- package/vpn/getVpnGatewayRoute.d.ts +77 -0
- package/vpn/getVpnGatewayRoute.js +28 -0
- package/vpn/getVpnGatewayRoute.js.map +1 -0
- package/vpn/getVpnGatewayRoutes.d.ts +22 -0
- package/vpn/getVpnGatewayRoutes.js +24 -0
- package/vpn/getVpnGatewayRoutes.js.map +1 -0
- package/vpn/index.d.ts +18 -0
- package/vpn/index.js +23 -1
- package/vpn/index.js.map +1 -1
- package/vpn/sslVpnServer.d.ts +263 -0
- package/vpn/sslVpnServer.js +130 -0
- package/vpn/sslVpnServer.js.map +1 -0
- package/vpn/vpnGatewayRoute.d.ts +146 -0
- package/vpn/vpnGatewayRoute.js +98 -0
- package/vpn/vpnGatewayRoute.js.map +1 -0
package/gtm/getPool.d.ts
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as outputs from "../types/output";
|
|
3
|
+
/**
|
|
4
|
+
* Data Source schema for Volcengine::GTM::Pool
|
|
5
|
+
*/
|
|
6
|
+
export declare function getPool(args: GetPoolArgs, opts?: pulumi.InvokeOptions): Promise<GetPoolResult>;
|
|
7
|
+
/**
|
|
8
|
+
* A collection of arguments for invoking getPool.
|
|
9
|
+
*/
|
|
10
|
+
export interface GetPoolArgs {
|
|
11
|
+
/**
|
|
12
|
+
* Uniquely identifies the resource.
|
|
13
|
+
*/
|
|
14
|
+
id: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* A collection of values returned by getPool.
|
|
18
|
+
*/
|
|
19
|
+
export interface GetPoolResult {
|
|
20
|
+
/**
|
|
21
|
+
* Target address type of the address pool. If you do not set this parameter, Cloud Scheduling GTM will automatically determine the target address type. ipv4: IPv4 address. ipv6: IPv6 address. cname: Domain name
|
|
22
|
+
*/
|
|
23
|
+
readonly addrType: string;
|
|
24
|
+
/**
|
|
25
|
+
* List of target addresses in the address pool
|
|
26
|
+
*/
|
|
27
|
+
readonly addresses: outputs.gtm.GetPoolAddress[];
|
|
28
|
+
/**
|
|
29
|
+
* Address pool capacity
|
|
30
|
+
*/
|
|
31
|
+
readonly capacity: number;
|
|
32
|
+
/**
|
|
33
|
+
* Capacity mode, indicates whether to configure address pool capacity or address capacity
|
|
34
|
+
*/
|
|
35
|
+
readonly capacityMode: string;
|
|
36
|
+
/**
|
|
37
|
+
* Creation time
|
|
38
|
+
*/
|
|
39
|
+
readonly createTime: string;
|
|
40
|
+
/**
|
|
41
|
+
* Whether the address pool can be deleted. true: The address pool is not referenced by any routing rule and can be deleted. false: The address pool is referenced by one or more routing rules and cannot be deleted
|
|
42
|
+
*/
|
|
43
|
+
readonly deletable: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* UUID of the associated GTM instance
|
|
46
|
+
*/
|
|
47
|
+
readonly gtmId: string;
|
|
48
|
+
/**
|
|
49
|
+
* Uniquely identifies the resource.
|
|
50
|
+
*/
|
|
51
|
+
readonly id: string;
|
|
52
|
+
/**
|
|
53
|
+
* Address pool name. UTF-8 format. Maximum length is 64 UTF-8 characters
|
|
54
|
+
*/
|
|
55
|
+
readonly name: string;
|
|
56
|
+
/**
|
|
57
|
+
* Address pool ID
|
|
58
|
+
*/
|
|
59
|
+
readonly poolId: string;
|
|
60
|
+
/**
|
|
61
|
+
* Address pool remarks. Default is an empty string. UTF-8 format. Maximum length is 128 UTF-8 characters
|
|
62
|
+
*/
|
|
63
|
+
readonly remark: string;
|
|
64
|
+
/**
|
|
65
|
+
* Update time
|
|
66
|
+
*/
|
|
67
|
+
readonly updateTime: string;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Data Source schema for Volcengine::GTM::Pool
|
|
71
|
+
*/
|
|
72
|
+
export declare function getPoolOutput(args: GetPoolOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetPoolResult>;
|
|
73
|
+
/**
|
|
74
|
+
* A collection of arguments for invoking getPool.
|
|
75
|
+
*/
|
|
76
|
+
export interface GetPoolOutputArgs {
|
|
77
|
+
/**
|
|
78
|
+
* Uniquely identifies the resource.
|
|
79
|
+
*/
|
|
80
|
+
id: pulumi.Input<string>;
|
|
81
|
+
}
|
package/gtm/getPool.js
ADDED
|
@@ -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.getPoolOutput = exports.getPool = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Data Source schema for Volcengine::GTM::Pool
|
|
10
|
+
*/
|
|
11
|
+
function getPool(args, opts) {
|
|
12
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
13
|
+
return pulumi.runtime.invoke("volcenginecc:gtm/getPool:getPool", {
|
|
14
|
+
"id": args.id,
|
|
15
|
+
}, opts);
|
|
16
|
+
}
|
|
17
|
+
exports.getPool = getPool;
|
|
18
|
+
/**
|
|
19
|
+
* Data Source schema for Volcengine::GTM::Pool
|
|
20
|
+
*/
|
|
21
|
+
function getPoolOutput(args, opts) {
|
|
22
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
23
|
+
return pulumi.runtime.invokeOutput("volcenginecc:gtm/getPool:getPool", {
|
|
24
|
+
"id": args.id,
|
|
25
|
+
}, opts);
|
|
26
|
+
}
|
|
27
|
+
exports.getPoolOutput = getPoolOutput;
|
|
28
|
+
//# sourceMappingURL=getPool.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getPool.js","sourceRoot":"","sources":["../../gtm/getPool.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;GAEG;AACH,SAAgB,OAAO,CAAC,IAAiB,EAAE,IAA2B;IAClE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,kCAAkC,EAAE;QAC7D,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,0BAKC;AAiED;;GAEG;AACH,SAAgB,aAAa,CAAC,IAAuB,EAAE,IAAiC;IACpF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,kCAAkC,EAAE;QACnE,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,sCAKC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Plural Data Source schema for Volcengine::GTM::Pool
|
|
4
|
+
*/
|
|
5
|
+
export declare function getPools(opts?: pulumi.InvokeOptions): Promise<GetPoolsResult>;
|
|
6
|
+
/**
|
|
7
|
+
* A collection of values returned by getPools.
|
|
8
|
+
*/
|
|
9
|
+
export interface GetPoolsResult {
|
|
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 Volcengine::GTM::Pool
|
|
21
|
+
*/
|
|
22
|
+
export declare function getPoolsOutput(opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetPoolsResult>;
|
package/gtm/getPools.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.getPoolsOutput = exports.getPools = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Plural Data Source schema for Volcengine::GTM::Pool
|
|
10
|
+
*/
|
|
11
|
+
function getPools(opts) {
|
|
12
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
13
|
+
return pulumi.runtime.invoke("volcenginecc:gtm/getPools:getPools", {}, opts);
|
|
14
|
+
}
|
|
15
|
+
exports.getPools = getPools;
|
|
16
|
+
/**
|
|
17
|
+
* Plural Data Source schema for Volcengine::GTM::Pool
|
|
18
|
+
*/
|
|
19
|
+
function getPoolsOutput(opts) {
|
|
20
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
21
|
+
return pulumi.runtime.invokeOutput("volcenginecc:gtm/getPools:getPools", {}, opts);
|
|
22
|
+
}
|
|
23
|
+
exports.getPoolsOutput = getPoolsOutput;
|
|
24
|
+
//# sourceMappingURL=getPools.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getPools.js","sourceRoot":"","sources":["../../gtm/getPools.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;GAEG;AACH,SAAgB,QAAQ,CAAC,IAA2B;IAChD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,oCAAoC,EAAE,EAClE,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAJD,4BAIC;AAeD;;GAEG;AACH,SAAgB,cAAc,CAAC,IAAiC;IAC5D,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,oCAAoC,EAAE,EACxE,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAJD,wCAIC"}
|
package/gtm/index.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { GetPoolArgs, GetPoolResult, GetPoolOutputArgs } from "./getPool";
|
|
2
|
+
export declare const getPool: typeof import("./getPool").getPool;
|
|
3
|
+
export declare const getPoolOutput: typeof import("./getPool").getPoolOutput;
|
|
4
|
+
export { GetPoolsResult } from "./getPools";
|
|
5
|
+
export declare const getPools: typeof import("./getPools").getPools;
|
|
6
|
+
export declare const getPoolsOutput: typeof import("./getPools").getPoolsOutput;
|
|
7
|
+
export { PoolArgs, PoolState } from "./pool";
|
|
8
|
+
export type Pool = import("./pool").Pool;
|
|
9
|
+
export declare const Pool: typeof import("./pool").Pool;
|
package/gtm/index.js
ADDED
|
@@ -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.Pool = exports.getPoolsOutput = exports.getPools = exports.getPoolOutput = exports.getPool = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
exports.getPool = null;
|
|
9
|
+
exports.getPoolOutput = null;
|
|
10
|
+
utilities.lazyLoad(exports, ["getPool", "getPoolOutput"], () => require("./getPool"));
|
|
11
|
+
exports.getPools = null;
|
|
12
|
+
exports.getPoolsOutput = null;
|
|
13
|
+
utilities.lazyLoad(exports, ["getPools", "getPoolsOutput"], () => require("./getPools"));
|
|
14
|
+
exports.Pool = null;
|
|
15
|
+
utilities.lazyLoad(exports, ["Pool"], () => require("./pool"));
|
|
16
|
+
const _module = {
|
|
17
|
+
version: utilities.getVersion(),
|
|
18
|
+
construct: (name, type, urn) => {
|
|
19
|
+
switch (type) {
|
|
20
|
+
case "volcenginecc:gtm/pool:Pool":
|
|
21
|
+
return new exports.Pool(name, undefined, { urn });
|
|
22
|
+
default:
|
|
23
|
+
throw new Error(`unknown resource type ${type}`);
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
};
|
|
27
|
+
pulumi.runtime.registerResourceModule("volcenginecc", "gtm/pool", _module);
|
|
28
|
+
//# sourceMappingURL=index.js.map
|
package/gtm/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../gtm/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAI7B,QAAA,OAAO,GAAuC,IAAW,CAAC;AAC1D,QAAA,aAAa,GAA6C,IAAW,CAAC;AACnF,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,SAAS,EAAC,eAAe,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC;AAGxE,QAAA,QAAQ,GAAyC,IAAW,CAAC;AAC7D,QAAA,cAAc,GAA+C,IAAW,CAAC;AACtF,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,UAAU,EAAC,gBAAgB,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC;AAI3E,QAAA,IAAI,GAAiC,IAAW,CAAC;AAC9D,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;AAG/D,MAAM,OAAO,GAAG;IACZ,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE;IAC/B,SAAS,EAAE,CAAC,IAAY,EAAE,IAAY,EAAE,GAAW,EAAmB,EAAE;QACpE,QAAQ,IAAI,EAAE;YACV,KAAK,4BAA4B;gBAC7B,OAAO,IAAI,YAAI,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YAClD;gBACI,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACxD;IACL,CAAC;CACJ,CAAC;AACF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,cAAc,EAAE,UAAU,EAAE,OAAO,CAAC,CAAA"}
|
package/gtm/pool.d.ts
ADDED
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "../types/input";
|
|
3
|
+
import * as outputs from "../types/output";
|
|
4
|
+
/**
|
|
5
|
+
* GTM address pool resource, belongs to a GTM instance and is used to carry the target address set and routing capacity configuration
|
|
6
|
+
*
|
|
7
|
+
* ## Import
|
|
8
|
+
*
|
|
9
|
+
* ```sh
|
|
10
|
+
* $ pulumi import volcenginecc:gtm/pool:Pool example "gtm_id|pool_id"
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
export declare class Pool extends pulumi.CustomResource {
|
|
14
|
+
/**
|
|
15
|
+
* Get an existing Pool 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?: PoolState, opts?: pulumi.CustomResourceOptions): Pool;
|
|
24
|
+
/**
|
|
25
|
+
* Returns true if the given object is an instance of Pool. 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 Pool;
|
|
29
|
+
/**
|
|
30
|
+
* Target address type of the address pool. If you do not set this parameter, Cloud Scheduling GTM will automatically determine the target address type. ipv4: IPv4 address. ipv6: IPv6 address. cname: Domain name
|
|
31
|
+
*/
|
|
32
|
+
readonly addrType: pulumi.Output<string>;
|
|
33
|
+
readonly addresses: pulumi.Output<outputs.gtm.PoolAddress[]>;
|
|
34
|
+
/**
|
|
35
|
+
* Address pool capacity
|
|
36
|
+
*/
|
|
37
|
+
readonly capacity: pulumi.Output<number>;
|
|
38
|
+
/**
|
|
39
|
+
* Capacity mode, indicates whether to configure address pool capacity or address capacity
|
|
40
|
+
*/
|
|
41
|
+
readonly capacityMode: pulumi.Output<string>;
|
|
42
|
+
/**
|
|
43
|
+
* Creation time
|
|
44
|
+
*/
|
|
45
|
+
readonly createTime: pulumi.Output<string>;
|
|
46
|
+
/**
|
|
47
|
+
* Whether the address pool can be deleted. true: The address pool is not referenced by any routing rule and can be deleted. false: The address pool is referenced by one or more routing rules and cannot be deleted
|
|
48
|
+
*/
|
|
49
|
+
readonly deletable: pulumi.Output<boolean>;
|
|
50
|
+
/**
|
|
51
|
+
* UUID of the associated GTM instance
|
|
52
|
+
*/
|
|
53
|
+
readonly gtmId: pulumi.Output<string>;
|
|
54
|
+
/**
|
|
55
|
+
* Address pool name. UTF-8 format. Maximum length is 64 UTF-8 characters
|
|
56
|
+
*/
|
|
57
|
+
readonly name: pulumi.Output<string>;
|
|
58
|
+
/**
|
|
59
|
+
* Address pool ID
|
|
60
|
+
*/
|
|
61
|
+
readonly poolId: pulumi.Output<string>;
|
|
62
|
+
/**
|
|
63
|
+
* Address pool remarks. Default is an empty string. UTF-8 format. Maximum length is 128 UTF-8 characters
|
|
64
|
+
*/
|
|
65
|
+
readonly remark: pulumi.Output<string>;
|
|
66
|
+
/**
|
|
67
|
+
* Update time
|
|
68
|
+
*/
|
|
69
|
+
readonly updateTime: pulumi.Output<string>;
|
|
70
|
+
/**
|
|
71
|
+
* Create a Pool resource with the given unique name, arguments, and options.
|
|
72
|
+
*
|
|
73
|
+
* @param name The _unique_ name of the resource.
|
|
74
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
75
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
76
|
+
*/
|
|
77
|
+
constructor(name: string, args: PoolArgs, opts?: pulumi.CustomResourceOptions);
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Input properties used for looking up and filtering Pool resources.
|
|
81
|
+
*/
|
|
82
|
+
export interface PoolState {
|
|
83
|
+
/**
|
|
84
|
+
* Target address type of the address pool. If you do not set this parameter, Cloud Scheduling GTM will automatically determine the target address type. ipv4: IPv4 address. ipv6: IPv6 address. cname: Domain name
|
|
85
|
+
*/
|
|
86
|
+
addrType?: pulumi.Input<string>;
|
|
87
|
+
addresses?: pulumi.Input<pulumi.Input<inputs.gtm.PoolAddress>[]>;
|
|
88
|
+
/**
|
|
89
|
+
* Address pool capacity
|
|
90
|
+
*/
|
|
91
|
+
capacity?: pulumi.Input<number>;
|
|
92
|
+
/**
|
|
93
|
+
* Capacity mode, indicates whether to configure address pool capacity or address capacity
|
|
94
|
+
*/
|
|
95
|
+
capacityMode?: pulumi.Input<string>;
|
|
96
|
+
/**
|
|
97
|
+
* Creation time
|
|
98
|
+
*/
|
|
99
|
+
createTime?: pulumi.Input<string>;
|
|
100
|
+
/**
|
|
101
|
+
* Whether the address pool can be deleted. true: The address pool is not referenced by any routing rule and can be deleted. false: The address pool is referenced by one or more routing rules and cannot be deleted
|
|
102
|
+
*/
|
|
103
|
+
deletable?: pulumi.Input<boolean>;
|
|
104
|
+
/**
|
|
105
|
+
* UUID of the associated GTM instance
|
|
106
|
+
*/
|
|
107
|
+
gtmId?: pulumi.Input<string>;
|
|
108
|
+
/**
|
|
109
|
+
* Address pool name. UTF-8 format. Maximum length is 64 UTF-8 characters
|
|
110
|
+
*/
|
|
111
|
+
name?: pulumi.Input<string>;
|
|
112
|
+
/**
|
|
113
|
+
* Address pool ID
|
|
114
|
+
*/
|
|
115
|
+
poolId?: pulumi.Input<string>;
|
|
116
|
+
/**
|
|
117
|
+
* Address pool remarks. Default is an empty string. UTF-8 format. Maximum length is 128 UTF-8 characters
|
|
118
|
+
*/
|
|
119
|
+
remark?: pulumi.Input<string>;
|
|
120
|
+
/**
|
|
121
|
+
* Update time
|
|
122
|
+
*/
|
|
123
|
+
updateTime?: pulumi.Input<string>;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* The set of arguments for constructing a Pool resource.
|
|
127
|
+
*/
|
|
128
|
+
export interface PoolArgs {
|
|
129
|
+
/**
|
|
130
|
+
* Target address type of the address pool. If you do not set this parameter, Cloud Scheduling GTM will automatically determine the target address type. ipv4: IPv4 address. ipv6: IPv6 address. cname: Domain name
|
|
131
|
+
*/
|
|
132
|
+
addrType?: pulumi.Input<string>;
|
|
133
|
+
addresses: pulumi.Input<pulumi.Input<inputs.gtm.PoolAddress>[]>;
|
|
134
|
+
/**
|
|
135
|
+
* Address pool capacity
|
|
136
|
+
*/
|
|
137
|
+
capacity?: pulumi.Input<number>;
|
|
138
|
+
/**
|
|
139
|
+
* Capacity mode, indicates whether to configure address pool capacity or address capacity
|
|
140
|
+
*/
|
|
141
|
+
capacityMode?: pulumi.Input<string>;
|
|
142
|
+
/**
|
|
143
|
+
* UUID of the associated GTM instance
|
|
144
|
+
*/
|
|
145
|
+
gtmId: pulumi.Input<string>;
|
|
146
|
+
/**
|
|
147
|
+
* Address pool name. UTF-8 format. Maximum length is 64 UTF-8 characters
|
|
148
|
+
*/
|
|
149
|
+
name: pulumi.Input<string>;
|
|
150
|
+
/**
|
|
151
|
+
* Address pool remarks. Default is an empty string. UTF-8 format. Maximum length is 128 UTF-8 characters
|
|
152
|
+
*/
|
|
153
|
+
remark?: pulumi.Input<string>;
|
|
154
|
+
}
|
package/gtm/pool.js
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
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.Pool = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* GTM address pool resource, belongs to a GTM instance and is used to carry the target address set and routing capacity configuration
|
|
10
|
+
*
|
|
11
|
+
* ## Import
|
|
12
|
+
*
|
|
13
|
+
* ```sh
|
|
14
|
+
* $ pulumi import volcenginecc:gtm/pool:Pool example "gtm_id|pool_id"
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
class Pool extends pulumi.CustomResource {
|
|
18
|
+
/**
|
|
19
|
+
* Get an existing Pool 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 Pool(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Returns true if the given object is an instance of Pool. 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'] === Pool.__pulumiType;
|
|
39
|
+
}
|
|
40
|
+
constructor(name, argsOrState, opts) {
|
|
41
|
+
let resourceInputs = {};
|
|
42
|
+
opts = opts || {};
|
|
43
|
+
if (opts.id) {
|
|
44
|
+
const state = argsOrState;
|
|
45
|
+
resourceInputs["addrType"] = state ? state.addrType : undefined;
|
|
46
|
+
resourceInputs["addresses"] = state ? state.addresses : undefined;
|
|
47
|
+
resourceInputs["capacity"] = state ? state.capacity : undefined;
|
|
48
|
+
resourceInputs["capacityMode"] = state ? state.capacityMode : undefined;
|
|
49
|
+
resourceInputs["createTime"] = state ? state.createTime : undefined;
|
|
50
|
+
resourceInputs["deletable"] = state ? state.deletable : undefined;
|
|
51
|
+
resourceInputs["gtmId"] = state ? state.gtmId : undefined;
|
|
52
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
53
|
+
resourceInputs["poolId"] = state ? state.poolId : undefined;
|
|
54
|
+
resourceInputs["remark"] = state ? state.remark : undefined;
|
|
55
|
+
resourceInputs["updateTime"] = state ? state.updateTime : undefined;
|
|
56
|
+
}
|
|
57
|
+
else {
|
|
58
|
+
const args = argsOrState;
|
|
59
|
+
if ((!args || args.addresses === undefined) && !opts.urn) {
|
|
60
|
+
throw new Error("Missing required property 'addresses'");
|
|
61
|
+
}
|
|
62
|
+
if ((!args || args.gtmId === undefined) && !opts.urn) {
|
|
63
|
+
throw new Error("Missing required property 'gtmId'");
|
|
64
|
+
}
|
|
65
|
+
if ((!args || args.name === undefined) && !opts.urn) {
|
|
66
|
+
throw new Error("Missing required property 'name'");
|
|
67
|
+
}
|
|
68
|
+
resourceInputs["addrType"] = args ? args.addrType : undefined;
|
|
69
|
+
resourceInputs["addresses"] = args ? args.addresses : undefined;
|
|
70
|
+
resourceInputs["capacity"] = args ? args.capacity : undefined;
|
|
71
|
+
resourceInputs["capacityMode"] = args ? args.capacityMode : undefined;
|
|
72
|
+
resourceInputs["gtmId"] = args ? args.gtmId : undefined;
|
|
73
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
74
|
+
resourceInputs["remark"] = args ? args.remark : undefined;
|
|
75
|
+
resourceInputs["createTime"] = undefined /*out*/;
|
|
76
|
+
resourceInputs["deletable"] = undefined /*out*/;
|
|
77
|
+
resourceInputs["poolId"] = undefined /*out*/;
|
|
78
|
+
resourceInputs["updateTime"] = undefined /*out*/;
|
|
79
|
+
}
|
|
80
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
81
|
+
super(Pool.__pulumiType, name, resourceInputs, opts);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
exports.Pool = Pool;
|
|
85
|
+
/** @internal */
|
|
86
|
+
Pool.__pulumiType = 'volcenginecc:gtm/pool:Pool';
|
|
87
|
+
//# sourceMappingURL=pool.js.map
|
package/gtm/pool.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pool.js","sourceRoot":"","sources":["../../gtm/pool.ts"],"names":[],"mappings":"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"}
|
package/iam/getRole.d.ts
CHANGED
|
@@ -41,6 +41,9 @@ export interface GetRoleResult {
|
|
|
41
41
|
* Maximum session duration for the role. Maximum session duration for the role. Limits the maximum validity period of temporary security credentials generated by role assumption. Value range: 3600–43200, unit: seconds, default is 43200
|
|
42
42
|
*/
|
|
43
43
|
readonly maxSessionDuration: number;
|
|
44
|
+
/**
|
|
45
|
+
* Role Strategy
|
|
46
|
+
*/
|
|
44
47
|
readonly policies: outputs.iam.GetRolePolicy[];
|
|
45
48
|
/**
|
|
46
49
|
* Role ID
|
|
@@ -50,6 +53,13 @@ export interface GetRoleResult {
|
|
|
50
53
|
* Role name, length 1–64, supports English letters, numbers, and .-_ characters
|
|
51
54
|
*/
|
|
52
55
|
readonly roleName: string;
|
|
56
|
+
/**
|
|
57
|
+
* Service associated with the service-linked role to be created.
|
|
58
|
+
*/
|
|
59
|
+
readonly serviceName: string;
|
|
60
|
+
/**
|
|
61
|
+
* Tag
|
|
62
|
+
*/
|
|
53
63
|
readonly tags: outputs.iam.GetRoleTag[];
|
|
54
64
|
/**
|
|
55
65
|
* Role TRN
|
package/iam/getRole.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getRole.js","sourceRoot":"","sources":["../../iam/getRole.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;GAEG;AACH,SAAgB,OAAO,CAAC,IAAiB,EAAE,IAA2B;IAClE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,kCAAkC,EAAE;QAC7D,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,0BAKC;
|
|
1
|
+
{"version":3,"file":"getRole.js","sourceRoot":"","sources":["../../iam/getRole.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;GAEG;AACH,SAAgB,OAAO,CAAC,IAAiB,EAAE,IAA2B;IAClE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,kCAAkC,EAAE;QAC7D,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,0BAKC;AAyED;;GAEG;AACH,SAAgB,aAAa,CAAC,IAAuB,EAAE,IAAiC;IACpF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,kCAAkC,EAAE;QACnE,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,sCAKC"}
|
package/iam/role.d.ts
CHANGED
|
@@ -4,38 +4,6 @@ import * as outputs from "../types/output";
|
|
|
4
4
|
/**
|
|
5
5
|
* A role is a virtual identity in the IAM system that grants certain access permissions within an account to various identity entities. Trusted identity entities can assume this role to access cloud resources within the account.
|
|
6
6
|
*
|
|
7
|
-
* ## Example Usage
|
|
8
|
-
*
|
|
9
|
-
* ```typescript
|
|
10
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
-
* import * as volcenginecc from "@volcengine/pulumi-volcenginecc";
|
|
12
|
-
*
|
|
13
|
-
* const roleDemo = new volcenginecc.iam.Role("RoleDemo", {
|
|
14
|
-
* roleName: "RoleDemo",
|
|
15
|
-
* description: "role attach policies",
|
|
16
|
-
* maxSessionDuration: 3600,
|
|
17
|
-
* trustPolicyDocument: `{
|
|
18
|
-
* "Statement": [
|
|
19
|
-
* {
|
|
20
|
-
* "Effect": "Allow",
|
|
21
|
-
* "Action": [
|
|
22
|
-
* "sts:AssumeRole"
|
|
23
|
-
* ],
|
|
24
|
-
* "Principal": {
|
|
25
|
-
* "IAM": [
|
|
26
|
-
* "trn:iam::20000000xx:root"
|
|
27
|
-
* ]
|
|
28
|
-
* }
|
|
29
|
-
* }
|
|
30
|
-
* ]
|
|
31
|
-
* }`,
|
|
32
|
-
* tags: [{
|
|
33
|
-
* key: "env",
|
|
34
|
-
* value: "test",
|
|
35
|
-
* }],
|
|
36
|
-
* });
|
|
37
|
-
* ```
|
|
38
|
-
*
|
|
39
7
|
* ## Import
|
|
40
8
|
*
|
|
41
9
|
* ```sh
|
|
@@ -87,6 +55,10 @@ export declare class Role extends pulumi.CustomResource {
|
|
|
87
55
|
* Role name, length 1–64, supports English letters, numbers, and .-_ characters
|
|
88
56
|
*/
|
|
89
57
|
readonly roleName: pulumi.Output<string>;
|
|
58
|
+
/**
|
|
59
|
+
* Service associated with the service-linked role to be created.
|
|
60
|
+
*/
|
|
61
|
+
readonly serviceName: pulumi.Output<string>;
|
|
90
62
|
readonly tags: pulumi.Output<outputs.iam.RoleTag[]>;
|
|
91
63
|
/**
|
|
92
64
|
* Role TRN
|
|
@@ -107,7 +79,7 @@ export declare class Role extends pulumi.CustomResource {
|
|
|
107
79
|
* @param args The arguments to use to populate this resource's properties.
|
|
108
80
|
* @param opts A bag of options that control this resource's behavior.
|
|
109
81
|
*/
|
|
110
|
-
constructor(name: string, args
|
|
82
|
+
constructor(name: string, args?: RoleArgs, opts?: pulumi.CustomResourceOptions);
|
|
111
83
|
}
|
|
112
84
|
/**
|
|
113
85
|
* Input properties used for looking up and filtering Role resources.
|
|
@@ -142,6 +114,10 @@ export interface RoleState {
|
|
|
142
114
|
* Role name, length 1–64, supports English letters, numbers, and .-_ characters
|
|
143
115
|
*/
|
|
144
116
|
roleName?: pulumi.Input<string>;
|
|
117
|
+
/**
|
|
118
|
+
* Service associated with the service-linked role to be created.
|
|
119
|
+
*/
|
|
120
|
+
serviceName?: pulumi.Input<string>;
|
|
145
121
|
tags?: pulumi.Input<pulumi.Input<inputs.iam.RoleTag>[]>;
|
|
146
122
|
/**
|
|
147
123
|
* Role TRN
|
|
@@ -168,6 +144,10 @@ export interface RoleArgs {
|
|
|
168
144
|
* Role display name, maximum length 64
|
|
169
145
|
*/
|
|
170
146
|
displayName?: pulumi.Input<string>;
|
|
147
|
+
/**
|
|
148
|
+
* Service-linked role or not: 0 for No, 1 for Yes
|
|
149
|
+
*/
|
|
150
|
+
isServiceLinkedRole?: pulumi.Input<number>;
|
|
171
151
|
/**
|
|
172
152
|
* Maximum session duration for the role. Maximum session duration for the role. Limits the maximum validity period of temporary security credentials generated by role assumption. Value range: 3600–43200, unit: seconds, default is 43200
|
|
173
153
|
*/
|
|
@@ -176,7 +156,11 @@ export interface RoleArgs {
|
|
|
176
156
|
/**
|
|
177
157
|
* Role name, length 1–64, supports English letters, numbers, and .-_ characters
|
|
178
158
|
*/
|
|
179
|
-
roleName
|
|
159
|
+
roleName?: pulumi.Input<string>;
|
|
160
|
+
/**
|
|
161
|
+
* Service associated with the service-linked role to be created.
|
|
162
|
+
*/
|
|
163
|
+
serviceName?: pulumi.Input<string>;
|
|
180
164
|
tags?: pulumi.Input<pulumi.Input<inputs.iam.RoleTag>[]>;
|
|
181
165
|
/**
|
|
182
166
|
* Role trust policy. The trust policy follows resource-based policy rules in IAM policy syntax.
|
package/iam/role.js
CHANGED
|
@@ -8,38 +8,6 @@ const utilities = require("../utilities");
|
|
|
8
8
|
/**
|
|
9
9
|
* A role is a virtual identity in the IAM system that grants certain access permissions within an account to various identity entities. Trusted identity entities can assume this role to access cloud resources within the account.
|
|
10
10
|
*
|
|
11
|
-
* ## Example Usage
|
|
12
|
-
*
|
|
13
|
-
* ```typescript
|
|
14
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
-
* import * as volcenginecc from "@volcengine/pulumi-volcenginecc";
|
|
16
|
-
*
|
|
17
|
-
* const roleDemo = new volcenginecc.iam.Role("RoleDemo", {
|
|
18
|
-
* roleName: "RoleDemo",
|
|
19
|
-
* description: "role attach policies",
|
|
20
|
-
* maxSessionDuration: 3600,
|
|
21
|
-
* trustPolicyDocument: `{
|
|
22
|
-
* "Statement": [
|
|
23
|
-
* {
|
|
24
|
-
* "Effect": "Allow",
|
|
25
|
-
* "Action": [
|
|
26
|
-
* "sts:AssumeRole"
|
|
27
|
-
* ],
|
|
28
|
-
* "Principal": {
|
|
29
|
-
* "IAM": [
|
|
30
|
-
* "trn:iam::20000000xx:root"
|
|
31
|
-
* ]
|
|
32
|
-
* }
|
|
33
|
-
* }
|
|
34
|
-
* ]
|
|
35
|
-
* }`,
|
|
36
|
-
* tags: [{
|
|
37
|
-
* key: "env",
|
|
38
|
-
* value: "test",
|
|
39
|
-
* }],
|
|
40
|
-
* });
|
|
41
|
-
* ```
|
|
42
|
-
*
|
|
43
11
|
* ## Import
|
|
44
12
|
*
|
|
45
13
|
* ```sh
|
|
@@ -82,6 +50,7 @@ class Role extends pulumi.CustomResource {
|
|
|
82
50
|
resourceInputs["policies"] = state ? state.policies : undefined;
|
|
83
51
|
resourceInputs["roleId"] = state ? state.roleId : undefined;
|
|
84
52
|
resourceInputs["roleName"] = state ? state.roleName : undefined;
|
|
53
|
+
resourceInputs["serviceName"] = state ? state.serviceName : undefined;
|
|
85
54
|
resourceInputs["tags"] = state ? state.tags : undefined;
|
|
86
55
|
resourceInputs["trn"] = state ? state.trn : undefined;
|
|
87
56
|
resourceInputs["trustPolicyDocument"] = state ? state.trustPolicyDocument : undefined;
|
|
@@ -89,18 +58,16 @@ class Role extends pulumi.CustomResource {
|
|
|
89
58
|
}
|
|
90
59
|
else {
|
|
91
60
|
const args = argsOrState;
|
|
92
|
-
if ((!args || args.roleName === undefined) && !opts.urn) {
|
|
93
|
-
throw new Error("Missing required property 'roleName'");
|
|
94
|
-
}
|
|
95
61
|
resourceInputs["description"] = args ? args.description : undefined;
|
|
96
62
|
resourceInputs["displayName"] = args ? args.displayName : undefined;
|
|
63
|
+
resourceInputs["isServiceLinkedRole"] = args ? args.isServiceLinkedRole : undefined;
|
|
97
64
|
resourceInputs["maxSessionDuration"] = args ? args.maxSessionDuration : undefined;
|
|
98
65
|
resourceInputs["policies"] = args ? args.policies : undefined;
|
|
99
66
|
resourceInputs["roleName"] = args ? args.roleName : undefined;
|
|
67
|
+
resourceInputs["serviceName"] = args ? args.serviceName : undefined;
|
|
100
68
|
resourceInputs["tags"] = args ? args.tags : undefined;
|
|
101
69
|
resourceInputs["trustPolicyDocument"] = args ? args.trustPolicyDocument : undefined;
|
|
102
70
|
resourceInputs["createDate"] = undefined /*out*/;
|
|
103
|
-
resourceInputs["isServiceLinkedRole"] = undefined /*out*/;
|
|
104
71
|
resourceInputs["roleId"] = undefined /*out*/;
|
|
105
72
|
resourceInputs["trn"] = undefined /*out*/;
|
|
106
73
|
resourceInputs["updateDate"] = undefined /*out*/;
|