@cdklabs/cdk-ssm-documents 0.0.55 → 0.0.57
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 +12 -12
- package/lib/construct/synth-utils.js +1 -1
- package/lib/document/automation-document.js +1 -1
- package/lib/document/command-document.js +1 -1
- package/lib/document/document-builder.js +2 -2
- package/lib/document/ssm-document.js +1 -1
- package/lib/domain/aws-service.js +1 -1
- package/lib/domain/choice.js +1 -1
- package/lib/domain/data-type.js +1 -1
- package/lib/domain/enum/install-action.js +2 -2
- package/lib/domain/enum/install-uninstall-repair.js +2 -2
- package/lib/domain/enum/installation-type.js +2 -2
- package/lib/domain/enum/package-name.js +2 -2
- package/lib/domain/input.js +1 -1
- package/lib/domain/operation.js +1 -1
- package/lib/domain/platform.js +1 -1
- package/lib/domain/precondition.js +1 -1
- package/lib/incident-response/incident-response.js +3 -3
- package/lib/interface/approve-hook.js +2 -2
- package/lib/interface/auth-method.js +3 -3
- package/lib/interface/aws-invoker.js +2 -2
- package/lib/interface/downloadable-content.js +8 -8
- package/lib/interface/environment.js +3 -3
- package/lib/interface/execute-automation-hook/api-execute-automation-hook.js +1 -1
- package/lib/interface/observer.js +1 -1
- package/lib/interface/on-failure.js +6 -6
- package/lib/interface/pause-hook.js +2 -2
- package/lib/interface/run-command-hook/api-run-command-hook.js +1 -1
- package/lib/interface/run-document-location.js +2 -2
- package/lib/interface/sleep-hook.js +2 -2
- package/lib/interface/step-ref.js +1 -1
- package/lib/interface/variables/boolean-variable.js +2 -2
- package/lib/interface/variables/map-list-variable.js +2 -2
- package/lib/interface/variables/number-variable.js +2 -2
- package/lib/interface/variables/secure-string-variable.js +4 -4
- package/lib/interface/variables/string-list-variable.js +2 -2
- package/lib/interface/variables/string-map-variable.js +2 -2
- package/lib/interface/variables/string-variable.js +4 -4
- package/lib/interface/variables/variable.js +2 -2
- package/lib/interface/webhook.js +1 -1
- package/lib/parent-steps/automation/approve-step.js +1 -1
- package/lib/parent-steps/automation/assert-aws-resource-step.js +1 -1
- package/lib/parent-steps/automation/aws-api-step.js +1 -1
- package/lib/parent-steps/automation/branch-step.js +1 -1
- package/lib/parent-steps/automation/change-instance-state-step.js +3 -3
- package/lib/parent-steps/automation/copy-image-step.js +1 -1
- package/lib/parent-steps/automation/create-image-step.js +1 -1
- package/lib/parent-steps/automation/create-stack-step.js +3 -3
- package/lib/parent-steps/automation/create-tags-step.js +3 -3
- package/lib/parent-steps/automation/delete-image-step.js +1 -1
- package/lib/parent-steps/automation/delete-stack-step.js +1 -1
- package/lib/parent-steps/automation/execute-automation-step.js +1 -1
- package/lib/parent-steps/automation/execute-script-step.js +5 -5
- package/lib/parent-steps/automation/execute-state-machine-step.js +1 -1
- package/lib/parent-steps/automation/invoke-lambda-function-step.js +1 -1
- package/lib/parent-steps/automation/invoke-webhook-step.js +1 -1
- package/lib/parent-steps/automation/pause-step.js +1 -1
- package/lib/parent-steps/automation/run-command-step.js +3 -3
- package/lib/parent-steps/automation/run-instance-step.js +1 -1
- package/lib/parent-steps/automation/sleep-step.js +1 -1
- package/lib/parent-steps/automation/update-variable.js +1 -1
- package/lib/parent-steps/automation/wait-for-resource-step.js +1 -1
- package/lib/parent-steps/automation-step.js +1 -1
- package/lib/parent-steps/command/applications-step.js +1 -1
- package/lib/parent-steps/command/configure-docker-step.js +1 -1
- package/lib/parent-steps/command/configure-package-step.js +1 -1
- package/lib/parent-steps/command/domain-join-step.js +1 -1
- package/lib/parent-steps/command/download-content-step.js +1 -1
- package/lib/parent-steps/command/ps-module-step.js +1 -1
- package/lib/parent-steps/command/run-docker-action-step.js +1 -1
- package/lib/parent-steps/command/run-document-step.js +1 -1
- package/lib/parent-steps/command/run-powershell-script-step.js +1 -1
- package/lib/parent-steps/command/run-shell-script-step.js +1 -1
- package/lib/parent-steps/command/software-inventory-step.js +1 -1
- package/lib/parent-steps/command/update-agent-step.js +1 -1
- package/lib/parent-steps/command/update-ssm-agent-step.js +1 -1
- package/lib/parent-steps/command-step.js +1 -1
- package/lib/parent-steps/step.js +1 -1
- package/lib/patterns/automation/composite-step.js +2 -2
- package/lib/patterns/automation/reboot-instance-and-wait.js +1 -1
- package/lib/patterns/automation/string-step.js +1 -1
- package/lib/patterns/document/string-document.js +1 -1
- package/lib/patterns/document/timed-document.js +1 -1
- package/lib/samples/hello-world.js +1 -1
- package/lib/simulation/automation/approve-simulation.js +1 -1
- package/lib/simulation/automation/assert-aws-resource-simulation.js +1 -1
- package/lib/simulation/automation/automation-simulation-base.js +1 -1
- package/lib/simulation/automation/aws-api-simulation.js +1 -1
- package/lib/simulation/automation/branch-simulation.js +1 -1
- package/lib/simulation/automation/change-instance-state-simulation.js +1 -1
- package/lib/simulation/automation/copy-image-simulation.js +1 -1
- package/lib/simulation/automation/create-image-simulation.js +1 -1
- package/lib/simulation/automation/create-stack-simulation.js +1 -1
- package/lib/simulation/automation/create-tags-simulation.js +1 -1
- package/lib/simulation/automation/delete-image-simulation.js +1 -1
- package/lib/simulation/automation/delete-stack-simulation.js +1 -1
- package/lib/simulation/automation/execute-script-simulation.js +1 -1
- package/lib/simulation/automation/execute-state-machine-simulation.js +1 -1
- package/lib/simulation/automation/invoke-lambda-function-simulation.js +1 -1
- package/lib/simulation/automation/invoke-webhook-simulation.js +1 -1
- package/lib/simulation/automation/pause-simulation.js +1 -1
- package/lib/simulation/automation/run-command-simulation.js +1 -1
- package/lib/simulation/automation/run-instance-simulation.js +1 -1
- package/lib/simulation/automation/sleep-simulation.js +1 -1
- package/lib/simulation/automation/update-variable-simulation.js +1 -1
- package/lib/simulation/automation/wait-for-resource-simulation.js +1 -1
- package/lib/simulation/automation-step-simulation.js +1 -1
- package/lib/simulation/command/command-simulation-base.js +1 -1
- package/lib/simulation/command/ps-module-simulation.js +1 -1
- package/lib/simulation/command/run-powershell-script-simulation.js +1 -1
- package/lib/simulation/command/run-shell-script-simulation.js +1 -1
- package/lib/simulation/command-step-simulation.js +1 -1
- package/lib/simulation/document/automation-simulation.js +1 -1
- package/lib/simulation/document/command-simulation.js +1 -1
- package/lib/simulation/simulation.js +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/package.json +34 -34
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/models/models_0.d.ts +2 -2
- package/node_modules/@aws-sdk/client-cloudwatch/package.json +36 -36
- package/node_modules/@aws-sdk/client-ec2/README.md +14 -0
- package/node_modules/@aws-sdk/client-ec2/dist-cjs/index.js +41 -0
- package/node_modules/@aws-sdk/client-ec2/dist-cjs/schemas/schemas_0.js +156 -78
- package/node_modules/@aws-sdk/client-ec2/dist-es/EC2.js +6 -0
- package/node_modules/@aws-sdk/client-ec2/dist-es/commands/GetCapacityManagerMonitoredTagKeysCommand.js +16 -0
- package/node_modules/@aws-sdk/client-ec2/dist-es/commands/UpdateCapacityManagerMonitoredTagKeysCommand.js +16 -0
- package/node_modules/@aws-sdk/client-ec2/dist-es/commands/index.js +2 -0
- package/node_modules/@aws-sdk/client-ec2/dist-es/models/enums.js +8 -0
- package/node_modules/@aws-sdk/client-ec2/dist-es/pagination/GetCapacityManagerMonitoredTagKeysPaginator.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 +96 -18
- package/node_modules/@aws-sdk/client-ec2/dist-types/EC2.d.ts +23 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/EC2Client.d.ts +4 -2
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/GetCapacityManagerMetricDataCommand.d.ts +9 -2
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/GetCapacityManagerMetricDimensionsCommand.d.ts +9 -2
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/GetCapacityManagerMonitoredTagKeysCommand.d.ts +87 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/GetConsoleScreenshotCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/GetDeclarativePoliciesReportSummaryCommand.d.ts +1 -2
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ModifyTrafficMirrorFilterNetworkServicesCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ModifyTrafficMirrorFilterRuleCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/UpdateCapacityManagerMonitoredTagKeysCommand.d.ts +91 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/index.d.ts +2 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/models/enums.d.ts +16 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_5.d.ts +126 -79
- package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_6.d.ts +81 -122
- package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_7.d.ts +168 -3
- package/node_modules/@aws-sdk/client-ec2/dist-types/pagination/GetCapacityManagerMonitoredTagKeysPaginator.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 +8 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/EC2.d.ts +55 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/EC2Client.d.ts +12 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/GetCapacityManagerMonitoredTagKeysCommand.d.ts +51 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/GetConsoleScreenshotCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/GetDeclarativePoliciesReportSummaryCommand.d.ts +4 -2
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/ModifyTrafficMirrorFilterNetworkServicesCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/ModifyTrafficMirrorFilterRuleCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/UpdateCapacityManagerMonitoredTagKeysCommand.d.ts +51 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/enums.d.ts +10 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_5.d.ts +23 -18
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_6.d.ts +19 -34
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_7.d.ts +43 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/pagination/GetCapacityManagerMonitoredTagKeysPaginator.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 +8 -0
- package/node_modules/@aws-sdk/client-ec2/package.json +36 -36
- package/node_modules/@aws-sdk/client-iam/package.json +35 -35
- package/node_modules/@aws-sdk/client-lambda/dist-cjs/models/errors.js +52 -1
- package/node_modules/@aws-sdk/client-lambda/dist-cjs/schemas/schemas_0.js +29 -8
- package/node_modules/@aws-sdk/client-lambda/dist-es/models/errors.js +48 -0
- package/node_modules/@aws-sdk/client-lambda/dist-es/schemas/schemas_0.js +22 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/InvokeCommand.d.ts +9 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/InvokeWithResponseStreamCommand.d.ts +9 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/models/errors.d.ts +66 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/models/models_0.d.ts +6 -6
- package/node_modules/@aws-sdk/client-lambda/dist-types/schemas/schemas_0.d.ts +3 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/models/errors.d.ts +30 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/schemas/schemas_0.d.ts +3 -0
- package/node_modules/@aws-sdk/client-lambda/package.json +38 -38
- package/node_modules/@aws-sdk/client-s3/dist-cjs/index.js +5 -0
- package/node_modules/@aws-sdk/client-s3/dist-es/models/enums.js +5 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/CreateBucketCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketLocationCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-s3/dist-types/models/enums.d.ts +5 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/models/enums.d.ts +5 -0
- package/node_modules/@aws-sdk/client-s3/package.json +50 -50
- package/node_modules/@aws-sdk/client-sns/package.json +33 -33
- package/node_modules/@aws-sdk/client-sqs/dist-cjs/index.js +2 -0
- package/node_modules/@aws-sdk/client-sqs/dist-es/commands/ReceiveMessageCommand.js +2 -0
- package/node_modules/@aws-sdk/client-sqs/package.json +36 -36
- package/node_modules/@aws-sdk/client-ssm/package.json +34 -34
- package/node_modules/@aws-sdk/core/dist-cjs/index.js +69 -50
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +17 -0
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +52 -50
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/index.js +1 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/longPollMiddleware.js +15 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/ProtocolLib.js +11 -10
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/UnionSerde.js +4 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js +4 -5
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js +2 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +9 -7
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/parseJsonBody.js +17 -17
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsQueryProtocol.js +3 -8
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/AwsRestXmlProtocol.js +2 -1
- 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/longPollMiddleware.d.ts +14 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonShapeSerializer.d.ts +2 -2
- 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/longPollMiddleware.d.ts +15 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonShapeSerializer.d.ts +1 -1
- package/node_modules/@aws-sdk/core/package.json +11 -11
- package/node_modules/@aws-sdk/crc64-nvme/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-env/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-http/package.json +10 -10
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +14 -14
- package/node_modules/@aws-sdk/credential-provider-login/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-node/package.json +12 -12
- package/node_modules/@aws-sdk/credential-provider-process/package.json +6 -6
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +7 -7
- package/node_modules/@aws-sdk/middleware-bucket-endpoint/package.json +5 -5
- package/node_modules/@aws-sdk/middleware-expect-continue/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-flexible-checksums/package.json +10 -10
- package/node_modules/@aws-sdk/middleware-host-header/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-location-constraint/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-logger/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-sdk-ec2/package.json +8 -8
- package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +11 -11
- package/node_modules/@aws-sdk/middleware-sdk-sqs/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-ssec/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +8 -8
- package/node_modules/@aws-sdk/nested-clients/package.json +32 -32
- package/node_modules/@aws-sdk/region-config-resolver/package.json +5 -5
- package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +6 -6
- package/node_modules/@aws-sdk/token-providers/package.json +7 -7
- package/node_modules/@aws-sdk/types/package.json +2 -2
- package/node_modules/@aws-sdk/util-endpoints/package.json +5 -5
- package/node_modules/@aws-sdk/util-format-url/package.json +4 -4
- package/node_modules/@aws-sdk/util-user-agent-browser/package.json +3 -3
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +5 -5
- package/node_modules/@aws-sdk/xml-builder/package.json +2 -2
- package/node_modules/@smithy/config-resolver/package.json +5 -5
- package/node_modules/@smithy/core/dist-cjs/index.js +2 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +32 -14
- package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +2 -2
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +16 -8
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +17 -10
- package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +6 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +6 -3
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/DefaultIdentityProviderConfig.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +23 -11
- package/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +9 -3
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/toEndpointV1.js +2 -2
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +16 -8
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +9 -4
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +8 -6
- package/node_modules/@smithy/core/dist-es/submodules/schema/TypeRegistry.js +6 -1
- package/node_modules/@smithy/core/dist-es/submodules/serde/parse-utils.js +6 -3
- package/node_modules/@smithy/core/dist-es/util-identity-and-auth/DefaultIdentityProviderConfig.js +2 -1
- package/node_modules/@smithy/core/dist-types/submodules/schema/TypeRegistry.d.ts +1 -1
- package/node_modules/@smithy/core/package.json +7 -7
- package/node_modules/@smithy/credential-provider-imds/package.json +5 -5
- package/node_modules/@smithy/eventstream-codec/package.json +2 -2
- package/node_modules/@smithy/eventstream-serde-browser/package.json +3 -3
- package/node_modules/@smithy/eventstream-serde-config-resolver/package.json +2 -2
- package/node_modules/@smithy/eventstream-serde-node/package.json +3 -3
- package/node_modules/@smithy/eventstream-serde-universal/package.json +3 -3
- package/node_modules/@smithy/fetch-http-handler/package.json +5 -5
- package/node_modules/@smithy/hash-blob-browser/package.json +2 -2
- package/node_modules/@smithy/hash-node/package.json +2 -2
- package/node_modules/@smithy/hash-stream-node/package.json +2 -2
- package/node_modules/@smithy/invalid-dependency/package.json +2 -2
- package/node_modules/@smithy/md5-js/package.json +2 -2
- package/node_modules/@smithy/middleware-compression/package.json +6 -6
- package/node_modules/@smithy/middleware-content-length/package.json +3 -3
- package/node_modules/@smithy/middleware-endpoint/package.json +8 -8
- package/node_modules/@smithy/middleware-retry/package.json +9 -9
- package/node_modules/@smithy/middleware-serde/package.json +4 -4
- package/node_modules/@smithy/middleware-stack/package.json +2 -2
- package/node_modules/@smithy/node-config-provider/package.json +4 -4
- package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +191 -96
- package/node_modules/@smithy/node-http-handler/dist-es/http2/ClientHttp2SessionRef.js +45 -0
- package/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +71 -35
- package/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-pool.js +32 -18
- package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +44 -43
- package/node_modules/@smithy/node-http-handler/dist-types/http2/ClientHttp2SessionRef.d.ts +42 -0
- package/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-manager.d.ts +34 -14
- package/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-pool.d.ts +32 -8
- package/node_modules/@smithy/node-http-handler/dist-types/node-http2-handler.d.ts +14 -6
- package/node_modules/@smithy/node-http-handler/package.json +5 -5
- package/node_modules/@smithy/property-provider/package.json +2 -2
- package/node_modules/@smithy/protocol-http/package.json +2 -2
- package/node_modules/@smithy/querystring-builder/package.json +2 -2
- package/node_modules/@smithy/querystring-parser/package.json +2 -2
- package/node_modules/@smithy/service-error-classification/dist-cjs/index.js +5 -0
- package/node_modules/@smithy/service-error-classification/dist-es/index.js +4 -0
- package/node_modules/@smithy/service-error-classification/dist-types/index.d.ts +6 -0
- package/node_modules/@smithy/service-error-classification/package.json +2 -2
- package/node_modules/@smithy/shared-ini-file-loader/package.json +2 -2
- package/node_modules/@smithy/signature-v4/dist-cjs/index.js +11 -5
- package/node_modules/@smithy/signature-v4/dist-es/SignatureV4.js +11 -5
- package/node_modules/@smithy/signature-v4/dist-types/SignatureV4.d.ts +3 -3
- package/node_modules/@smithy/signature-v4/package.json +4 -4
- package/node_modules/@smithy/smithy-client/dist-cjs/index.js +8 -1
- package/node_modules/@smithy/smithy-client/dist-es/command.js +8 -1
- package/node_modules/@smithy/smithy-client/package.json +7 -7
- package/node_modules/@smithy/types/dist-types/connection/config.d.ts +5 -0
- package/node_modules/@smithy/types/dist-types/signature.d.ts +20 -3
- package/node_modules/@smithy/types/package.json +1 -1
- package/node_modules/@smithy/url-parser/package.json +3 -3
- package/node_modules/@smithy/util-defaults-mode-browser/package.json +4 -4
- package/node_modules/@smithy/util-defaults-mode-node/package.json +7 -7
- package/node_modules/@smithy/util-endpoints/dist-cjs/index.js +212 -111
- package/node_modules/@smithy/util-endpoints/dist-es/bdd/BinaryDecisionDiagram.js +15 -0
- package/node_modules/@smithy/util-endpoints/dist-es/decideEndpoint.js +42 -0
- package/node_modules/@smithy/util-endpoints/dist-es/index.js +2 -0
- package/node_modules/@smithy/util-endpoints/dist-es/lib/coalesce.js +8 -0
- package/node_modules/@smithy/util-endpoints/dist-es/lib/getAttr.js +2 -1
- package/node_modules/@smithy/util-endpoints/dist-es/lib/index.js +3 -0
- package/node_modules/@smithy/util-endpoints/dist-es/lib/ite.js +3 -0
- package/node_modules/@smithy/util-endpoints/dist-es/lib/split.js +13 -0
- package/node_modules/@smithy/util-endpoints/dist-es/lib/substring.js +1 -1
- package/node_modules/@smithy/util-endpoints/dist-es/resolveEndpoint.js +8 -13
- package/node_modules/@smithy/util-endpoints/dist-es/utils/endpointFunctions.js +4 -1
- package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateCondition.js +9 -7
- package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateConditions.js +12 -8
- package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateEndpointRule.js +14 -13
- package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateErrorRule.js +7 -4
- package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateExpression.js +22 -5
- package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateRules.js +4 -4
- package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateTemplate.js +3 -6
- package/node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointHeaders.js +5 -5
- package/node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointProperties.js +4 -4
- package/node_modules/@smithy/util-endpoints/dist-es/utils/getReferenceValue.js +1 -5
- package/node_modules/@smithy/util-endpoints/dist-types/bdd/BinaryDecisionDiagram.d.ts +22 -0
- package/node_modules/@smithy/util-endpoints/dist-types/decideEndpoint.d.ts +7 -0
- package/node_modules/@smithy/util-endpoints/dist-types/index.d.ts +2 -0
- package/node_modules/@smithy/util-endpoints/dist-types/lib/coalesce.d.ts +7 -0
- package/node_modules/@smithy/util-endpoints/dist-types/lib/index.d.ts +3 -0
- package/node_modules/@smithy/util-endpoints/dist-types/lib/ite.d.ts +6 -0
- package/node_modules/@smithy/util-endpoints/dist-types/lib/split.d.ts +11 -0
- package/node_modules/@smithy/util-endpoints/dist-types/types/shared.d.ts +3 -3
- package/node_modules/@smithy/util-endpoints/dist-types/utils/endpointFunctions.d.ts +2 -11
- package/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateCondition.d.ts +6 -3
- package/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateConditions.d.ts +3 -3
- package/node_modules/@smithy/util-endpoints/dist-types/utils/getEndpointHeaders.d.ts +1 -1
- package/node_modules/@smithy/util-endpoints/dist-types/utils/getEndpointProperties.d.ts +2 -2
- package/node_modules/@smithy/util-endpoints/dist-types/utils/getReferenceValue.d.ts +3 -1
- package/node_modules/@smithy/util-endpoints/package.json +3 -3
- package/node_modules/@smithy/util-middleware/package.json +2 -2
- package/node_modules/@smithy/util-retry/dist-cjs/index.js +6 -0
- package/node_modules/@smithy/util-retry/dist-es/AdaptiveRetryStrategy.js +3 -0
- package/node_modules/@smithy/util-retry/dist-es/StandardRetryStrategy.js +3 -0
- package/node_modules/@smithy/util-retry/dist-types/AdaptiveRetryStrategy.d.ts +5 -0
- package/node_modules/@smithy/util-retry/dist-types/StandardRetryStrategy.d.ts +5 -0
- package/node_modules/@smithy/util-retry/package.json +3 -3
- package/node_modules/@smithy/util-stream/package.json +4 -4
- package/node_modules/@smithy/util-waiter/package.json +3 -3
- package/node_modules/fast-xml-builder/package.json +1 -1
- package/node_modules/fast-xml-builder/src/fxb.js +6 -2
- package/node_modules/fast-xml-builder/src/orderedJs2Xml.js +16 -2
- package/node_modules/path-expression-matcher/README.md +214 -62
- package/node_modules/path-expression-matcher/lib/pem.cjs +1 -1
- package/node_modules/path-expression-matcher/lib/pem.d.cts +111 -0
- package/node_modules/path-expression-matcher/lib/pem.min.js +1 -1
- package/node_modules/path-expression-matcher/lib/pem.min.js.map +1 -1
- package/node_modules/path-expression-matcher/package.json +1 -1
- package/node_modules/path-expression-matcher/src/Expression.js +2 -2
- package/node_modules/path-expression-matcher/src/ExpressionSet.js +209 -0
- package/node_modules/path-expression-matcher/src/Matcher.js +235 -177
- package/node_modules/path-expression-matcher/src/index.d.ts +199 -194
- package/node_modules/path-expression-matcher/src/index.js +3 -2
- package/node_modules/strnum/package.json +1 -1
- package/package.json +10 -10
- package/node_modules/strnum/.github/SECURITY.md +0 -5
- package/node_modules/strnum/.vscode/launch.json +0 -25
- package/node_modules/strnum/algo.stflow +0 -84
- package/node_modules/strnum/tests/infinity_test.js +0 -18
- package/node_modules/strnum/tests/strnum_test.js +0 -175
- package/node_modules/strnum/tests/temp.js +0 -8
|
@@ -72,8 +72,8 @@ class HttpProtocol extends SerdeContext {
|
|
|
72
72
|
request.query[k] = v;
|
|
73
73
|
}
|
|
74
74
|
if (endpoint.headers) {
|
|
75
|
-
for (const
|
|
76
|
-
request.headers[name] =
|
|
75
|
+
for (const name in endpoint.headers) {
|
|
76
|
+
request.headers[name] = endpoint.headers[name].join(", ");
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
return request;
|
|
@@ -87,8 +87,8 @@ class HttpProtocol extends SerdeContext {
|
|
|
87
87
|
...endpoint.query,
|
|
88
88
|
};
|
|
89
89
|
if (endpoint.headers) {
|
|
90
|
-
for (const
|
|
91
|
-
request.headers[name] =
|
|
90
|
+
for (const name in endpoint.headers) {
|
|
91
|
+
request.headers[name] = endpoint.headers[name];
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
return request;
|
|
@@ -103,8 +103,10 @@ class HttpProtocol extends SerdeContext {
|
|
|
103
103
|
if (opTraits.endpoint) {
|
|
104
104
|
let hostPrefix = opTraits.endpoint?.[0];
|
|
105
105
|
if (typeof hostPrefix === "string") {
|
|
106
|
-
const
|
|
107
|
-
|
|
106
|
+
for (const [name, member] of inputNs.structIterator()) {
|
|
107
|
+
if (!member.getMergedTraits().hostLabel) {
|
|
108
|
+
continue;
|
|
109
|
+
}
|
|
108
110
|
const replacement = input[name];
|
|
109
111
|
if (typeof replacement !== "string") {
|
|
110
112
|
throw new Error(`@smithy/core/schema - ${name} in input must be a string as hostLabel.`);
|
|
@@ -200,7 +202,9 @@ class HttpBindingProtocol extends HttpProtocol {
|
|
|
200
202
|
request.path += path;
|
|
201
203
|
}
|
|
202
204
|
const traitSearchParams = new URLSearchParams(search ?? "");
|
|
203
|
-
|
|
205
|
+
for (const [key, value] of traitSearchParams) {
|
|
206
|
+
query[key] = value;
|
|
207
|
+
}
|
|
204
208
|
}
|
|
205
209
|
}
|
|
206
210
|
for (const [memberName, memberNs] of ns.structIterator()) {
|
|
@@ -250,7 +254,8 @@ class HttpBindingProtocol extends HttpProtocol {
|
|
|
250
254
|
headers[memberTraits.httpHeader.toLowerCase()] = String(serializer.flush());
|
|
251
255
|
}
|
|
252
256
|
else if (typeof memberTraits.httpPrefixHeaders === "string") {
|
|
253
|
-
for (const
|
|
257
|
+
for (const key in inputMemberValue) {
|
|
258
|
+
const val = inputMemberValue[key];
|
|
254
259
|
const amalgam = memberTraits.httpPrefixHeaders + key;
|
|
255
260
|
serializer.write([memberNs.getValueSchema(), { httpHeader: amalgam }], val);
|
|
256
261
|
headers[amalgam.toLowerCase()] = serializer.flush();
|
|
@@ -295,8 +300,9 @@ class HttpBindingProtocol extends HttpProtocol {
|
|
|
295
300
|
const serializer = this.serializer;
|
|
296
301
|
const traits = ns.getMergedTraits();
|
|
297
302
|
if (traits.httpQueryParams) {
|
|
298
|
-
for (const
|
|
303
|
+
for (const key in data) {
|
|
299
304
|
if (!(key in query)) {
|
|
305
|
+
const val = data[key];
|
|
300
306
|
const valueSchema = ns.getValueSchema();
|
|
301
307
|
Object.assign(valueSchema.getMergedTraits(), {
|
|
302
308
|
...traits,
|
|
@@ -424,8 +430,9 @@ class HttpBindingProtocol extends HttpProtocol {
|
|
|
424
430
|
}
|
|
425
431
|
else if (memberTraits.httpPrefixHeaders !== undefined) {
|
|
426
432
|
dataObject[memberName] = {};
|
|
427
|
-
for (const
|
|
433
|
+
for (const header in response.headers) {
|
|
428
434
|
if (header.startsWith(memberTraits.httpPrefixHeaders)) {
|
|
435
|
+
const value = response.headers[header];
|
|
429
436
|
const valueSchema = memberSchema.getValueSchema();
|
|
430
437
|
valueSchema.getMergedTraits().httpHeader = header;
|
|
431
438
|
dataObject[memberName][header.slice(memberTraits.httpPrefixHeaders.length)] = await deserializer.read(valueSchema, value);
|
|
@@ -655,7 +655,12 @@ class TypeRegistry {
|
|
|
655
655
|
return undefined;
|
|
656
656
|
}
|
|
657
657
|
find(predicate) {
|
|
658
|
-
|
|
658
|
+
for (const schema of this.schemas.values()) {
|
|
659
|
+
if (predicate(schema)) {
|
|
660
|
+
return schema;
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
return undefined;
|
|
659
664
|
}
|
|
660
665
|
clear() {
|
|
661
666
|
this.schemas.clear();
|
|
@@ -141,9 +141,12 @@ const expectUnion = (value) => {
|
|
|
141
141
|
return undefined;
|
|
142
142
|
}
|
|
143
143
|
const asObject = expectObject(value);
|
|
144
|
-
const setKeys =
|
|
145
|
-
|
|
146
|
-
|
|
144
|
+
const setKeys = [];
|
|
145
|
+
for (const k in asObject) {
|
|
146
|
+
if (asObject[k] != null) {
|
|
147
|
+
setKeys.push(k);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
147
150
|
if (setKeys.length === 0) {
|
|
148
151
|
throw new TypeError(`Unions must have exactly one non-null member. None were found.`);
|
|
149
152
|
}
|
package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/DefaultIdentityProviderConfig.js
CHANGED
|
@@ -4,7 +4,8 @@ exports.DefaultIdentityProviderConfig = void 0;
|
|
|
4
4
|
class DefaultIdentityProviderConfig {
|
|
5
5
|
authSchemes = new Map();
|
|
6
6
|
constructor(config) {
|
|
7
|
-
for (const
|
|
7
|
+
for (const key in config) {
|
|
8
|
+
const value = config[key];
|
|
8
9
|
if (value !== undefined) {
|
|
9
10
|
this.authSchemes.set(key, value);
|
|
10
11
|
}
|
|
@@ -62,7 +62,7 @@ export class CborShapeSerializer extends SerdeContext {
|
|
|
62
62
|
const newObject = {};
|
|
63
63
|
if (ns.isMapSchema()) {
|
|
64
64
|
const sparse = !!ns.getMergedTraits().sparse;
|
|
65
|
-
for (const key
|
|
65
|
+
for (const key in sourceObject) {
|
|
66
66
|
const value = this.serialize(ns.getValueSchema(), sourceObject[key]);
|
|
67
67
|
if (value != null || sparse) {
|
|
68
68
|
newObject[key] = value;
|
|
@@ -82,15 +82,15 @@ export class CborShapeSerializer extends SerdeContext {
|
|
|
82
82
|
newObject[k] = v;
|
|
83
83
|
}
|
|
84
84
|
else if (typeof sourceObject.__type === "string") {
|
|
85
|
-
for (const
|
|
85
|
+
for (const k in sourceObject) {
|
|
86
86
|
if (!(k in newObject)) {
|
|
87
|
-
newObject[k] = this.serialize(15,
|
|
87
|
+
newObject[k] = this.serialize(15, sourceObject[k]);
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
else if (ns.isDocumentSchema()) {
|
|
93
|
-
for (const key
|
|
93
|
+
for (const key in sourceObject) {
|
|
94
94
|
newObject[key] = this.serialize(ns.getValueSchema(), sourceObject[key]);
|
|
95
95
|
}
|
|
96
96
|
}
|
|
@@ -163,7 +163,7 @@ export class CborShapeDeserializer extends SerdeContext {
|
|
|
163
163
|
const newObject = {};
|
|
164
164
|
if (ns.isMapSchema()) {
|
|
165
165
|
const targetSchema = ns.getValueSchema();
|
|
166
|
-
for (const key
|
|
166
|
+
for (const key in value) {
|
|
167
167
|
const itemValue = this.readValue(targetSchema, value[key]);
|
|
168
168
|
newObject[key] = itemValue;
|
|
169
169
|
}
|
|
@@ -172,7 +172,12 @@ export class CborShapeDeserializer extends SerdeContext {
|
|
|
172
172
|
const isUnion = ns.isUnionSchema();
|
|
173
173
|
let keys;
|
|
174
174
|
if (isUnion) {
|
|
175
|
-
keys = new Set(
|
|
175
|
+
keys = new Set();
|
|
176
|
+
for (const k in value) {
|
|
177
|
+
if (k !== "__type") {
|
|
178
|
+
keys.add(k);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
176
181
|
}
|
|
177
182
|
for (const [key, memberSchema] of ns.structIterator()) {
|
|
178
183
|
if (isUnion) {
|
|
@@ -182,14 +187,21 @@ export class CborShapeDeserializer extends SerdeContext {
|
|
|
182
187
|
newObject[key] = this.readValue(memberSchema, value[key]);
|
|
183
188
|
}
|
|
184
189
|
}
|
|
185
|
-
if (isUnion && keys?.size === 1
|
|
186
|
-
|
|
187
|
-
|
|
190
|
+
if (isUnion && keys?.size === 1) {
|
|
191
|
+
let newObjectEmpty = true;
|
|
192
|
+
for (const _ in newObject) {
|
|
193
|
+
newObjectEmpty = false;
|
|
194
|
+
break;
|
|
195
|
+
}
|
|
196
|
+
if (newObjectEmpty) {
|
|
197
|
+
const k = keys.values().next().value;
|
|
198
|
+
newObject.$unknown = [k, value[k]];
|
|
199
|
+
}
|
|
188
200
|
}
|
|
189
201
|
else if (typeof value.__type === "string") {
|
|
190
|
-
for (const
|
|
202
|
+
for (const k in value) {
|
|
191
203
|
if (!(k in newObject)) {
|
|
192
|
-
newObject[k] =
|
|
204
|
+
newObject[k] = value[k];
|
|
193
205
|
}
|
|
194
206
|
}
|
|
195
207
|
}
|
|
@@ -50,7 +50,13 @@ export const loadSmithyRpcV2CborErrorCode = (output, data) => {
|
|
|
50
50
|
if (data["__type"] !== undefined) {
|
|
51
51
|
return sanitizeErrorCode(data["__type"]);
|
|
52
52
|
}
|
|
53
|
-
|
|
53
|
+
let codeKey;
|
|
54
|
+
for (const key in data) {
|
|
55
|
+
if (key.toLowerCase() === "code") {
|
|
56
|
+
codeKey = key;
|
|
57
|
+
break;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
54
60
|
if (codeKey && data[codeKey] !== undefined) {
|
|
55
61
|
return sanitizeErrorCode(data[codeKey]);
|
|
56
62
|
}
|
|
@@ -77,8 +83,8 @@ export const buildHttpRpcRequest = async (context, headers, path, resolvedHostna
|
|
|
77
83
|
contents.hostname = resolvedHostname;
|
|
78
84
|
}
|
|
79
85
|
if (endpoint.headers) {
|
|
80
|
-
for (const
|
|
81
|
-
contents.headers[name] =
|
|
86
|
+
for (const name in endpoint.headers) {
|
|
87
|
+
contents.headers[name] = endpoint.headers[name];
|
|
82
88
|
}
|
|
83
89
|
}
|
|
84
90
|
if (body !== undefined) {
|
|
@@ -5,8 +5,8 @@ export const toEndpointV1 = (endpoint) => {
|
|
|
5
5
|
const v1Endpoint = parseUrl(endpoint.url);
|
|
6
6
|
if (endpoint.headers) {
|
|
7
7
|
v1Endpoint.headers = {};
|
|
8
|
-
for (const
|
|
9
|
-
v1Endpoint.headers[name.toLowerCase()] =
|
|
8
|
+
for (const name in endpoint.headers) {
|
|
9
|
+
v1Endpoint.headers[name.toLowerCase()] = endpoint.headers[name].join(", ");
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
return v1Endpoint;
|
|
@@ -47,9 +47,13 @@ export class EventStreamSerde {
|
|
|
47
47
|
body: event.body,
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
let unionMember = "";
|
|
51
|
+
for (const key in event) {
|
|
52
|
+
if (key !== "__type") {
|
|
53
|
+
unionMember = key;
|
|
54
|
+
break;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
53
57
|
const { additionalHeaders, body, eventType, explicitPayloadContentType } = this.writeEventBody(unionMember, unionSchema, event);
|
|
54
58
|
const headers = {
|
|
55
59
|
":event-type": { type: "string", value: eventType },
|
|
@@ -70,9 +74,13 @@ export class EventStreamSerde {
|
|
|
70
74
|
const memberSchemas = unionSchema.getMemberSchemas();
|
|
71
75
|
const initialResponseMarker = Symbol("initialResponseMarker");
|
|
72
76
|
const asyncIterable = marshaller.deserialize(response.body, async (event) => {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
77
|
+
let unionMember = "";
|
|
78
|
+
for (const key in event) {
|
|
79
|
+
if (key !== "__type") {
|
|
80
|
+
unionMember = key;
|
|
81
|
+
break;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
76
84
|
const body = event[unionMember].body;
|
|
77
85
|
if (unionMember === "initial-response") {
|
|
78
86
|
const dataObject = await this.deserializer.read(responseSchema, body);
|
|
@@ -148,8 +156,8 @@ export class EventStreamSerde {
|
|
|
148
156
|
if (!responseSchema) {
|
|
149
157
|
throw new Error("@smithy::core/protocols - initial-response event encountered in event stream but no response schema given.");
|
|
150
158
|
}
|
|
151
|
-
for (const
|
|
152
|
-
initialResponseContainer[key] = value;
|
|
159
|
+
for (const key in firstEvent.value) {
|
|
160
|
+
initialResponseContainer[key] = firstEvent.value[key];
|
|
153
161
|
}
|
|
154
162
|
}
|
|
155
163
|
return {
|
|
@@ -41,7 +41,9 @@ export class HttpBindingProtocol extends HttpProtocol {
|
|
|
41
41
|
request.path += path;
|
|
42
42
|
}
|
|
43
43
|
const traitSearchParams = new URLSearchParams(search ?? "");
|
|
44
|
-
|
|
44
|
+
for (const [key, value] of traitSearchParams) {
|
|
45
|
+
query[key] = value;
|
|
46
|
+
}
|
|
45
47
|
}
|
|
46
48
|
}
|
|
47
49
|
for (const [memberName, memberNs] of ns.structIterator()) {
|
|
@@ -91,7 +93,8 @@ export class HttpBindingProtocol extends HttpProtocol {
|
|
|
91
93
|
headers[memberTraits.httpHeader.toLowerCase()] = String(serializer.flush());
|
|
92
94
|
}
|
|
93
95
|
else if (typeof memberTraits.httpPrefixHeaders === "string") {
|
|
94
|
-
for (const
|
|
96
|
+
for (const key in inputMemberValue) {
|
|
97
|
+
const val = inputMemberValue[key];
|
|
95
98
|
const amalgam = memberTraits.httpPrefixHeaders + key;
|
|
96
99
|
serializer.write([memberNs.getValueSchema(), { httpHeader: amalgam }], val);
|
|
97
100
|
headers[amalgam.toLowerCase()] = serializer.flush();
|
|
@@ -136,8 +139,9 @@ export class HttpBindingProtocol extends HttpProtocol {
|
|
|
136
139
|
const serializer = this.serializer;
|
|
137
140
|
const traits = ns.getMergedTraits();
|
|
138
141
|
if (traits.httpQueryParams) {
|
|
139
|
-
for (const
|
|
142
|
+
for (const key in data) {
|
|
140
143
|
if (!(key in query)) {
|
|
144
|
+
const val = data[key];
|
|
141
145
|
const valueSchema = ns.getValueSchema();
|
|
142
146
|
Object.assign(valueSchema.getMergedTraits(), {
|
|
143
147
|
...traits,
|
|
@@ -265,8 +269,9 @@ export class HttpBindingProtocol extends HttpProtocol {
|
|
|
265
269
|
}
|
|
266
270
|
else if (memberTraits.httpPrefixHeaders !== undefined) {
|
|
267
271
|
dataObject[memberName] = {};
|
|
268
|
-
for (const
|
|
272
|
+
for (const header in response.headers) {
|
|
269
273
|
if (header.startsWith(memberTraits.httpPrefixHeaders)) {
|
|
274
|
+
const value = response.headers[header];
|
|
270
275
|
const valueSchema = memberSchema.getValueSchema();
|
|
271
276
|
valueSchema.getMergedTraits().httpHeader = header;
|
|
272
277
|
dataObject[memberName][header.slice(memberTraits.httpPrefixHeaders.length)] = await deserializer.read(valueSchema, value);
|
|
@@ -42,8 +42,8 @@ export class HttpProtocol extends SerdeContext {
|
|
|
42
42
|
request.query[k] = v;
|
|
43
43
|
}
|
|
44
44
|
if (endpoint.headers) {
|
|
45
|
-
for (const
|
|
46
|
-
request.headers[name] =
|
|
45
|
+
for (const name in endpoint.headers) {
|
|
46
|
+
request.headers[name] = endpoint.headers[name].join(", ");
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
return request;
|
|
@@ -57,8 +57,8 @@ export class HttpProtocol extends SerdeContext {
|
|
|
57
57
|
...endpoint.query,
|
|
58
58
|
};
|
|
59
59
|
if (endpoint.headers) {
|
|
60
|
-
for (const
|
|
61
|
-
request.headers[name] =
|
|
60
|
+
for (const name in endpoint.headers) {
|
|
61
|
+
request.headers[name] = endpoint.headers[name];
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
return request;
|
|
@@ -73,8 +73,10 @@ export class HttpProtocol extends SerdeContext {
|
|
|
73
73
|
if (opTraits.endpoint) {
|
|
74
74
|
let hostPrefix = opTraits.endpoint?.[0];
|
|
75
75
|
if (typeof hostPrefix === "string") {
|
|
76
|
-
const
|
|
77
|
-
|
|
76
|
+
for (const [name, member] of inputNs.structIterator()) {
|
|
77
|
+
if (!member.getMergedTraits().hostLabel) {
|
|
78
|
+
continue;
|
|
79
|
+
}
|
|
78
80
|
const replacement = input[name];
|
|
79
81
|
if (typeof replacement !== "string") {
|
|
80
82
|
throw new Error(`@smithy/core/schema - ${name} in input must be a string as hostLabel.`);
|
|
@@ -69,7 +69,12 @@ export class TypeRegistry {
|
|
|
69
69
|
return undefined;
|
|
70
70
|
}
|
|
71
71
|
find(predicate) {
|
|
72
|
-
|
|
72
|
+
for (const schema of this.schemas.values()) {
|
|
73
|
+
if (predicate(schema)) {
|
|
74
|
+
return schema;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
return undefined;
|
|
73
78
|
}
|
|
74
79
|
clear() {
|
|
75
80
|
this.schemas.clear();
|
|
@@ -135,9 +135,12 @@ export const expectUnion = (value) => {
|
|
|
135
135
|
return undefined;
|
|
136
136
|
}
|
|
137
137
|
const asObject = expectObject(value);
|
|
138
|
-
const setKeys =
|
|
139
|
-
|
|
140
|
-
|
|
138
|
+
const setKeys = [];
|
|
139
|
+
for (const k in asObject) {
|
|
140
|
+
if (asObject[k] != null) {
|
|
141
|
+
setKeys.push(k);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
141
144
|
if (setKeys.length === 0) {
|
|
142
145
|
throw new TypeError(`Unions must have exactly one non-null member. None were found.`);
|
|
143
146
|
}
|
package/node_modules/@smithy/core/dist-es/util-identity-and-auth/DefaultIdentityProviderConfig.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export class DefaultIdentityProviderConfig {
|
|
2
2
|
authSchemes = new Map();
|
|
3
3
|
constructor(config) {
|
|
4
|
-
for (const
|
|
4
|
+
for (const key in config) {
|
|
5
|
+
const value = config[key];
|
|
5
6
|
if (value !== undefined) {
|
|
6
7
|
this.authSchemes.set(key, value);
|
|
7
8
|
}
|
|
@@ -62,7 +62,7 @@ export declare class TypeRegistry {
|
|
|
62
62
|
* @param predicate - criterion.
|
|
63
63
|
* @returns a schema in this registry matching the predicate.
|
|
64
64
|
*/
|
|
65
|
-
find(predicate: (schema: ISchema) => boolean):
|
|
65
|
+
find(predicate: (schema: ISchema) => boolean): number | import("@smithy/types").StaticSimpleSchema | import("@smithy/types").StaticListSchema | import("@smithy/types").StaticMapSchema | import("@smithy/types").StaticStructureSchema | import("@smithy/types").StaticUnionSchema | StaticErrorSchema | import("@smithy/types").StaticOperationSchema | "unit" | import("@smithy/types").NormalizedSchema | import("@smithy/types").TraitsSchema | import("@smithy/types").MemberSchema | undefined;
|
|
66
66
|
/**
|
|
67
67
|
* Unloads the current TypeRegistry.
|
|
68
68
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/core",
|
|
3
|
-
"version": "3.23.
|
|
3
|
+
"version": "3.23.16",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
|
|
6
6
|
"build:es:cjs": "yarn g:tsc -p tsconfig.es.json && node ../../scripts/inline core",
|
|
@@ -85,13 +85,13 @@
|
|
|
85
85
|
"license": "Apache-2.0",
|
|
86
86
|
"sideEffects": false,
|
|
87
87
|
"dependencies": {
|
|
88
|
-
"@smithy/protocol-http": "^5.3.
|
|
89
|
-
"@smithy/types": "^4.14.
|
|
90
|
-
"@smithy/url-parser": "^4.2.
|
|
88
|
+
"@smithy/protocol-http": "^5.3.14",
|
|
89
|
+
"@smithy/types": "^4.14.1",
|
|
90
|
+
"@smithy/url-parser": "^4.2.14",
|
|
91
91
|
"@smithy/util-base64": "^4.3.2",
|
|
92
92
|
"@smithy/util-body-length-browser": "^4.2.2",
|
|
93
|
-
"@smithy/util-middleware": "^4.2.
|
|
94
|
-
"@smithy/util-stream": "^4.5.
|
|
93
|
+
"@smithy/util-middleware": "^4.2.14",
|
|
94
|
+
"@smithy/util-stream": "^4.5.24",
|
|
95
95
|
"@smithy/util-utf8": "^4.2.2",
|
|
96
96
|
"@smithy/uuid": "^1.1.2",
|
|
97
97
|
"tslib": "^2.6.2"
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
"directory": "packages/core"
|
|
129
129
|
},
|
|
130
130
|
"devDependencies": {
|
|
131
|
-
"@smithy/eventstream-serde-node": "^4.2.
|
|
131
|
+
"@smithy/eventstream-serde-node": "^4.2.14",
|
|
132
132
|
"@types/node": "^18.11.9",
|
|
133
133
|
"concurrently": "7.0.0",
|
|
134
134
|
"downlevel-dts": "0.10.1",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/credential-provider-imds",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.14",
|
|
4
4
|
"description": "AWS credential provider that sources credentials from the EC2 instance metadata service and ECS container metadata service",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
"license": "Apache-2.0",
|
|
28
28
|
"sideEffects": false,
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@smithy/node-config-provider": "^4.3.
|
|
31
|
-
"@smithy/property-provider": "^4.2.
|
|
32
|
-
"@smithy/types": "^4.14.
|
|
33
|
-
"@smithy/url-parser": "^4.2.
|
|
30
|
+
"@smithy/node-config-provider": "^4.3.14",
|
|
31
|
+
"@smithy/property-provider": "^4.2.14",
|
|
32
|
+
"@smithy/types": "^4.14.1",
|
|
33
|
+
"@smithy/url-parser": "^4.2.14",
|
|
34
34
|
"tslib": "^2.6.2"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/eventstream-codec",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.14",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
|
|
6
6
|
"build:es:cjs": "yarn g:tsc -p tsconfig.es.json && node ../../scripts/inline eventstream-codec",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"sideEffects": false,
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@aws-crypto/crc32": "5.2.0",
|
|
27
|
-
"@smithy/types": "^4.14.
|
|
27
|
+
"@smithy/types": "^4.14.1",
|
|
28
28
|
"@smithy/util-hex-encoding": "^4.2.2",
|
|
29
29
|
"tslib": "^2.6.2"
|
|
30
30
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/eventstream-serde-browser",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.14",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
|
|
6
6
|
"build:es:cjs": "yarn g:tsc -p tsconfig.es.json && node ../../scripts/inline eventstream-serde-browser",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"license": "Apache-2.0",
|
|
23
23
|
"sideEffects": false,
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@smithy/eventstream-serde-universal": "^4.2.
|
|
26
|
-
"@smithy/types": "^4.14.
|
|
25
|
+
"@smithy/eventstream-serde-universal": "^4.2.14",
|
|
26
|
+
"@smithy/types": "^4.14.1",
|
|
27
27
|
"tslib": "^2.6.2"
|
|
28
28
|
},
|
|
29
29
|
"engines": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/eventstream-serde-config-resolver",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.14",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
|
|
6
6
|
"build:es:cjs": "yarn g:tsc -p tsconfig.es.json && node ../../scripts/inline eventstream-serde-config-resolver",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"sideEffects": false,
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@smithy/types": "^4.14.
|
|
27
|
+
"@smithy/types": "^4.14.1",
|
|
28
28
|
"tslib": "^2.6.2"
|
|
29
29
|
},
|
|
30
30
|
"engines": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/eventstream-serde-node",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.14",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
|
|
6
6
|
"build:es:cjs": "yarn g:tsc -p tsconfig.es.json && node ../../scripts/inline eventstream-serde-node",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"license": "Apache-2.0",
|
|
23
23
|
"sideEffects": false,
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@smithy/eventstream-serde-universal": "^4.2.
|
|
26
|
-
"@smithy/types": "^4.14.
|
|
25
|
+
"@smithy/eventstream-serde-universal": "^4.2.14",
|
|
26
|
+
"@smithy/types": "^4.14.1",
|
|
27
27
|
"tslib": "^2.6.2"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/eventstream-serde-universal",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.14",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
|
|
6
6
|
"build:es:cjs": "yarn g:tsc -p tsconfig.es.json && node ../../scripts/inline eventstream-serde-universal",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"sideEffects": false,
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@smithy/eventstream-codec": "^4.2.
|
|
29
|
-
"@smithy/types": "^4.14.
|
|
28
|
+
"@smithy/eventstream-codec": "^4.2.14",
|
|
29
|
+
"@smithy/types": "^4.14.1",
|
|
30
30
|
"tslib": "^2.6.2"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/fetch-http-handler",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.17",
|
|
4
4
|
"description": "Provides a way to make requests",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
|
|
@@ -27,14 +27,14 @@
|
|
|
27
27
|
"module": "./dist-es/index.js",
|
|
28
28
|
"types": "./dist-types/index.d.ts",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@smithy/protocol-http": "^5.3.
|
|
31
|
-
"@smithy/querystring-builder": "^4.2.
|
|
32
|
-
"@smithy/types": "^4.14.
|
|
30
|
+
"@smithy/protocol-http": "^5.3.14",
|
|
31
|
+
"@smithy/querystring-builder": "^4.2.14",
|
|
32
|
+
"@smithy/types": "^4.14.1",
|
|
33
33
|
"@smithy/util-base64": "^4.3.2",
|
|
34
34
|
"tslib": "^2.6.2"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@smithy/abort-controller": "^4.2.
|
|
37
|
+
"@smithy/abort-controller": "^4.2.14",
|
|
38
38
|
"concurrently": "7.0.0",
|
|
39
39
|
"downlevel-dts": "0.10.1",
|
|
40
40
|
"premove": "4.0.0",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/hash-blob-browser",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.15",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
|
|
6
6
|
"build:es:cjs": "yarn g:tsc -p tsconfig.es.json && node ../../scripts/inline hash-blob-browser",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@smithy/chunked-blob-reader": "^5.2.2",
|
|
27
27
|
"@smithy/chunked-blob-reader-native": "^4.2.3",
|
|
28
|
-
"@smithy/types": "^4.14.
|
|
28
|
+
"@smithy/types": "^4.14.1",
|
|
29
29
|
"tslib": "^2.6.2"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/hash-node",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.14",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
|
|
6
6
|
"build:es:cjs": "yarn g:tsc -p tsconfig.es.json && node ../../scripts/inline hash-node",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"typedoc": "0.23.23"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@smithy/types": "^4.14.
|
|
34
|
+
"@smithy/types": "^4.14.1",
|
|
35
35
|
"@smithy/util-buffer-from": "^4.2.2",
|
|
36
36
|
"@smithy/util-utf8": "^4.2.2",
|
|
37
37
|
"tslib": "^2.6.2"
|