@aws-sdk/client-cloudformation 3.345.0 → 3.347.0

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.
Files changed (93) hide show
  1. package/README.md +39 -20
  2. package/dist-cjs/CloudFormation.js +6 -0
  3. package/dist-cjs/commands/ActivateOrganizationsAccessCommand.js +46 -0
  4. package/dist-cjs/commands/DeactivateOrganizationsAccessCommand.js +46 -0
  5. package/dist-cjs/commands/DescribeOrganizationsAccessCommand.js +46 -0
  6. package/dist-cjs/commands/index.js +3 -0
  7. package/dist-cjs/models/models_0.js +35 -30
  8. package/dist-cjs/protocols/Aws_query.js +174 -3
  9. package/dist-es/CloudFormation.js +6 -0
  10. package/dist-es/commands/ActivateOrganizationsAccessCommand.js +42 -0
  11. package/dist-es/commands/DeactivateOrganizationsAccessCommand.js +42 -0
  12. package/dist-es/commands/DescribeOrganizationsAccessCommand.js +42 -0
  13. package/dist-es/commands/index.js +3 -0
  14. package/dist-es/models/models_0.js +31 -26
  15. package/dist-es/protocols/Aws_query.js +165 -0
  16. package/dist-types/CloudFormation.d.ts +29 -13
  17. package/dist-types/CloudFormationClient.d.ts +13 -15
  18. package/dist-types/commands/ActivateOrganizationsAccessCommand.d.ts +77 -0
  19. package/dist-types/commands/ActivateTypeCommand.d.ts +6 -6
  20. package/dist-types/commands/BatchDescribeTypeConfigurationsCommand.d.ts +3 -3
  21. package/dist-types/commands/CancelUpdateStackCommand.d.ts +2 -3
  22. package/dist-types/commands/ContinueUpdateRollbackCommand.d.ts +8 -9
  23. package/dist-types/commands/CreateChangeSetCommand.d.ts +19 -22
  24. package/dist-types/commands/CreateStackCommand.d.ts +4 -5
  25. package/dist-types/commands/CreateStackInstancesCommand.d.ts +9 -10
  26. package/dist-types/commands/CreateStackSetCommand.d.ts +2 -2
  27. package/dist-types/commands/DeactivateOrganizationsAccessCommand.d.ts +77 -0
  28. package/dist-types/commands/DeactivateTypeCommand.d.ts +4 -4
  29. package/dist-types/commands/DeleteChangeSetCommand.d.ts +8 -9
  30. package/dist-types/commands/DeleteStackCommand.d.ts +2 -2
  31. package/dist-types/commands/DeleteStackInstancesCommand.d.ts +3 -4
  32. package/dist-types/commands/DeleteStackSetCommand.d.ts +6 -7
  33. package/dist-types/commands/DeregisterTypeCommand.d.ts +9 -9
  34. package/dist-types/commands/DescribeAccountLimitsCommand.d.ts +1 -2
  35. package/dist-types/commands/DescribeChangeSetCommand.d.ts +4 -3
  36. package/dist-types/commands/DescribeChangeSetHooksCommand.d.ts +2 -2
  37. package/dist-types/commands/DescribeOrganizationsAccessCommand.d.ts +82 -0
  38. package/dist-types/commands/DescribePublisherCommand.d.ts +5 -4
  39. package/dist-types/commands/DescribeStackDriftDetectionStatusCommand.d.ts +10 -11
  40. package/dist-types/commands/DescribeStackEventsCommand.d.ts +4 -4
  41. package/dist-types/commands/DescribeStackInstanceCommand.d.ts +3 -2
  42. package/dist-types/commands/DescribeStackResourceCommand.d.ts +1 -1
  43. package/dist-types/commands/DescribeStackResourceDriftsCommand.d.ts +9 -8
  44. package/dist-types/commands/DescribeStackResourcesCommand.d.ts +10 -11
  45. package/dist-types/commands/DescribeStackSetCommand.d.ts +1 -1
  46. package/dist-types/commands/DescribeStackSetOperationCommand.d.ts +1 -1
  47. package/dist-types/commands/DescribeStacksCommand.d.ts +1 -1
  48. package/dist-types/commands/DescribeTypeCommand.d.ts +2 -2
  49. package/dist-types/commands/DescribeTypeRegistrationCommand.d.ts +3 -3
  50. package/dist-types/commands/DetectStackDriftCommand.d.ts +17 -17
  51. package/dist-types/commands/DetectStackResourceDriftCommand.d.ts +10 -9
  52. package/dist-types/commands/DetectStackSetDriftCommand.d.ts +21 -28
  53. package/dist-types/commands/EstimateTemplateCostCommand.d.ts +2 -2
  54. package/dist-types/commands/ExecuteChangeSetCommand.d.ts +13 -15
  55. package/dist-types/commands/GetStackPolicyCommand.d.ts +1 -1
  56. package/dist-types/commands/GetTemplateCommand.d.ts +5 -5
  57. package/dist-types/commands/GetTemplateSummaryCommand.d.ts +7 -8
  58. package/dist-types/commands/ImportStacksToStackSetCommand.d.ts +9 -17
  59. package/dist-types/commands/ListChangeSetsCommand.d.ts +1 -1
  60. package/dist-types/commands/ListExportsCommand.d.ts +4 -4
  61. package/dist-types/commands/ListImportsCommand.d.ts +2 -2
  62. package/dist-types/commands/ListStackInstancesCommand.d.ts +3 -2
  63. package/dist-types/commands/ListStackResourcesCommand.d.ts +1 -1
  64. package/dist-types/commands/ListStackSetsCommand.d.ts +8 -10
  65. package/dist-types/commands/ListStacksCommand.d.ts +3 -4
  66. package/dist-types/commands/PublishTypeCommand.d.ts +3 -2
  67. package/dist-types/commands/RecordHandlerProgressCommand.d.ts +4 -4
  68. package/dist-types/commands/RegisterPublisherCommand.d.ts +5 -5
  69. package/dist-types/commands/RegisterTypeCommand.d.ts +11 -11
  70. package/dist-types/commands/RollbackStackCommand.d.ts +6 -6
  71. package/dist-types/commands/SetTypeConfigurationCommand.d.ts +7 -8
  72. package/dist-types/commands/SetTypeDefaultVersionCommand.d.ts +1 -1
  73. package/dist-types/commands/SignalResourceCommand.d.ts +6 -6
  74. package/dist-types/commands/StopStackSetOperationCommand.d.ts +2 -3
  75. package/dist-types/commands/TestTypeCommand.d.ts +11 -10
  76. package/dist-types/commands/UpdateStackCommand.d.ts +4 -5
  77. package/dist-types/commands/UpdateStackInstancesCommand.d.ts +15 -18
  78. package/dist-types/commands/UpdateStackSetCommand.d.ts +6 -10
  79. package/dist-types/commands/UpdateTerminationProtectionCommand.d.ts +6 -6
  80. package/dist-types/commands/ValidateTemplateCommand.d.ts +2 -2
  81. package/dist-types/commands/index.d.ts +3 -0
  82. package/dist-types/index.d.ts +8 -13
  83. package/dist-types/models/models_0.d.ts +2198 -2448
  84. package/dist-types/protocols/Aws_query.d.ts +27 -0
  85. package/dist-types/ts3.4/CloudFormation.d.ts +51 -0
  86. package/dist-types/ts3.4/CloudFormationClient.d.ts +18 -0
  87. package/dist-types/ts3.4/commands/ActivateOrganizationsAccessCommand.d.ts +42 -0
  88. package/dist-types/ts3.4/commands/DeactivateOrganizationsAccessCommand.d.ts +42 -0
  89. package/dist-types/ts3.4/commands/DescribeOrganizationsAccessCommand.d.ts +42 -0
  90. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  91. package/dist-types/ts3.4/models/models_0.d.ts +33 -16
  92. package/dist-types/ts3.4/protocols/Aws_query.d.ts +36 -0
  93. package/package.json +29 -29
@@ -1,14 +1,25 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.se_ListTypeVersionsCommand = exports.se_ListTypesCommand = exports.se_ListTypeRegistrationsCommand = exports.se_ListStackSetsCommand = exports.se_ListStackSetOperationsCommand = exports.se_ListStackSetOperationResultsCommand = exports.se_ListStacksCommand = exports.se_ListStackResourcesCommand = exports.se_ListStackInstancesCommand = exports.se_ListImportsCommand = exports.se_ListExportsCommand = exports.se_ListChangeSetsCommand = exports.se_ImportStacksToStackSetCommand = exports.se_GetTemplateSummaryCommand = exports.se_GetTemplateCommand = exports.se_GetStackPolicyCommand = exports.se_ExecuteChangeSetCommand = exports.se_EstimateTemplateCostCommand = exports.se_DetectStackSetDriftCommand = exports.se_DetectStackResourceDriftCommand = exports.se_DetectStackDriftCommand = exports.se_DescribeTypeRegistrationCommand = exports.se_DescribeTypeCommand = exports.se_DescribeStackSetOperationCommand = exports.se_DescribeStackSetCommand = exports.se_DescribeStacksCommand = exports.se_DescribeStackResourcesCommand = exports.se_DescribeStackResourceDriftsCommand = exports.se_DescribeStackResourceCommand = exports.se_DescribeStackInstanceCommand = exports.se_DescribeStackEventsCommand = exports.se_DescribeStackDriftDetectionStatusCommand = exports.se_DescribePublisherCommand = exports.se_DescribeChangeSetHooksCommand = exports.se_DescribeChangeSetCommand = exports.se_DescribeAccountLimitsCommand = exports.se_DeregisterTypeCommand = exports.se_DeleteStackSetCommand = exports.se_DeleteStackInstancesCommand = exports.se_DeleteStackCommand = exports.se_DeleteChangeSetCommand = exports.se_DeactivateTypeCommand = exports.se_CreateStackSetCommand = exports.se_CreateStackInstancesCommand = exports.se_CreateStackCommand = exports.se_CreateChangeSetCommand = exports.se_ContinueUpdateRollbackCommand = exports.se_CancelUpdateStackCommand = exports.se_BatchDescribeTypeConfigurationsCommand = exports.se_ActivateTypeCommand = void 0;
4
- exports.de_ExecuteChangeSetCommand = exports.de_EstimateTemplateCostCommand = exports.de_DetectStackSetDriftCommand = exports.de_DetectStackResourceDriftCommand = exports.de_DetectStackDriftCommand = exports.de_DescribeTypeRegistrationCommand = exports.de_DescribeTypeCommand = exports.de_DescribeStackSetOperationCommand = exports.de_DescribeStackSetCommand = exports.de_DescribeStacksCommand = exports.de_DescribeStackResourcesCommand = exports.de_DescribeStackResourceDriftsCommand = exports.de_DescribeStackResourceCommand = exports.de_DescribeStackInstanceCommand = exports.de_DescribeStackEventsCommand = exports.de_DescribeStackDriftDetectionStatusCommand = exports.de_DescribePublisherCommand = exports.de_DescribeChangeSetHooksCommand = exports.de_DescribeChangeSetCommand = exports.de_DescribeAccountLimitsCommand = exports.de_DeregisterTypeCommand = exports.de_DeleteStackSetCommand = exports.de_DeleteStackInstancesCommand = exports.de_DeleteStackCommand = exports.de_DeleteChangeSetCommand = exports.de_DeactivateTypeCommand = exports.de_CreateStackSetCommand = exports.de_CreateStackInstancesCommand = exports.de_CreateStackCommand = exports.de_CreateChangeSetCommand = exports.de_ContinueUpdateRollbackCommand = exports.de_CancelUpdateStackCommand = exports.de_BatchDescribeTypeConfigurationsCommand = exports.de_ActivateTypeCommand = exports.se_ValidateTemplateCommand = exports.se_UpdateTerminationProtectionCommand = exports.se_UpdateStackSetCommand = exports.se_UpdateStackInstancesCommand = exports.se_UpdateStackCommand = exports.se_TestTypeCommand = exports.se_StopStackSetOperationCommand = exports.se_SignalResourceCommand = exports.se_SetTypeDefaultVersionCommand = exports.se_SetTypeConfigurationCommand = exports.se_SetStackPolicyCommand = exports.se_RollbackStackCommand = exports.se_RegisterTypeCommand = exports.se_RegisterPublisherCommand = exports.se_RecordHandlerProgressCommand = exports.se_PublishTypeCommand = void 0;
5
- exports.de_ValidateTemplateCommand = exports.de_UpdateTerminationProtectionCommand = exports.de_UpdateStackSetCommand = exports.de_UpdateStackInstancesCommand = exports.de_UpdateStackCommand = exports.de_TestTypeCommand = exports.de_StopStackSetOperationCommand = exports.de_SignalResourceCommand = exports.de_SetTypeDefaultVersionCommand = exports.de_SetTypeConfigurationCommand = exports.de_SetStackPolicyCommand = exports.de_RollbackStackCommand = exports.de_RegisterTypeCommand = exports.de_RegisterPublisherCommand = exports.de_RecordHandlerProgressCommand = exports.de_PublishTypeCommand = exports.de_ListTypeVersionsCommand = exports.de_ListTypesCommand = exports.de_ListTypeRegistrationsCommand = exports.de_ListStackSetsCommand = exports.de_ListStackSetOperationsCommand = exports.de_ListStackSetOperationResultsCommand = exports.de_ListStacksCommand = exports.de_ListStackResourcesCommand = exports.de_ListStackInstancesCommand = exports.de_ListImportsCommand = exports.de_ListExportsCommand = exports.de_ListChangeSetsCommand = exports.de_ImportStacksToStackSetCommand = exports.de_GetTemplateSummaryCommand = exports.de_GetTemplateCommand = exports.de_GetStackPolicyCommand = void 0;
3
+ exports.se_ListStackSetsCommand = exports.se_ListStackSetOperationsCommand = exports.se_ListStackSetOperationResultsCommand = exports.se_ListStacksCommand = exports.se_ListStackResourcesCommand = exports.se_ListStackInstancesCommand = exports.se_ListImportsCommand = exports.se_ListExportsCommand = exports.se_ListChangeSetsCommand = exports.se_ImportStacksToStackSetCommand = exports.se_GetTemplateSummaryCommand = exports.se_GetTemplateCommand = exports.se_GetStackPolicyCommand = exports.se_ExecuteChangeSetCommand = exports.se_EstimateTemplateCostCommand = exports.se_DetectStackSetDriftCommand = exports.se_DetectStackResourceDriftCommand = exports.se_DetectStackDriftCommand = exports.se_DescribeTypeRegistrationCommand = exports.se_DescribeTypeCommand = exports.se_DescribeStackSetOperationCommand = exports.se_DescribeStackSetCommand = exports.se_DescribeStacksCommand = exports.se_DescribeStackResourcesCommand = exports.se_DescribeStackResourceDriftsCommand = exports.se_DescribeStackResourceCommand = exports.se_DescribeStackInstanceCommand = exports.se_DescribeStackEventsCommand = exports.se_DescribeStackDriftDetectionStatusCommand = exports.se_DescribePublisherCommand = exports.se_DescribeOrganizationsAccessCommand = exports.se_DescribeChangeSetHooksCommand = exports.se_DescribeChangeSetCommand = exports.se_DescribeAccountLimitsCommand = exports.se_DeregisterTypeCommand = exports.se_DeleteStackSetCommand = exports.se_DeleteStackInstancesCommand = exports.se_DeleteStackCommand = exports.se_DeleteChangeSetCommand = exports.se_DeactivateTypeCommand = exports.se_DeactivateOrganizationsAccessCommand = exports.se_CreateStackSetCommand = exports.se_CreateStackInstancesCommand = exports.se_CreateStackCommand = exports.se_CreateChangeSetCommand = exports.se_ContinueUpdateRollbackCommand = exports.se_CancelUpdateStackCommand = exports.se_BatchDescribeTypeConfigurationsCommand = exports.se_ActivateTypeCommand = exports.se_ActivateOrganizationsAccessCommand = void 0;
4
+ exports.de_DescribeTypeCommand = exports.de_DescribeStackSetOperationCommand = exports.de_DescribeStackSetCommand = exports.de_DescribeStacksCommand = exports.de_DescribeStackResourcesCommand = exports.de_DescribeStackResourceDriftsCommand = exports.de_DescribeStackResourceCommand = exports.de_DescribeStackInstanceCommand = exports.de_DescribeStackEventsCommand = exports.de_DescribeStackDriftDetectionStatusCommand = exports.de_DescribePublisherCommand = exports.de_DescribeOrganizationsAccessCommand = exports.de_DescribeChangeSetHooksCommand = exports.de_DescribeChangeSetCommand = exports.de_DescribeAccountLimitsCommand = exports.de_DeregisterTypeCommand = exports.de_DeleteStackSetCommand = exports.de_DeleteStackInstancesCommand = exports.de_DeleteStackCommand = exports.de_DeleteChangeSetCommand = exports.de_DeactivateTypeCommand = exports.de_DeactivateOrganizationsAccessCommand = exports.de_CreateStackSetCommand = exports.de_CreateStackInstancesCommand = exports.de_CreateStackCommand = exports.de_CreateChangeSetCommand = exports.de_ContinueUpdateRollbackCommand = exports.de_CancelUpdateStackCommand = exports.de_BatchDescribeTypeConfigurationsCommand = exports.de_ActivateTypeCommand = exports.de_ActivateOrganizationsAccessCommand = exports.se_ValidateTemplateCommand = exports.se_UpdateTerminationProtectionCommand = exports.se_UpdateStackSetCommand = exports.se_UpdateStackInstancesCommand = exports.se_UpdateStackCommand = exports.se_TestTypeCommand = exports.se_StopStackSetOperationCommand = exports.se_SignalResourceCommand = exports.se_SetTypeDefaultVersionCommand = exports.se_SetTypeConfigurationCommand = exports.se_SetStackPolicyCommand = exports.se_RollbackStackCommand = exports.se_RegisterTypeCommand = exports.se_RegisterPublisherCommand = exports.se_RecordHandlerProgressCommand = exports.se_PublishTypeCommand = exports.se_ListTypeVersionsCommand = exports.se_ListTypesCommand = exports.se_ListTypeRegistrationsCommand = void 0;
5
+ exports.de_ValidateTemplateCommand = exports.de_UpdateTerminationProtectionCommand = exports.de_UpdateStackSetCommand = exports.de_UpdateStackInstancesCommand = exports.de_UpdateStackCommand = exports.de_TestTypeCommand = exports.de_StopStackSetOperationCommand = exports.de_SignalResourceCommand = exports.de_SetTypeDefaultVersionCommand = exports.de_SetTypeConfigurationCommand = exports.de_SetStackPolicyCommand = exports.de_RollbackStackCommand = exports.de_RegisterTypeCommand = exports.de_RegisterPublisherCommand = exports.de_RecordHandlerProgressCommand = exports.de_PublishTypeCommand = exports.de_ListTypeVersionsCommand = exports.de_ListTypesCommand = exports.de_ListTypeRegistrationsCommand = exports.de_ListStackSetsCommand = exports.de_ListStackSetOperationsCommand = exports.de_ListStackSetOperationResultsCommand = exports.de_ListStacksCommand = exports.de_ListStackResourcesCommand = exports.de_ListStackInstancesCommand = exports.de_ListImportsCommand = exports.de_ListExportsCommand = exports.de_ListChangeSetsCommand = exports.de_ImportStacksToStackSetCommand = exports.de_GetTemplateSummaryCommand = exports.de_GetTemplateCommand = exports.de_GetStackPolicyCommand = exports.de_ExecuteChangeSetCommand = exports.de_EstimateTemplateCostCommand = exports.de_DetectStackSetDriftCommand = exports.de_DetectStackResourceDriftCommand = exports.de_DetectStackDriftCommand = exports.de_DescribeTypeRegistrationCommand = void 0;
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const protocol_http_1 = require("@smithy/protocol-http");
8
8
  const fast_xml_parser_1 = require("fast-xml-parser");
9
9
  const uuid_1 = require("uuid");
10
10
  const CloudFormationServiceException_1 = require("../models/CloudFormationServiceException");
11
11
  const models_0_1 = require("../models/models_0");
12
+ const se_ActivateOrganizationsAccessCommand = async (input, context) => {
13
+ const headers = SHARED_HEADERS;
14
+ let body;
15
+ body = buildFormUrlencodedString({
16
+ ...se_ActivateOrganizationsAccessInput(input, context),
17
+ Action: "ActivateOrganizationsAccess",
18
+ Version: "2010-05-15",
19
+ });
20
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
21
+ };
22
+ exports.se_ActivateOrganizationsAccessCommand = se_ActivateOrganizationsAccessCommand;
12
23
  const se_ActivateTypeCommand = async (input, context) => {
13
24
  const headers = SHARED_HEADERS;
14
25
  let body;
@@ -97,6 +108,17 @@ const se_CreateStackSetCommand = async (input, context) => {
97
108
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
98
109
  };
99
110
  exports.se_CreateStackSetCommand = se_CreateStackSetCommand;
111
+ const se_DeactivateOrganizationsAccessCommand = async (input, context) => {
112
+ const headers = SHARED_HEADERS;
113
+ let body;
114
+ body = buildFormUrlencodedString({
115
+ ...se_DeactivateOrganizationsAccessInput(input, context),
116
+ Action: "DeactivateOrganizationsAccess",
117
+ Version: "2010-05-15",
118
+ });
119
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
120
+ };
121
+ exports.se_DeactivateOrganizationsAccessCommand = se_DeactivateOrganizationsAccessCommand;
100
122
  const se_DeactivateTypeCommand = async (input, context) => {
101
123
  const headers = SHARED_HEADERS;
102
124
  let body;
@@ -196,6 +218,17 @@ const se_DescribeChangeSetHooksCommand = async (input, context) => {
196
218
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
197
219
  };
198
220
  exports.se_DescribeChangeSetHooksCommand = se_DescribeChangeSetHooksCommand;
221
+ const se_DescribeOrganizationsAccessCommand = async (input, context) => {
222
+ const headers = SHARED_HEADERS;
223
+ let body;
224
+ body = buildFormUrlencodedString({
225
+ ...se_DescribeOrganizationsAccessInput(input, context),
226
+ Action: "DescribeOrganizationsAccess",
227
+ Version: "2010-05-15",
228
+ });
229
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
230
+ };
231
+ exports.se_DescribeOrganizationsAccessCommand = se_DescribeOrganizationsAccessCommand;
199
232
  const se_DescribePublisherCommand = async (input, context) => {
200
233
  const headers = SHARED_HEADERS;
201
234
  let body;
@@ -735,6 +768,42 @@ const se_ValidateTemplateCommand = async (input, context) => {
735
768
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
736
769
  };
737
770
  exports.se_ValidateTemplateCommand = se_ValidateTemplateCommand;
771
+ const de_ActivateOrganizationsAccessCommand = async (output, context) => {
772
+ if (output.statusCode >= 300) {
773
+ return de_ActivateOrganizationsAccessCommandError(output, context);
774
+ }
775
+ const data = await parseBody(output.body, context);
776
+ let contents = {};
777
+ contents = de_ActivateOrganizationsAccessOutput(data.ActivateOrganizationsAccessResult, context);
778
+ const response = {
779
+ $metadata: deserializeMetadata(output),
780
+ ...contents,
781
+ };
782
+ return response;
783
+ };
784
+ exports.de_ActivateOrganizationsAccessCommand = de_ActivateOrganizationsAccessCommand;
785
+ const de_ActivateOrganizationsAccessCommandError = async (output, context) => {
786
+ const parsedOutput = {
787
+ ...output,
788
+ body: await parseErrorBody(output.body, context),
789
+ };
790
+ const errorCode = loadQueryErrorCode(output, parsedOutput.body);
791
+ switch (errorCode) {
792
+ case "InvalidOperationException":
793
+ case "com.amazonaws.cloudformation#InvalidOperationException":
794
+ throw await de_InvalidOperationExceptionRes(parsedOutput, context);
795
+ case "OperationNotFoundException":
796
+ case "com.amazonaws.cloudformation#OperationNotFoundException":
797
+ throw await de_OperationNotFoundExceptionRes(parsedOutput, context);
798
+ default:
799
+ const parsedBody = parsedOutput.body;
800
+ return throwDefaultError({
801
+ output,
802
+ parsedBody: parsedBody.Error,
803
+ errorCode,
804
+ });
805
+ }
806
+ };
738
807
  const de_ActivateTypeCommand = async (output, context) => {
739
808
  if (output.statusCode >= 300) {
740
809
  return de_ActivateTypeCommandError(output, context);
@@ -1038,6 +1107,42 @@ const de_CreateStackSetCommandError = async (output, context) => {
1038
1107
  });
1039
1108
  }
1040
1109
  };
1110
+ const de_DeactivateOrganizationsAccessCommand = async (output, context) => {
1111
+ if (output.statusCode >= 300) {
1112
+ return de_DeactivateOrganizationsAccessCommandError(output, context);
1113
+ }
1114
+ const data = await parseBody(output.body, context);
1115
+ let contents = {};
1116
+ contents = de_DeactivateOrganizationsAccessOutput(data.DeactivateOrganizationsAccessResult, context);
1117
+ const response = {
1118
+ $metadata: deserializeMetadata(output),
1119
+ ...contents,
1120
+ };
1121
+ return response;
1122
+ };
1123
+ exports.de_DeactivateOrganizationsAccessCommand = de_DeactivateOrganizationsAccessCommand;
1124
+ const de_DeactivateOrganizationsAccessCommandError = async (output, context) => {
1125
+ const parsedOutput = {
1126
+ ...output,
1127
+ body: await parseErrorBody(output.body, context),
1128
+ };
1129
+ const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1130
+ switch (errorCode) {
1131
+ case "InvalidOperationException":
1132
+ case "com.amazonaws.cloudformation#InvalidOperationException":
1133
+ throw await de_InvalidOperationExceptionRes(parsedOutput, context);
1134
+ case "OperationNotFoundException":
1135
+ case "com.amazonaws.cloudformation#OperationNotFoundException":
1136
+ throw await de_OperationNotFoundExceptionRes(parsedOutput, context);
1137
+ default:
1138
+ const parsedBody = parsedOutput.body;
1139
+ return throwDefaultError({
1140
+ output,
1141
+ parsedBody: parsedBody.Error,
1142
+ errorCode,
1143
+ });
1144
+ }
1145
+ };
1041
1146
  const de_DeactivateTypeCommand = async (output, context) => {
1042
1147
  if (output.statusCode >= 300) {
1043
1148
  return de_DeactivateTypeCommandError(output, context);
@@ -1347,6 +1452,42 @@ const de_DescribeChangeSetHooksCommandError = async (output, context) => {
1347
1452
  });
1348
1453
  }
1349
1454
  };
1455
+ const de_DescribeOrganizationsAccessCommand = async (output, context) => {
1456
+ if (output.statusCode >= 300) {
1457
+ return de_DescribeOrganizationsAccessCommandError(output, context);
1458
+ }
1459
+ const data = await parseBody(output.body, context);
1460
+ let contents = {};
1461
+ contents = de_DescribeOrganizationsAccessOutput(data.DescribeOrganizationsAccessResult, context);
1462
+ const response = {
1463
+ $metadata: deserializeMetadata(output),
1464
+ ...contents,
1465
+ };
1466
+ return response;
1467
+ };
1468
+ exports.de_DescribeOrganizationsAccessCommand = de_DescribeOrganizationsAccessCommand;
1469
+ const de_DescribeOrganizationsAccessCommandError = async (output, context) => {
1470
+ const parsedOutput = {
1471
+ ...output,
1472
+ body: await parseErrorBody(output.body, context),
1473
+ };
1474
+ const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1475
+ switch (errorCode) {
1476
+ case "InvalidOperationException":
1477
+ case "com.amazonaws.cloudformation#InvalidOperationException":
1478
+ throw await de_InvalidOperationExceptionRes(parsedOutput, context);
1479
+ case "OperationNotFoundException":
1480
+ case "com.amazonaws.cloudformation#OperationNotFoundException":
1481
+ throw await de_OperationNotFoundExceptionRes(parsedOutput, context);
1482
+ default:
1483
+ const parsedBody = parsedOutput.body;
1484
+ return throwDefaultError({
1485
+ output,
1486
+ parsedBody: parsedBody.Error,
1487
+ errorCode,
1488
+ });
1489
+ }
1490
+ };
1350
1491
  const de_DescribePublisherCommand = async (output, context) => {
1351
1492
  if (output.statusCode >= 300) {
1352
1493
  return de_DescribePublisherCommandError(output, context);
@@ -3147,6 +3288,10 @@ const se_AccountList = (input, context) => {
3147
3288
  }
3148
3289
  return entries;
3149
3290
  };
3291
+ const se_ActivateOrganizationsAccessInput = (input, context) => {
3292
+ const entries = {};
3293
+ return entries;
3294
+ };
3150
3295
  const se_ActivateTypeInput = (input, context) => {
3151
3296
  const entries = {};
3152
3297
  if (input.Type != null) {
@@ -3590,6 +3735,10 @@ const se_CreateStackSetInput = (input, context) => {
3590
3735
  }
3591
3736
  return entries;
3592
3737
  };
3738
+ const se_DeactivateOrganizationsAccessInput = (input, context) => {
3739
+ const entries = {};
3740
+ return entries;
3741
+ };
3593
3742
  const se_DeactivateTypeInput = (input, context) => {
3594
3743
  const entries = {};
3595
3744
  if (input.TypeName != null) {
@@ -3781,6 +3930,13 @@ const se_DescribeChangeSetInput = (input, context) => {
3781
3930
  }
3782
3931
  return entries;
3783
3932
  };
3933
+ const se_DescribeOrganizationsAccessInput = (input, context) => {
3934
+ const entries = {};
3935
+ if (input.CallAs != null) {
3936
+ entries["CallAs"] = input.CallAs;
3937
+ }
3938
+ return entries;
3939
+ };
3784
3940
  const se_DescribePublisherInput = (input, context) => {
3785
3941
  const entries = {};
3786
3942
  if (input.PublisherId != null) {
@@ -5237,6 +5393,10 @@ const de_AccountList = (output, context) => {
5237
5393
  return (0, smithy_client_1.expectString)(entry);
5238
5394
  });
5239
5395
  };
5396
+ const de_ActivateOrganizationsAccessOutput = (output, context) => {
5397
+ const contents = {};
5398
+ return contents;
5399
+ };
5240
5400
  const de_ActivateTypeOutput = (output, context) => {
5241
5401
  const contents = {};
5242
5402
  if (output["Arn"] !== undefined) {
@@ -5493,6 +5653,10 @@ const de_CreateStackSetOutput = (output, context) => {
5493
5653
  }
5494
5654
  return contents;
5495
5655
  };
5656
+ const de_DeactivateOrganizationsAccessOutput = (output, context) => {
5657
+ const contents = {};
5658
+ return contents;
5659
+ };
5496
5660
  const de_DeactivateTypeOutput = (output, context) => {
5497
5661
  const contents = {};
5498
5662
  return contents;
@@ -5655,6 +5819,13 @@ const de_DescribeChangeSetOutput = (output, context) => {
5655
5819
  }
5656
5820
  return contents;
5657
5821
  };
5822
+ const de_DescribeOrganizationsAccessOutput = (output, context) => {
5823
+ const contents = {};
5824
+ if (output["Status"] !== undefined) {
5825
+ contents.Status = (0, smithy_client_1.expectString)(output["Status"]);
5826
+ }
5827
+ return contents;
5828
+ };
5658
5829
  const de_DescribePublisherOutput = (output, context) => {
5659
5830
  const contents = {};
5660
5831
  if (output["PublisherId"] !== undefined) {
@@ -1,5 +1,6 @@
1
1
  import { createAggregatedClient } from "@aws-sdk/smithy-client";
2
2
  import { CloudFormationClient } from "./CloudFormationClient";
3
+ import { ActivateOrganizationsAccessCommand, } from "./commands/ActivateOrganizationsAccessCommand";
3
4
  import { ActivateTypeCommand, } from "./commands/ActivateTypeCommand";
4
5
  import { BatchDescribeTypeConfigurationsCommand, } from "./commands/BatchDescribeTypeConfigurationsCommand";
5
6
  import { CancelUpdateStackCommand, } from "./commands/CancelUpdateStackCommand";
@@ -8,6 +9,7 @@ import { CreateChangeSetCommand, } from "./commands/CreateChangeSetCommand";
8
9
  import { CreateStackCommand } from "./commands/CreateStackCommand";
9
10
  import { CreateStackInstancesCommand, } from "./commands/CreateStackInstancesCommand";
10
11
  import { CreateStackSetCommand, } from "./commands/CreateStackSetCommand";
12
+ import { DeactivateOrganizationsAccessCommand, } from "./commands/DeactivateOrganizationsAccessCommand";
11
13
  import { DeactivateTypeCommand, } from "./commands/DeactivateTypeCommand";
12
14
  import { DeleteChangeSetCommand, } from "./commands/DeleteChangeSetCommand";
13
15
  import { DeleteStackCommand } from "./commands/DeleteStackCommand";
@@ -17,6 +19,7 @@ import { DeregisterTypeCommand, } from "./commands/DeregisterTypeCommand";
17
19
  import { DescribeAccountLimitsCommand, } from "./commands/DescribeAccountLimitsCommand";
18
20
  import { DescribeChangeSetCommand, } from "./commands/DescribeChangeSetCommand";
19
21
  import { DescribeChangeSetHooksCommand, } from "./commands/DescribeChangeSetHooksCommand";
22
+ import { DescribeOrganizationsAccessCommand, } from "./commands/DescribeOrganizationsAccessCommand";
20
23
  import { DescribePublisherCommand, } from "./commands/DescribePublisherCommand";
21
24
  import { DescribeStackDriftDetectionStatusCommand, } from "./commands/DescribeStackDriftDetectionStatusCommand";
22
25
  import { DescribeStackEventsCommand, } from "./commands/DescribeStackEventsCommand";
@@ -67,6 +70,7 @@ import { UpdateStackSetCommand, } from "./commands/UpdateStackSetCommand";
67
70
  import { UpdateTerminationProtectionCommand, } from "./commands/UpdateTerminationProtectionCommand";
68
71
  import { ValidateTemplateCommand, } from "./commands/ValidateTemplateCommand";
69
72
  const commands = {
73
+ ActivateOrganizationsAccessCommand,
70
74
  ActivateTypeCommand,
71
75
  BatchDescribeTypeConfigurationsCommand,
72
76
  CancelUpdateStackCommand,
@@ -75,6 +79,7 @@ const commands = {
75
79
  CreateStackCommand,
76
80
  CreateStackInstancesCommand,
77
81
  CreateStackSetCommand,
82
+ DeactivateOrganizationsAccessCommand,
78
83
  DeactivateTypeCommand,
79
84
  DeleteChangeSetCommand,
80
85
  DeleteStackCommand,
@@ -84,6 +89,7 @@ const commands = {
84
89
  DescribeAccountLimitsCommand,
85
90
  DescribeChangeSetCommand,
86
91
  DescribeChangeSetHooksCommand,
92
+ DescribeOrganizationsAccessCommand,
87
93
  DescribePublisherCommand,
88
94
  DescribeStackDriftDetectionStatusCommand,
89
95
  DescribeStackEventsCommand,
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { de_ActivateOrganizationsAccessCommand, se_ActivateOrganizationsAccessCommand } from "../protocols/Aws_query";
5
+ export { $Command };
6
+ export class ActivateOrganizationsAccessCommand extends $Command {
7
+ static getEndpointParameterInstructions() {
8
+ return {
9
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
10
+ Endpoint: { type: "builtInParams", name: "endpoint" },
11
+ Region: { type: "builtInParams", name: "region" },
12
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
13
+ };
14
+ }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, ActivateOrganizationsAccessCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "CloudFormationClient";
25
+ const commandName = "ActivateOrganizationsAccessCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: (_) => _,
31
+ outputFilterSensitiveLog: (_) => _,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return se_ActivateOrganizationsAccessCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return de_ActivateOrganizationsAccessCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { de_DeactivateOrganizationsAccessCommand, se_DeactivateOrganizationsAccessCommand, } from "../protocols/Aws_query";
5
+ export { $Command };
6
+ export class DeactivateOrganizationsAccessCommand extends $Command {
7
+ static getEndpointParameterInstructions() {
8
+ return {
9
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
10
+ Endpoint: { type: "builtInParams", name: "endpoint" },
11
+ Region: { type: "builtInParams", name: "region" },
12
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
13
+ };
14
+ }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DeactivateOrganizationsAccessCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "CloudFormationClient";
25
+ const commandName = "DeactivateOrganizationsAccessCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: (_) => _,
31
+ outputFilterSensitiveLog: (_) => _,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return se_DeactivateOrganizationsAccessCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return de_DeactivateOrganizationsAccessCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { de_DescribeOrganizationsAccessCommand, se_DescribeOrganizationsAccessCommand } from "../protocols/Aws_query";
5
+ export { $Command };
6
+ export class DescribeOrganizationsAccessCommand extends $Command {
7
+ static getEndpointParameterInstructions() {
8
+ return {
9
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
10
+ Endpoint: { type: "builtInParams", name: "endpoint" },
11
+ Region: { type: "builtInParams", name: "region" },
12
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
13
+ };
14
+ }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DescribeOrganizationsAccessCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "CloudFormationClient";
25
+ const commandName = "DescribeOrganizationsAccessCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: (_) => _,
31
+ outputFilterSensitiveLog: (_) => _,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return se_DescribeOrganizationsAccessCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return de_DescribeOrganizationsAccessCommand(output, context);
41
+ }
42
+ }
@@ -1,3 +1,4 @@
1
+ export * from "./ActivateOrganizationsAccessCommand";
1
2
  export * from "./ActivateTypeCommand";
2
3
  export * from "./BatchDescribeTypeConfigurationsCommand";
3
4
  export * from "./CancelUpdateStackCommand";
@@ -6,6 +7,7 @@ export * from "./CreateChangeSetCommand";
6
7
  export * from "./CreateStackCommand";
7
8
  export * from "./CreateStackInstancesCommand";
8
9
  export * from "./CreateStackSetCommand";
10
+ export * from "./DeactivateOrganizationsAccessCommand";
9
11
  export * from "./DeactivateTypeCommand";
10
12
  export * from "./DeleteChangeSetCommand";
11
13
  export * from "./DeleteStackCommand";
@@ -15,6 +17,7 @@ export * from "./DeregisterTypeCommand";
15
17
  export * from "./DescribeAccountLimitsCommand";
16
18
  export * from "./DescribeChangeSetCommand";
17
19
  export * from "./DescribeChangeSetHooksCommand";
20
+ export * from "./DescribeOrganizationsAccessCommand";
18
21
  export * from "./DescribePublisherCommand";
19
22
  export * from "./DescribeStackDriftDetectionStatusCommand";
20
23
  export * from "./DescribeStackEventsCommand";
@@ -10,6 +10,32 @@ export const AccountGateStatus = {
10
10
  SKIPPED: "SKIPPED",
11
11
  SUCCEEDED: "SUCCEEDED",
12
12
  };
13
+ export class InvalidOperationException extends __BaseException {
14
+ constructor(opts) {
15
+ super({
16
+ name: "InvalidOperationException",
17
+ $fault: "client",
18
+ ...opts,
19
+ });
20
+ this.name = "InvalidOperationException";
21
+ this.$fault = "client";
22
+ Object.setPrototypeOf(this, InvalidOperationException.prototype);
23
+ this.Message = opts.Message;
24
+ }
25
+ }
26
+ export class OperationNotFoundException extends __BaseException {
27
+ constructor(opts) {
28
+ super({
29
+ name: "OperationNotFoundException",
30
+ $fault: "client",
31
+ ...opts,
32
+ });
33
+ this.name = "OperationNotFoundException";
34
+ this.$fault = "client";
35
+ Object.setPrototypeOf(this, OperationNotFoundException.prototype);
36
+ this.Message = opts.Message;
37
+ }
38
+ }
13
39
  export const ThirdPartyType = {
14
40
  HOOK: "HOOK",
15
41
  MODULE: "MODULE",
@@ -224,19 +250,6 @@ export const RegionConcurrencyType = {
224
250
  PARALLEL: "PARALLEL",
225
251
  SEQUENTIAL: "SEQUENTIAL",
226
252
  };
227
- export class InvalidOperationException extends __BaseException {
228
- constructor(opts) {
229
- super({
230
- name: "InvalidOperationException",
231
- $fault: "client",
232
- ...opts,
233
- });
234
- this.name = "InvalidOperationException";
235
- this.$fault = "client";
236
- Object.setPrototypeOf(this, InvalidOperationException.prototype);
237
- this.Message = opts.Message;
238
- }
239
- }
240
253
  export class OperationIdAlreadyExistsException extends __BaseException {
241
254
  constructor(opts) {
242
255
  super({
@@ -350,6 +363,11 @@ export const RegistryType = {
350
363
  MODULE: "MODULE",
351
364
  RESOURCE: "RESOURCE",
352
365
  };
366
+ export const OrganizationStatus = {
367
+ DISABLED: "DISABLED",
368
+ DISABLED_PERMANENTLY: "DISABLED_PERMANENTLY",
369
+ ENABLED: "ENABLED",
370
+ };
353
371
  export const IdentityProvider = {
354
372
  AWS_Marketplace: "AWS_Marketplace",
355
373
  Bitbucket: "Bitbucket",
@@ -492,19 +510,6 @@ export const StackSetOperationStatus = {
492
510
  STOPPING: "STOPPING",
493
511
  SUCCEEDED: "SUCCEEDED",
494
512
  };
495
- export class OperationNotFoundException extends __BaseException {
496
- constructor(opts) {
497
- super({
498
- name: "OperationNotFoundException",
499
- $fault: "client",
500
- ...opts,
501
- });
502
- this.name = "OperationNotFoundException";
503
- this.$fault = "client";
504
- Object.setPrototypeOf(this, OperationNotFoundException.prototype);
505
- this.Message = opts.Message;
506
- }
507
- }
508
513
  export const DeprecatedStatus = {
509
514
  DEPRECATED: "DEPRECATED",
510
515
  LIVE: "LIVE",