cdk-preflight 1.11.1 → 1.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +4 -4
- package/README.md +34 -0
- package/lib/cli.js +118 -4
- package/lib/index.js +1 -1
- package/llms.txt +2 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/CloudFormationClient.d.ts +2 -1
- package/node_modules/@aws-sdk/client-cloudformation/package.json +6 -6
- package/node_modules/@aws-sdk/client-ec2/README.md +28 -0
- package/node_modules/@aws-sdk/client-ec2/dist-cjs/index.js +499 -113
- package/node_modules/@aws-sdk/client-ec2/dist-es/EC2.js +10 -0
- package/node_modules/@aws-sdk/client-ec2/dist-es/commands/GetCapacityManagerSupportabilityScoresCommand.js +4 -0
- package/node_modules/@aws-sdk/client-ec2/dist-es/commands/GetImageFindingsCommand.js +4 -0
- package/node_modules/@aws-sdk/client-ec2/dist-es/commands/GetTransitGatewayAttachmentNatConfigurationCommand.js +4 -0
- package/node_modules/@aws-sdk/client-ec2/dist-es/commands/ModifyTransitGatewayAttachmentNatConfigurationCommand.js +4 -0
- package/node_modules/@aws-sdk/client-ec2/dist-es/commands/index.js +4 -0
- package/node_modules/@aws-sdk/client-ec2/dist-es/models/enums.js +80 -29
- package/node_modules/@aws-sdk/client-ec2/dist-es/pagination/GetImageFindingsPaginator.js +4 -0
- package/node_modules/@aws-sdk/client-ec2/dist-es/pagination/index.js +1 -0
- package/node_modules/@aws-sdk/client-ec2/dist-es/schemas/schemas_0.js +365 -83
- package/node_modules/@aws-sdk/client-ec2/dist-types/EC2.d.ts +35 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/EC2Client.d.ts +8 -3
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateCapacityReservationFleetCommand.d.ts +82 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateCarrierGatewayCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateTransitGatewayRouteCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DeleteLaunchTemplateCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DeleteTransitGatewayRouteCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DeleteTransitGatewayRouteTableCommand.d.ts +5 -2
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeCapacityReservationFleetsCommand.d.ts +81 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeFleetHistoryCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeImagesCommand.d.ts +9 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeInstanceStatusCommand.d.ts +5 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeNetworkInsightsAnalysesCommand.d.ts +48 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeReservedInstancesModificationsCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeReservedInstancesOfferingsCommand.d.ts +1 -2
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeTransitGatewayAttachmentsCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DisassociateTransitGatewayPolicyTableCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DisassociateTransitGatewayRouteTableCommand.d.ts +1 -2
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/GetAllowedImagesSettingsCommand.d.ts +9 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/GetCapacityManagerMetricDataCommand.d.ts +2 -2
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/GetCapacityManagerMetricDimensionsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/GetCapacityManagerSupportabilityScoresCommand.d.ts +183 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/GetImageFindingsCommand.d.ts +90 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/GetNetworkInsightsAccessScopeAnalysisFindingsCommand.d.ts +19 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/GetTransitGatewayAttachmentNatConfigurationCommand.d.ts +82 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/GetVerifiedAccessEndpointTargetsCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/GetVerifiedAccessGroupPolicyCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/GetVpcResourcesBlockingEncryptionEnforcementCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/GetVpnConnectionDeviceSampleConfigurationCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/GetVpnConnectionDeviceTypesCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/GetVpnTunnelReplacementStatusCommand.d.ts +1 -2
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ModifyTransitGatewayAttachmentNatConfigurationCommand.d.ts +107 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/RejectTransitGatewayPeeringAttachmentCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/RejectTransitGatewayVpcAttachmentCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/RejectVpcEndpointConnectionsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/RejectVpcPeeringConnectionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ReleaseAddressCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ReleaseHostsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ReleaseIpamPoolAllocationCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ReplaceIamInstanceProfileAssociationCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ReplaceImageCriteriaInAllowedImagesSettingsCommand.d.ts +9 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ReplaceTransitGatewayRouteCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/SearchTransitGatewayRoutesCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/StartNetworkInsightsAnalysisCommand.d.ts +48 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/index.d.ts +4 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/models/enums.d.ts +192 -77
- package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_0.d.ts +165 -291
- package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_1.d.ts +1839 -1665
- package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_2.d.ts +25 -12
- package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_3.d.ts +27 -38
- package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_4.d.ts +241 -242
- package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_5.d.ts +247 -57
- package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_6.d.ts +537 -341
- package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_7.d.ts +389 -246
- package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_8.d.ts +360 -3
- package/node_modules/@aws-sdk/client-ec2/dist-types/pagination/GetImageFindingsPaginator.d.ts +7 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/pagination/index.d.ts +1 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/schemas/schemas_0.d.ts +21 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/EC2.d.ts +75 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/EC2Client.d.ts +24 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/CreateCapacityReservationFleetCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/CreateCarrierGatewayCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DeleteLaunchTemplateCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DescribeFleetHistoryCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DescribeReservedInstancesModificationsCommand.d.ts +2 -4
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DescribeReservedInstancesOfferingsCommand.d.ts +4 -2
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DisassociateTransitGatewayPolicyTableCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DisassociateTransitGatewayRouteTableCommand.d.ts +4 -2
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/GetCapacityManagerSupportabilityScoresCommand.d.ts +42 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/GetImageFindingsCommand.d.ts +38 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/GetTransitGatewayAttachmentNatConfigurationCommand.d.ts +42 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/GetVerifiedAccessEndpointTargetsCommand.d.ts +2 -4
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/GetVerifiedAccessGroupPolicyCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/GetVpcResourcesBlockingEncryptionEnforcementCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/GetVpnConnectionDeviceSampleConfigurationCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/GetVpnConnectionDeviceTypesCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/GetVpnTunnelReplacementStatusCommand.d.ts +4 -2
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/ModifyTransitGatewayAttachmentNatConfigurationCommand.d.ts +42 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/RejectTransitGatewayPeeringAttachmentCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/RejectTransitGatewayVpcAttachmentCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/RejectVpcEndpointConnectionsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/RejectVpcPeeringConnectionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/ReleaseAddressCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/ReleaseHostsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/ReleaseIpamPoolAllocationCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/ReplaceIamInstanceProfileAssociationCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/enums.d.ts +99 -35
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_0.d.ts +27 -60
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_1.d.ts +118 -69
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_2.d.ts +6 -6
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_3.d.ts +10 -9
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_4.d.ts +31 -34
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_5.d.ts +37 -14
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_6.d.ts +89 -68
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_7.d.ts +86 -64
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_8.d.ts +76 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/pagination/GetImageFindingsPaginator.d.ts +11 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/schemas/schemas_0.d.ts +21 -0
- package/node_modules/@aws-sdk/client-ec2/package.json +8 -8
- package/node_modules/@aws-sdk/client-lambda/README.md +1 -1
- package/node_modules/@aws-sdk/client-lambda/dist-cjs/index.js +9 -3
- package/node_modules/@aws-sdk/client-lambda/dist-es/models/enums.js +4 -0
- package/node_modules/@aws-sdk/client-lambda/dist-es/schemas/schemas_0.js +3 -2
- package/node_modules/@aws-sdk/client-lambda/dist-types/Lambda.d.ts +1 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/LambdaClient.d.ts +3 -2
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/CreateEventSourceMappingCommand.d.ts +2 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/DeleteEventSourceMappingCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/DeleteFunctionConcurrencyCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetEventSourceMappingCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetFunctionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/ListEventSourceMappingsCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/ListFunctionEventInvokeConfigsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/ListVersionsByFunctionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/PublishVersionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/PutFunctionConcurrencyCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/PutFunctionRecursionConfigCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/UpdateEventSourceMappingCommand.d.ts +2 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/UpdateFunctionUrlConfigCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/index.d.ts +1 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/models/enums.d.ts +12 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/models/models_0.d.ts +21 -16
- package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/models/enums.d.ts +6 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/models/models_0.d.ts +2 -0
- package/node_modules/@aws-sdk/client-lambda/package.json +7 -7
- package/node_modules/@aws-sdk/client-service-quotas/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/client-service-quotas/dist-types/ServiceQuotasClient.d.ts +2 -1
- package/node_modules/@aws-sdk/client-service-quotas/package.json +6 -6
- package/node_modules/@aws-sdk/client-sts/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/client-sts/dist-types/STSClient.d.ts +2 -1
- package/node_modules/@aws-sdk/client-sts/package.json +8 -8
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +38 -13
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +7 -7
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +104 -1549
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/util/index.js +2 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/getDefaultSocketTimeout.js +10 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/index.browser.js +1 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/index.js +1 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/index.native.js +1 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-host-header/hostHeaderMiddleware.js +4 -2
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/lib/aws/parseArn.js +4 -2
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-browser/defaultUserAgent.js +18 -9
- package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.js +6 -3
- package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.js +1 -4
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/index.js +2 -7
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js +1 -3
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js +1 -3
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsSmithyRpcV2JsonProtocol.js +51 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/util/util-arn-parser/arn.js +2 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/client/getDefaultSocketTimeout.d.ts +11 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/client/index.browser.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/client/index.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/client/index.native.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.d.ts +3 -7
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/index.d.ts +3 -8
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_0Protocol.d.ts +1 -2
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_1Protocol.d.ts +1 -2
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +2 -3
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsRestJsonProtocol.d.ts +2 -3
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsSmithyRpcV2JsonProtocol.d.ts +25 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/getDefaultSocketTimeout.d.ts +4 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.browser.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.native.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/index.d.ts +11 -10
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_0Protocol.d.ts +1 -2
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_1Protocol.d.ts +1 -2
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +2 -3
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsRestJsonProtocol.d.ts +2 -3
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsSmithyRpcV2JsonProtocol.d.ts +36 -0
- package/node_modules/@aws-sdk/core/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-env/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-http/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +11 -11
- package/node_modules/@aws-sdk/credential-provider-login/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-node/package.json +9 -9
- package/node_modules/@aws-sdk/credential-provider-process/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +6 -6
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +5 -5
- package/node_modules/@aws-sdk/middleware-sdk-ec2/package.json +5 -5
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +3 -2
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +10 -2
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +3 -2
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +3 -2
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +3 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/runtimeConfig.js +2 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/enums.js +7 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.js +2 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.js +2 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.js +2 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.js +2 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/CognitoIdentityClient.d.ts +2 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/Signin.d.ts +1 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/SigninClient.d.ts +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/commands/CreateOAuth2TokenCommand.d.ts +5 -59
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/commands/CreateOAuth2TokenWithIAMCommand.d.ts +5 -33
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/index.d.ts +1 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/enums.d.ts +16 -9
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/errors.d.ts +8 -39
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/models_0.d.ts +36 -48
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/SSOClient.d.ts +2 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/SSOOIDCClient.d.ts +2 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/STSClient.d.ts +2 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/models/enums.d.ts +7 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/package.json +6 -6
- package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +3 -3
- package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +37 -19
- package/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js +37 -19
- package/node_modules/@aws-sdk/token-providers/package.json +5 -5
- package/node_modules/@aws-sdk/types/dist-types/feature-ids.d.ts +3 -0
- package/node_modules/@aws-sdk/types/dist-types/ts3.4/feature-ids.d.ts +3 -0
- package/node_modules/@aws-sdk/types/package.json +1 -1
- package/node_modules/@aws-sdk/xml-builder/package.json +1 -1
- package/node_modules/@smithy/core/dist-cjs/index.js +4 -2
- package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +45 -53
- package/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +52 -19
- package/node_modules/@smithy/core/dist-cjs/submodules/config/index.browser.js +8 -4
- package/node_modules/@smithy/core/dist-cjs/submodules/config/index.js +16 -8
- package/node_modules/@smithy/core/dist-cjs/submodules/config/index.native.js +8 -4
- package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.browser.js +2 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +10 -5
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.browser.js +28 -9
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +28 -9
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +91 -58
- package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +53 -15
- package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +57 -17
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +13 -4
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +7 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +13 -4
- package/node_modules/@smithy/core/dist-cjs/submodules/transport/index.js +6 -3
- package/node_modules/@smithy/core/dist-es/legacy-root-exports/util-identity-and-auth/DefaultIdentityProviderConfig.js +2 -1
- package/node_modules/@smithy/core/dist-es/normalizeProvider.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/cbor/SmithyRpcV2CborProtocol.js +12 -37
- package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeDeserializer.js +8 -4
- package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeSerializer.js +6 -3
- package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeDeserializer2.js +12 -6
- package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeSerializer2.js +4 -2
- package/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/client/middleware-stack/MiddlewareStack.js +10 -5
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/command.js +17 -2
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/create-aggregated-client.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/exceptions.js +4 -2
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/extensions/checksum.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/get-value-from-text-node.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/object-mapping.js +4 -2
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/schemaLogFilter.js +10 -4
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/serde-json.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getHomeDir.js +8 -4
- package/node_modules/@smithy/core/dist-es/submodules/config/util-config-provider/booleanSelector.js +6 -3
- package/node_modules/@smithy/core/dist-es/submodules/config/util-config-provider/numberSelector.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/adaptors/getEndpointUrlConfig.js +8 -4
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/resolveEndpoint.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +6 -3
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/HeaderMarshaller.js +12 -1
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/Int64.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/SmithyMessageDecoderStream.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-serde/utils.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-serde-universal/getUnmarshalledStream.js +4 -2
- package/node_modules/@smithy/core/dist-es/submodules/protocols/AbstractRpcV2Protocol.js +35 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +8 -4
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +4 -2
- package/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js +6 -2
- package/node_modules/@smithy/core/dist-es/submodules/protocols/index.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/json/SmithyRpcV2JsonProtocol.js +8 -31
- package/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v1/JsonShapeDeserializer.js +7 -5
- package/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v1/JsonShapeSerializer.js +7 -5
- package/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.js +7 -5
- package/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeSerializer2.js +11 -8
- package/node_modules/@smithy/core/dist-es/submodules/protocols/protocol-http/extensions/httpExtensionConfiguration.js +3 -0
- package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/configurations.js +4 -2
- package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/parseRetryAfterHeader.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retry-pre-sra-deprecated/StandardRetryStrategy.js +6 -3
- package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retryMiddleware.js +17 -8
- package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/util.js +6 -3
- package/node_modules/@smithy/core/dist-es/submodules/retry/util-retry/race.js +22 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/index.browser.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/index.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/index.native.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/parse-utils.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/serde/util-body-length/calculateBodyLength.browser.js +6 -3
- package/node_modules/@smithy/core/dist-es/submodules/transport/httpResponse.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/transport/normalizeProvider.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/transport/toEndpointV1.js +2 -1
- package/node_modules/@smithy/core/dist-types/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +5 -14
- package/node_modules/@smithy/core/dist-types/submodules/protocols/AbstractRpcV2Protocol.d.ts +45 -0
- package/node_modules/@smithy/core/dist-types/submodules/protocols/RpcProtocol.d.ts +12 -0
- package/node_modules/@smithy/core/dist-types/submodules/protocols/index.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/submodules/protocols/json/SmithyRpcV2JsonProtocol.d.ts +5 -14
- package/node_modules/@smithy/core/dist-types/submodules/protocols/protocol-http/extensions/httpExtensionConfiguration.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/submodules/retry/util-retry/race.d.ts +3 -0
- package/node_modules/@smithy/core/dist-types/submodules/serde/index.browser.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/submodules/serde/index.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/submodules/serde/index.native.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +5 -14
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/AbstractRpcV2Protocol.d.ts +45 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/RpcProtocol.d.ts +12 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/index.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/SmithyRpcV2JsonProtocol.d.ts +5 -14
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/protocol-http/extensions/httpExtensionConfiguration.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/retry/util-retry/race.d.ts +3 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.browser.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.native.d.ts +1 -0
- package/node_modules/@smithy/core/package.json +2 -2
- package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +84 -29
- package/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js +2 -1
- package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +23 -11
- package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +26 -2
- package/node_modules/@smithy/node-http-handler/dist-es/resolve-default-socket-timeout.js +4 -0
- package/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js +30 -15
- package/node_modules/@smithy/node-http-handler/dist-types/resolve-default-socket-timeout.d.ts +4 -0
- package/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts +10 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/resolve-default-socket-timeout.d.ts +4 -0
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-timeout.d.ts +10 -1
- package/node_modules/@smithy/node-http-handler/package.json +3 -3
- package/node_modules/@smithy/signature-v4/dist-cjs/index.js +23 -11
- package/node_modules/@smithy/signature-v4/dist-es/HeaderFormatter.js +4 -2
- package/node_modules/@smithy/signature-v4/dist-es/SignatureV4Base.js +4 -2
- package/node_modules/@smithy/signature-v4/dist-es/getCanonicalHeaders.js +5 -1
- package/node_modules/@smithy/signature-v4/dist-es/getCanonicalQuery.js +2 -1
- package/node_modules/@smithy/signature-v4/dist-es/getPayloadHash.js +2 -1
- package/node_modules/@smithy/signature-v4/dist-es/headerUtil.js +6 -3
- package/node_modules/@smithy/signature-v4/dist-es/moveHeadersToQuery.js +2 -1
- package/node_modules/@smithy/signature-v4/dist-es/prepareRequest.js +2 -1
- package/node_modules/@smithy/signature-v4/package.json +2 -2
- package/node_modules/@smithy/types/dist-types/middleware.d.ts +6 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/middleware.d.ts +6 -0
- package/node_modules/@smithy/types/package.json +1 -1
- package/package.json +1 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonSettings.js +0 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v1/JsonCodec.js +0 -20
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v1/JsonSettings.js +0 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v1/JsonShapeDeserializer.js +0 -160
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v1/JsonShapeSerializer.js +0 -193
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.js +0 -103
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v2/JsonCodec2.js +0 -20
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.js +0 -200
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeSerializer2.js +0 -519
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/detectBufferParsing.js +0 -18
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/jsonReplacer.js +0 -46
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/jsonReviver.js +0 -121
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/needsReviver.js +0 -41
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/parseJsonBody.js +0 -89
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonSettings.d.ts +0 -7
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v1/JsonCodec.d.ts +0 -15
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v1/JsonSettings.d.ts +0 -7
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v1/JsonShapeDeserializer.d.ts +0 -14
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v1/JsonShapeSerializer.d.ts +0 -29
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.d.ts +0 -51
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v2/JsonCodec2.d.ts +0 -13
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.d.ts +0 -30
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v2/JsonShapeSerializer2.d.ts +0 -60
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/detectBufferParsing.d.ts +0 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/jsonReplacer.d.ts +0 -21
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/jsonReviver.d.ts +0 -15
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/needsReviver.d.ts +0 -11
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/parseJsonBody.d.ts +0 -22
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonSettings.d.ts +0 -4
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonCodec.d.ts +0 -11
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonSettings.d.ts +0 -4
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonShapeDeserializer.d.ts +0 -13
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonShapeSerializer.d.ts +0 -18
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.d.ts +0 -27
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonCodec2.d.ts +0 -9
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.d.ts +0 -15
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeSerializer2.d.ts +0 -39
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/detectBufferParsing.d.ts +0 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/jsonReplacer.d.ts +0 -7
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/jsonReviver.d.ts +0 -7
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/needsReviver.d.ts +0 -2
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/parseJsonBody.d.ts +0 -14
- /package/node_modules/@smithy/core/dist-es/submodules/{protocols → serde}/writeKey.js +0 -0
- /package/node_modules/@smithy/core/dist-types/submodules/{protocols → serde}/writeKey.d.ts +0 -0
- /package/node_modules/@smithy/core/dist-types/ts3.4/submodules/{protocols → serde}/writeKey.d.ts +0 -0
|
@@ -3,8 +3,9 @@ const { buildQueryString } = require("@smithy/core/protocols");
|
|
|
3
3
|
const validate = (str) => typeof str === "string" && str.indexOf("arn:") === 0 && str.split(":").length >= 6;
|
|
4
4
|
const parse = (arn) => {
|
|
5
5
|
const segments = arn.split(":");
|
|
6
|
-
if (segments.length < 6 || segments[0] !== "arn")
|
|
6
|
+
if (segments.length < 6 || segments[0] !== "arn") {
|
|
7
7
|
throw new Error("Malformed ARN");
|
|
8
|
+
}
|
|
8
9
|
const [, partition, service, region, accountId, ...resource] = segments;
|
|
9
10
|
return {
|
|
10
11
|
partition,
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
const isDefaultSocketTimeoutEnabled = () => typeof process === "object" && process?.env?.AWS_ENABLE_DEFAULT_SOCKET_TIMEOUT_2026 === "true";
|
|
2
|
+
export const getDefaultSocketTimeout = (requestHandler, timeoutMs) => {
|
|
3
|
+
if (!isDefaultSocketTimeoutEnabled()) {
|
|
4
|
+
return undefined;
|
|
5
|
+
}
|
|
6
|
+
if (typeof requestHandler?.handle === "function") {
|
|
7
|
+
return undefined;
|
|
8
|
+
}
|
|
9
|
+
return timeoutMs;
|
|
10
|
+
};
|
|
@@ -5,6 +5,7 @@ export { getLongPollPlugin } from "./longPollMiddleware";
|
|
|
5
5
|
export { setCredentialFeature } from "./setCredentialFeature";
|
|
6
6
|
export { setFeature } from "./setFeature";
|
|
7
7
|
export { setTokenFeature } from "./setTokenFeature";
|
|
8
|
+
export const getDefaultSocketTimeout = no;
|
|
8
9
|
export { hostHeaderMiddleware, hostHeaderMiddlewareOptions, getHostHeaderPlugin, resolveHostHeaderConfig, } from "./middleware-host-header/hostHeaderMiddleware";
|
|
9
10
|
export { loggerMiddleware, loggerMiddlewareOptions, getLoggerPlugin } from "./middleware-logger/loggerMiddleware";
|
|
10
11
|
export { recursionDetectionMiddlewareOptions } from "./middleware-recursion-detection/configuration";
|
|
@@ -3,6 +3,7 @@ export { getLongPollPlugin } from "./longPollMiddleware";
|
|
|
3
3
|
export { setCredentialFeature } from "./setCredentialFeature";
|
|
4
4
|
export { setFeature } from "./setFeature";
|
|
5
5
|
export { setTokenFeature } from "./setTokenFeature";
|
|
6
|
+
export { getDefaultSocketTimeout } from "./getDefaultSocketTimeout";
|
|
6
7
|
export { hostHeaderMiddleware, hostHeaderMiddlewareOptions, getHostHeaderPlugin, resolveHostHeaderConfig, } from "./middleware-host-header/hostHeaderMiddleware";
|
|
7
8
|
export { loggerMiddleware, loggerMiddlewareOptions, getLoggerPlugin } from "./middleware-logger/loggerMiddleware";
|
|
8
9
|
export { recursionDetectionMiddlewareOptions } from "./middleware-recursion-detection/configuration";
|
|
@@ -5,6 +5,7 @@ export { getLongPollPlugin } from "./longPollMiddleware";
|
|
|
5
5
|
export { setCredentialFeature } from "./setCredentialFeature";
|
|
6
6
|
export { setFeature } from "./setFeature";
|
|
7
7
|
export { setTokenFeature } from "./setTokenFeature";
|
|
8
|
+
export const getDefaultSocketTimeout = no;
|
|
8
9
|
export { hostHeaderMiddleware, hostHeaderMiddlewareOptions, getHostHeaderPlugin, resolveHostHeaderConfig, } from "./middleware-host-header/hostHeaderMiddleware";
|
|
9
10
|
export { loggerMiddleware, loggerMiddlewareOptions, getLoggerPlugin } from "./middleware-logger/loggerMiddleware";
|
|
10
11
|
export { recursionDetectionMiddlewareOptions } from "./middleware-recursion-detection/configuration";
|
|
@@ -3,8 +3,9 @@ export function resolveHostHeaderConfig(input) {
|
|
|
3
3
|
return input;
|
|
4
4
|
}
|
|
5
5
|
export const hostHeaderMiddleware = (options) => (next) => async (args) => {
|
|
6
|
-
if (!HttpRequest.isInstance(args.request))
|
|
6
|
+
if (!HttpRequest.isInstance(args.request)) {
|
|
7
7
|
return next(args);
|
|
8
|
+
}
|
|
8
9
|
const { request } = args;
|
|
9
10
|
const { handlerProtocol = "" } = options.requestHandler.metadata || {};
|
|
10
11
|
if (handlerProtocol.indexOf("h2") >= 0 && !request.headers[":authority"]) {
|
|
@@ -13,8 +14,9 @@ export const hostHeaderMiddleware = (options) => (next) => async (args) => {
|
|
|
13
14
|
}
|
|
14
15
|
else if (!request.headers["host"]) {
|
|
15
16
|
let host = request.hostname;
|
|
16
|
-
if (request.port != null)
|
|
17
|
+
if (request.port != null) {
|
|
17
18
|
host += `:${request.port}`;
|
|
19
|
+
}
|
|
18
20
|
request.headers["host"] = host;
|
|
19
21
|
}
|
|
20
22
|
return next(args);
|
package/node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/lib/aws/parseArn.js
CHANGED
|
@@ -2,11 +2,13 @@ const ARN_DELIMITER = ":";
|
|
|
2
2
|
const RESOURCE_DELIMITER = "/";
|
|
3
3
|
export const parseArn = (value) => {
|
|
4
4
|
const segments = value.split(ARN_DELIMITER);
|
|
5
|
-
if (segments.length < 6)
|
|
5
|
+
if (segments.length < 6) {
|
|
6
6
|
return null;
|
|
7
|
+
}
|
|
7
8
|
const [arn, partition, service, region, accountId, ...resourcePath] = segments;
|
|
8
|
-
if (arn !== "arn" || partition === "" || service === "" || resourcePath.join(ARN_DELIMITER) === "")
|
|
9
|
+
if (arn !== "arn" || partition === "" || service === "" || resourcePath.join(ARN_DELIMITER) === "") {
|
|
9
10
|
return null;
|
|
11
|
+
}
|
|
10
12
|
const resourceId = resourcePath.map((resource) => resource.split(RESOURCE_DELIMITER)).flat();
|
|
11
13
|
return {
|
|
12
14
|
partition,
|
|
@@ -26,27 +26,36 @@ export const createDefaultUserAgentProvider = ({ serviceId, clientVersion }) =>
|
|
|
26
26
|
};
|
|
27
27
|
export const fallback = {
|
|
28
28
|
os(ua) {
|
|
29
|
-
if (/iPhone|iPad|iPod/.test(ua))
|
|
29
|
+
if (/iPhone|iPad|iPod/.test(ua)) {
|
|
30
30
|
return "iOS";
|
|
31
|
-
|
|
31
|
+
}
|
|
32
|
+
if (/Macintosh|Mac OS X/.test(ua)) {
|
|
32
33
|
return "macOS";
|
|
33
|
-
|
|
34
|
+
}
|
|
35
|
+
if (/Windows NT/.test(ua)) {
|
|
34
36
|
return "Windows";
|
|
35
|
-
|
|
37
|
+
}
|
|
38
|
+
if (/Android/.test(ua)) {
|
|
36
39
|
return "Android";
|
|
37
|
-
|
|
40
|
+
}
|
|
41
|
+
if (/Linux/.test(ua)) {
|
|
38
42
|
return "Linux";
|
|
43
|
+
}
|
|
39
44
|
return undefined;
|
|
40
45
|
},
|
|
41
46
|
browser(ua) {
|
|
42
|
-
if (/EdgiOS|EdgA|Edg\//.test(ua))
|
|
47
|
+
if (/EdgiOS|EdgA|Edg\//.test(ua)) {
|
|
43
48
|
return "Microsoft Edge";
|
|
44
|
-
|
|
49
|
+
}
|
|
50
|
+
if (/Firefox\//.test(ua)) {
|
|
45
51
|
return "Firefox";
|
|
46
|
-
|
|
52
|
+
}
|
|
53
|
+
if (/Chrome\//.test(ua)) {
|
|
47
54
|
return "Chrome";
|
|
48
|
-
|
|
55
|
+
}
|
|
56
|
+
if (/Safari\//.test(ua)) {
|
|
49
57
|
return "Safari";
|
|
58
|
+
}
|
|
50
59
|
return undefined;
|
|
51
60
|
},
|
|
52
61
|
};
|
|
@@ -6,16 +6,19 @@ export const NODE_AUTH_SCHEME_PREFERENCE_OPTIONS = {
|
|
|
6
6
|
environmentVariableSelector: (env, options) => {
|
|
7
7
|
if (options?.signingName) {
|
|
8
8
|
const bearerTokenKey = getBearerTokenEnvKey(options.signingName);
|
|
9
|
-
if (bearerTokenKey in env)
|
|
9
|
+
if (bearerTokenKey in env) {
|
|
10
10
|
return ["httpBearerAuth"];
|
|
11
|
+
}
|
|
11
12
|
}
|
|
12
|
-
if (!(NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY in env))
|
|
13
|
+
if (!(NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY in env)) {
|
|
13
14
|
return undefined;
|
|
15
|
+
}
|
|
14
16
|
return getArrayForCommaSeparatedString(env[NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY]);
|
|
15
17
|
},
|
|
16
18
|
configFileSelector: (profile) => {
|
|
17
|
-
if (!(NODE_AUTH_SCHEME_PREFERENCE_CONFIG_KEY in profile))
|
|
19
|
+
if (!(NODE_AUTH_SCHEME_PREFERENCE_CONFIG_KEY in profile)) {
|
|
18
20
|
return undefined;
|
|
21
|
+
}
|
|
19
22
|
return getArrayForCommaSeparatedString(profile[NODE_AUTH_SCHEME_PREFERENCE_CONFIG_KEY]);
|
|
20
23
|
},
|
|
21
24
|
default: [],
|
|
@@ -7,8 +7,5 @@ export const getUpdatedSystemClockOffset = (clockTime, currentSystemClockOffset,
|
|
|
7
7
|
if (timeRequestSent !== undefined && timeResponseReceived - timeRequestSent > 900_000) {
|
|
8
8
|
return currentSystemClockOffset;
|
|
9
9
|
}
|
|
10
|
-
|
|
11
|
-
? serverTime - (timeRequestSent + timeResponseReceived) / 2
|
|
12
|
-
: serverTime - timeResponseReceived;
|
|
13
|
-
return candidateSkew;
|
|
10
|
+
return serverTime - timeResponseReceived;
|
|
14
11
|
};
|
|
@@ -3,13 +3,8 @@ export { AwsJson1_0Protocol } from "./json/AwsJson1_0Protocol";
|
|
|
3
3
|
export { AwsJson1_1Protocol } from "./json/AwsJson1_1Protocol";
|
|
4
4
|
export { AwsJsonRpcProtocol } from "./json/AwsJsonRpcProtocol";
|
|
5
5
|
export { AwsRestJsonProtocol } from "./json/AwsRestJsonProtocol";
|
|
6
|
-
export {
|
|
7
|
-
export { JsonShapeDeserializer } from "
|
|
8
|
-
export { JsonShapeSerializer } from "./json/codec-v1/JsonShapeSerializer";
|
|
9
|
-
export { JsonCodec2 } from "./json/codec-v2/JsonCodec2";
|
|
10
|
-
export { JsonShapeDeserializer2 } from "./json/codec-v2/JsonShapeDeserializer2";
|
|
11
|
-
export { JsonShapeSerializer2 } from "./json/codec-v2/JsonShapeSerializer2";
|
|
12
|
-
export { parseJsonBody, parseJsonErrorBody, loadRestJsonErrorCode, loadJsonRpcErrorCode } from "./json/parseJsonBody";
|
|
6
|
+
export { AwsSmithyRpcV2JsonProtocol } from "./json/AwsSmithyRpcV2JsonProtocol";
|
|
7
|
+
export { JsonCodec, JsonCodec2, JsonShapeDeserializer, JsonShapeDeserializer2, JsonShapeSerializer, JsonShapeSerializer2, loadJsonRpcErrorCode, loadRestJsonErrorCode, parseJsonBody, parseJsonErrorBody, } from "@smithy/core/protocols";
|
|
13
8
|
export { AwsEc2QueryProtocol } from "./query/AwsEc2QueryProtocol";
|
|
14
9
|
export { AwsQueryProtocol } from "./query/AwsQueryProtocol";
|
|
15
10
|
export { QueryShapeSerializer } from "./query/QueryShapeSerializer";
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { RpcProtocol } from "@smithy/core/protocols";
|
|
1
|
+
import { JsonCodec2, loadJsonRpcErrorCode, RpcProtocol } from "@smithy/core/protocols";
|
|
2
2
|
import { deref, NormalizedSchema } from "@smithy/core/schema";
|
|
3
3
|
import { ProtocolLib } from "../ProtocolLib";
|
|
4
|
-
import { JsonCodec2 } from "./codec-v2/JsonCodec2";
|
|
5
|
-
import { loadJsonRpcErrorCode } from "./parseJsonBody";
|
|
6
4
|
export class AwsJsonRpcProtocol extends RpcProtocol {
|
|
7
5
|
serializer;
|
|
8
6
|
deserializer;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { HttpBindingProtocol, HttpInterceptingShapeDeserializer, HttpInterceptingShapeSerializer, } from "@smithy/core/protocols";
|
|
1
|
+
import { HttpBindingProtocol, HttpInterceptingShapeDeserializer, HttpInterceptingShapeSerializer, JsonCodec2, loadRestJsonErrorCode, } from "@smithy/core/protocols";
|
|
2
2
|
import { NormalizedSchema } from "@smithy/core/schema";
|
|
3
3
|
import { ProtocolLib } from "../ProtocolLib";
|
|
4
|
-
import { JsonCodec2 } from "./codec-v2/JsonCodec2";
|
|
5
|
-
import { loadRestJsonErrorCode } from "./parseJsonBody";
|
|
6
4
|
export class AwsRestJsonProtocol extends HttpBindingProtocol {
|
|
7
5
|
serializer;
|
|
8
6
|
deserializer;
|
package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsSmithyRpcV2JsonProtocol.js
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { loadSmithyRpcV2JsonErrorCode, SmithyRpcV2JsonProtocol } from "@smithy/core/protocols";
|
|
2
|
+
import { NormalizedSchema } from "@smithy/core/schema";
|
|
3
|
+
import { ProtocolLib } from "../ProtocolLib";
|
|
4
|
+
export class AwsSmithyRpcV2JsonProtocol extends SmithyRpcV2JsonProtocol {
|
|
5
|
+
awsQueryCompatible;
|
|
6
|
+
mixin;
|
|
7
|
+
constructor({ defaultNamespace, errorTypeRegistries, awsQueryCompatible, }) {
|
|
8
|
+
super({ defaultNamespace, errorTypeRegistries });
|
|
9
|
+
this.awsQueryCompatible = !!awsQueryCompatible;
|
|
10
|
+
this.mixin = new ProtocolLib(this.awsQueryCompatible);
|
|
11
|
+
}
|
|
12
|
+
async serializeRequest(operationSchema, input, context) {
|
|
13
|
+
const request = await super.serializeRequest(operationSchema, input, context);
|
|
14
|
+
if (this.awsQueryCompatible) {
|
|
15
|
+
request.headers["x-amzn-query-mode"] = "true";
|
|
16
|
+
}
|
|
17
|
+
return request;
|
|
18
|
+
}
|
|
19
|
+
async handleError(operationSchema, context, response, dataObject, metadata) {
|
|
20
|
+
if (this.awsQueryCompatible) {
|
|
21
|
+
this.mixin.setQueryCompatError(dataObject, response);
|
|
22
|
+
}
|
|
23
|
+
const errorName = (() => {
|
|
24
|
+
const compatHeader = response.headers["x-amzn-query-error"];
|
|
25
|
+
if (compatHeader && this.awsQueryCompatible) {
|
|
26
|
+
return compatHeader.split(";")[0];
|
|
27
|
+
}
|
|
28
|
+
return loadSmithyRpcV2JsonErrorCode(response, dataObject) ?? "Unknown";
|
|
29
|
+
})();
|
|
30
|
+
this.mixin.compose(this.compositeErrorRegistry, errorName, this.options.defaultNamespace);
|
|
31
|
+
const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorName, this.options.defaultNamespace, response, dataObject, metadata, this.awsQueryCompatible ? this.mixin.findQueryCompatibleError : undefined);
|
|
32
|
+
const ns = NormalizedSchema.of(errorSchema);
|
|
33
|
+
const message = dataObject.message ?? dataObject.Message ?? "UnknownError";
|
|
34
|
+
const ErrorCtor = this.compositeErrorRegistry.getErrorCtor(errorSchema) ?? Error;
|
|
35
|
+
const exception = new ErrorCtor({});
|
|
36
|
+
const output = {};
|
|
37
|
+
const errorDeserializer = this.getPayloadCodec().createDeserializer();
|
|
38
|
+
for (const [name, member] of ns.structIterator()) {
|
|
39
|
+
if (dataObject[name] != null) {
|
|
40
|
+
output[name] = errorDeserializer.readObject(member, dataObject[name]);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
if (this.awsQueryCompatible) {
|
|
44
|
+
this.mixin.queryCompatOutput(dataObject, output);
|
|
45
|
+
}
|
|
46
|
+
throw this.mixin.decorateServiceException(Object.assign(exception, errorMetadata, {
|
|
47
|
+
$fault: ns.getMergedTraits().error,
|
|
48
|
+
message,
|
|
49
|
+
}, output), dataObject);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
export const validate = (str) => typeof str === "string" && str.indexOf("arn:") === 0 && str.split(":").length >= 6;
|
|
2
2
|
export const parse = (arn) => {
|
|
3
3
|
const segments = arn.split(":");
|
|
4
|
-
if (segments.length < 6 || segments[0] !== "arn")
|
|
4
|
+
if (segments.length < 6 || segments[0] !== "arn") {
|
|
5
5
|
throw new Error("Malformed ARN");
|
|
6
|
+
}
|
|
6
7
|
const [, partition, service, region, accountId, ...resource] = segments;
|
|
7
8
|
return {
|
|
8
9
|
partition,
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* When AWS_ENABLE_DEFAULT_SOCKET_TIMEOUT_2026 is "true", returns the service's
|
|
3
|
+
* `defaultSocketTimeout` for the client to offer its request handler. Returns undefined
|
|
4
|
+
* for a caller's handler instance, which may be shared with other clients.
|
|
5
|
+
*
|
|
6
|
+
* @param requestHandler - the client's requestHandler input.
|
|
7
|
+
* @param timeoutMs - the service default socket timeout, in milliseconds.
|
|
8
|
+
*
|
|
9
|
+
* @internal
|
|
10
|
+
*/
|
|
11
|
+
export declare const getDefaultSocketTimeout: (requestHandler: unknown, timeoutMs: number) => number | undefined;
|
|
@@ -4,6 +4,7 @@ export { getLongPollPlugin } from "./longPollMiddleware";
|
|
|
4
4
|
export { setCredentialFeature } from "./setCredentialFeature";
|
|
5
5
|
export { setFeature } from "./setFeature";
|
|
6
6
|
export { setTokenFeature } from "./setTokenFeature";
|
|
7
|
+
export declare const getDefaultSocketTimeout: symbol;
|
|
7
8
|
export { hostHeaderMiddleware, hostHeaderMiddlewareOptions, getHostHeaderPlugin, resolveHostHeaderConfig, } from "./middleware-host-header/hostHeaderMiddleware";
|
|
8
9
|
export type { HostHeaderInputConfig, HostHeaderResolvedConfig } from "./middleware-host-header/hostHeaderMiddleware";
|
|
9
10
|
export { loggerMiddleware, loggerMiddlewareOptions, getLoggerPlugin } from "./middleware-logger/loggerMiddleware";
|
|
@@ -3,6 +3,7 @@ export { getLongPollPlugin } from "./longPollMiddleware";
|
|
|
3
3
|
export { setCredentialFeature } from "./setCredentialFeature";
|
|
4
4
|
export { setFeature } from "./setFeature";
|
|
5
5
|
export { setTokenFeature } from "./setTokenFeature";
|
|
6
|
+
export { getDefaultSocketTimeout } from "./getDefaultSocketTimeout";
|
|
6
7
|
export { hostHeaderMiddleware, hostHeaderMiddlewareOptions, getHostHeaderPlugin, resolveHostHeaderConfig, } from "./middleware-host-header/hostHeaderMiddleware";
|
|
7
8
|
export type { HostHeaderInputConfig, HostHeaderResolvedConfig } from "./middleware-host-header/hostHeaderMiddleware";
|
|
8
9
|
export { loggerMiddleware, loggerMiddlewareOptions, getLoggerPlugin } from "./middleware-logger/loggerMiddleware";
|
|
@@ -4,6 +4,7 @@ export { getLongPollPlugin } from "./longPollMiddleware";
|
|
|
4
4
|
export { setCredentialFeature } from "./setCredentialFeature";
|
|
5
5
|
export { setFeature } from "./setFeature";
|
|
6
6
|
export { setTokenFeature } from "./setTokenFeature";
|
|
7
|
+
export declare const getDefaultSocketTimeout: symbol;
|
|
7
8
|
export { hostHeaderMiddleware, hostHeaderMiddlewareOptions, getHostHeaderPlugin, resolveHostHeaderConfig, } from "./middleware-host-header/hostHeaderMiddleware";
|
|
8
9
|
export type { HostHeaderInputConfig, HostHeaderResolvedConfig } from "./middleware-host-header/hostHeaderMiddleware";
|
|
9
10
|
export { loggerMiddleware, loggerMiddlewareOptions, getLoggerPlugin } from "./middleware-logger/loggerMiddleware";
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Computes an updated system clock offset from a server Date header.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* candidateSkew = serverTime - midpoint
|
|
8
|
-
*
|
|
9
|
-
* When `timeRequestSent` is absent (legacy callers), falls back to:
|
|
10
|
-
* candidateSkew = serverTime - timeResponseReceived
|
|
4
|
+
* The candidate skew is the difference between the server time and the client
|
|
5
|
+
* time when the response is received:
|
|
6
|
+
* candidateSkew = serverTime - timeResponseReceived
|
|
11
7
|
*
|
|
12
8
|
* The candidate is discarded if:
|
|
13
9
|
* - An Age header is present
|
|
@@ -3,14 +3,9 @@ export { AwsJson1_0Protocol } from "./json/AwsJson1_0Protocol";
|
|
|
3
3
|
export { AwsJson1_1Protocol } from "./json/AwsJson1_1Protocol";
|
|
4
4
|
export { AwsJsonRpcProtocol } from "./json/AwsJsonRpcProtocol";
|
|
5
5
|
export { AwsRestJsonProtocol } from "./json/AwsRestJsonProtocol";
|
|
6
|
-
export {
|
|
7
|
-
export
|
|
8
|
-
export {
|
|
9
|
-
export { JsonShapeSerializer } from "./json/codec-v1/JsonShapeSerializer";
|
|
10
|
-
export { JsonCodec2 } from "./json/codec-v2/JsonCodec2";
|
|
11
|
-
export { JsonShapeDeserializer2 } from "./json/codec-v2/JsonShapeDeserializer2";
|
|
12
|
-
export { JsonShapeSerializer2 } from "./json/codec-v2/JsonShapeSerializer2";
|
|
13
|
-
export { parseJsonBody, parseJsonErrorBody, loadRestJsonErrorCode, loadJsonRpcErrorCode } from "./json/parseJsonBody";
|
|
6
|
+
export { AwsSmithyRpcV2JsonProtocol } from "./json/AwsSmithyRpcV2JsonProtocol";
|
|
7
|
+
export { JsonCodec, JsonCodec2, JsonShapeDeserializer, JsonShapeDeserializer2, JsonShapeSerializer, JsonShapeSerializer2, loadJsonRpcErrorCode, loadRestJsonErrorCode, parseJsonBody, parseJsonErrorBody, } from "@smithy/core/protocols";
|
|
8
|
+
export type { JsonSettings } from "@smithy/core/protocols";
|
|
14
9
|
export { AwsEc2QueryProtocol } from "./query/AwsEc2QueryProtocol";
|
|
15
10
|
export { AwsQueryProtocol } from "./query/AwsQueryProtocol";
|
|
16
11
|
export type { QuerySerializerSettings } from "./query/QuerySerializerSettings";
|
package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_0Protocol.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { TypeRegistry } from "@smithy/core/schema";
|
|
2
|
+
import type { JsonCodec, JsonCodec2 } from "@smithy/core/protocols";
|
|
2
3
|
import { AwsJsonRpcProtocol } from "./AwsJsonRpcProtocol";
|
|
3
|
-
import type { JsonCodec } from "./codec-v1/JsonCodec";
|
|
4
|
-
import type { JsonCodec2 } from "./codec-v2/JsonCodec2";
|
|
5
4
|
/**
|
|
6
5
|
* @public
|
|
7
6
|
* @see https://smithy.io/2.0/aws/protocols/aws-json-1_1-protocol.html#differences-between-awsjson1-0-and-awsjson1-1
|
package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_1Protocol.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { TypeRegistry } from "@smithy/core/schema";
|
|
2
|
+
import type { JsonCodec, JsonCodec2 } from "@smithy/core/protocols";
|
|
2
3
|
import { AwsJsonRpcProtocol } from "./AwsJsonRpcProtocol";
|
|
3
|
-
import type { JsonCodec } from "./codec-v1/JsonCodec";
|
|
4
|
-
import type { JsonCodec2 } from "./codec-v2/JsonCodec2";
|
|
5
4
|
/**
|
|
6
5
|
* @public
|
|
7
6
|
* @see https://smithy.io/2.0/aws/protocols/aws-json-1_1-protocol.html#differences-between-awsjson1-0-and-awsjson1-1
|
package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJsonRpcProtocol.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { RpcProtocol } from "@smithy/core/protocols";
|
|
1
|
+
import { JsonCodec2, RpcProtocol } from "@smithy/core/protocols";
|
|
2
|
+
import type { JsonCodec } from "@smithy/core/protocols";
|
|
2
3
|
import type { TypeRegistry } from "@smithy/core/schema";
|
|
3
4
|
import type { EndpointBearer, HandlerExecutionContext, HttpRequest, HttpResponse, OperationSchema, ResponseMetadata, SerdeFunctions, ShapeDeserializer, ShapeSerializer } from "@smithy/types";
|
|
4
|
-
import type { JsonCodec } from "./codec-v1/JsonCodec";
|
|
5
|
-
import { JsonCodec2 } from "./codec-v2/JsonCodec2";
|
|
6
5
|
/**
|
|
7
6
|
* @public
|
|
8
7
|
*/
|
package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsRestJsonProtocol.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { HttpBindingProtocol } from "@smithy/core/protocols";
|
|
1
|
+
import { HttpBindingProtocol, JsonCodec2 } from "@smithy/core/protocols";
|
|
2
|
+
import type { JsonCodec } from "@smithy/core/protocols";
|
|
2
3
|
import type { TypeRegistry } from "@smithy/core/schema";
|
|
3
4
|
import type { EndpointBearer, HandlerExecutionContext, HttpRequest, HttpResponse, MetadataBearer, OperationSchema, ResponseMetadata, SerdeFunctions, ShapeDeserializer, ShapeSerializer } from "@smithy/types";
|
|
4
|
-
import type { JsonCodec } from "./codec-v1/JsonCodec";
|
|
5
|
-
import { JsonCodec2 } from "./codec-v2/JsonCodec2";
|
|
6
5
|
/**
|
|
7
6
|
* @public
|
|
8
7
|
*/
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { SmithyRpcV2JsonProtocol } from "@smithy/core/protocols";
|
|
2
|
+
import type { TypeRegistry } from "@smithy/core/schema";
|
|
3
|
+
import type { EndpointBearer, HandlerExecutionContext, HttpRequest, HttpResponse, OperationSchema, ResponseMetadata, SerdeFunctions } from "@smithy/types";
|
|
4
|
+
/**
|
|
5
|
+
* Extends the Smithy implementation to add AwsQueryCompatibility support.
|
|
6
|
+
*
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export declare class AwsSmithyRpcV2JsonProtocol extends SmithyRpcV2JsonProtocol {
|
|
10
|
+
private readonly awsQueryCompatible;
|
|
11
|
+
private readonly mixin;
|
|
12
|
+
constructor({ defaultNamespace, errorTypeRegistries, awsQueryCompatible, }: {
|
|
13
|
+
defaultNamespace: string;
|
|
14
|
+
errorTypeRegistries?: TypeRegistry[];
|
|
15
|
+
awsQueryCompatible?: boolean;
|
|
16
|
+
});
|
|
17
|
+
/**
|
|
18
|
+
* @override
|
|
19
|
+
*/
|
|
20
|
+
serializeRequest<Input extends object>(operationSchema: OperationSchema, input: Input, context: HandlerExecutionContext & SerdeFunctions & EndpointBearer): Promise<HttpRequest>;
|
|
21
|
+
/**
|
|
22
|
+
* @override
|
|
23
|
+
*/
|
|
24
|
+
protected handleError(operationSchema: OperationSchema, context: HandlerExecutionContext & SerdeFunctions, response: HttpResponse, dataObject: any, metadata: ResponseMetadata): Promise<never>;
|
|
25
|
+
}
|
|
@@ -4,6 +4,7 @@ export { getLongPollPlugin } from "./longPollMiddleware";
|
|
|
4
4
|
export { setCredentialFeature } from "./setCredentialFeature";
|
|
5
5
|
export { setFeature } from "./setFeature";
|
|
6
6
|
export { setTokenFeature } from "./setTokenFeature";
|
|
7
|
+
export declare const getDefaultSocketTimeout: symbol;
|
|
7
8
|
export {
|
|
8
9
|
hostHeaderMiddleware,
|
|
9
10
|
hostHeaderMiddlewareOptions,
|
|
@@ -3,6 +3,7 @@ export { getLongPollPlugin } from "./longPollMiddleware";
|
|
|
3
3
|
export { setCredentialFeature } from "./setCredentialFeature";
|
|
4
4
|
export { setFeature } from "./setFeature";
|
|
5
5
|
export { setTokenFeature } from "./setTokenFeature";
|
|
6
|
+
export { getDefaultSocketTimeout } from "./getDefaultSocketTimeout";
|
|
6
7
|
export {
|
|
7
8
|
hostHeaderMiddleware,
|
|
8
9
|
hostHeaderMiddlewareOptions,
|
|
@@ -4,6 +4,7 @@ export { getLongPollPlugin } from "./longPollMiddleware";
|
|
|
4
4
|
export { setCredentialFeature } from "./setCredentialFeature";
|
|
5
5
|
export { setFeature } from "./setFeature";
|
|
6
6
|
export { setTokenFeature } from "./setTokenFeature";
|
|
7
|
+
export declare const getDefaultSocketTimeout: symbol;
|
|
7
8
|
export {
|
|
8
9
|
hostHeaderMiddleware,
|
|
9
10
|
hostHeaderMiddlewareOptions,
|
|
@@ -3,19 +3,20 @@ export { AwsJson1_0Protocol } from "./json/AwsJson1_0Protocol";
|
|
|
3
3
|
export { AwsJson1_1Protocol } from "./json/AwsJson1_1Protocol";
|
|
4
4
|
export { AwsJsonRpcProtocol } from "./json/AwsJsonRpcProtocol";
|
|
5
5
|
export { AwsRestJsonProtocol } from "./json/AwsRestJsonProtocol";
|
|
6
|
-
export {
|
|
7
|
-
export { JsonSettings } from "./json/JsonSettings";
|
|
8
|
-
export { JsonShapeDeserializer } from "./json/codec-v1/JsonShapeDeserializer";
|
|
9
|
-
export { JsonShapeSerializer } from "./json/codec-v1/JsonShapeSerializer";
|
|
10
|
-
export { JsonCodec2 } from "./json/codec-v2/JsonCodec2";
|
|
11
|
-
export { JsonShapeDeserializer2 } from "./json/codec-v2/JsonShapeDeserializer2";
|
|
12
|
-
export { JsonShapeSerializer2 } from "./json/codec-v2/JsonShapeSerializer2";
|
|
6
|
+
export { AwsSmithyRpcV2JsonProtocol } from "./json/AwsSmithyRpcV2JsonProtocol";
|
|
13
7
|
export {
|
|
8
|
+
JsonCodec,
|
|
9
|
+
JsonCodec2,
|
|
10
|
+
JsonShapeDeserializer,
|
|
11
|
+
JsonShapeDeserializer2,
|
|
12
|
+
JsonShapeSerializer,
|
|
13
|
+
JsonShapeSerializer2,
|
|
14
|
+
loadJsonRpcErrorCode,
|
|
15
|
+
loadRestJsonErrorCode,
|
|
14
16
|
parseJsonBody,
|
|
15
17
|
parseJsonErrorBody,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
} from "./json/parseJsonBody";
|
|
18
|
+
} from "@smithy/core/protocols";
|
|
19
|
+
export { JsonSettings } from "@smithy/core/protocols";
|
|
19
20
|
export { AwsEc2QueryProtocol } from "./query/AwsEc2QueryProtocol";
|
|
20
21
|
export { AwsQueryProtocol } from "./query/AwsQueryProtocol";
|
|
21
22
|
export { QuerySerializerSettings } from "./query/QuerySerializerSettings";
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { TypeRegistry } from "@smithy/core/schema";
|
|
2
|
+
import { JsonCodec, JsonCodec2 } from "@smithy/core/protocols";
|
|
2
3
|
import { AwsJsonRpcProtocol } from "./AwsJsonRpcProtocol";
|
|
3
|
-
import { JsonCodec } from "./codec-v1/JsonCodec";
|
|
4
|
-
import { JsonCodec2 } from "./codec-v2/JsonCodec2";
|
|
5
4
|
export declare class AwsJson1_0Protocol extends AwsJsonRpcProtocol {
|
|
6
5
|
constructor({
|
|
7
6
|
defaultNamespace,
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { TypeRegistry } from "@smithy/core/schema";
|
|
2
|
+
import { JsonCodec, JsonCodec2 } from "@smithy/core/protocols";
|
|
2
3
|
import { AwsJsonRpcProtocol } from "./AwsJsonRpcProtocol";
|
|
3
|
-
import { JsonCodec } from "./codec-v1/JsonCodec";
|
|
4
|
-
import { JsonCodec2 } from "./codec-v2/JsonCodec2";
|
|
5
4
|
export declare class AwsJson1_1Protocol extends AwsJsonRpcProtocol {
|
|
6
5
|
constructor({
|
|
7
6
|
defaultNamespace,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { RpcProtocol } from "@smithy/core/protocols";
|
|
1
|
+
import { JsonCodec2, RpcProtocol } from "@smithy/core/protocols";
|
|
2
|
+
import { JsonCodec } from "@smithy/core/protocols";
|
|
2
3
|
import { TypeRegistry } from "@smithy/core/schema";
|
|
3
4
|
import {
|
|
4
5
|
EndpointBearer,
|
|
@@ -11,8 +12,6 @@ import {
|
|
|
11
12
|
ShapeDeserializer,
|
|
12
13
|
ShapeSerializer,
|
|
13
14
|
} from "@smithy/types";
|
|
14
|
-
import { JsonCodec } from "./codec-v1/JsonCodec";
|
|
15
|
-
import { JsonCodec2 } from "./codec-v2/JsonCodec2";
|
|
16
15
|
export declare abstract class AwsJsonRpcProtocol extends RpcProtocol {
|
|
17
16
|
protected serializer: ShapeSerializer<string | Uint8Array>;
|
|
18
17
|
protected deserializer: ShapeDeserializer<string | Uint8Array>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { HttpBindingProtocol } from "@smithy/core/protocols";
|
|
1
|
+
import { HttpBindingProtocol, JsonCodec2 } from "@smithy/core/protocols";
|
|
2
|
+
import { JsonCodec } from "@smithy/core/protocols";
|
|
2
3
|
import { TypeRegistry } from "@smithy/core/schema";
|
|
3
4
|
import {
|
|
4
5
|
EndpointBearer,
|
|
@@ -12,8 +13,6 @@ import {
|
|
|
12
13
|
ShapeDeserializer,
|
|
13
14
|
ShapeSerializer,
|
|
14
15
|
} from "@smithy/types";
|
|
15
|
-
import { JsonCodec } from "./codec-v1/JsonCodec";
|
|
16
|
-
import { JsonCodec2 } from "./codec-v2/JsonCodec2";
|
|
17
16
|
export declare class AwsRestJsonProtocol extends HttpBindingProtocol {
|
|
18
17
|
protected serializer: ShapeSerializer<string | Uint8Array>;
|
|
19
18
|
protected deserializer: ShapeDeserializer<string | Uint8Array>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { SmithyRpcV2JsonProtocol } from "@smithy/core/protocols";
|
|
2
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
3
|
+
import {
|
|
4
|
+
EndpointBearer,
|
|
5
|
+
HandlerExecutionContext,
|
|
6
|
+
HttpRequest,
|
|
7
|
+
HttpResponse,
|
|
8
|
+
OperationSchema,
|
|
9
|
+
ResponseMetadata,
|
|
10
|
+
SerdeFunctions,
|
|
11
|
+
} from "@smithy/types";
|
|
12
|
+
export declare class AwsSmithyRpcV2JsonProtocol extends SmithyRpcV2JsonProtocol {
|
|
13
|
+
private readonly awsQueryCompatible;
|
|
14
|
+
private readonly mixin;
|
|
15
|
+
constructor({
|
|
16
|
+
defaultNamespace,
|
|
17
|
+
errorTypeRegistries,
|
|
18
|
+
awsQueryCompatible,
|
|
19
|
+
}: {
|
|
20
|
+
defaultNamespace: string;
|
|
21
|
+
errorTypeRegistries?: TypeRegistry[];
|
|
22
|
+
awsQueryCompatible?: boolean;
|
|
23
|
+
});
|
|
24
|
+
serializeRequest<Input extends object>(
|
|
25
|
+
operationSchema: OperationSchema,
|
|
26
|
+
input: Input,
|
|
27
|
+
context: HandlerExecutionContext & SerdeFunctions & EndpointBearer,
|
|
28
|
+
): Promise<HttpRequest>;
|
|
29
|
+
protected handleError(
|
|
30
|
+
operationSchema: OperationSchema,
|
|
31
|
+
context: HandlerExecutionContext & SerdeFunctions,
|
|
32
|
+
response: HttpResponse,
|
|
33
|
+
dataObject: any,
|
|
34
|
+
metadata: ResponseMetadata,
|
|
35
|
+
): Promise<never>;
|
|
36
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.980.1",
|
|
4
4
|
"description": "Core functions & classes shared by multiple AWS SDK clients.",
|
|
5
5
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages-internal/core",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -124,11 +124,11 @@
|
|
|
124
124
|
"test:temp:retry": "SMITHY_NEW_RETRIES_2026=true node ./integ/retry.integ.spec && AWS_NEW_RETRIES_2026=true node ./integ/retry.integ.spec && node ./integ/retry.integ.spec"
|
|
125
125
|
},
|
|
126
126
|
"dependencies": {
|
|
127
|
-
"@aws-sdk/types": "^3.
|
|
128
|
-
"@aws-sdk/xml-builder": "^3.972.
|
|
127
|
+
"@aws-sdk/types": "^3.975.0",
|
|
128
|
+
"@aws-sdk/xml-builder": "^3.972.42",
|
|
129
129
|
"@aws/lambda-invoke-store": "^0.3.0",
|
|
130
|
-
"@smithy/core": "^3.
|
|
131
|
-
"@smithy/signature-v4": "^5.7.
|
|
130
|
+
"@smithy/core": "^3.38.0",
|
|
131
|
+
"@smithy/signature-v4": "^5.7.5",
|
|
132
132
|
"@smithy/types": "^4.19.0",
|
|
133
133
|
"bowser": "^2.11.0",
|
|
134
134
|
"tslib": "^2.6.2"
|