gs2-cdk 1.0.87 → 1.0.89

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.
@@ -6,6 +6,7 @@ export default class OpenIdConnectSetting {
6
6
  private readonly appleTeamId;
7
7
  private readonly appleKeyId;
8
8
  private readonly applePrivateKeyPem;
9
+ private readonly doneEndpointUrl;
9
10
  constructor(configurationPath: string, clientId: string, options?: OpenIdConnectSettingOptions | null);
10
11
  properties(): {
11
12
  [name: string]: any;
@@ -2,17 +2,19 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  class OpenIdConnectSetting {
4
4
  constructor(configurationPath, clientId, options = null) {
5
- var _a, _b, _c, _d;
5
+ var _a, _b, _c, _d, _e;
6
6
  this.clientSecret = null;
7
7
  this.appleTeamId = null;
8
8
  this.appleKeyId = null;
9
9
  this.applePrivateKeyPem = null;
10
+ this.doneEndpointUrl = null;
10
11
  this.configurationPath = configurationPath;
11
12
  this.clientId = clientId;
12
13
  this.clientSecret = (_a = options === null || options === void 0 ? void 0 : options.clientSecret) !== null && _a !== void 0 ? _a : null;
13
14
  this.appleTeamId = (_b = options === null || options === void 0 ? void 0 : options.appleTeamId) !== null && _b !== void 0 ? _b : null;
14
15
  this.appleKeyId = (_c = options === null || options === void 0 ? void 0 : options.appleKeyId) !== null && _c !== void 0 ? _c : null;
15
16
  this.applePrivateKeyPem = (_d = options === null || options === void 0 ? void 0 : options.applePrivateKeyPem) !== null && _d !== void 0 ? _d : null;
17
+ this.doneEndpointUrl = (_e = options === null || options === void 0 ? void 0 : options.doneEndpointUrl) !== null && _e !== void 0 ? _e : null;
16
18
  }
17
19
  properties() {
18
20
  let properties = {};
@@ -34,6 +36,9 @@ class OpenIdConnectSetting {
34
36
  if (this.applePrivateKeyPem != null) {
35
37
  properties["applePrivateKeyPem"] = this.applePrivateKeyPem;
36
38
  }
39
+ if (this.doneEndpointUrl != null) {
40
+ properties["doneEndpointUrl"] = this.doneEndpoint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mCAAI,IAAI,CAAC;QAC9D,IAAI,CAAC,eAAe,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,eAAe,mCAAI,IAAI,CAAC;IAC5D,CAAC;IAEM,UAAU;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,iBAAiB,IAAI,IAAI,EAAE;YAChC,UAAU,CAAC,mBAAmB,CAAC,GAAG,IAAI,CAAC,iBAAiB,CAAC;SAC5D;QACD,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,EAAE;YACvB,UAAU,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC;SAC1C;QACD,IAAI,IAAI,CAAC,YAAY,IAAI,IAAI,EAAE;YAC3B,UAAU,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,YAAY,CAAC;SAClD;QACD,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,EAAE;YAC1B,UAAU,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC;SAChD;QACD,IAAI,IAAI,CAAC,UAAU,IAAI,IAAI,EAAE;YACzB,UAAU,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC;SAC9C;QACD,IAAI,IAAI,CAAC,kBAAkB,IAAI,IAAI,EAAE;YACjC,UAAU,CAAC,oBAAoB,CAAC,GAAG,IAAI,CAAC,kBAAkB,CAAC;SAC9D;QACD,IAAI,IAAI,CAAC,eAAe,IAAI,IAAI,EAAE;YAC9B,UAAU,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAC,eAAe,CAAC;SACxD;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AAnDD,uCAmDC"}
@@ -22,6 +22,7 @@ export default class OpenIdConnectSetting {
22
22
  private readonly appleTeamId: string|null = null;
23
23
  private readonly appleKeyId: string|null = null;
24
24
  private readonly applePrivateKeyPem: string|null = null;
25
+ private readonly doneEndpointUrl: string|null = null;
25
26
 
26
27
  public constructor(
27
28
  configurationPath: string,
@@ -34,6 +35,7 @@ export default class OpenIdConnectSetting {
34
35
  this.appleTeamId = options?.appleTeamId ?? null;
35
36
  this.appleKeyId = options?.appleKeyId ?? null;
36
37
  this.applePrivateKeyPem = options?.applePrivateKeyPem ?? null;
38
+ this.doneEndpointUrl = options?.doneEndpointUrl ?? null;
37
39
  }
38
40
 
39
41
  public properties(
@@ -58,6 +60,9 @@ export default class OpenIdConnectSetting {
58
60
  if (this.applePrivateKeyPem != null) {
59
61
  properties["applePrivateKeyPem"] = this.applePrivateKeyPem;
60
62
  }
63
+ if (this.doneEndpointUrl != null) {
64
+ properties["doneEndpointUrl"] = this.doneEndpointUrl;
65
+ }
61
66
 
62
67
  return properties;
63
68
  }
@@ -3,4 +3,5 @@ export interface OpenIdConnectSettingOptions {
3
3
  appleTeamId?: string | null;
4
4
  appleKeyId?: string | null;
5
5
  applePrivateKeyPem?: string | null;
6
+ doneEndpointUrl?: string | null;
6
7
  }
@@ -19,5 +19,6 @@ export interface OpenIdConnectSettingOptions {
19
19
  appleTeamId?: string|null;
20
20
  appleKeyId?: string|null;
21
21
  applePrivateKeyPem?: string|null;
22
+ doneEndpointUrl?: string|null;
22
23
  }
23
24
 
@@ -7,12 +7,14 @@ export default class Namespace extends CdkResource {
7
7
  private readonly stack;
8
8
  private readonly name;
9
9
  private readonly description;
10
+ private readonly changeNotification;
10
11
  private readonly joinNotification;
11
12
  private readonly leaveNotification;
12
13
  private readonly changeMemberNotification;
13
14
  private readonly receiveRequestNotification;
14
15
  private readonly removeRequestNotification;
15
16
  private readonly createGuildScript;
17
+ private readonly updateGuildScript;
16
18
  private readonly joinGuildScript;
17
19
  private readonly leaveGuildScript;
18
20
  private readonly changeRoleScript;
@@ -22,15 +22,17 @@ const NamespaceRef_1 = tslib_1.__importDefault(require("../ref/NamespaceRef"));
22
22
  const CurrentMasterData_1 = tslib_1.__importDefault(require("./CurrentMasterData"));
23
23
  class Namespace extends model_1.CdkResource {
24
24
  constructor(stack, name, options = null) {
25
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
25
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
26
26
  super("Guild_Namespace_" + name);
27
27
  this.description = null;
28
+ this.changeNotification = null;
28
29
  this.joinNotification = null;
29
30
  this.leaveNotification = null;
30
31
  this.changeMemberNotification = null;
31
32
  this.receiveRequestNotification = null;
32
33
  this.removeRequestNotification = null;
33
34
  this.createGuildScript = null;
35
+ this.updateGuildScript = null;
34
36
  this.joinGuildScript = null;
35
37
  this.leaveGuildScript = null;
36
38
  this.changeRoleScript = null;
@@ -38,16 +40,18 @@ class Namespace extends model_1.CdkResource {
38
40
  this.stack = stack;
39
41
  this.name = name;
40
42
  this.description = (_a = options === null || options === void 0 ? void 0 : options.description) !== null && _a !== void 0 ? _a : null;
41
- this.joinNotification = (_b = options === null || options === void 0 ? void 0 : options.joinNotification) !== null && _b !== void 0 ? _b : null;
42
- this.leaveNotification = (_c = options === null || options === void 0 ? void 0 : options.leaveNotification) !== null && _c !== void 0 ? _c : null;
43
- this.changeMemberNotification = (_d = options === null || options === void 0 ? void 0 : options.changeMemberNotification) !== null && _d !== void 0 ? _d : null;
44
- this.receiveRequestNotification = (_e = options === null || options === void 0 ? void 0 : options.receiveRequestNotification) !== null && _e !== void 0 ? _e : null;
45
- this.removeRequestNotification = (_f = options === null || options === void 0 ? void 0 : options.removeRequestNotification) !== null && _f !== void 0 ? _f : null;
46
- this.createGuildScript = (_g = options === null || options === void 0 ? void 0 : options.createGuildScript) !== null && _g !== void 0 ? _g : null;
47
- this.joinGuildScript = (_h = options === null || options === void 0 ? void 0 : options.joinGuildScript) !== null && _h !== void 0 ? _h : null;
48
- this.leaveGuildScript = (_j = options === null || options === void 0 ? void 0 : options.leaveGuildScript) !== null && _j !== void 0 ? _j : null;
49
- this.changeRoleScript = (_k = options === null || options === void 0 ? void 0 : options.changeRoleScript) !== null && _k !== void 0 ? _k : null;
50
- this.logSetting = (_l = options === null || options === void 0 ? void 0 : options.logSetting) !== null && _l !== void 0 ? _l : null;
43
+ this.changeNotification = (_b = options === null || options === void 0 ? void 0 : options.changeNotification) !== null && _b !== void 0 ? _b : null;
44
+ this.joinNotification = (_c = options === null || options === void 0 ? void 0 : options.joinNotification) !== null && _c !== void 0 ? _c : null;
45
+ this.leaveNotification = (_d = options === null || options === void 0 ? void 0 : options.leaveNotification) !== null && _d !== void 0 ? _d : null;
46
+ this.changeMemberNotification = (_e = options === null || options === void 0 ? void 0 : options.changeMemberNotification) !== null && _e !== void 0 ? _e : null;
47
+ this.receiveRequestNotification = (_f = options === null || options === void 0 ? void 0 : options.receiveRequestNotification) !== null && _f !== void 0 ? _f : null;
48
+ this.removeRequestNotification = (_g = options === null || options === void 0 ? void 0 : options.removeRequestNotification) !== null && _g !== void 0 ? _g : null;
49
+ this.createGuildScript = (_h = options === null || options === void 0 ? void 0 : options.createGuildScript) !== null && _h !== void 0 ? _h : null;
50
+ this.updateGuildScript = (_j = options === null || options === void 0 ? void 0 : options.updateGuildScript) !== null && _j !== void 0 ? _j : null;
51
+ this.joinGuildScript = (_k = options === null || options === void 0 ? void 0 : options.joinGuildScript) !== null && _k !== void 0 ? _k : null;
52
+ this.leaveGuildScript = (_l = options === null || options === void 0 ? void 0 : options.leaveGuildScript) !== null && _l !== void 0 ? _l : null;
53
+ this.changeRoleScript = (_m = options === null || options === void 0 ? void 0 : options.changeRoleScript) !== null && _m !== void 0 ? _m : null;
54
+ this.logSetting = (_o = options === null || options === void 0 ? void 0 : options.logSetting) !== null && _o !== void 0 ? _o : null;
51
55
  stack.addResource(this);
52
56
  }
53
57
  alternateKeys() {
@@ -57,7 +61,7 @@ class Namespace extends model_1.CdkResource {
57
61
  return "GS2::Guild::Namespace";
58
62
  }
59
63
  properties() {
60
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
64
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
61
65
  let properties = {};
62
66
  if (this.name != null) {
63
67
  properties["Name"] = this.name;
@@ -65,35 +69,41 @@ class Namespace extends model_1.CdkResource {
65
69
  if (this.description != null) {
66
70
  properties["Description"] = this.description;
67
71
  }
72
+ if (this.changeNotification != null) {
73
+ properties["ChangeNotification"] = (_a = this.changeNotification) === null || _a === void 0 ? void 0 : _a.properties();
74
+ }
68
75
  if (this.joinNotification != null) {
69
- properties["JoinNotification"] = (_a = this.joinNotification) === null || _a === void 0 ? void 0 : _a.properties();
76
+ properties["JoinNotification"] = (_b = this.joinNotification) === null || _b === void 0 ? void 0 : _b.properties();
70
77
  }
71
78
  if (this.leaveNotification != null) {
72
- properties["LeaveNotification"] = (_b = this.leaveNotification) === null || _b === void 0 ? void 0 : _b.properties();
79
+ properties["LeaveNotification"] = (_c = this.leaveNotification) === null || _c === void 0 ? void 0 : _c.properties();
73
80
  }
74
81
  if (this.changeMemberNotification != null) {
75
- properties["ChangeMemberNotification"] = (_c = this.changeMemberNotification) === null || _c === void 0 ? void 0 : _c.properties();
82
+ properties["ChangeMemberNotification"] = (_d = this.changeMemberNotification) === null || _d === void 0 ? void 0 : _d.properties();
76
83
  }
77
84
  if (this.receiveRequestNotification != null) {
78
- properties["ReceiveRequestNotification"] = (_d = this.receiveRequestNotification) === null || _d === void 0 ? void 0 : _d.properties();
85
+ properties["ReceiveRequestNotification"] = (_e = this.receiveRequestNotification) === null || _e === void 0 ? void 0 : _e.properties();
79
86
  }
80
87
  if (this.removeRequestNotification != null) {
81
- properties["RemoveRequestNotification"] = (_e = this.removeRequestNotification) === null || _e === void 0 ? void 0 : _e.properties();
88
+ properties["RemoveRequestNotification"] = (_f = this.removeRequestNotification) === null || _f === void 0 ? void 0 : _f.properties();
82
89
  }
83
90
  if (this.createGuildScript != null) {
84
- properties["CreateGuildScript"] = (_f = this.createGuildScript) === null || _f === void 0 ? void 0 : _f.properties();
91
+ properties["CreateGuildScript"] = (_g = this.createGuildScript) === null || _g === void 0 ? void 0 : _g.properties();
92
+ }
93
+ if (this.updateGuildScript != null) {
94
+ properties["UpdateGuildScript"] = (_h = this.updateGuildScript) === null || _h === void 0 ? void 0 : _h.properties();
85
95
  }
86
96
  if (this.joinGuildScript != null) {
87
- properties["JoinGuildScript"] = (_g = this.joinGuildScript) === null || _g === void 0 ? void 0 : _g.properties();
97
+ properties["JoinGuildScript"] = (_j = this.joinGuildScript) === null || _j === void 0 ? void 0 : _j.properties();
88
98
  }
89
99
  if (this.leaveGuildScript != null) {
90
- properties["LeaveGuildScript"] = (_h = this.leaveGuildScript) === null || _h === void 0 ? void 0 : _h.properties();
100
+ properties["LeaveGuildScript"] = (_k = this.leaveGuildScript) === null || _k === void 0 ? void 0 : _k.properties();
91
101
  }
92
102
  if (this.changeRoleScript != null) {
93
- properties["ChangeRoleScript"] = (_j = this.changeRoleScript) === null || _j === void 0 ? void 0 : _j.properties();
103
+ properties["ChangeRoleScript"] = (_l = this.changeRoleScript) === null || _l === void 0 ? void 0 : _l.properties();
94
104
  }
95
105
  if (this.logSetting != null) {
96
- properties["LogSetting"] = (_k = this.logSetting) === null || _k === void 0 ? void 0 : _k.properties();
106
+ properties["LogSetting"] = (_m = this.logSetting) === null || _m === void 0 ? void 0 : _m.properties();
97
107
  }
98
108
  return properties;
99
109
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Namespace.js","sourceRoot":"","sources":["Namespace.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4CAAoD;AACpD,0CAAwC;AAKxC,+EAA+C;AAC/C,oFAAoD;AAKpD,MAAqB,SAAU,SAAQ,mBAAW;IAe9C,YACI,KAAY,EACZ,IAAY,EACZ,UAAiC,IAAI;;QAErC,KAAK,CACD,kBAAkB,GAAG,IAAI,CAC5B,CAAC;QAnBW,gBAAW,GAAgB,IAAI,CAAC;QAChC,qBAAgB,GAA6B,IAAI,CAAC;QAClD,sBAAiB,GAA6B,IAAI,CAAC;QACnD,6BAAwB,GAA6B,IAAI,CAAC;QAC1D,+BAA0B,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AAE;YAChC,UAAU,CAAC,mBAAmB,CAAC,GAAG,MAAA,IAAI,CAAC,iBAAiB,0CAAE,UAAU,EACnE,CAAC;SACL;QACD,IAAI,IAAI,CAAC,eAAe,IAAI,IAAI,EAAE;YAC9B,UAAU,CAAC,iBAAiB,CAAC,GAAG,MAAA,IAAI,CAAC,eAAe,0CAAE,UAAU,EAC/D,CAAC;SACL;QACD,IAAI,IAAI,CAAC,gBAAgB,IAAI,IAAI,EAAE;YAC/B,UAAU,CAAC,kBAAkB,CAAC,GAAG,MAAA,IAAI,CAAC,gBAAgB,0CAAE,UAAU,EACjE,CAAC;SACL;QACD,IAAI,IAAI,CAAC,gBAAgB,IAAI,IAAI,EAAE;YAC/B,UAAU,CAAC,kBAAkB,CAAC,GAAG,MAAA,IAAI,CAAC,gBAAgB,0CAAE,UAAU,EACjE,CAAC;SACL;QACD,IAAI,IAAI,CAAC,UAAU,IAAI,IAAI,EAAE;YACzB,UAAU,CAAC,YAAY,CAAC,GAAG,MAAA,IAAI,CAAC,UAAU,0CAAE,UAAU,EACrD,CAAC;SACL;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;IAEM,GAAG;QAEN,OAAO,IAAI,sBAAY,CACnB,IAAI,CAAC,IAAK,CACb,CAAC;IACN,CAAC;IAEM,kBAAkB;QAErB,OAAO,IAAI,cAAO,CACd,IAAI,EACJ,kBAAkB,EAClB,IAAI,CACP,CAAC;IACN,CAAC;IAEM,UAAU,CACb,WAAyB;QAEzB,IAAI,2BAAiB,CACjB,IAAI,CAAC,KAAK,EACV,IAAI,CAAC,IAAI,EACT,WAAW,CACd,CAAC,YAAY,CACV,IAAI,CACP,CAAC;QACF,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AAnJD,4BAmJC"}
@@ -30,12 +30,14 @@ export default class Namespace extends CdkResource {
30
30
  private readonly stack: Stack;
31
31
  private readonly name: string;
32
32
  private readonly description: string|null = null;
33
+ private readonly changeNotification: NotificationSetting|null = null;
33
34
  private readonly joinNotification: NotificationSetting|null = null;
34
35
  private readonly leaveNotification: NotificationSetting|null = null;
35
36
  private readonly changeMemberNotification: NotificationSetting|null = null;
36
37
  private readonly receiveRequestNotification: NotificationSetting|null = null;
37
38
  private readonly removeRequestNotification: NotificationSetting|null = null;
38
39
  private readonly createGuildScript: ScriptSetting|null = null;
40
+ private readonly updateGuildScript: ScriptSetting|null = null;
39
41
  private readonly joinGuildScript: ScriptSetting|null = null;
40
42
  private readonly leaveGuildScript: ScriptSetting|null = null;
41
43
  private readonly changeRoleScript: ScriptSetting|null = null;
@@ -53,12 +55,14 @@ export default class Namespace extends CdkResource {
53
55
  this.stack = stack;
54
56
  this.name = name;
55
57
  this.description = options?.description ?? null;
58
+ this.changeNotification = options?.changeNotification ?? null;
56
59
  this.joinNotification = options?.joinNotification ?? null;
57
60
  this.leaveNotification = options?.leaveNotification ?? null;
58
61
  this.changeMemberNotification = options?.changeMemberNotification ?? null;
59
62
  this.receiveRequestNotification = options?.receiveRequestNotification ?? null;
60
63
  this.removeRequestNotification = options?.removeRequestNotification ?? null;
61
64
  this.createGuildScript = options?.createGuildScript ?? null;
65
+ this.updateGuildScript = options?.updateGuildScript ?? null;
62
66
  this.joinGuildScript = options?.joinGuildScript ?? null;
63
67
  this.leaveGuildScript = options?.leaveGuildScript ?? null;
64
68
  this.changeRoleScript = options?.changeRoleScript ?? null;
@@ -89,6 +93,10 @@ export default class Namespace extends CdkResource {
89
93
  if (this.description != null) {
90
94
  properties["Description"] = this.description;
91
95
  }
96
+ if (this.changeNotification != null) {
97
+ properties["ChangeNotification"] = this.changeNotification?.properties(
98
+ );
99
+ }
92
100
  if (this.joinNotification != null) {
93
101
  properties["JoinNotification"] = this.joinNotification?.properties(
94
102
  );
@@ -113,6 +121,10 @@ export default class Namespace extends CdkResource {
113
121
  properties["CreateGuildScript"] = this.createGuildScript?.properties(
114
122
  );
115
123
  }
124
+ if (this.updateGuildScript != null) {
125
+ properties["UpdateGuildScript"] = this.updateGuildScript?.properties(
126
+ );
127
+ }
116
128
  if (this.joinGuildScript != null) {
117
129
  properties["JoinGuildScript"] = this.joinGuildScript?.properties(
118
130
  );
@@ -3,12 +3,14 @@ import ScriptSetting from "../../../core/model/ScriptSetting";
3
3
  import LogSetting from "../../../core/model/LogSetting";
4
4
  export interface NamespaceOptions {
5
5
  description?: string | null;
6
+ changeNotification?: NotificationSetting | null;
6
7
  joinNotification?: NotificationSetting | null;
7
8
  leaveNotification?: NotificationSetting | null;
8
9
  changeMemberNotification?: NotificationSetting | null;
9
10
  receiveRequestNotification?: NotificationSetting | null;
10
11
  removeRequestNotification?: NotificationSetting | null;
11
12
  createGuildScript?: ScriptSetting | null;
13
+ updateGuildScript?: ScriptSetting | null;
12
14
  joinGuildScript?: ScriptSetting | null;
13
15
  leaveGuildScript?: ScriptSetting | null;
14
16
  changeRoleScript?: ScriptSetting | null;
@@ -19,12 +19,14 @@ import LogSetting from "../../../core/model/LogSetting";
19
19
 
20
20
  export interface NamespaceOptions {
21
21
  description?: string|null;
22
+ changeNotification?: NotificationSetting|null;
22
23
  joinNotification?: NotificationSetting|null;
23
24
  leaveNotification?: NotificationSetting|null;
24
25
  changeMemberNotification?: NotificationSetting|null;
25
26
  receiveRequestNotification?: NotificationSetting|null;
26
27
  removeRequestNotification?: NotificationSetting|null;
27
28
  createGuildScript?: ScriptSetting|null;
29
+ updateGuildScript?: ScriptSetting|null;
28
30
  joinGuildScript?: ScriptSetting|null;
29
31
  leaveGuildScript?: ScriptSetting|null;
30
32
  changeRoleScript?: ScriptSetting|null;
@@ -0,0 +1,14 @@
1
+ import { CdkResource, Stack } from "../../core/model";
2
+ export interface AttachGuardOptions {
3
+ }
4
+ export default class AttachGuard extends CdkResource {
5
+ private stack;
6
+ private userName;
7
+ private clientId;
8
+ private guardNamespaceId;
9
+ constructor(stack: Stack, userName: string, clientId: string, guardNamespaceId: string, options?: AttachGuardOptions | null);
10
+ resourceType(): string;
11
+ properties(): {
12
+ [name: string]: any;
13
+ };
14
+ }
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
4
+ * Reserved.
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License").
7
+ * You may not use this file except in compliance with the License.
8
+ * A copy of the License is located at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * or in the "license" file accompanying this file. This file is distributed
13
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
14
+ * express or implied. See the License for the specific language governing
15
+ * permissions and limitations under the License.
16
+ *
17
+ * deny overwrite
18
+ */
19
+ Object.defineProperty(exports, "__esModule", { value: true });
20
+ const model_1 = require("../../core/model");
21
+ class AttachGuard extends model_1.CdkResource {
22
+ constructor(stack, userName, clientId, guardNamespaceId, options = null) {
23
+ super("Identifier_AttachGuard_" + userName);
24
+ this.stack = stack;
25
+ this.userName = userName;
26
+ this.clientId = clientId;
27
+ this.guardNamespaceId = guardNamespaceId;
28
+ stack.addResource(this);
29
+ }
30
+ resourceType() {
31
+ return "GS2::Identifier::AttachGuard";
32
+ }
33
+ properties() {
34
+ let properties = {};
35
+ if (this.userName != null) {
36
+ properties["UserName"] = this.userName;
37
+ }
38
+ if (this.clientId != null) {
39
+ properties["ClientId"] = this.clientId;
40
+ }
41
+ if (this.guardNamespaceId != null) {
42
+ properties["SecurityPolicyId"] = this.guardNamespaceId;
43
+ }
44
+ return properties;
45
+ }
46
+ }
47
+ exports.default = AttachGuard;
48
+ //# sourceMappingURL=AttachGuard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AttachGuard.js","sourceRoot":"","sources":["AttachGuard.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;AAIH,4CAAoD;AAKpD,MAAqB,WAAY,SAAQ,mBAAW;IAOhD,YACI,KAAY,EACZ,QAAgB,EAChB,QAAgB,EAChB,gBAAwB,EACxB,UAAmC,IAAI;QAEvC,KAAK,CAAC,yBAAyB,GAAG,QAAQ,CAAC,CAAC;QAC5C,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;QAEzC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IAC5B,CAAC;IAEM,YAAY;QACf,OAAO,8BAA8B,CAAC;IAC1C,CAAC;IAEM,UAAU;QACb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAC3C,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,EAAE;YACvB,UAAU,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC;SAC1C;QACD,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,EAAE;YACvB,UAAU,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC;SAC1C;QACD,IAAI,IAAI,CAAC,gBAAgB,IAAI,IAAI,EAAE;YAC/B,UAAU,CAAC,kBAAkB,CAAC,GAAG,IAAI,CAAC,gBAAgB,CAAC;SAC1D;QACD,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AAxCD,8BAwCC"}
@@ -0,0 +1,66 @@
1
+ /*
2
+ * Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
3
+ * Reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License").
6
+ * You may not use this file except in compliance with the License.
7
+ * A copy of the License is located at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * or in the "license" file accompanying this file. This file is distributed
12
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13
+ * express or implied. See the License for the specific language governing
14
+ * permissions and limitations under the License.
15
+ *
16
+ * deny overwrite
17
+ */
18
+
19
+ import core from "../../core";
20
+ import {GetAttr} from "../../core/func";
21
+ import {CdkResource, Stack} from "../../core/model";
22
+
23
+ export interface AttachGuardOptions {
24
+ }
25
+
26
+ export default class AttachGuard extends CdkResource {
27
+
28
+ private stack: Stack;
29
+ private userName: string;
30
+ private clientId: string;
31
+ private guardNamespaceId: string;
32
+
33
+ public constructor(
34
+ stack: Stack,
35
+ userName: string,
36
+ clientId: string,
37
+ guardNamespaceId: string,
38
+ options: AttachGuardOptions|null = null,
39
+ ) {
40
+ super("Identifier_AttachGuard_" + userName);
41
+ this.stack = stack;
42
+ this.userName = userName;
43
+ this.clientId = clientId;
44
+ this.guardNamespaceId = guardNamespaceId;
45
+
46
+ stack.addResource(this);
47
+ }
48
+
49
+ public resourceType(): string {
50
+ return "GS2::Identifier::AttachGuard";
51
+ }
52
+
53
+ public properties(): {[name: string]: any} {
54
+ let properties: {[name: string]: any} = {};
55
+ if (this.userName != null) {
56
+ properties["UserName"] = this.userName;
57
+ }
58
+ if (this.clientId != null) {
59
+ properties["ClientId"] = this.clientId;
60
+ }
61
+ if (this.guardNamespaceId != null) {
62
+ properties["SecurityPolicyId"] = this.guardNamespaceId;
63
+ }
64
+ return properties;
65
+ }
66
+ }
@@ -2,6 +2,7 @@ import { CdkResource, Stack } from "../../core/model";
2
2
  import { GetAttr } from "../../core/func";
3
3
  import IdentifierRef from "../ref/IdentifierRef";
4
4
  import { IdentifierOptions } from "./options/IdentifierOptions";
5
+ import { Namespace } from "../../guard/model";
5
6
  export default class Identifier extends CdkResource {
6
7
  private readonly stack;
7
8
  private readonly userName;
@@ -12,6 +13,8 @@ export default class Identifier extends CdkResource {
12
13
  [name: string]: any;
13
14
  };
14
15
  ref(clientId: string): IdentifierRef;
16
+ attach(guardNamespace: Namespace): Identifier;
17
+ attachGrn(guardNamespaceGrn: string): Identifier;
15
18
  getAttrClientId(): GetAttr;
16
19
  getAttrClientSecret(): GetAttr;
17
20
  }
@@ -13,12 +13,15 @@
13
13
  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
14
14
  * express or implied. See the License for the specific language governing
15
15
  * permissions and limitations under the License.
16
+ *
17
+ * deny overwrite
16
18
  */
17
19
  Object.defineProperty(exports, "__esModule", { value: true });
18
20
  const tslib_1 = require("tslib");
19
21
  const model_1 = require("../../core/model");
20
22
  const func_1 = require("../../core/func");
21
23
  const IdentifierRef_1 = tslib_1.__importDefault(require("../ref/IdentifierRef"));
24
+ const AttachSecurityPolicy_1 = tslib_1.__importDefault(require("./AttachSecurityPolicy"));
22
25
  class Identifier extends model_1.CdkResource {
23
26
  constructor(stack, userName, options = null) {
24
27
  super("Identifier_Identifier_" + userName);
@@ -42,6 +45,14 @@ class Identifier extends model_1.CdkResource {
42
45
  ref(clientId) {
43
46
  return new IdentifierRef_1.default(this.userName, clientId);
44
47
  }
48
+ attach(guardNamespace) {
49
+ new AttachSecurityPolicy_1.default(this.stack, this.userName, this.getAttrClientId().str(), guardNamespace.getAttrNamespaceId().str()).addDependsOn(this).addDependsOn(guardNamespace);
50
+ return this;
51
+ }
52
+ attachGrn(guardNamespaceGrn) {
53
+ new AttachSecurityPolicy_1.default(this.stack, this.userName, this.getAttrClientId().str(), guardNamespaceGrn).addDependsOn(this);
54
+ return this;
55
+ }
45
56
  getAttrClientId() {
46
57
  return new func_1.GetAttr(this, "Item.ClientId", null);
47
58
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Identifier.js","sourceRoot":"","sources":["Identifier.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4CAAoD;AACpD,0CAAwC;AAExC,iFAAiD;AAIjD,MAAqB,UAAW,SAAQ,mBAAW;IAI/C,YACI,KAAY,EACZ,QAAgB,EAChB,UAAkC,IAAI;QAEtC,KAAK,CACD,wBAAwB,GAAG,QAAQ,CACtC,CAAC;QAEF,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,KAAK,CAAC,WAAW,CACb,IAAI,CACP,CAA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I,IAAI,CAAC,QAAQ,IAAI,IAAI,EAAE;YACvB,UAAU,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC;SAC1C;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;IAEM,GAAG,CACN,QAAgB;QAEhB,OAAO,IAAI,uBAAa,CACpB,IAAI,CAAC,QAAQ,EACb,QAAS,CACZ,CAAC;IACN,CAAC;IAEM,MAAM,CACT,cAAyB;QAEzB,IAAI,8BAAoB,CACpB,IAAI,CAAC,KAAK,EACV,IAAI,CAAC,QAAQ,EACb,IAAI,CAAC,eAAe,EAAE,CAAC,GAAG,EAAE,EAC5B,cAAc,CAAC,kBAAkB,EAChC,CAAC,GAAG,EACJ,CACJ,CAAC,YAAY,CACV,IAAI,CACP,CAAC,YAAY,CACV,cAAc,CACjB,CAAC;QAEF,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,SAAS,CACZ,iBAAyB;QAEzB,IAAI,8BAAoB,CACpB,IAAI,CAAC,KAAK,EACV,IAAI,CAAC,QAAQ,EACb,IAAI,CAAC,eAAe,EAAE,CAAC,GAAG,EAAE,EAC5B,iBAAiB,CACpB,CAAC,YAAY,CACV,IAAI,CACP,CAAC;QAEF,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,eAAe;QAElB,OAAO,IAAI,cAAO,CACd,IAAI,EACJ,eAAe,EACf,IAAI,CACP,CAAC;IACN,CAAC;IAGM,mBAAmB;QAEtB,OAAO,IAAI,cAAO,CACd,IAAI,EACJ,cAAc,EACd,IAAI,CACP,CAAC;IACN,CAAC;CACJ;AAvGD,6BAuGC"}
@@ -12,6 +12,8 @@
12
12
  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13
13
  * express or implied. See the License for the specific language governing
14
14
  * permissions and limitations under the License.
15
+ *
16
+ * deny overwrite
15
17
  */
16
18
 
17
19
  import {CdkResource, Stack} from "../../core/model";
@@ -20,6 +22,9 @@ import {GetAttr} from "../../core/func";
20
22
  import IdentifierRef from "../ref/IdentifierRef";
21
23
 
22
24
  import { IdentifierOptions } from "./options/IdentifierOptions";
25
+ import SecurityPolicy from "./SecurityPolicy";
26
+ import AttachSecurityPolicy from "./AttachSecurityPolicy";
27
+ import {Namespace} from "../../guard/model";
23
28
 
24
29
  export default class Identifier extends CdkResource {
25
30
  private readonly stack: Stack;
@@ -72,6 +77,40 @@ export default class Identifier extends CdkResource {
72
77
  );
73
78
  }
74
79
 
80
+ public attach(
81
+ guardNamespace: Namespace,
82
+ ): Identifier {
83
+ new AttachSecurityPolicy(
84
+ this.stack,
85
+ this.userName,
86
+ this.getAttrClientId().str(),
87
+ guardNamespace.getAttrNamespaceId(
88
+ ).str(
89
+ ),
90
+ ).addDependsOn(
91
+ this,
92
+ ).addDependsOn(
93
+ guardNamespace,
94
+ );
95
+
96
+ return this;
97
+ }
98
+
99
+ public attachGrn(
100
+ guardNamespaceGrn: string,
101
+ ): Identifier {
102
+ new AttachSecurityPolicy(
103
+ this.stack,
104
+ this.userName,
105
+ this.getAttrClientId().str(),
106
+ guardNamespaceGrn,
107
+ ).addDependsOn(
108
+ this,
109
+ );
110
+
111
+ return this;
112
+ }
113
+
75
114
  public getAttrClientId(
76
115
  ): GetAttr {
77
116
  return new GetAttr(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gs2-cdk",
3
- "version": "1.0.87",
3
+ "version": "1.0.89",
4
4
  "scripts": {
5
5
  "build": "tsc",
6
6
  "prepublishOnly": "npm run build"