@jjrawlins/cdk-diff-pr-github-action 0.0.8 → 0.0.9

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 (58) hide show
  1. package/.jsii +3 -3
  2. package/lib/CdkDiffIamTemplate.js +1 -1
  3. package/lib/CdkDiffStackWorkflow.js +1 -1
  4. package/lib/CdkDriftDetectionWorkflow.js +1 -1
  5. package/lib/CdkDriftIamTemplate.js +1 -1
  6. package/node_modules/@aws-sdk/client-cloudformation/README.md +10 -2
  7. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +90 -30
  8. package/node_modules/@aws-sdk/client-cloudformation/dist-es/CloudFormation.js +2 -0
  9. package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/GetHookResultCommand.js +16 -0
  10. package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/index.js +1 -0
  11. package/node_modules/@aws-sdk/client-cloudformation/dist-es/models/models_0.js +29 -18
  12. package/node_modules/@aws-sdk/client-cloudformation/dist-es/models/models_1.js +7 -0
  13. package/node_modules/@aws-sdk/client-cloudformation/dist-es/schemas/schemas_0.js +43 -18
  14. package/node_modules/@aws-sdk/client-cloudformation/dist-types/CloudFormation.d.ts +15 -8
  15. package/node_modules/@aws-sdk/client-cloudformation/dist-types/CloudFormationClient.d.ts +10 -9
  16. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ActivateTypeCommand.d.ts +1 -2
  17. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeChangeSetHooksCommand.d.ts +2 -2
  18. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeStackEventsCommand.d.ts +2 -2
  19. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/GetHookResultCommand.d.ts +104 -0
  20. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListHookResultsCommand.d.ts +2 -2
  21. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListStackSetOperationResultsCommand.d.ts +1 -1
  22. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListStackSetOperationsCommand.d.ts +1 -1
  23. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/SetTypeConfigurationCommand.d.ts +1 -2
  24. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/index.d.ts +1 -0
  25. package/node_modules/@aws-sdk/client-cloudformation/dist-types/index.d.ts +7 -7
  26. package/node_modules/@aws-sdk/client-cloudformation/dist-types/models/models_0.d.ts +319 -434
  27. package/node_modules/@aws-sdk/client-cloudformation/dist-types/models/models_1.d.ts +328 -27
  28. package/node_modules/@aws-sdk/client-cloudformation/dist-types/schemas/schemas_0.d.ts +6 -0
  29. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/CloudFormation.d.ts +18 -1
  30. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/CloudFormationClient.d.ts +6 -0
  31. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DescribeStackEventsCommand.d.ts +1 -1
  32. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/GetHookResultCommand.d.ts +47 -0
  33. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ListStackSetOperationResultsCommand.d.ts +1 -1
  34. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ListStackSetOperationsCommand.d.ts +1 -1
  35. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/index.d.ts +1 -0
  36. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/models/models_0.d.ts +65 -58
  37. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/models/models_1.d.ts +54 -0
  38. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/schemas/schemas_0.d.ts +6 -0
  39. package/node_modules/@aws-sdk/client-cloudformation/package.json +5 -5
  40. package/node_modules/@aws-sdk/client-sso/package.json +4 -4
  41. package/node_modules/@aws-sdk/core/dist-cjs/index.js +11 -1
  42. package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +11 -1
  43. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js +11 -1
  44. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsRestJsonProtocol.d.ts +11 -1
  45. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsRestJsonProtocol.d.ts +6 -0
  46. package/node_modules/@aws-sdk/core/package.json +1 -1
  47. package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
  48. package/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
  49. package/node_modules/@aws-sdk/credential-provider-ini/package.json +8 -8
  50. package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
  51. package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
  52. package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
  53. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
  54. package/node_modules/@aws-sdk/middleware-user-agent/package.json +2 -2
  55. package/node_modules/@aws-sdk/nested-clients/package.json +4 -4
  56. package/node_modules/@aws-sdk/token-providers/package.json +3 -3
  57. package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
  58. package/package.json +2 -2
@@ -96,6 +96,30 @@ export declare class AlreadyExistsException extends __BaseException {
96
96
  opts: __ExceptionOptionType<AlreadyExistsException, __BaseException>
97
97
  );
98
98
  }
99
+ export declare const AnnotationSeverityLevel: {
100
+ readonly CRITICAL: "CRITICAL";
101
+ readonly HIGH: "HIGH";
102
+ readonly INFORMATIONAL: "INFORMATIONAL";
103
+ readonly LOW: "LOW";
104
+ readonly MEDIUM: "MEDIUM";
105
+ };
106
+ export type AnnotationSeverityLevel =
107
+ (typeof AnnotationSeverityLevel)[keyof typeof AnnotationSeverityLevel];
108
+ export declare const AnnotationStatus: {
109
+ readonly FAILED: "FAILED";
110
+ readonly PASSED: "PASSED";
111
+ readonly SKIPPED: "SKIPPED";
112
+ };
113
+ export type AnnotationStatus =
114
+ (typeof AnnotationStatus)[keyof typeof AnnotationStatus];
115
+ export interface Annotation {
116
+ AnnotationName?: string | undefined;
117
+ Status?: AnnotationStatus | undefined;
118
+ StatusMessage?: string | undefined;
119
+ RemediationMessage?: string | undefined;
120
+ RemediationLink?: string | undefined;
121
+ SeverityLevel?: AnnotationSeverityLevel | undefined;
122
+ }
99
123
  export declare const AttributeChangeType: {
100
124
  readonly Add: "Add";
101
125
  readonly Modify: "Modify";
@@ -962,7 +986,7 @@ export interface DescribeStackDriftDetectionStatusOutput {
962
986
  Timestamp: Date | undefined;
963
987
  }
964
988
  export interface DescribeStackEventsInput {
965
- StackName?: string | undefined;
989
+ StackName: string | undefined;
966
990
  NextToken?: string | undefined;
967
991
  }
968
992
  export declare const DetailedStatus: {
@@ -1543,6 +1567,46 @@ export interface GetGeneratedTemplateOutput {
1543
1567
  Status?: GeneratedTemplateStatus | undefined;
1544
1568
  TemplateBody?: string | undefined;
1545
1569
  }
1570
+ export interface GetHookResultInput {
1571
+ HookResultId?: string | undefined;
1572
+ }
1573
+ export declare const HookTargetAction: {
1574
+ readonly CREATE: "CREATE";
1575
+ readonly DELETE: "DELETE";
1576
+ readonly IMPORT: "IMPORT";
1577
+ readonly UPDATE: "UPDATE";
1578
+ };
1579
+ export type HookTargetAction =
1580
+ (typeof HookTargetAction)[keyof typeof HookTargetAction];
1581
+ export interface HookTarget {
1582
+ TargetType: HookTargetType | undefined;
1583
+ TargetTypeName: string | undefined;
1584
+ TargetId: string | undefined;
1585
+ Action: HookTargetAction | undefined;
1586
+ }
1587
+ export interface GetHookResultOutput {
1588
+ HookResultId?: string | undefined;
1589
+ InvocationPoint?: HookInvocationPoint | undefined;
1590
+ FailureMode?: HookFailureMode | undefined;
1591
+ TypeName?: string | undefined;
1592
+ OriginalTypeName?: string | undefined;
1593
+ TypeVersionId?: string | undefined;
1594
+ TypeConfigurationVersionId?: string | undefined;
1595
+ TypeArn?: string | undefined;
1596
+ Status?: HookStatus | undefined;
1597
+ HookStatusReason?: string | undefined;
1598
+ InvokedAt?: Date | undefined;
1599
+ Target?: HookTarget | undefined;
1600
+ Annotations?: Annotation[] | undefined;
1601
+ }
1602
+ export declare class HookResultNotFoundException extends __BaseException {
1603
+ readonly name: "HookResultNotFoundException";
1604
+ readonly $fault: "client";
1605
+ Message?: string | undefined;
1606
+ constructor(
1607
+ opts: __ExceptionOptionType<HookResultNotFoundException, __BaseException>
1608
+ );
1609
+ }
1546
1610
  export interface GetStackPolicyInput {
1547
1611
  StackName: string | undefined;
1548
1612
  }
@@ -1662,14 +1726,6 @@ export interface ListGeneratedTemplatesOutput {
1662
1726
  Summaries?: TemplateSummary[] | undefined;
1663
1727
  NextToken?: string | undefined;
1664
1728
  }
1665
- export declare class HookResultNotFoundException extends __BaseException {
1666
- readonly name: "HookResultNotFoundException";
1667
- readonly $fault: "client";
1668
- Message?: string | undefined;
1669
- constructor(
1670
- opts: __ExceptionOptionType<HookResultNotFoundException, __BaseException>
1671
- );
1672
- }
1673
1729
  export declare const ListHookResultsTargetType: {
1674
1730
  readonly CHANGE_SET: "CHANGE_SET";
1675
1731
  readonly CLOUD_CONTROL: "CLOUD_CONTROL";
@@ -1969,52 +2025,3 @@ export interface OperationResultFilter {
1969
2025
  Name?: OperationResultFilterName | undefined;
1970
2026
  Values?: string | undefined;
1971
2027
  }
1972
- export interface ListStackSetOperationResultsInput {
1973
- StackSetName: string | undefined;
1974
- OperationId: string | undefined;
1975
- NextToken?: string | undefined;
1976
- MaxResults?: number | undefined;
1977
- CallAs?: CallAs | undefined;
1978
- Filters?: OperationResultFilter[] | undefined;
1979
- }
1980
- export declare const StackSetOperationResultStatus: {
1981
- readonly CANCELLED: "CANCELLED";
1982
- readonly FAILED: "FAILED";
1983
- readonly PENDING: "PENDING";
1984
- readonly RUNNING: "RUNNING";
1985
- readonly SUCCEEDED: "SUCCEEDED";
1986
- };
1987
- export type StackSetOperationResultStatus =
1988
- (typeof StackSetOperationResultStatus)[keyof typeof StackSetOperationResultStatus];
1989
- export interface StackSetOperationResultSummary {
1990
- Account?: string | undefined;
1991
- Region?: string | undefined;
1992
- Status?: StackSetOperationResultStatus | undefined;
1993
- StatusReason?: string | undefined;
1994
- AccountGateResult?: AccountGateResult | undefined;
1995
- OrganizationalUnitId?: string | undefined;
1996
- }
1997
- export interface ListStackSetOperationResultsOutput {
1998
- Summaries?: StackSetOperationResultSummary[] | undefined;
1999
- NextToken?: string | undefined;
2000
- }
2001
- export interface ListStackSetOperationsInput {
2002
- StackSetName: string | undefined;
2003
- NextToken?: string | undefined;
2004
- MaxResults?: number | undefined;
2005
- CallAs?: CallAs | undefined;
2006
- }
2007
- export interface StackSetOperationSummary {
2008
- OperationId?: string | undefined;
2009
- Action?: StackSetOperationAction | undefined;
2010
- Status?: StackSetOperationStatus | undefined;
2011
- CreationTimestamp?: Date | undefined;
2012
- EndTimestamp?: Date | undefined;
2013
- StatusReason?: string | undefined;
2014
- StatusDetails?: StackSetOperationStatusDetails | undefined;
2015
- OperationPreferences?: StackSetOperationPreferences | undefined;
2016
- }
2017
- export interface ListStackSetOperationsOutput {
2018
- Summaries?: StackSetOperationSummary[] | undefined;
2019
- NextToken?: string | undefined;
2020
- }
@@ -1,6 +1,7 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
2
  import { CloudFormationServiceException as __BaseException } from "./CloudFormationServiceException";
3
3
  import {
4
+ AccountGateResult,
4
5
  AutoDeployment,
5
6
  CallAs,
6
7
  Capability,
@@ -10,6 +11,7 @@ import {
10
11
  IdentityProvider,
11
12
  LoggingConfig,
12
13
  ManagedExecution,
14
+ OperationResultFilter,
13
15
  Parameter,
14
16
  PermissionModels,
15
17
  ProvisioningType,
@@ -19,13 +21,65 @@ import {
19
21
  RollbackConfiguration,
20
22
  ScanFilter,
21
23
  StackDriftStatus,
24
+ StackSetOperationAction,
22
25
  StackSetOperationPreferences,
26
+ StackSetOperationStatus,
27
+ StackSetOperationStatusDetails,
23
28
  StackSetStatus,
24
29
  Tag,
25
30
  TemplateConfiguration,
26
31
  ThirdPartyType,
27
32
  Visibility,
28
33
  } from "./models_0";
34
+ export interface ListStackSetOperationResultsInput {
35
+ StackSetName: string | undefined;
36
+ OperationId: string | undefined;
37
+ NextToken?: string | undefined;
38
+ MaxResults?: number | undefined;
39
+ CallAs?: CallAs | undefined;
40
+ Filters?: OperationResultFilter[] | undefined;
41
+ }
42
+ export declare const StackSetOperationResultStatus: {
43
+ readonly CANCELLED: "CANCELLED";
44
+ readonly FAILED: "FAILED";
45
+ readonly PENDING: "PENDING";
46
+ readonly RUNNING: "RUNNING";
47
+ readonly SUCCEEDED: "SUCCEEDED";
48
+ };
49
+ export type StackSetOperationResultStatus =
50
+ (typeof StackSetOperationResultStatus)[keyof typeof StackSetOperationResultStatus];
51
+ export interface StackSetOperationResultSummary {
52
+ Account?: string | undefined;
53
+ Region?: string | undefined;
54
+ Status?: StackSetOperationResultStatus | undefined;
55
+ StatusReason?: string | undefined;
56
+ AccountGateResult?: AccountGateResult | undefined;
57
+ OrganizationalUnitId?: string | undefined;
58
+ }
59
+ export interface ListStackSetOperationResultsOutput {
60
+ Summaries?: StackSetOperationResultSummary[] | undefined;
61
+ NextToken?: string | undefined;
62
+ }
63
+ export interface ListStackSetOperationsInput {
64
+ StackSetName: string | undefined;
65
+ NextToken?: string | undefined;
66
+ MaxResults?: number | undefined;
67
+ CallAs?: CallAs | undefined;
68
+ }
69
+ export interface StackSetOperationSummary {
70
+ OperationId?: string | undefined;
71
+ Action?: StackSetOperationAction | undefined;
72
+ Status?: StackSetOperationStatus | undefined;
73
+ CreationTimestamp?: Date | undefined;
74
+ EndTimestamp?: Date | undefined;
75
+ StatusReason?: string | undefined;
76
+ StatusDetails?: StackSetOperationStatusDetails | undefined;
77
+ OperationPreferences?: StackSetOperationPreferences | undefined;
78
+ }
79
+ export interface ListStackSetOperationsOutput {
80
+ Summaries?: StackSetOperationSummary[] | undefined;
81
+ NextToken?: string | undefined;
82
+ }
29
83
  export interface ListStackSetsInput {
30
84
  NextToken?: string | undefined;
31
85
  MaxResults?: number | undefined;
@@ -11,6 +11,7 @@ export declare var ActivateOrganizationsAccessOutput: StaticStructureSchema;
11
11
  export declare var ActivateTypeInput: StaticStructureSchema;
12
12
  export declare var ActivateTypeOutput: StaticStructureSchema;
13
13
  export declare var AlreadyExistsException: StaticErrorSchema;
14
+ export declare var Annotation: StaticStructureSchema;
14
15
  export declare var AutoDeployment: StaticStructureSchema;
15
16
  export declare var BatchDescribeTypeConfigurationsError: StaticStructureSchema;
16
17
  export declare var BatchDescribeTypeConfigurationsInput: StaticStructureSchema;
@@ -107,6 +108,8 @@ export declare var Export: StaticStructureSchema;
107
108
  export declare var GeneratedTemplateNotFoundException: StaticErrorSchema;
108
109
  export declare var GetGeneratedTemplateInput: StaticStructureSchema;
109
110
  export declare var GetGeneratedTemplateOutput: StaticStructureSchema;
111
+ export declare var GetHookResultInput: StaticStructureSchema;
112
+ export declare var GetHookResultOutput: StaticStructureSchema;
110
113
  export declare var GetStackPolicyInput: StaticStructureSchema;
111
114
  export declare var GetStackPolicyOutput: StaticStructureSchema;
112
115
  export declare var GetTemplateInput: StaticStructureSchema;
@@ -115,6 +118,7 @@ export declare var GetTemplateSummaryInput: StaticStructureSchema;
115
118
  export declare var GetTemplateSummaryOutput: StaticStructureSchema;
116
119
  export declare var HookResultNotFoundException: StaticErrorSchema;
117
120
  export declare var HookResultSummary: StaticStructureSchema;
121
+ export declare var HookTarget: StaticStructureSchema;
118
122
  export declare var ImportStacksToStackSetInput: StaticStructureSchema;
119
123
  export declare var ImportStacksToStackSetOutput: StaticStructureSchema;
120
124
  export declare var InsufficientCapabilitiesException: StaticErrorSchema;
@@ -288,6 +292,7 @@ export declare var CloudFormationServiceException: StaticErrorSchema;
288
292
  export declare var AccountLimitList: StaticListSchema;
289
293
  export declare var AccountList: number;
290
294
  export declare var AllowedValues: number;
295
+ export declare var AnnotationList: StaticListSchema;
291
296
  export declare var BatchDescribeTypeConfigurationsErrors: StaticListSchema;
292
297
  export declare var Capabilities: number;
293
298
  export declare var Changes: StaticListSchema;
@@ -410,6 +415,7 @@ export declare var EstimateTemplateCost: StaticOperationSchema;
410
415
  export declare var ExecuteChangeSet: StaticOperationSchema;
411
416
  export declare var ExecuteStackRefactor: StaticOperationSchema;
412
417
  export declare var GetGeneratedTemplate: StaticOperationSchema;
418
+ export declare var GetHookResult: StaticOperationSchema;
413
419
  export declare var GetStackPolicy: StaticOperationSchema;
414
420
  export declare var GetTemplate: StaticOperationSchema;
415
421
  export declare var GetTemplateSummary: StaticOperationSchema;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-cloudformation",
3
3
  "description": "AWS SDK for JavaScript Cloudformation Client for Node.js, Browser and React Native",
4
- "version": "3.930.0",
4
+ "version": "3.931.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-cloudformation",
@@ -20,17 +20,17 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.930.0",
24
- "@aws-sdk/credential-provider-node": "3.930.0",
23
+ "@aws-sdk/core": "3.931.0",
24
+ "@aws-sdk/credential-provider-node": "3.931.0",
25
25
  "@aws-sdk/middleware-host-header": "3.930.0",
26
26
  "@aws-sdk/middleware-logger": "3.930.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.930.0",
28
- "@aws-sdk/middleware-user-agent": "3.930.0",
28
+ "@aws-sdk/middleware-user-agent": "3.931.0",
29
29
  "@aws-sdk/region-config-resolver": "3.930.0",
30
30
  "@aws-sdk/types": "3.930.0",
31
31
  "@aws-sdk/util-endpoints": "3.930.0",
32
32
  "@aws-sdk/util-user-agent-browser": "3.930.0",
33
- "@aws-sdk/util-user-agent-node": "3.930.0",
33
+ "@aws-sdk/util-user-agent-node": "3.931.0",
34
34
  "@smithy/config-resolver": "^4.4.3",
35
35
  "@smithy/core": "^3.18.2",
36
36
  "@smithy/fetch-http-handler": "^5.3.6",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sso",
3
3
  "description": "AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",
4
- "version": "3.930.0",
4
+ "version": "3.931.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-sso",
@@ -20,16 +20,16 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.930.0",
23
+ "@aws-sdk/core": "3.931.0",
24
24
  "@aws-sdk/middleware-host-header": "3.930.0",
25
25
  "@aws-sdk/middleware-logger": "3.930.0",
26
26
  "@aws-sdk/middleware-recursion-detection": "3.930.0",
27
- "@aws-sdk/middleware-user-agent": "3.930.0",
27
+ "@aws-sdk/middleware-user-agent": "3.931.0",
28
28
  "@aws-sdk/region-config-resolver": "3.930.0",
29
29
  "@aws-sdk/types": "3.930.0",
30
30
  "@aws-sdk/util-endpoints": "3.930.0",
31
31
  "@aws-sdk/util-user-agent-browser": "3.930.0",
32
- "@aws-sdk/util-user-agent-node": "3.930.0",
32
+ "@aws-sdk/util-user-agent-node": "3.931.0",
33
33
  "@smithy/config-resolver": "^4.4.3",
34
34
  "@smithy/core": "^3.18.2",
35
35
  "@smithy/fetch-http-handler": "^5.3.6",
@@ -1048,11 +1048,21 @@ class AwsRestJsonProtocol extends protocols.HttpBindingProtocol {
1048
1048
  request.headers["content-type"] = contentType;
1049
1049
  }
1050
1050
  }
1051
- if (request.headers["content-type"] && !request.body) {
1051
+ if (request.body == null && request.headers["content-type"] === this.getDefaultContentType()) {
1052
1052
  request.body = "{}";
1053
1053
  }
1054
1054
  return request;
1055
1055
  }
1056
+ async deserializeResponse(operationSchema, context, response) {
1057
+ const output = await super.deserializeResponse(operationSchema, context, response);
1058
+ const outputSchema = schema.NormalizedSchema.of(operationSchema.output);
1059
+ for (const [name, member] of outputSchema.structIterator()) {
1060
+ if (member.getMemberTraits().httpPayload && !(name in output)) {
1061
+ output[name] = null;
1062
+ }
1063
+ }
1064
+ return output;
1065
+ }
1056
1066
  async handleError(operationSchema, context, response, dataObject, metadata) {
1057
1067
  const errorIdentifier = loadRestJsonErrorCode(response, dataObject) ?? "Unknown";
1058
1068
  const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, dataObject, metadata);
@@ -718,11 +718,21 @@ class AwsRestJsonProtocol extends protocols.HttpBindingProtocol {
718
718
  request.headers["content-type"] = contentType;
719
719
  }
720
720
  }
721
- if (request.headers["content-type"] && !request.body) {
721
+ if (request.body == null && request.headers["content-type"] === this.getDefaultContentType()) {
722
722
  request.body = "{}";
723
723
  }
724
724
  return request;
725
725
  }
726
+ async deserializeResponse(operationSchema, context, response) {
727
+ const output = await super.deserializeResponse(operationSchema, context, response);
728
+ const outputSchema = schema.NormalizedSchema.of(operationSchema.output);
729
+ for (const [name, member] of outputSchema.structIterator()) {
730
+ if (member.getMemberTraits().httpPayload && !(name in output)) {
731
+ output[name] = null;
732
+ }
733
+ }
734
+ return output;
735
+ }
726
736
  async handleError(operationSchema, context, response, dataObject, metadata) {
727
737
  const errorIdentifier = loadRestJsonErrorCode(response, dataObject) ?? "Unknown";
728
738
  const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, dataObject, metadata);
@@ -43,11 +43,21 @@ export class AwsRestJsonProtocol extends HttpBindingProtocol {
43
43
  request.headers["content-type"] = contentType;
44
44
  }
45
45
  }
46
- if (request.headers["content-type"] && !request.body) {
46
+ if (request.body == null && request.headers["content-type"] === this.getDefaultContentType()) {
47
47
  request.body = "{}";
48
48
  }
49
49
  return request;
50
50
  }
51
+ async deserializeResponse(operationSchema, context, response) {
52
+ const output = await super.deserializeResponse(operationSchema, context, response);
53
+ const outputSchema = NormalizedSchema.of(operationSchema.output);
54
+ for (const [name, member] of outputSchema.structIterator()) {
55
+ if (member.getMemberTraits().httpPayload && !(name in output)) {
56
+ output[name] = null;
57
+ }
58
+ }
59
+ return output;
60
+ }
51
61
  async handleError(operationSchema, context, response, dataObject, metadata) {
52
62
  const errorIdentifier = loadRestJsonErrorCode(response, dataObject) ?? "Unknown";
53
63
  const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, dataObject, metadata);
@@ -1,5 +1,5 @@
1
1
  import { HttpBindingProtocol } from "@smithy/core/protocols";
2
- import type { EndpointBearer, HandlerExecutionContext, HttpRequest, HttpResponse, OperationSchema, ResponseMetadata, SerdeFunctions, ShapeDeserializer, ShapeSerializer } from "@smithy/types";
2
+ import type { EndpointBearer, HandlerExecutionContext, HttpRequest, HttpResponse, MetadataBearer, OperationSchema, ResponseMetadata, SerdeFunctions, ShapeDeserializer, ShapeSerializer } from "@smithy/types";
3
3
  import { JsonCodec } from "./JsonCodec";
4
4
  /**
5
5
  * @public
@@ -15,7 +15,17 @@ export declare class AwsRestJsonProtocol extends HttpBindingProtocol {
15
15
  getShapeId(): string;
16
16
  getPayloadCodec(): JsonCodec;
17
17
  setSerdeContext(serdeContext: SerdeFunctions): void;
18
+ /**
19
+ * @override
20
+ */
18
21
  serializeRequest<Input extends object>(operationSchema: OperationSchema, input: Input, context: HandlerExecutionContext & SerdeFunctions & EndpointBearer): Promise<HttpRequest>;
22
+ /**
23
+ * @override
24
+ */
25
+ deserializeResponse<Output extends MetadataBearer>(operationSchema: OperationSchema, context: HandlerExecutionContext & SerdeFunctions, response: HttpResponse): Promise<Output>;
26
+ /**
27
+ * @override
28
+ */
19
29
  protected handleError(operationSchema: OperationSchema, context: HandlerExecutionContext & SerdeFunctions, response: HttpResponse, dataObject: any, metadata: ResponseMetadata): Promise<never>;
20
30
  /**
21
31
  * @override
@@ -4,6 +4,7 @@ import {
4
4
  HandlerExecutionContext,
5
5
  HttpRequest,
6
6
  HttpResponse,
7
+ MetadataBearer,
7
8
  OperationSchema,
8
9
  ResponseMetadata,
9
10
  SerdeFunctions,
@@ -25,6 +26,11 @@ export declare class AwsRestJsonProtocol extends HttpBindingProtocol {
25
26
  input: Input,
26
27
  context: HandlerExecutionContext & SerdeFunctions & EndpointBearer
27
28
  ): Promise<HttpRequest>;
29
+ deserializeResponse<Output extends MetadataBearer>(
30
+ operationSchema: OperationSchema,
31
+ context: HandlerExecutionContext & SerdeFunctions,
32
+ response: HttpResponse
33
+ ): Promise<Output>;
28
34
  protected handleError(
29
35
  operationSchema: OperationSchema,
30
36
  context: HandlerExecutionContext & SerdeFunctions,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/core",
3
- "version": "3.930.0",
3
+ "version": "3.931.0",
4
4
  "description": "Core functions & classes shared by multiple AWS SDK clients.",
5
5
  "scripts": {
6
6
  "build": "yarn lint && concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-env",
3
- "version": "3.930.0",
3
+ "version": "3.931.0",
4
4
  "description": "AWS credential provider that sources credentials from known environment variables",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -26,7 +26,7 @@
26
26
  },
27
27
  "license": "Apache-2.0",
28
28
  "dependencies": {
29
- "@aws-sdk/core": "3.930.0",
29
+ "@aws-sdk/core": "3.931.0",
30
30
  "@aws-sdk/types": "3.930.0",
31
31
  "@smithy/property-provider": "^4.2.5",
32
32
  "@smithy/types": "^4.9.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-http",
3
- "version": "3.930.0",
3
+ "version": "3.931.0",
4
4
  "description": "AWS credential provider for containers and HTTP sources",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -28,7 +28,7 @@
28
28
  },
29
29
  "license": "Apache-2.0",
30
30
  "dependencies": {
31
- "@aws-sdk/core": "3.930.0",
31
+ "@aws-sdk/core": "3.931.0",
32
32
  "@aws-sdk/types": "3.930.0",
33
33
  "@smithy/fetch-http-handler": "^5.3.6",
34
34
  "@smithy/node-http-handler": "^4.4.5",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-ini",
3
- "version": "3.930.0",
3
+ "version": "3.931.0",
4
4
  "description": "AWS credential provider that sources credentials from ~/.aws/credentials and ~/.aws/config",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -28,13 +28,13 @@
28
28
  },
29
29
  "license": "Apache-2.0",
30
30
  "dependencies": {
31
- "@aws-sdk/core": "3.930.0",
32
- "@aws-sdk/credential-provider-env": "3.930.0",
33
- "@aws-sdk/credential-provider-http": "3.930.0",
34
- "@aws-sdk/credential-provider-process": "3.930.0",
35
- "@aws-sdk/credential-provider-sso": "3.930.0",
36
- "@aws-sdk/credential-provider-web-identity": "3.930.0",
37
- "@aws-sdk/nested-clients": "3.930.0",
31
+ "@aws-sdk/core": "3.931.0",
32
+ "@aws-sdk/credential-provider-env": "3.931.0",
33
+ "@aws-sdk/credential-provider-http": "3.931.0",
34
+ "@aws-sdk/credential-provider-process": "3.931.0",
35
+ "@aws-sdk/credential-provider-sso": "3.931.0",
36
+ "@aws-sdk/credential-provider-web-identity": "3.931.0",
37
+ "@aws-sdk/nested-clients": "3.931.0",
38
38
  "@aws-sdk/types": "3.930.0",
39
39
  "@smithy/credential-provider-imds": "^4.2.5",
40
40
  "@smithy/property-provider": "^4.2.5",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-node",
3
- "version": "3.930.0",
3
+ "version": "3.931.0",
4
4
  "description": "AWS credential provider that sources credentials from a Node.JS environment. ",
5
5
  "engines": {
6
6
  "node": ">=18.0.0"
@@ -31,12 +31,12 @@
31
31
  },
32
32
  "license": "Apache-2.0",
33
33
  "dependencies": {
34
- "@aws-sdk/credential-provider-env": "3.930.0",
35
- "@aws-sdk/credential-provider-http": "3.930.0",
36
- "@aws-sdk/credential-provider-ini": "3.930.0",
37
- "@aws-sdk/credential-provider-process": "3.930.0",
38
- "@aws-sdk/credential-provider-sso": "3.930.0",
39
- "@aws-sdk/credential-provider-web-identity": "3.930.0",
34
+ "@aws-sdk/credential-provider-env": "3.931.0",
35
+ "@aws-sdk/credential-provider-http": "3.931.0",
36
+ "@aws-sdk/credential-provider-ini": "3.931.0",
37
+ "@aws-sdk/credential-provider-process": "3.931.0",
38
+ "@aws-sdk/credential-provider-sso": "3.931.0",
39
+ "@aws-sdk/credential-provider-web-identity": "3.931.0",
40
40
  "@aws-sdk/types": "3.930.0",
41
41
  "@smithy/credential-provider-imds": "^4.2.5",
42
42
  "@smithy/property-provider": "^4.2.5",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-process",
3
- "version": "3.930.0",
3
+ "version": "3.931.0",
4
4
  "description": "AWS credential provider that sources credential_process from ~/.aws/credentials and ~/.aws/config",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -26,7 +26,7 @@
26
26
  },
27
27
  "license": "Apache-2.0",
28
28
  "dependencies": {
29
- "@aws-sdk/core": "3.930.0",
29
+ "@aws-sdk/core": "3.931.0",
30
30
  "@aws-sdk/types": "3.930.0",
31
31
  "@smithy/property-provider": "^4.2.5",
32
32
  "@smithy/shared-ini-file-loader": "^4.4.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-sso",
3
- "version": "3.930.0",
3
+ "version": "3.931.0",
4
4
  "description": "AWS credential provider that exchanges a resolved SSO login token file for temporary AWS credentials",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -26,9 +26,9 @@
26
26
  },
27
27
  "license": "Apache-2.0",
28
28
  "dependencies": {
29
- "@aws-sdk/client-sso": "3.930.0",
30
- "@aws-sdk/core": "3.930.0",
31
- "@aws-sdk/token-providers": "3.930.0",
29
+ "@aws-sdk/client-sso": "3.931.0",
30
+ "@aws-sdk/core": "3.931.0",
31
+ "@aws-sdk/token-providers": "3.931.0",
32
32
  "@aws-sdk/types": "3.930.0",
33
33
  "@smithy/property-provider": "^4.2.5",
34
34
  "@smithy/shared-ini-file-loader": "^4.4.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-web-identity",
3
- "version": "3.930.0",
3
+ "version": "3.931.0",
4
4
  "description": "AWS credential provider that calls STS assumeRole for temporary AWS credentials",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -34,8 +34,8 @@
34
34
  },
35
35
  "license": "Apache-2.0",
36
36
  "dependencies": {
37
- "@aws-sdk/core": "3.930.0",
38
- "@aws-sdk/nested-clients": "3.930.0",
37
+ "@aws-sdk/core": "3.931.0",
38
+ "@aws-sdk/nested-clients": "3.931.0",
39
39
  "@aws-sdk/types": "3.930.0",
40
40
  "@smithy/property-provider": "^4.2.5",
41
41
  "@smithy/shared-ini-file-loader": "^4.4.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-user-agent",
3
- "version": "3.930.0",
3
+ "version": "3.931.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "node ../../scripts/compilation/inline middleware-user-agent",
@@ -25,7 +25,7 @@
25
25
  },
26
26
  "license": "Apache-2.0",
27
27
  "dependencies": {
28
- "@aws-sdk/core": "3.930.0",
28
+ "@aws-sdk/core": "3.931.0",
29
29
  "@aws-sdk/types": "3.930.0",
30
30
  "@aws-sdk/util-endpoints": "3.930.0",
31
31
  "@smithy/core": "^3.18.2",