@pulumi/ise 0.1.0-alpha.1715070880
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/LICENSE +202 -0
- package/README.md +49 -0
- package/activedirectoryadd/groups.d.ts +149 -0
- package/activedirectoryadd/groups.js +91 -0
- package/activedirectoryadd/groups.js.map +1 -0
- package/activedirectoryadd/index.d.ts +3 -0
- package/activedirectoryadd/index.js +22 -0
- package/activedirectoryadd/index.js.map +1 -0
- package/activedirectorygroupsby/getDomain.d.ts +123 -0
- package/activedirectorygroupsby/getDomain.js +59 -0
- package/activedirectorygroupsby/getDomain.js.map +1 -0
- package/activedirectorygroupsby/index.d.ts +3 -0
- package/activedirectorygroupsby/index.js +10 -0
- package/activedirectorygroupsby/index.js.map +1 -0
- package/activedirectoryjoin/getPoint.d.ts +188 -0
- package/activedirectoryjoin/getPoint.js +47 -0
- package/activedirectoryjoin/getPoint.js.map +1 -0
- package/activedirectoryjoin/index.d.ts +6 -0
- package/activedirectoryjoin/index.js +25 -0
- package/activedirectoryjoin/index.js.map +1 -0
- package/activedirectoryjoin/point.d.ts +446 -0
- package/activedirectoryjoin/point.js +125 -0
- package/activedirectoryjoin/point.js.map +1 -0
- package/activedirectoryjoindomainwithall/index.d.ts +3 -0
- package/activedirectoryjoindomainwithall/index.js +22 -0
- package/activedirectoryjoindomainwithall/index.js.map +1 -0
- package/activedirectoryjoindomainwithall/nodes.d.ts +71 -0
- package/activedirectoryjoindomainwithall/nodes.js +75 -0
- package/activedirectoryjoindomainwithall/nodes.js.map +1 -0
- package/allowed/getProtocols.d.ts +374 -0
- package/allowed/getProtocols.js +49 -0
- package/allowed/getProtocols.js.map +1 -0
- package/allowed/index.d.ts +6 -0
- package/allowed/index.js +25 -0
- package/allowed/index.js.map +1 -0
- package/allowed/protocols.d.ts +1075 -0
- package/allowed/protocols.js +343 -0
- package/allowed/protocols.js.map +1 -0
- package/allowedprotocols/getTacacs.d.ts +86 -0
- package/allowedprotocols/getTacacs.js +49 -0
- package/allowedprotocols/getTacacs.js.map +1 -0
- package/allowedprotocols/index.d.ts +6 -0
- package/allowedprotocols/index.js +25 -0
- package/allowedprotocols/index.js.map +1 -0
- package/allowedprotocols/tacacs.d.ts +120 -0
- package/allowedprotocols/tacacs.js +90 -0
- package/allowedprotocols/tacacs.js.map +1 -0
- package/authorization/getProfile.d.ts +199 -0
- package/authorization/getProfile.js +49 -0
- package/authorization/getProfile.js.map +1 -0
- package/authorization/index.d.ts +6 -0
- package/authorization/index.js +25 -0
- package/authorization/index.js.map +1 -0
- package/authorization/profile.d.ts +449 -0
- package/authorization/profile.js +122 -0
- package/authorization/profile.js.map +1 -0
- package/certificateauthentication/getProfile.d.ts +94 -0
- package/certificateauthentication/getProfile.js +49 -0
- package/certificateauthentication/getProfile.js.map +1 -0
- package/certificateauthentication/index.d.ts +6 -0
- package/certificateauthentication/index.js +25 -0
- package/certificateauthentication/index.js.map +1 -0
- package/certificateauthentication/profile.d.ts +167 -0
- package/certificateauthentication/profile.js +87 -0
- package/certificateauthentication/profile.js.map +1 -0
- package/config/index.d.ts +1 -0
- package/config/index.js +21 -0
- package/config/index.js.map +1 -0
- package/config/vars.d.ts +20 -0
- package/config/vars.js +37 -0
- package/config/vars.js.map +1 -0
- package/deviceadmin/condition.d.ts +197 -0
- package/deviceadmin/condition.js +97 -0
- package/deviceadmin/condition.js.map +1 -0
- package/deviceadmin/getCondition.d.ts +107 -0
- package/deviceadmin/getCondition.js +49 -0
- package/deviceadmin/getCondition.js.map +1 -0
- package/deviceadmin/index.d.ts +6 -0
- package/deviceadmin/index.js +25 -0
- package/deviceadmin/index.js.map +1 -0
- package/deviceadminauthentication/getRule.d.ts +149 -0
- package/deviceadminauthentication/getRule.js +51 -0
- package/deviceadminauthentication/getRule.js.map +1 -0
- package/deviceadminauthentication/index.d.ts +6 -0
- package/deviceadminauthentication/index.js +25 -0
- package/deviceadminauthentication/index.js.map +1 -0
- package/deviceadminauthentication/rule.d.ts +303 -0
- package/deviceadminauthentication/rule.js +129 -0
- package/deviceadminauthentication/rule.js.map +1 -0
- package/deviceadminauthorization/getRule.d.ts +141 -0
- package/deviceadminauthorization/getRule.js +51 -0
- package/deviceadminauthorization/getRule.js.map +1 -0
- package/deviceadminauthorization/index.d.ts +6 -0
- package/deviceadminauthorization/index.js +25 -0
- package/deviceadminauthorization/index.js.map +1 -0
- package/deviceadminauthorization/rule.d.ts +274 -0
- package/deviceadminauthorization/rule.js +114 -0
- package/deviceadminauthorization/rule.js.map +1 -0
- package/deviceadminauthorizationexception/getRule.d.ts +141 -0
- package/deviceadminauthorizationexception/getRule.js +51 -0
- package/deviceadminauthorizationexception/getRule.js.map +1 -0
- package/deviceadminauthorizationexception/index.d.ts +6 -0
- package/deviceadminauthorizationexception/index.js +25 -0
- package/deviceadminauthorizationexception/index.js.map +1 -0
- package/deviceadminauthorizationexception/rule.d.ts +274 -0
- package/deviceadminauthorizationexception/rule.js +114 -0
- package/deviceadminauthorizationexception/rule.js.map +1 -0
- package/deviceadminauthorizationglobalexception/getRule.d.ts +127 -0
- package/deviceadminauthorizationglobalexception/getRule.js +49 -0
- package/deviceadminauthorizationglobalexception/getRule.js.map +1 -0
- package/deviceadminauthorizationglobalexception/index.d.ts +6 -0
- package/deviceadminauthorizationglobalexception/index.js +25 -0
- package/deviceadminauthorizationglobalexception/index.js.map +1 -0
- package/deviceadminauthorizationglobalexception/rule.d.ts +261 -0
- package/deviceadminauthorizationglobalexception/rule.js +108 -0
- package/deviceadminauthorizationglobalexception/rule.js.map +1 -0
- package/deviceadminpolicy/getSet.d.ts +131 -0
- package/deviceadminpolicy/getSet.js +49 -0
- package/deviceadminpolicy/getSet.js.map +1 -0
- package/deviceadminpolicy/index.d.ts +6 -0
- package/deviceadminpolicy/index.js +25 -0
- package/deviceadminpolicy/index.js.map +1 -0
- package/deviceadminpolicy/set.d.ts +276 -0
- package/deviceadminpolicy/set.js +113 -0
- package/deviceadminpolicy/set.js.map +1 -0
- package/deviceadmintimeanddate/condition.d.ts +224 -0
- package/deviceadmintimeanddate/condition.js +105 -0
- package/deviceadmintimeanddate/condition.js.map +1 -0
- package/deviceadmintimeanddate/getCondition.d.ts +118 -0
- package/deviceadmintimeanddate/getCondition.js +49 -0
- package/deviceadmintimeanddate/getCondition.js.map +1 -0
- package/deviceadmintimeanddate/index.d.ts +6 -0
- package/deviceadmintimeanddate/index.js +25 -0
- package/deviceadmintimeanddate/index.js.map +1 -0
- package/downloadable/acl.d.ts +107 -0
- package/downloadable/acl.js +81 -0
- package/downloadable/acl.js.map +1 -0
- package/downloadable/getAcl.d.ts +82 -0
- package/downloadable/getAcl.js +49 -0
- package/downloadable/getAcl.js.map +1 -0
- package/downloadable/index.d.ts +6 -0
- package/downloadable/index.js +25 -0
- package/downloadable/index.js.map +1 -0
- package/endpoint.d.ts +382 -0
- package/endpoint.js +136 -0
- package/endpoint.js.map +1 -0
- package/endpointidentity/getGroup.d.ts +82 -0
- package/endpointidentity/getGroup.js +49 -0
- package/endpointidentity/getGroup.js.map +1 -0
- package/endpointidentity/group.d.ts +106 -0
- package/endpointidentity/group.js +77 -0
- package/endpointidentity/group.js.map +1 -0
- package/endpointidentity/index.d.ts +6 -0
- package/endpointidentity/index.js +25 -0
- package/endpointidentity/index.js.map +1 -0
- package/getEndpoint.d.ts +172 -0
- package/getEndpoint.js +49 -0
- package/getEndpoint.js.map +1 -0
- package/getRepository.d.ts +94 -0
- package/getRepository.js +49 -0
- package/getRepository.js.map +1 -0
- package/identitysource/getSequence.d.ts +84 -0
- package/identitysource/getSequence.js +49 -0
- package/identitysource/getSequence.js.map +1 -0
- package/identitysource/index.d.ts +6 -0
- package/identitysource/index.js +25 -0
- package/identitysource/index.js.map +1 -0
- package/identitysource/sequence.d.ts +116 -0
- package/identitysource/sequence.js +93 -0
- package/identitysource/sequence.js.map +1 -0
- package/index.d.ts +55 -0
- package/index.js +123 -0
- package/index.js.map +1 -0
- package/internal/getUser.d.ts +122 -0
- package/internal/getUser.js +49 -0
- package/internal/getUser.js.map +1 -0
- package/internal/index.d.ts +6 -0
- package/internal/index.js +25 -0
- package/internal/index.js.map +1 -0
- package/internal/user.d.ts +241 -0
- package/internal/user.js +109 -0
- package/internal/user.js.map +1 -0
- package/licensetier/getState.d.ts +63 -0
- package/licensetier/getState.js +47 -0
- package/licensetier/getState.js.map +1 -0
- package/licensetier/index.d.ts +6 -0
- package/licensetier/index.js +25 -0
- package/licensetier/index.js.map +1 -0
- package/licensetier/state.d.ts +71 -0
- package/licensetier/state.js +73 -0
- package/licensetier/state.js.map +1 -0
- package/network/device.d.ts +603 -0
- package/network/device.js +195 -0
- package/network/device.js.map +1 -0
- package/network/getDevice.d.ts +235 -0
- package/network/getDevice.js +49 -0
- package/network/getDevice.js.map +1 -0
- package/network/index.d.ts +6 -0
- package/network/index.js +25 -0
- package/network/index.js.map +1 -0
- package/networkaccess/condition.d.ts +197 -0
- package/networkaccess/condition.js +97 -0
- package/networkaccess/condition.js.map +1 -0
- package/networkaccess/dictionary.d.ts +107 -0
- package/networkaccess/dictionary.js +84 -0
- package/networkaccess/dictionary.js.map +1 -0
- package/networkaccess/getCondition.d.ts +107 -0
- package/networkaccess/getCondition.js +49 -0
- package/networkaccess/getCondition.js.map +1 -0
- package/networkaccess/getDictionary.d.ts +82 -0
- package/networkaccess/getDictionary.js +49 -0
- package/networkaccess/getDictionary.js.map +1 -0
- package/networkaccess/index.d.ts +12 -0
- package/networkaccess/index.js +33 -0
- package/networkaccess/index.js.map +1 -0
- package/networkaccessauthentication/getRule.d.ts +149 -0
- package/networkaccessauthentication/getRule.js +51 -0
- package/networkaccessauthentication/getRule.js.map +1 -0
- package/networkaccessauthentication/index.d.ts +6 -0
- package/networkaccessauthentication/index.js +25 -0
- package/networkaccessauthentication/index.js.map +1 -0
- package/networkaccessauthentication/rule.d.ts +303 -0
- package/networkaccessauthentication/rule.js +129 -0
- package/networkaccessauthentication/rule.js.map +1 -0
- package/networkaccessauthorization/getRule.d.ts +141 -0
- package/networkaccessauthorization/getRule.js +51 -0
- package/networkaccessauthorization/getRule.js.map +1 -0
- package/networkaccessauthorization/index.d.ts +6 -0
- package/networkaccessauthorization/index.js +25 -0
- package/networkaccessauthorization/index.js.map +1 -0
- package/networkaccessauthorization/rule.d.ts +274 -0
- package/networkaccessauthorization/rule.js +114 -0
- package/networkaccessauthorization/rule.js.map +1 -0
- package/networkaccessauthorizationexception/getRule.d.ts +141 -0
- package/networkaccessauthorizationexception/getRule.js +51 -0
- package/networkaccessauthorizationexception/getRule.js.map +1 -0
- package/networkaccessauthorizationexception/index.d.ts +6 -0
- package/networkaccessauthorizationexception/index.js +25 -0
- package/networkaccessauthorizationexception/index.js.map +1 -0
- package/networkaccessauthorizationexception/rule.d.ts +274 -0
- package/networkaccessauthorizationexception/rule.js +114 -0
- package/networkaccessauthorizationexception/rule.js.map +1 -0
- package/networkaccessauthorizationglobalexception/getRule.d.ts +127 -0
- package/networkaccessauthorizationglobalexception/getRule.js +49 -0
- package/networkaccessauthorizationglobalexception/getRule.js.map +1 -0
- package/networkaccessauthorizationglobalexception/index.d.ts +6 -0
- package/networkaccessauthorizationglobalexception/index.js +25 -0
- package/networkaccessauthorizationglobalexception/index.js.map +1 -0
- package/networkaccessauthorizationglobalexception/rule.d.ts +261 -0
- package/networkaccessauthorizationglobalexception/rule.js +108 -0
- package/networkaccessauthorizationglobalexception/rule.js.map +1 -0
- package/networkaccesspolicy/getSet.d.ts +131 -0
- package/networkaccesspolicy/getSet.js +49 -0
- package/networkaccesspolicy/getSet.js.map +1 -0
- package/networkaccesspolicy/index.d.ts +6 -0
- package/networkaccesspolicy/index.js +25 -0
- package/networkaccesspolicy/index.js.map +1 -0
- package/networkaccesspolicy/set.d.ts +276 -0
- package/networkaccesspolicy/set.js +113 -0
- package/networkaccesspolicy/set.js.map +1 -0
- package/networkaccesstimeanddate/condition.d.ts +224 -0
- package/networkaccesstimeanddate/condition.js +105 -0
- package/networkaccesstimeanddate/condition.js.map +1 -0
- package/networkaccesstimeanddate/getCondition.d.ts +118 -0
- package/networkaccesstimeanddate/getCondition.js +49 -0
- package/networkaccesstimeanddate/getCondition.js.map +1 -0
- package/networkaccesstimeanddate/index.d.ts +6 -0
- package/networkaccesstimeanddate/index.js +25 -0
- package/networkaccesstimeanddate/index.js.map +1 -0
- package/networkdevice/getGroup.d.ts +78 -0
- package/networkdevice/getGroup.js +49 -0
- package/networkdevice/getGroup.js.map +1 -0
- package/networkdevice/group.d.ts +94 -0
- package/networkdevice/group.js +78 -0
- package/networkdevice/group.js.map +1 -0
- package/networkdevice/index.d.ts +6 -0
- package/networkdevice/index.js +25 -0
- package/networkdevice/index.js.map +1 -0
- package/package.json +28 -0
- package/package.json.bak +28 -0
- package/provider.d.ts +59 -0
- package/provider.js +51 -0
- package/provider.js.map +1 -0
- package/repository.d.ts +146 -0
- package/repository.js +93 -0
- package/repository.js.map +1 -0
- package/tacacs/getProfile.d.ts +76 -0
- package/tacacs/getProfile.js +49 -0
- package/tacacs/getProfile.js.map +1 -0
- package/tacacs/index.d.ts +6 -0
- package/tacacs/index.js +25 -0
- package/tacacs/index.js.map +1 -0
- package/tacacs/profile.d.ts +91 -0
- package/tacacs/profile.js +79 -0
- package/tacacs/profile.js.map +1 -0
- package/tacacscommand/getSet.d.ts +80 -0
- package/tacacscommand/getSet.js +49 -0
- package/tacacscommand/getSet.js.map +1 -0
- package/tacacscommand/index.d.ts +6 -0
- package/tacacscommand/index.js +25 -0
- package/tacacscommand/index.js.map +1 -0
- package/tacacscommand/set.d.ts +104 -0
- package/tacacscommand/set.js +82 -0
- package/tacacscommand/set.js.map +1 -0
- package/trustsecegressmatrix/cell.d.ts +133 -0
- package/trustsecegressmatrix/cell.js +90 -0
- package/trustsecegressmatrix/cell.js.map +1 -0
- package/trustsecegressmatrix/getCell.d.ts +82 -0
- package/trustsecegressmatrix/getCell.js +47 -0
- package/trustsecegressmatrix/getCell.js.map +1 -0
- package/trustsecegressmatrix/index.d.ts +6 -0
- package/trustsecegressmatrix/index.js +25 -0
- package/trustsecegressmatrix/index.js.map +1 -0
- package/trustseciptosgt/getMapping.d.ts +98 -0
- package/trustseciptosgt/getMapping.js +49 -0
- package/trustseciptosgt/getMapping.js.map +1 -0
- package/trustseciptosgt/index.d.ts +6 -0
- package/trustseciptosgt/index.js +25 -0
- package/trustseciptosgt/index.js.map +1 -0
- package/trustseciptosgt/mapping.d.ts +155 -0
- package/trustseciptosgt/mapping.js +86 -0
- package/trustseciptosgt/mapping.js.map +1 -0
- package/trustseciptosgtmapping/getGroup.d.ts +86 -0
- package/trustseciptosgtmapping/getGroup.js +49 -0
- package/trustseciptosgtmapping/getGroup.js.map +1 -0
- package/trustseciptosgtmapping/group.d.ts +118 -0
- package/trustseciptosgtmapping/group.js +85 -0
- package/trustseciptosgtmapping/group.js.map +1 -0
- package/trustseciptosgtmapping/index.d.ts +6 -0
- package/trustseciptosgtmapping/index.js +25 -0
- package/trustseciptosgtmapping/index.js.map +1 -0
- package/trustsecsecurity/getGroup.d.ts +86 -0
- package/trustsecsecurity/getGroup.js +49 -0
- package/trustsecsecurity/getGroup.js.map +1 -0
- package/trustsecsecurity/group.d.ts +120 -0
- package/trustsecsecurity/group.js +84 -0
- package/trustsecsecurity/group.js.map +1 -0
- package/trustsecsecurity/index.d.ts +6 -0
- package/trustsecsecurity/index.js +25 -0
- package/trustsecsecurity/index.js.map +1 -0
- package/trustsecsecuritygroup/acl.d.ts +120 -0
- package/trustsecsecuritygroup/acl.js +84 -0
- package/trustsecsecuritygroup/acl.js.map +1 -0
- package/trustsecsecuritygroup/getAcl.d.ts +86 -0
- package/trustsecsecuritygroup/getAcl.js +49 -0
- package/trustsecsecuritygroup/getAcl.js.map +1 -0
- package/trustsecsecuritygroup/index.d.ts +6 -0
- package/trustsecsecuritygroup/index.js +25 -0
- package/trustsecsecuritygroup/index.js.map +1 -0
- package/types/index.d.ts +3 -0
- package/types/index.js +11 -0
- package/types/index.js.map +1 -0
- package/types/input.d.ts +1148 -0
- package/types/input.js +5 -0
- package/types/input.js.map +1 -0
- package/types/output.d.ts +2188 -0
- package/types/output.js +5 -0
- package/types/output.js.map +1 -0
- package/useridentity/getGroup.d.ts +78 -0
- package/useridentity/getGroup.js +49 -0
- package/useridentity/getGroup.js.map +1 -0
- package/useridentity/group.d.ts +94 -0
- package/useridentity/group.js +75 -0
- package/useridentity/group.js.map +1 -0
- package/useridentity/index.d.ts +6 -0
- package/useridentity/index.js +25 -0
- package/useridentity/index.js.map +1 -0
- package/utilities.d.ts +8 -0
- package/utilities.js +101 -0
- package/utilities.js.map +1 -0
package/types/output.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
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
|
+
//# sourceMappingURL=output.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"output.js","sourceRoot":"","sources":["../../types/output.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* This data source can read the User Identity Group.
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as ise from "@pulumi/ise";
|
|
10
|
+
*
|
|
11
|
+
* const example = ise.UserIdentity.getGroup({
|
|
12
|
+
* id: "76d24097-41c4-4558-a4d0-a8c07ac08470",
|
|
13
|
+
* });
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
export declare function getGroup(args?: GetGroupArgs, opts?: pulumi.InvokeOptions): Promise<GetGroupResult>;
|
|
17
|
+
/**
|
|
18
|
+
* A collection of arguments for invoking getGroup.
|
|
19
|
+
*/
|
|
20
|
+
export interface GetGroupArgs {
|
|
21
|
+
/**
|
|
22
|
+
* The id of the object
|
|
23
|
+
*/
|
|
24
|
+
id?: string;
|
|
25
|
+
/**
|
|
26
|
+
* The name of the user identity group
|
|
27
|
+
*/
|
|
28
|
+
name?: string;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* A collection of values returned by getGroup.
|
|
32
|
+
*/
|
|
33
|
+
export interface GetGroupResult {
|
|
34
|
+
/**
|
|
35
|
+
* Description
|
|
36
|
+
*/
|
|
37
|
+
readonly description: string;
|
|
38
|
+
/**
|
|
39
|
+
* The id of the object
|
|
40
|
+
*/
|
|
41
|
+
readonly id: string;
|
|
42
|
+
/**
|
|
43
|
+
* The name of the user identity group
|
|
44
|
+
*/
|
|
45
|
+
readonly name: string;
|
|
46
|
+
/**
|
|
47
|
+
* Parent user identity group, e.g. `NAC Group:NAC:IdentityGroups:User Identity Groups`
|
|
48
|
+
*/
|
|
49
|
+
readonly parent: string;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* This data source can read the User Identity Group.
|
|
53
|
+
*
|
|
54
|
+
* ## Example Usage
|
|
55
|
+
*
|
|
56
|
+
* ```typescript
|
|
57
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
58
|
+
* import * as ise from "@pulumi/ise";
|
|
59
|
+
*
|
|
60
|
+
* const example = ise.UserIdentity.getGroup({
|
|
61
|
+
* id: "76d24097-41c4-4558-a4d0-a8c07ac08470",
|
|
62
|
+
* });
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
export declare function getGroupOutput(args?: GetGroupOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetGroupResult>;
|
|
66
|
+
/**
|
|
67
|
+
* A collection of arguments for invoking getGroup.
|
|
68
|
+
*/
|
|
69
|
+
export interface GetGroupOutputArgs {
|
|
70
|
+
/**
|
|
71
|
+
* The id of the object
|
|
72
|
+
*/
|
|
73
|
+
id?: pulumi.Input<string>;
|
|
74
|
+
/**
|
|
75
|
+
* The name of the user identity group
|
|
76
|
+
*/
|
|
77
|
+
name?: pulumi.Input<string>;
|
|
78
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
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.getGroupOutput = exports.getGroup = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* This data source can read the User Identity Group.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as ise from "@pulumi/ise";
|
|
16
|
+
*
|
|
17
|
+
* const example = ise.UserIdentity.getGroup({
|
|
18
|
+
* id: "76d24097-41c4-4558-a4d0-a8c07ac08470",
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
function getGroup(args, opts) {
|
|
23
|
+
args = args || {};
|
|
24
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
25
|
+
return pulumi.runtime.invoke("ise:UserIdentity/getGroup:getGroup", {
|
|
26
|
+
"id": args.id,
|
|
27
|
+
"name": args.name,
|
|
28
|
+
}, opts);
|
|
29
|
+
}
|
|
30
|
+
exports.getGroup = getGroup;
|
|
31
|
+
/**
|
|
32
|
+
* This data source can read the User Identity Group.
|
|
33
|
+
*
|
|
34
|
+
* ## Example Usage
|
|
35
|
+
*
|
|
36
|
+
* ```typescript
|
|
37
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
38
|
+
* import * as ise from "@pulumi/ise";
|
|
39
|
+
*
|
|
40
|
+
* const example = ise.UserIdentity.getGroup({
|
|
41
|
+
* id: "76d24097-41c4-4558-a4d0-a8c07ac08470",
|
|
42
|
+
* });
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
function getGroupOutput(args, opts) {
|
|
46
|
+
return pulumi.output(args).apply((a) => getGroup(a, opts));
|
|
47
|
+
}
|
|
48
|
+
exports.getGroupOutput = getGroupOutput;
|
|
49
|
+
//# sourceMappingURL=getGroup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getGroup.js","sourceRoot":"","sources":["../../useridentity/getGroup.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;GAaG;AACH,SAAgB,QAAQ,CAAC,IAAmB,EAAE,IAA2B;IACrE,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,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;QAC/D,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,4BAQC;AAqCD;;;;;;;;;;;;;GAaG;AACH,SAAgB,cAAc,CAAC,IAAyB,EAAE,IAA2B;IACjF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACnE,CAAC;AAFD,wCAEC"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* This resource can manage an User Identity Group.
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as ise from "@pulumi/ise";
|
|
10
|
+
*
|
|
11
|
+
* const example = new ise.useridentity.Group("example", {
|
|
12
|
+
* name: "Group1",
|
|
13
|
+
* description: "My endpoint identity group",
|
|
14
|
+
* parent: "NAC Group:NAC:IdentityGroups:User Identity Groups",
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
* ## Import
|
|
19
|
+
*
|
|
20
|
+
* ```sh
|
|
21
|
+
* $ pulumi import ise:UserIdentity/group:Group example "76d24097-41c4-4558-a4d0-a8c07ac08470"
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
export declare class Group extends pulumi.CustomResource {
|
|
25
|
+
/**
|
|
26
|
+
* Get an existing Group resource's state with the given name, ID, and optional extra
|
|
27
|
+
* properties used to qualify the lookup.
|
|
28
|
+
*
|
|
29
|
+
* @param name The _unique_ name of the resulting resource.
|
|
30
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
31
|
+
* @param state Any extra arguments used during the lookup.
|
|
32
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
33
|
+
*/
|
|
34
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: GroupState, opts?: pulumi.CustomResourceOptions): Group;
|
|
35
|
+
/**
|
|
36
|
+
* Returns true if the given object is an instance of Group. This is designed to work even
|
|
37
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
38
|
+
*/
|
|
39
|
+
static isInstance(obj: any): obj is Group;
|
|
40
|
+
/**
|
|
41
|
+
* Description
|
|
42
|
+
*/
|
|
43
|
+
readonly description: pulumi.Output<string | undefined>;
|
|
44
|
+
/**
|
|
45
|
+
* The name of the user identity group
|
|
46
|
+
*/
|
|
47
|
+
readonly name: pulumi.Output<string>;
|
|
48
|
+
/**
|
|
49
|
+
* Parent user identity group, e.g. `NAC Group:NAC:IdentityGroups:User Identity Groups`
|
|
50
|
+
*/
|
|
51
|
+
readonly parent: pulumi.Output<string | undefined>;
|
|
52
|
+
/**
|
|
53
|
+
* Create a Group resource with the given unique name, arguments, and options.
|
|
54
|
+
*
|
|
55
|
+
* @param name The _unique_ name of the resource.
|
|
56
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
57
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
58
|
+
*/
|
|
59
|
+
constructor(name: string, args?: GroupArgs, opts?: pulumi.CustomResourceOptions);
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Input properties used for looking up and filtering Group resources.
|
|
63
|
+
*/
|
|
64
|
+
export interface GroupState {
|
|
65
|
+
/**
|
|
66
|
+
* Description
|
|
67
|
+
*/
|
|
68
|
+
description?: pulumi.Input<string>;
|
|
69
|
+
/**
|
|
70
|
+
* The name of the user identity group
|
|
71
|
+
*/
|
|
72
|
+
name?: pulumi.Input<string>;
|
|
73
|
+
/**
|
|
74
|
+
* Parent user identity group, e.g. `NAC Group:NAC:IdentityGroups:User Identity Groups`
|
|
75
|
+
*/
|
|
76
|
+
parent?: pulumi.Input<string>;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* The set of arguments for constructing a Group resource.
|
|
80
|
+
*/
|
|
81
|
+
export interface GroupArgs {
|
|
82
|
+
/**
|
|
83
|
+
* Description
|
|
84
|
+
*/
|
|
85
|
+
description?: pulumi.Input<string>;
|
|
86
|
+
/**
|
|
87
|
+
* The name of the user identity group
|
|
88
|
+
*/
|
|
89
|
+
name?: pulumi.Input<string>;
|
|
90
|
+
/**
|
|
91
|
+
* Parent user identity group, e.g. `NAC Group:NAC:IdentityGroups:User Identity Groups`
|
|
92
|
+
*/
|
|
93
|
+
parent?: pulumi.Input<string>;
|
|
94
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
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.Group = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* This resource can manage an User Identity Group.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as ise from "@pulumi/ise";
|
|
16
|
+
*
|
|
17
|
+
* const example = new ise.useridentity.Group("example", {
|
|
18
|
+
* name: "Group1",
|
|
19
|
+
* description: "My endpoint identity group",
|
|
20
|
+
* parent: "NAC Group:NAC:IdentityGroups:User Identity Groups",
|
|
21
|
+
* });
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* ## Import
|
|
25
|
+
*
|
|
26
|
+
* ```sh
|
|
27
|
+
* $ pulumi import ise:UserIdentity/group:Group example "76d24097-41c4-4558-a4d0-a8c07ac08470"
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
class Group extends pulumi.CustomResource {
|
|
31
|
+
/**
|
|
32
|
+
* Get an existing Group resource's state with the given name, ID, and optional extra
|
|
33
|
+
* properties used to qualify the lookup.
|
|
34
|
+
*
|
|
35
|
+
* @param name The _unique_ name of the resulting resource.
|
|
36
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
37
|
+
* @param state Any extra arguments used during the lookup.
|
|
38
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
39
|
+
*/
|
|
40
|
+
static get(name, id, state, opts) {
|
|
41
|
+
return new Group(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Returns true if the given object is an instance of Group. This is designed to work even
|
|
45
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
46
|
+
*/
|
|
47
|
+
static isInstance(obj) {
|
|
48
|
+
if (obj === undefined || obj === null) {
|
|
49
|
+
return false;
|
|
50
|
+
}
|
|
51
|
+
return obj['__pulumiType'] === Group.__pulumiType;
|
|
52
|
+
}
|
|
53
|
+
constructor(name, argsOrState, opts) {
|
|
54
|
+
let resourceInputs = {};
|
|
55
|
+
opts = opts || {};
|
|
56
|
+
if (opts.id) {
|
|
57
|
+
const state = argsOrState;
|
|
58
|
+
resourceInputs["description"] = state ? state.description : undefined;
|
|
59
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
60
|
+
resourceInputs["parent"] = state ? state.parent : undefined;
|
|
61
|
+
}
|
|
62
|
+
else {
|
|
63
|
+
const args = argsOrState;
|
|
64
|
+
resourceInputs["description"] = args ? args.description : undefined;
|
|
65
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
66
|
+
resourceInputs["parent"] = args ? args.parent : undefined;
|
|
67
|
+
}
|
|
68
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
69
|
+
super(Group.__pulumiType, name, resourceInputs, opts);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
exports.Group = Group;
|
|
73
|
+
/** @internal */
|
|
74
|
+
Group.__pulumiType = 'ise:UserIdentity/group:Group';
|
|
75
|
+
//# sourceMappingURL=group.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"group.js","sourceRoot":"","sources":["../../useridentity/group.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAa,KAAM,SAAQ,MAAM,CAAC,cAAc;IAC5C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAkB,EAAE,IAAmC;QAChH,OAAO,IAA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GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,KAAK,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC1D,CAAC;;AAjEL,sBAkEC;AApDG,gBAAgB;AACO,kBAAY,GAAG,8BAA8B,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { GetGroupArgs, GetGroupResult, GetGroupOutputArgs } from "./getGroup";
|
|
2
|
+
export declare const getGroup: typeof import("./getGroup").getGroup;
|
|
3
|
+
export declare const getGroupOutput: typeof import("./getGroup").getGroupOutput;
|
|
4
|
+
export { GroupArgs, GroupState } from "./group";
|
|
5
|
+
export type Group = import("./group").Group;
|
|
6
|
+
export declare const Group: typeof import("./group").Group;
|
|
@@ -0,0 +1,25 @@
|
|
|
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.Group = exports.getGroupOutput = exports.getGroup = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
exports.getGroup = null;
|
|
9
|
+
exports.getGroupOutput = null;
|
|
10
|
+
utilities.lazyLoad(exports, ["getGroup", "getGroupOutput"], () => require("./getGroup"));
|
|
11
|
+
exports.Group = null;
|
|
12
|
+
utilities.lazyLoad(exports, ["Group"], () => require("./group"));
|
|
13
|
+
const _module = {
|
|
14
|
+
version: utilities.getVersion(),
|
|
15
|
+
construct: (name, type, urn) => {
|
|
16
|
+
switch (type) {
|
|
17
|
+
case "ise:UserIdentity/group:Group":
|
|
18
|
+
return new exports.Group(name, undefined, { urn });
|
|
19
|
+
default:
|
|
20
|
+
throw new Error(`unknown resource type ${type}`);
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
};
|
|
24
|
+
pulumi.runtime.registerResourceModule("ise", "UserIdentity/group", _module);
|
|
25
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../useridentity/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAI7B,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,KAAK,GAAmC,IAAW,CAAC;AACjE,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC;AAGjE,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,8BAA8B;gBAC/B,OAAO,IAAI,aAAK,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACnD;gBACI,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACxD;IACL,CAAC;CACJ,CAAC;AACF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,KAAK,EAAE,oBAAoB,EAAE,OAAO,CAAC,CAAA"}
|
package/utilities.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
export declare function getEnv(...vars: string[]): string | undefined;
|
|
3
|
+
export declare function getEnvBoolean(...vars: string[]): boolean | undefined;
|
|
4
|
+
export declare function getEnvNumber(...vars: string[]): number | undefined;
|
|
5
|
+
export declare function getVersion(): string;
|
|
6
|
+
export declare function callAsync<T>(tok: string, props: pulumi.Inputs, res?: pulumi.Resource, opts?: {
|
|
7
|
+
property?: string;
|
|
8
|
+
}): Promise<T>;
|
package/utilities.js
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
5
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
6
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
7
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
8
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
9
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
10
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.callAsync = exports.lazyLoad = exports.resourceOptsDefaults = exports.getVersion = exports.getEnvNumber = exports.getEnvBoolean = exports.getEnv = void 0;
|
|
15
|
+
const runtime = require("@pulumi/pulumi/runtime");
|
|
16
|
+
function getEnv(...vars) {
|
|
17
|
+
for (const v of vars) {
|
|
18
|
+
const value = process.env[v];
|
|
19
|
+
if (value) {
|
|
20
|
+
return value;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
return undefined;
|
|
24
|
+
}
|
|
25
|
+
exports.getEnv = getEnv;
|
|
26
|
+
function getEnvBoolean(...vars) {
|
|
27
|
+
const s = getEnv(...vars);
|
|
28
|
+
if (s !== undefined) {
|
|
29
|
+
// NOTE: these values are taken from https://golang.org/src/strconv/atob.go?s=351:391#L1, which is what
|
|
30
|
+
// Terraform uses internally when parsing boolean values.
|
|
31
|
+
if (["1", "t", "T", "true", "TRUE", "True"].find(v => v === s) !== undefined) {
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
if (["0", "f", "F", "false", "FALSE", "False"].find(v => v === s) !== undefined) {
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return undefined;
|
|
39
|
+
}
|
|
40
|
+
exports.getEnvBoolean = getEnvBoolean;
|
|
41
|
+
function getEnvNumber(...vars) {
|
|
42
|
+
const s = getEnv(...vars);
|
|
43
|
+
if (s !== undefined) {
|
|
44
|
+
const f = parseFloat(s);
|
|
45
|
+
if (!isNaN(f)) {
|
|
46
|
+
return f;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
return undefined;
|
|
50
|
+
}
|
|
51
|
+
exports.getEnvNumber = getEnvNumber;
|
|
52
|
+
function getVersion() {
|
|
53
|
+
let version = require('./package.json').version;
|
|
54
|
+
// Node allows for the version to be prefixed by a "v", while semver doesn't.
|
|
55
|
+
// If there is a v, strip it off.
|
|
56
|
+
if (version.indexOf('v') === 0) {
|
|
57
|
+
version = version.slice(1);
|
|
58
|
+
}
|
|
59
|
+
return version;
|
|
60
|
+
}
|
|
61
|
+
exports.getVersion = getVersion;
|
|
62
|
+
/** @internal */
|
|
63
|
+
function resourceOptsDefaults() {
|
|
64
|
+
return { version: getVersion() };
|
|
65
|
+
}
|
|
66
|
+
exports.resourceOptsDefaults = resourceOptsDefaults;
|
|
67
|
+
/** @internal */
|
|
68
|
+
function lazyLoad(exports, props, loadModule) {
|
|
69
|
+
for (let property of props) {
|
|
70
|
+
Object.defineProperty(exports, property, {
|
|
71
|
+
enumerable: true,
|
|
72
|
+
get: function () {
|
|
73
|
+
return loadModule()[property];
|
|
74
|
+
},
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
exports.lazyLoad = lazyLoad;
|
|
79
|
+
function callAsync(tok, props, res, opts) {
|
|
80
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
81
|
+
const o = runtime.call(tok, props, res);
|
|
82
|
+
const value = yield o.promise(true /*withUnknowns*/);
|
|
83
|
+
const isKnown = yield o.isKnown;
|
|
84
|
+
const isSecret = yield o.isSecret;
|
|
85
|
+
const problem = !isKnown ? "an unknown value"
|
|
86
|
+
: isSecret ? "a secret value"
|
|
87
|
+
: undefined;
|
|
88
|
+
// Ingoring o.resources silently. They are typically non-empty, r.f() calls include r as a dependency.
|
|
89
|
+
if (problem) {
|
|
90
|
+
throw new Error(`Plain resource method "${tok}" incorrectly returned ${problem}. ` +
|
|
91
|
+
"This is an error in the provider, please report this to the provider developer.");
|
|
92
|
+
}
|
|
93
|
+
// Extract a single property if requested.
|
|
94
|
+
if (opts && opts.property) {
|
|
95
|
+
return value[opts.property];
|
|
96
|
+
}
|
|
97
|
+
return value;
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
exports.callAsync = callAsync;
|
|
101
|
+
//# sourceMappingURL=utilities.js.map
|
package/utilities.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utilities.js","sourceRoot":"","sources":["../utilities.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;;;;;;;;;;AAGjF,kDAAkD;AAGlD,SAAgB,MAAM,CAAC,GAAG,IAAc;IACpC,KAAK,MAAM,CAAC,IAAI,IAAI,EAAE;QAClB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QAC7B,IAAI,KAAK,EAAE;YACP,OAAO,KAAK,CAAC;SAChB;KACJ;IACD,OAAO,SAAS,CAAC;AACrB,CAAC;AARD,wBAQC;AAED,SAAgB,aAAa,CAAC,GAAG,IAA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