@cdklabs/cdk-ssm-documents 0.0.74 → 0.0.75
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/checksums/package.json +6 -6
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/index.js +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/index.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.browser.d.ts +38 -38
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.d.ts +36 -36
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.native.d.ts +37 -37
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.shared.d.ts +2 -2
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/index.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.browser.d.ts +54 -56
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.d.ts +57 -57
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.native.d.ts +58 -60
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.shared.d.ts +3 -3
- package/node_modules/@aws-sdk/client-cloudformation/package.json +10 -10
- package/node_modules/@aws-sdk/client-cloudwatch/dist-cjs/index.js +18 -9
- package/node_modules/@aws-sdk/client-cloudwatch/dist-es/index.js +1 -1
- package/node_modules/@aws-sdk/client-cloudwatch/dist-es/schemas/schemas_0.js +16 -8
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/commands/AssociateDatasetKmsKeyCommand.d.ts +19 -10
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/commands/DescribeAlarmsCommand.d.ts +8 -0
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/commands/DescribeAlarmsForMetricCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/commands/DisassociateDatasetKmsKeyCommand.d.ts +14 -7
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/commands/PutLogAlarmCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/commands/PutMetricAlarmCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/index.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/models/models_0.d.ts +70 -4
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/runtimeConfig.browser.d.ts +40 -40
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/runtimeConfig.d.ts +36 -36
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/runtimeConfig.native.d.ts +37 -37
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/runtimeConfig.shared.d.ts +2 -2
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/schemas/schemas_0.d.ts +1 -0
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/ts3.4/index.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/ts3.4/models/models_0.d.ts +8 -0
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/ts3.4/runtimeConfig.browser.d.ts +56 -58
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/ts3.4/runtimeConfig.d.ts +59 -59
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/ts3.4/runtimeConfig.native.d.ts +58 -60
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/ts3.4/runtimeConfig.shared.d.ts +3 -3
- package/node_modules/@aws-sdk/client-cloudwatch/dist-types/ts3.4/schemas/schemas_0.d.ts +1 -0
- package/node_modules/@aws-sdk/client-cloudwatch/package.json +12 -12
- package/node_modules/@aws-sdk/client-ec2/dist-cjs/index.js +12 -8
- package/node_modules/@aws-sdk/client-ec2/dist-es/index.js +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-es/schemas/schemas_0.js +11 -7
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/AssociateApplicationStatusCheckCommand.d.ts +5 -5
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateApplicationStatusCheckCommand.d.ts +6 -6
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateImageCommand.d.ts +6 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeApplicationStatusChecksCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeApplicationStatusCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DisableApplicationStatusCheckSuppressionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/EnableApplicationStatusCheckSuppressionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/index.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_0.d.ts +2 -2
- package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_1.d.ts +13 -8
- package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_2.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_5.d.ts +3 -3
- package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_7.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/runtimeConfig.browser.d.ts +40 -40
- package/node_modules/@aws-sdk/client-ec2/dist-types/runtimeConfig.d.ts +36 -36
- package/node_modules/@aws-sdk/client-ec2/dist-types/runtimeConfig.native.d.ts +38 -38
- package/node_modules/@aws-sdk/client-ec2/dist-types/runtimeConfig.shared.d.ts +2 -2
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/index.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/runtimeConfig.browser.d.ts +56 -58
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/runtimeConfig.d.ts +58 -58
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/runtimeConfig.native.d.ts +60 -62
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/runtimeConfig.shared.d.ts +3 -3
- package/node_modules/@aws-sdk/client-ec2/package.json +12 -12
- package/node_modules/@aws-sdk/client-iam/README.md +28 -0
- package/node_modules/@aws-sdk/client-iam/dist-cjs/index.js +285 -27
- package/node_modules/@aws-sdk/client-iam/dist-es/IAM.js +8 -0
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/AcquireRoleCommand.js +4 -0
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/GetAccountPropertiesCommand.js +4 -0
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/GetRoleTemplateVersionCommand.js +4 -0
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/PutAccountPropertiesCommand.js +4 -0
- package/node_modules/@aws-sdk/client-iam/dist-es/commands/index.js +4 -0
- package/node_modules/@aws-sdk/client-iam/dist-es/index.js +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-es/models/enums.js +14 -3
- package/node_modules/@aws-sdk/client-iam/dist-es/models/errors.js +52 -16
- package/node_modules/@aws-sdk/client-iam/dist-es/schemas/schemas_0.js +176 -8
- package/node_modules/@aws-sdk/client-iam/dist-types/IAM.d.ts +29 -0
- package/node_modules/@aws-sdk/client-iam/dist-types/IAMClient.d.ts +6 -2
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/AcquireRoleCommand.d.ts +154 -0
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/CreateInstanceProfileCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/CreateRoleCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/CreateServiceLinkedRoleCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/GetAccountAuthorizationDetailsCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/GetAccountPropertiesCommand.d.ts +84 -0
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/GetInstanceProfileCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/GetRoleCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/GetRoleTemplateVersionCommand.d.ts +135 -0
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/ListInstanceProfilesCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/ListInstanceProfilesForRoleCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/ListRolesCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/PutAccountPropertiesCommand.d.ts +88 -0
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/TagSAMLProviderCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/TagServerCertificateCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/TagUserCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/UntagInstanceProfileCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/UntagMFADeviceCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/UntagOpenIDConnectProviderCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/UntagPolicyCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/UntagRoleCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/UntagSAMLProviderCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/UntagServerCertificateCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/UntagUserCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/UpdateAccessKeyCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/UpdateAccountPasswordPolicyCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/UpdateAssumeRolePolicyCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/UpdateRoleDescriptionCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-iam/dist-types/commands/index.d.ts +4 -0
- package/node_modules/@aws-sdk/client-iam/dist-types/index.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/models/enums.d.ts +38 -11
- package/node_modules/@aws-sdk/client-iam/dist-types/models/errors.d.ts +58 -18
- package/node_modules/@aws-sdk/client-iam/dist-types/models/models_0.d.ts +508 -511
- package/node_modules/@aws-sdk/client-iam/dist-types/models/models_1.d.ts +358 -0
- package/node_modules/@aws-sdk/client-iam/dist-types/runtimeConfig.browser.d.ts +40 -40
- package/node_modules/@aws-sdk/client-iam/dist-types/runtimeConfig.d.ts +36 -36
- package/node_modules/@aws-sdk/client-iam/dist-types/runtimeConfig.native.d.ts +38 -38
- package/node_modules/@aws-sdk/client-iam/dist-types/runtimeConfig.shared.d.ts +2 -2
- package/node_modules/@aws-sdk/client-iam/dist-types/schemas/schemas_0.d.ts +21 -0
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/IAM.d.ts +66 -0
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/IAMClient.d.ts +21 -0
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/AcquireRoleCommand.d.ts +38 -0
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/GetAccountPropertiesCommand.d.ts +39 -0
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/GetRoleTemplateVersionCommand.d.ts +39 -0
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/PutAccountPropertiesCommand.d.ts +39 -0
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/TagSAMLProviderCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/TagServerCertificateCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/TagUserCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/UntagInstanceProfileCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/UntagMFADeviceCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/UntagOpenIDConnectProviderCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/UntagPolicyCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/UntagRoleCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/UntagSAMLProviderCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/UntagServerCertificateCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/UntagUserCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/UpdateAccessKeyCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/UpdateAccountPasswordPolicyCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/UpdateAssumeRolePolicyCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/index.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/models/enums.d.ts +18 -5
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/models/errors.d.ts +23 -8
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/models/models_0.d.ts +100 -89
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/models/models_1.d.ts +64 -0
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/runtimeConfig.browser.d.ts +56 -58
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/runtimeConfig.d.ts +58 -58
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/runtimeConfig.native.d.ts +60 -62
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/runtimeConfig.shared.d.ts +3 -3
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/schemas/schemas_0.d.ts +21 -0
- package/node_modules/@aws-sdk/client-iam/package.json +11 -11
- package/node_modules/@aws-sdk/client-lambda/README.md +21 -0
- package/node_modules/@aws-sdk/client-lambda/dist-cjs/index.js +67 -1
- package/node_modules/@aws-sdk/client-lambda/dist-es/Lambda.js +6 -0
- package/node_modules/@aws-sdk/client-lambda/dist-es/commands/DeleteResourcePolicyCommand.js +4 -0
- package/node_modules/@aws-sdk/client-lambda/dist-es/commands/GetResourcePolicyCommand.js +4 -0
- package/node_modules/@aws-sdk/client-lambda/dist-es/commands/PutResourcePolicyCommand.js +4 -0
- package/node_modules/@aws-sdk/client-lambda/dist-es/commands/index.js +3 -0
- package/node_modules/@aws-sdk/client-lambda/dist-es/index.js +1 -1
- package/node_modules/@aws-sdk/client-lambda/dist-es/schemas/schemas_0.js +43 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/Lambda.d.ts +21 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/LambdaClient.d.ts +5 -2
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/AddPermissionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/DeleteResourcePolicyCommand.d.ts +88 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetProvisionedConcurrencyConfigCommand.d.ts +4 -4
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetResourcePolicyCommand.d.ts +84 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/PutResourcePolicyCommand.d.ts +98 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/RemovePermissionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/index.d.ts +3 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/index.d.ts +1 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/models/errors.d.ts +1 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/models/models_0.d.ts +76 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/runtimeConfig.browser.d.ts +41 -41
- package/node_modules/@aws-sdk/client-lambda/dist-types/runtimeConfig.d.ts +36 -36
- package/node_modules/@aws-sdk/client-lambda/dist-types/runtimeConfig.native.d.ts +39 -39
- package/node_modules/@aws-sdk/client-lambda/dist-types/runtimeConfig.shared.d.ts +2 -2
- package/node_modules/@aws-sdk/client-lambda/dist-types/schemas/schemas_0.d.ts +8 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/Lambda.d.ts +51 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/LambdaClient.d.ts +18 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +38 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +39 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +39 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/index.d.ts +1 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/models/models_0.d.ts +20 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/runtimeConfig.browser.d.ts +57 -59
- package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/runtimeConfig.d.ts +59 -59
- package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/runtimeConfig.native.d.ts +61 -63
- package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/runtimeConfig.shared.d.ts +3 -3
- package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/schemas/schemas_0.d.ts +8 -0
- package/node_modules/@aws-sdk/client-lambda/package.json +11 -11
- package/node_modules/@aws-sdk/client-s3/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/client-s3/dist-es/index.js +1 -1
- package/node_modules/@aws-sdk/client-s3/dist-types/index.d.ts +1 -1
- package/node_modules/@aws-sdk/client-s3/dist-types/runtimeConfig.browser.d.ts +58 -58
- package/node_modules/@aws-sdk/client-s3/dist-types/runtimeConfig.d.ts +61 -61
- package/node_modules/@aws-sdk/client-s3/dist-types/runtimeConfig.native.d.ts +57 -57
- package/node_modules/@aws-sdk/client-s3/dist-types/runtimeConfig.shared.d.ts +2 -2
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/index.d.ts +1 -1
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/runtimeConfig.browser.d.ts +97 -99
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/runtimeConfig.d.ts +103 -103
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/runtimeConfig.native.d.ts +101 -103
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/runtimeConfig.shared.d.ts +3 -3
- package/node_modules/@aws-sdk/client-s3/package.json +15 -15
- package/node_modules/@aws-sdk/client-sns/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/client-sns/dist-es/index.js +1 -1
- package/node_modules/@aws-sdk/client-sns/dist-types/index.d.ts +1 -1
- package/node_modules/@aws-sdk/client-sns/dist-types/runtimeConfig.browser.d.ts +40 -40
- package/node_modules/@aws-sdk/client-sns/dist-types/runtimeConfig.d.ts +36 -36
- package/node_modules/@aws-sdk/client-sns/dist-types/runtimeConfig.native.d.ts +38 -38
- package/node_modules/@aws-sdk/client-sns/dist-types/runtimeConfig.shared.d.ts +2 -2
- package/node_modules/@aws-sdk/client-sns/dist-types/ts3.4/index.d.ts +1 -1
- package/node_modules/@aws-sdk/client-sns/dist-types/ts3.4/runtimeConfig.browser.d.ts +56 -58
- package/node_modules/@aws-sdk/client-sns/dist-types/ts3.4/runtimeConfig.d.ts +58 -58
- package/node_modules/@aws-sdk/client-sns/dist-types/ts3.4/runtimeConfig.native.d.ts +60 -62
- package/node_modules/@aws-sdk/client-sns/dist-types/ts3.4/runtimeConfig.shared.d.ts +3 -3
- package/node_modules/@aws-sdk/client-sns/package.json +10 -10
- package/node_modules/@aws-sdk/client-sqs/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/client-sqs/dist-es/index.js +1 -1
- package/node_modules/@aws-sdk/client-sqs/dist-types/index.d.ts +1 -1
- package/node_modules/@aws-sdk/client-sqs/dist-types/runtimeConfig.browser.d.ts +39 -39
- package/node_modules/@aws-sdk/client-sqs/dist-types/runtimeConfig.d.ts +38 -38
- package/node_modules/@aws-sdk/client-sqs/dist-types/runtimeConfig.native.d.ts +38 -38
- package/node_modules/@aws-sdk/client-sqs/dist-types/runtimeConfig.shared.d.ts +2 -2
- package/node_modules/@aws-sdk/client-sqs/dist-types/ts3.4/index.d.ts +1 -1
- package/node_modules/@aws-sdk/client-sqs/dist-types/ts3.4/runtimeConfig.browser.d.ts +55 -57
- package/node_modules/@aws-sdk/client-sqs/dist-types/ts3.4/runtimeConfig.d.ts +58 -58
- package/node_modules/@aws-sdk/client-sqs/dist-types/ts3.4/runtimeConfig.native.d.ts +59 -61
- package/node_modules/@aws-sdk/client-sqs/dist-types/ts3.4/runtimeConfig.shared.d.ts +3 -3
- package/node_modules/@aws-sdk/client-sqs/package.json +12 -12
- package/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/client-ssm/dist-es/index.js +1 -1
- package/node_modules/@aws-sdk/client-ssm/dist-types/index.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ssm/dist-types/runtimeConfig.browser.d.ts +40 -40
- package/node_modules/@aws-sdk/client-ssm/dist-types/runtimeConfig.d.ts +36 -36
- package/node_modules/@aws-sdk/client-ssm/dist-types/runtimeConfig.native.d.ts +38 -38
- package/node_modules/@aws-sdk/client-ssm/dist-types/runtimeConfig.shared.d.ts +2 -2
- package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/index.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/runtimeConfig.browser.d.ts +56 -58
- package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/runtimeConfig.d.ts +58 -58
- package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/runtimeConfig.native.d.ts +60 -62
- package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/runtimeConfig.shared.d.ts +3 -3
- package/node_modules/@aws-sdk/client-ssm/package.json +10 -10
- package/node_modules/@aws-sdk/core/dist-types/submodules/client/util-endpoints/lib/aws/partitions.d.ts +54 -54
- package/node_modules/@aws-sdk/core/dist-types/submodules/client/util-user-agent-browser/defaultUserAgent.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/client/util-user-agent-browser/defaultUserAgent.native.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/client/util-user-agent-node/defaultUserAgent.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/partitions.d.ts +54 -54
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.d.ts +1 -4
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.native.d.ts +1 -4
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/defaultUserAgent.d.ts +1 -4
- package/node_modules/@aws-sdk/core/package.json +6 -6
- package/node_modules/@aws-sdk/credential-provider-env/package.json +6 -6
- package/node_modules/@aws-sdk/credential-provider-http/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +13 -13
- package/node_modules/@aws-sdk/credential-provider-login/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-node/package.json +11 -11
- 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-sdk-ec2/package.json +6 -6
- package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +7 -7
- package/node_modules/@aws-sdk/middleware-sdk-sqs/package.json +5 -5
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.browser.d.ts +42 -42
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.d.ts +42 -42
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.native.d.ts +41 -41
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.shared.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.browser.d.ts +43 -43
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.d.ts +43 -43
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.native.d.ts +42 -42
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.shared.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.browser.d.ts +42 -42
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.d.ts +42 -42
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.native.d.ts +41 -41
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.shared.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.browser.d.ts +42 -42
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.d.ts +42 -42
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.native.d.ts +41 -41
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.shared.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.browser.d.ts +44 -44
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.d.ts +35 -35
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.native.d.ts +43 -43
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.shared.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.browser.d.ts +64 -66
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.d.ts +65 -65
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.native.d.ts +68 -70
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.shared.d.ts +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.browser.d.ts +67 -69
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.d.ts +66 -66
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.native.d.ts +71 -73
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.shared.d.ts +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.browser.d.ts +64 -66
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.d.ts +65 -65
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.native.d.ts +68 -70
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.shared.d.ts +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.browser.d.ts +64 -66
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.d.ts +65 -65
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.native.d.ts +68 -70
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.shared.d.ts +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.browser.d.ts +68 -70
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.d.ts +68 -68
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.native.d.ts +72 -74
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.shared.d.ts +3 -3
- package/node_modules/@aws-sdk/nested-clients/package.json +9 -9
- package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +4 -4
- package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +8 -4
- package/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js +8 -4
- package/node_modules/@aws-sdk/token-providers/package.json +7 -7
- package/node_modules/@aws-sdk/types/package.json +3 -3
- package/node_modules/@aws-sdk/xml-builder/package.json +3 -3
- package/node_modules/@smithy/core/dist-cjs/index.js +3 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +127 -41
- package/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +14 -3
- package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.browser.js +3 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +3 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.browser.js +33 -24
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +33 -24
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +33 -15
- package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +4 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +4 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +0 -10
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +4 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +4 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +4 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/transport/index.js +7 -0
- package/node_modules/@smithy/core/dist-es/legacy-root-exports/util-identity-and-auth/DefaultIdentityProviderConfig.js +3 -0
- package/node_modules/@smithy/core/dist-es/submodules/cbor/SmithyRpcV2CborProtocol.js +1 -2
- package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-decode.js +29 -13
- package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-encode.js +12 -4
- package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeDeserializer.js +9 -0
- package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeSerializer.js +7 -0
- package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeDeserializer2.js +44 -15
- package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeSerializer2.js +22 -4
- package/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +5 -0
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/extensions/checksum.js +3 -0
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/get-value-from-text-node.js +4 -1
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/object-mapping.js +6 -1
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/serde-json.js +4 -1
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/resolveEndpoint.js +3 -0
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +11 -4
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/HeaderMarshaller.js +23 -20
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +9 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +5 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js +6 -4
- package/node_modules/@smithy/core/dist-es/submodules/protocols/middleware-content-length/contentLengthMiddleware.js +6 -4
- package/node_modules/@smithy/core/dist-es/submodules/protocols/protocol-http/extensions/httpExtensionConfiguration.js +8 -5
- package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/parseRetryAfterHeader.js +4 -1
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/ListSchema.js +0 -2
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/MapSchema.js +0 -2
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/OperationSchema.js +0 -2
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/SimpleSchema.js +0 -2
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/StructureSchema.js +0 -2
- 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 +3 -0
- package/node_modules/@smithy/core/dist-es/submodules/transport/hasOwn.js +3 -0
- package/node_modules/@smithy/core/dist-es/submodules/transport/index.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/transport/toEndpointV1.js +3 -0
- package/node_modules/@smithy/core/dist-types/submodules/client/smithy-client/extensions/defaultExtensionConfiguration.d.ts +1 -7
- package/node_modules/@smithy/core/dist-types/submodules/config/config-resolver/regionConfig/checkRegion.d.ts +2 -1
- package/node_modules/@smithy/core/dist-types/submodules/endpoints/util-endpoints/utils/evaluateCondition.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/submodules/endpoints/util-endpoints/utils/evaluateConditions.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/submodules/endpoints/util-endpoints/utils/evaluateExpression.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/submodules/endpoints/util-endpoints/utils/evaluateRules.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/submodules/endpoints/util-endpoints/utils/getEndpointProperties.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/submodules/endpoints/util-endpoints/utils/getReferenceValue.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/submodules/event-streams/EventStreamSerde.d.ts +14 -2
- package/node_modules/@smithy/core/dist-types/submodules/protocols/protocol-http/extensions/httpExtensionConfiguration.d.ts +7 -2
- package/node_modules/@smithy/core/dist-types/submodules/retry/util-retry/retries-2026-config.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/submodules/schema/TypeRegistry.d.ts +1 -1
- 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/submodules/serde/parse-utils.d.ts +5 -5
- package/node_modules/@smithy/core/dist-types/submodules/transport/hasOwn.d.ts +4 -0
- package/node_modules/@smithy/core/dist-types/submodules/transport/index.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/client/smithy-client/extensions/defaultExtensionConfiguration.d.ts +1 -7
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/config/config-resolver/regionConfig/checkRegion.d.ts +2 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/utils/evaluateCondition.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/utils/evaluateConditions.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/utils/evaluateExpression.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/utils/evaluateRules.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/utils/getEndpointProperties.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/utils/getReferenceValue.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/event-streams/EventStreamSerde.d.ts +14 -2
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/protocol-http/extensions/httpExtensionConfiguration.d.ts +7 -2
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/retry/util-retry/retries-2026-config.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/TypeRegistry.d.ts +1 -1
- 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/dist-types/ts3.4/submodules/serde/parse-utils.d.ts +5 -5
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/transport/hasOwn.d.ts +4 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/transport/index.d.ts +1 -0
- package/node_modules/@smithy/core/package.json +3 -11
- package/node_modules/@smithy/credential-provider-imds/package.json +4 -12
- package/node_modules/@smithy/fetch-http-handler/package.json +5 -13
- package/node_modules/@smithy/middleware-compression/package.json +5 -10
- package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +16 -4
- package/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js +3 -0
- package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +12 -2
- package/node_modules/@smithy/node-http-handler/dist-types/node-http2-handler.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-handler.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/package.json +5 -13
- package/node_modules/@smithy/signature-v4/dist-cjs/index.js +28 -16
- package/node_modules/@smithy/signature-v4/dist-es/HeaderFormatter.js +13 -10
- package/node_modules/@smithy/signature-v4/dist-es/getCanonicalQuery.js +4 -1
- package/node_modules/@smithy/signature-v4/dist-es/getPayloadHash.js +4 -1
- package/node_modules/@smithy/signature-v4/dist-es/headerUtil.js +10 -3
- package/node_modules/@smithy/signature-v4/dist-es/moveHeadersToQuery.js +4 -1
- package/node_modules/@smithy/signature-v4/dist-es/prepareRequest.js +4 -1
- package/node_modules/@smithy/signature-v4/package.json +4 -12
- package/node_modules/@smithy/types/dist-types/schema/sentinels.d.ts +14 -14
- package/node_modules/@smithy/types/package.json +29 -39
- package/node_modules/fflate/CHANGELOG.md +22 -0
- package/node_modules/fflate/LICENSE +1 -1
- package/node_modules/fflate/README.md +14 -17
- package/node_modules/fflate/esm/browser.d.ts +160 -28
- package/node_modules/fflate/esm/browser.js +182 -95
- package/node_modules/fflate/esm/index.d.mts +160 -28
- package/node_modules/fflate/esm/index.mjs +187 -96
- package/node_modules/fflate/lib/browser.cjs +206 -118
- package/node_modules/fflate/lib/browser.d.cts +160 -28
- package/node_modules/fflate/lib/index.cjs +206 -118
- package/node_modules/fflate/lib/index.d.ts +160 -28
- package/node_modules/fflate/lib/node-worker.cjs +5 -2
- package/node_modules/fflate/lib/node.cjs +211 -119
- package/node_modules/fflate/lib/node.d.cts +160 -28
- package/node_modules/fflate/lib/worker.cjs +0 -1
- package/node_modules/fflate/package.json +12 -12
- package/node_modules/fflate/umd/index.js +1 -1
- package/package.json +10 -10
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const { nv, NumericValue, calculateBodyLength, generateIdempotencyToken, fromBase64, _parseEpochTimestamp } = require("@smithy/core/serde");
|
|
2
|
+
const { hasOwn, getSmithyContext } = require("@smithy/core/transport");
|
|
2
3
|
const { HttpRequest, collectBody, SerdeContext, RpcProtocol } = require("@smithy/core/protocols");
|
|
3
4
|
const { NormalizedSchema, deref, TypeRegistry } = require("@smithy/core/schema");
|
|
4
|
-
const { getSmithyContext } = require("@smithy/core/transport");
|
|
5
5
|
|
|
6
6
|
const majorUint64 = 0;
|
|
7
7
|
const majorNegativeInt64 = 1;
|
|
@@ -299,23 +299,39 @@ function decodeTagValue(at, to, minor, unsignedInt, offset) {
|
|
|
299
299
|
}
|
|
300
300
|
else if (minor === 4) {
|
|
301
301
|
const decimalFraction = decode(at + offset, to);
|
|
302
|
-
const [
|
|
302
|
+
const [rawExponent, mantissa] = decimalFraction;
|
|
303
303
|
const normalizer = mantissa < 0 ? -1 : 1;
|
|
304
|
-
const
|
|
305
|
-
|
|
304
|
+
const absMantissa = BigInt(normalizer) * BigInt(mantissa);
|
|
305
|
+
const mantissaDigits = String(absMantissa);
|
|
306
306
|
const sign = mantissa < 0 ? "-" : "";
|
|
307
|
-
numericString
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
numericString =
|
|
317
|
-
|
|
318
|
-
|
|
307
|
+
let numericString;
|
|
308
|
+
const isSmallExponent = typeof rawExponent === "number" && Math.abs(rawExponent) <= 2 ** 28;
|
|
309
|
+
if (isSmallExponent) {
|
|
310
|
+
const exponent = rawExponent;
|
|
311
|
+
const mantissaStr = "0".repeat(Math.abs(exponent) + 1) + mantissaDigits;
|
|
312
|
+
numericString =
|
|
313
|
+
exponent === 0
|
|
314
|
+
? mantissaStr
|
|
315
|
+
: mantissaStr.slice(0, mantissaStr.length + exponent) + "." + mantissaStr.slice(exponent);
|
|
316
|
+
numericString = numericString.replace(/^0+/g, "");
|
|
317
|
+
if (numericString === "") {
|
|
318
|
+
numericString = "0";
|
|
319
|
+
}
|
|
320
|
+
if (numericString[0] === ".") {
|
|
321
|
+
numericString = "0" + numericString;
|
|
322
|
+
}
|
|
323
|
+
numericString = sign + numericString;
|
|
324
|
+
}
|
|
325
|
+
else {
|
|
326
|
+
const bigExponent = BigInt(rawExponent);
|
|
327
|
+
if (mantissaDigits.length === 1) {
|
|
328
|
+
numericString = sign + mantissaDigits + "e" + String(bigExponent);
|
|
329
|
+
}
|
|
330
|
+
else {
|
|
331
|
+
const adjustedExp = bigExponent + BigInt(mantissaDigits.length - 1);
|
|
332
|
+
numericString = sign + mantissaDigits[0] + "." + mantissaDigits.slice(1) + "e" + String(adjustedExp);
|
|
333
|
+
}
|
|
334
|
+
}
|
|
319
335
|
_offset = offset + _offset;
|
|
320
336
|
return nv(numericString);
|
|
321
337
|
}
|
|
@@ -664,13 +680,21 @@ function encode(_input) {
|
|
|
664
680
|
}
|
|
665
681
|
else if (typeof input === "object") {
|
|
666
682
|
if (input instanceof NumericValue) {
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
const
|
|
683
|
+
let str = input.string;
|
|
684
|
+
let expOffset = BigInt(0);
|
|
685
|
+
const eIndex = str.search(/[eE]/);
|
|
686
|
+
if (eIndex !== -1) {
|
|
687
|
+
expOffset = BigInt(str.slice(eIndex + 1));
|
|
688
|
+
str = str.slice(0, eIndex);
|
|
689
|
+
}
|
|
690
|
+
const decimalIndex = str.indexOf(".");
|
|
691
|
+
const fractionDigits = decimalIndex === -1 ? 0 : str.length - decimalIndex - 1;
|
|
692
|
+
const exponent = expOffset - BigInt(fractionDigits);
|
|
693
|
+
const mantissa = BigInt(str.replace(".", ""));
|
|
670
694
|
data[cursor$1++] = 0b110_00100;
|
|
671
695
|
encodeInteger(majorList, 2);
|
|
672
696
|
encodeStack.push(mantissa);
|
|
673
|
-
encodeStack.push(exponent);
|
|
697
|
+
encodeStack.push(exponent >= -0x20000000000000n && exponent <= 0x1fffffffffffffn ? Number(exponent) : exponent);
|
|
674
698
|
continue;
|
|
675
699
|
}
|
|
676
700
|
if (input[tagSymbol]) {
|
|
@@ -888,6 +912,8 @@ const loadSmithyRpcV2CborErrorCode = (output, data) => {
|
|
|
888
912
|
}
|
|
889
913
|
let codeKey;
|
|
890
914
|
for (const key in data) {
|
|
915
|
+
if (!hasOwn(data, key))
|
|
916
|
+
continue;
|
|
891
917
|
if (key.toLowerCase() === "code") {
|
|
892
918
|
codeKey = key;
|
|
893
919
|
break;
|
|
@@ -920,6 +946,8 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
920
946
|
}
|
|
921
947
|
if (endpoint.headers) {
|
|
922
948
|
for (const name in endpoint.headers) {
|
|
949
|
+
if (!hasOwn(endpoint.headers, name))
|
|
950
|
+
continue;
|
|
923
951
|
contents.headers[name] = endpoint.headers[name];
|
|
924
952
|
}
|
|
925
953
|
}
|
|
@@ -1180,6 +1208,8 @@ function writeStruct(ns, value, serdeContext) {
|
|
|
1180
1208
|
}
|
|
1181
1209
|
if (typeof value.__type === "string") {
|
|
1182
1210
|
for (const k in value) {
|
|
1211
|
+
if (!hasOwn(value, k))
|
|
1212
|
+
continue;
|
|
1183
1213
|
if (!memberNames.includes(k)) {
|
|
1184
1214
|
writeString(k);
|
|
1185
1215
|
writeUntypedValue(value[k]);
|
|
@@ -1245,6 +1275,8 @@ function writeMap(ns, value, isDocument, serdeContext) {
|
|
|
1245
1275
|
const valueSchema = ns.getValueSchema();
|
|
1246
1276
|
const keys = [];
|
|
1247
1277
|
for (const k in value) {
|
|
1278
|
+
if (!hasOwn(value, k))
|
|
1279
|
+
continue;
|
|
1248
1280
|
const v = value[k];
|
|
1249
1281
|
if (isDocument ? v !== undefined : v != null || sparse) {
|
|
1250
1282
|
keys.push(k);
|
|
@@ -1506,14 +1538,27 @@ function writeTag(tagValue, innerValue) {
|
|
|
1506
1538
|
writeUntypedValue(innerValue);
|
|
1507
1539
|
}
|
|
1508
1540
|
function writeNumericValue(nv) {
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
const
|
|
1541
|
+
let str = nv.string;
|
|
1542
|
+
let expOffset = BigInt(0);
|
|
1543
|
+
const eIndex = str.search(/[eE]/);
|
|
1544
|
+
if (eIndex !== -1) {
|
|
1545
|
+
expOffset = BigInt(str.slice(eIndex + 1));
|
|
1546
|
+
str = str.slice(0, eIndex);
|
|
1547
|
+
}
|
|
1548
|
+
const decimalIndex = str.indexOf(".");
|
|
1549
|
+
const fractionDigits = decimalIndex === -1 ? 0 : str.length - decimalIndex - 1;
|
|
1550
|
+
const exponent = expOffset - BigInt(fractionDigits);
|
|
1551
|
+
const mantissa = BigInt(str.replace(".", ""));
|
|
1512
1552
|
ensure(9);
|
|
1513
1553
|
buf[cursor++] = 0b110_00100;
|
|
1514
1554
|
encodeHeader(majorList, 2);
|
|
1515
1555
|
ensure(9);
|
|
1516
|
-
|
|
1556
|
+
if (exponent >= -0x20000000000000n && exponent <= 0x1fffffffffffffn) {
|
|
1557
|
+
writeInteger(Number(exponent));
|
|
1558
|
+
}
|
|
1559
|
+
else {
|
|
1560
|
+
writeBigInt(exponent);
|
|
1561
|
+
}
|
|
1517
1562
|
writeBigInt(mantissa);
|
|
1518
1563
|
}
|
|
1519
1564
|
function writeTimestamp(date) {
|
|
@@ -1645,6 +1690,8 @@ function readStruct(ns, count, startPos) {
|
|
|
1645
1690
|
if (isUnion) {
|
|
1646
1691
|
let resultEmpty = true;
|
|
1647
1692
|
for (const _ in result) {
|
|
1693
|
+
if (!hasOwn(result, _))
|
|
1694
|
+
continue;
|
|
1648
1695
|
resultEmpty = false;
|
|
1649
1696
|
break;
|
|
1650
1697
|
}
|
|
@@ -1684,23 +1731,39 @@ function readTag(ns) {
|
|
|
1684
1731
|
if (tagNumber === 4) {
|
|
1685
1732
|
const docSchema = NormalizedSchema.of(15);
|
|
1686
1733
|
const pair = readValue(docSchema);
|
|
1687
|
-
const [
|
|
1734
|
+
const [rawExponent, mantissa] = pair;
|
|
1688
1735
|
const normalizer = mantissa < 0 ? -1 : 1;
|
|
1689
|
-
const
|
|
1690
|
-
|
|
1736
|
+
const absMantissa = BigInt(normalizer) * BigInt(mantissa);
|
|
1737
|
+
const mantissaDigits = String(absMantissa);
|
|
1691
1738
|
const sign = mantissa < 0 ? "-" : "";
|
|
1692
|
-
numericString
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
numericString =
|
|
1702
|
-
|
|
1703
|
-
|
|
1739
|
+
let numericString;
|
|
1740
|
+
const isSmallExponent = typeof rawExponent === "number" && Math.abs(rawExponent) <= 2 ** 28;
|
|
1741
|
+
if (isSmallExponent) {
|
|
1742
|
+
const exponent = rawExponent;
|
|
1743
|
+
const mantissaStr = "0".repeat(Math.abs(exponent) + 1) + mantissaDigits;
|
|
1744
|
+
numericString =
|
|
1745
|
+
exponent === 0
|
|
1746
|
+
? mantissaStr
|
|
1747
|
+
: mantissaStr.slice(0, mantissaStr.length + exponent) + "." + mantissaStr.slice(exponent);
|
|
1748
|
+
numericString = numericString.replace(/^0+/g, "");
|
|
1749
|
+
if (numericString === "") {
|
|
1750
|
+
numericString = "0";
|
|
1751
|
+
}
|
|
1752
|
+
if (numericString[0] === ".") {
|
|
1753
|
+
numericString = "0" + numericString;
|
|
1754
|
+
}
|
|
1755
|
+
numericString = sign + numericString;
|
|
1756
|
+
}
|
|
1757
|
+
else {
|
|
1758
|
+
const bigExponent = BigInt(rawExponent);
|
|
1759
|
+
if (mantissaDigits.length === 1) {
|
|
1760
|
+
numericString = sign + mantissaDigits + "e" + String(bigExponent);
|
|
1761
|
+
}
|
|
1762
|
+
else {
|
|
1763
|
+
const adjustedExp = bigExponent + BigInt(mantissaDigits.length - 1);
|
|
1764
|
+
numericString = sign + mantissaDigits[0] + "." + mantissaDigits.slice(1) + "e" + String(adjustedExp);
|
|
1765
|
+
}
|
|
1766
|
+
}
|
|
1704
1767
|
return nv(numericString);
|
|
1705
1768
|
}
|
|
1706
1769
|
const docSchema = NormalizedSchema.of(15);
|
|
@@ -1797,6 +1860,8 @@ function readMapIndefinite(ns) {
|
|
|
1797
1860
|
if (isUnion) {
|
|
1798
1861
|
let resultEmpty = true;
|
|
1799
1862
|
for (const _ in result) {
|
|
1863
|
+
if (!hasOwn(result, _))
|
|
1864
|
+
continue;
|
|
1800
1865
|
resultEmpty = false;
|
|
1801
1866
|
break;
|
|
1802
1867
|
}
|
|
@@ -2101,6 +2166,8 @@ function transformObject(ns, value) {
|
|
|
2101
2166
|
if (ns.isMapSchema()) {
|
|
2102
2167
|
const targetSchema = ns.getValueSchema();
|
|
2103
2168
|
for (const key in value) {
|
|
2169
|
+
if (!hasOwn(value, key))
|
|
2170
|
+
continue;
|
|
2104
2171
|
newObject[key] = transformObject(targetSchema, value[key]);
|
|
2105
2172
|
}
|
|
2106
2173
|
}
|
|
@@ -2110,6 +2177,8 @@ function transformObject(ns, value) {
|
|
|
2110
2177
|
if (isUnion) {
|
|
2111
2178
|
keys = new Set();
|
|
2112
2179
|
for (const k in value) {
|
|
2180
|
+
if (!hasOwn(value, k))
|
|
2181
|
+
continue;
|
|
2113
2182
|
if (k !== "__type") {
|
|
2114
2183
|
keys.add(k);
|
|
2115
2184
|
}
|
|
@@ -2126,6 +2195,8 @@ function transformObject(ns, value) {
|
|
|
2126
2195
|
if (isUnion && keys?.size === 1) {
|
|
2127
2196
|
let newObjectEmpty = true;
|
|
2128
2197
|
for (const _ in newObject) {
|
|
2198
|
+
if (!hasOwn(newObject, _))
|
|
2199
|
+
continue;
|
|
2129
2200
|
newObjectEmpty = false;
|
|
2130
2201
|
break;
|
|
2131
2202
|
}
|
|
@@ -2136,6 +2207,8 @@ function transformObject(ns, value) {
|
|
|
2136
2207
|
}
|
|
2137
2208
|
else if (typeof value.__type === "string") {
|
|
2138
2209
|
for (const k in value) {
|
|
2210
|
+
if (!hasOwn(value, k))
|
|
2211
|
+
continue;
|
|
2139
2212
|
if (!(k in newObject)) {
|
|
2140
2213
|
newObject[k] = value[k];
|
|
2141
2214
|
}
|
|
@@ -2187,10 +2260,9 @@ class SmithyRpcV2CborProtocol extends RpcProtocol {
|
|
|
2187
2260
|
this.serializer.write(15, {});
|
|
2188
2261
|
request.body = this.serializer.flush();
|
|
2189
2262
|
}
|
|
2190
|
-
|
|
2263
|
+
if (request.body instanceof Uint8Array) {
|
|
2191
2264
|
request.headers["content-length"] = String(request.body.byteLength);
|
|
2192
2265
|
}
|
|
2193
|
-
catch (ignored) { }
|
|
2194
2266
|
}
|
|
2195
2267
|
const { service, operation } = getSmithyContext(context);
|
|
2196
2268
|
const path = `/service/${service}/operation/${operation}`;
|
|
@@ -2299,6 +2371,8 @@ class CborShapeSerializer extends SerdeContext {
|
|
|
2299
2371
|
if (ns.isMapSchema()) {
|
|
2300
2372
|
const sparse = !!ns.getMergedTraits().sparse;
|
|
2301
2373
|
for (const key in sourceObject) {
|
|
2374
|
+
if (!hasOwn(sourceObject, key))
|
|
2375
|
+
continue;
|
|
2302
2376
|
const value = this.serialize(ns.getValueSchema(), sourceObject[key]);
|
|
2303
2377
|
if (value != null || sparse) {
|
|
2304
2378
|
newObject[key] = value;
|
|
@@ -2319,6 +2393,8 @@ class CborShapeSerializer extends SerdeContext {
|
|
|
2319
2393
|
}
|
|
2320
2394
|
else if (typeof sourceObject.__type === "string") {
|
|
2321
2395
|
for (const k in sourceObject) {
|
|
2396
|
+
if (!hasOwn(sourceObject, k))
|
|
2397
|
+
continue;
|
|
2322
2398
|
if (!(k in newObject)) {
|
|
2323
2399
|
newObject[k] = this.serialize(15, sourceObject[k]);
|
|
2324
2400
|
}
|
|
@@ -2335,6 +2411,8 @@ class CborShapeSerializer extends SerdeContext {
|
|
|
2335
2411
|
return newArray;
|
|
2336
2412
|
}
|
|
2337
2413
|
for (const key in sourceObject) {
|
|
2414
|
+
if (!hasOwn(sourceObject, key))
|
|
2415
|
+
continue;
|
|
2338
2416
|
newObject[key] = this.serialize(ns.getValueSchema(), sourceObject[key]);
|
|
2339
2417
|
}
|
|
2340
2418
|
}
|
|
@@ -2409,6 +2487,8 @@ class CborShapeDeserializer extends SerdeContext {
|
|
|
2409
2487
|
if (ns.isMapSchema()) {
|
|
2410
2488
|
const targetSchema = ns.getValueSchema();
|
|
2411
2489
|
for (const key in value) {
|
|
2490
|
+
if (!hasOwn(value, key))
|
|
2491
|
+
continue;
|
|
2412
2492
|
const itemValue = this.readValue(targetSchema, value[key]);
|
|
2413
2493
|
newObject[key] = itemValue;
|
|
2414
2494
|
}
|
|
@@ -2419,6 +2499,8 @@ class CborShapeDeserializer extends SerdeContext {
|
|
|
2419
2499
|
if (isUnion) {
|
|
2420
2500
|
keys = new Set();
|
|
2421
2501
|
for (const k in value) {
|
|
2502
|
+
if (!hasOwn(value, k))
|
|
2503
|
+
continue;
|
|
2422
2504
|
if (k !== "__type") {
|
|
2423
2505
|
keys.add(k);
|
|
2424
2506
|
}
|
|
@@ -2435,6 +2517,8 @@ class CborShapeDeserializer extends SerdeContext {
|
|
|
2435
2517
|
if (isUnion && keys?.size === 1) {
|
|
2436
2518
|
let newObjectEmpty = true;
|
|
2437
2519
|
for (const _ in newObject) {
|
|
2520
|
+
if (!hasOwn(newObject, _))
|
|
2521
|
+
continue;
|
|
2438
2522
|
newObjectEmpty = false;
|
|
2439
2523
|
break;
|
|
2440
2524
|
}
|
|
@@ -2445,6 +2529,8 @@ class CborShapeDeserializer extends SerdeContext {
|
|
|
2445
2529
|
}
|
|
2446
2530
|
else if (typeof value.__type === "string") {
|
|
2447
2531
|
for (const k in value) {
|
|
2532
|
+
if (!hasOwn(value, k))
|
|
2533
|
+
continue;
|
|
2448
2534
|
if (!(k in newObject)) {
|
|
2449
2535
|
newObject[k] = value[k];
|
|
2450
2536
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
const { hasOwn } = require("@smithy/core/transport");
|
|
1
2
|
const { getSmithyContext, normalizeProvider } = require("@smithy/core/transport");
|
|
2
3
|
exports.getSmithyContext = getSmithyContext;
|
|
3
4
|
exports.normalizeProvider = normalizeProvider;
|
|
@@ -867,6 +868,8 @@ const knownAlgorithms = Object.values(AlgorithmId);
|
|
|
867
868
|
const getChecksumConfiguration = (runtimeConfig) => {
|
|
868
869
|
const checksumAlgorithms = [];
|
|
869
870
|
for (const id in AlgorithmId) {
|
|
871
|
+
if (!hasOwn(AlgorithmId, id))
|
|
872
|
+
continue;
|
|
870
873
|
const algorithmId = AlgorithmId[id];
|
|
871
874
|
if (runtimeConfig[algorithmId] === undefined) {
|
|
872
875
|
continue;
|
|
@@ -940,7 +943,9 @@ const getArrayIfSingleItem = (mayBeArray) => Array.isArray(mayBeArray) ? mayBeAr
|
|
|
940
943
|
const getValueFromTextNode = (obj) => {
|
|
941
944
|
const textNodeName = "#text";
|
|
942
945
|
for (const key in obj) {
|
|
943
|
-
if (
|
|
946
|
+
if (!hasOwn(obj, key))
|
|
947
|
+
continue;
|
|
948
|
+
if (obj[key][textNodeName] !== undefined) {
|
|
944
949
|
obj[key] = obj[key][textNodeName];
|
|
945
950
|
}
|
|
946
951
|
else if (typeof obj[key] === "object" && obj[key] !== null) {
|
|
@@ -981,7 +986,9 @@ function map(arg0, arg1, arg2) {
|
|
|
981
986
|
instructions = arg1;
|
|
982
987
|
}
|
|
983
988
|
}
|
|
984
|
-
for (const key
|
|
989
|
+
for (const key in instructions) {
|
|
990
|
+
if (!hasOwn(instructions, key))
|
|
991
|
+
continue;
|
|
985
992
|
if (!Array.isArray(instructions[key])) {
|
|
986
993
|
target[key] = instructions[key];
|
|
987
994
|
continue;
|
|
@@ -1000,6 +1007,8 @@ const convertMap = (target) => {
|
|
|
1000
1007
|
const take = (source, instructions) => {
|
|
1001
1008
|
const out = {};
|
|
1002
1009
|
for (const key in instructions) {
|
|
1010
|
+
if (!hasOwn(instructions, key))
|
|
1011
|
+
continue;
|
|
1003
1012
|
applyInstruction(out, source, instructions, key);
|
|
1004
1013
|
}
|
|
1005
1014
|
return out;
|
|
@@ -1079,7 +1088,9 @@ const _json = (obj) => {
|
|
|
1079
1088
|
}
|
|
1080
1089
|
if (typeof obj === "object") {
|
|
1081
1090
|
const target = {};
|
|
1082
|
-
for (const key
|
|
1091
|
+
for (const key in obj) {
|
|
1092
|
+
if (!hasOwn(obj, key))
|
|
1093
|
+
continue;
|
|
1083
1094
|
if (obj[key] == null) {
|
|
1084
1095
|
continue;
|
|
1085
1096
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const { toEndpointV1, getSmithyContext, normalizeProvider, isValidHostLabel } = require("@smithy/core/transport");
|
|
1
|
+
const { toEndpointV1, getSmithyContext, normalizeProvider, isValidHostLabel, hasOwn } = require("@smithy/core/transport");
|
|
2
2
|
exports.isValidHostLabel = isValidHostLabel;
|
|
3
3
|
exports.middlewareEndpointToEndpointV1 = toEndpointV1;
|
|
4
4
|
exports.toEndpointV1 = toEndpointV1;
|
|
@@ -782,6 +782,8 @@ const resolveEndpoint = (ruleSetObject, options) => {
|
|
|
782
782
|
const { parameters, rules } = ruleSetObject;
|
|
783
783
|
options.logger?.debug?.(`${debugId} Initial EndpointParams: ${toDebugString(endpointParams)}`);
|
|
784
784
|
for (const paramKey in parameters) {
|
|
785
|
+
if (!hasOwn(parameters, paramKey))
|
|
786
|
+
continue;
|
|
785
787
|
const parameter = parameters[paramKey];
|
|
786
788
|
const endpointParam = endpointParams[paramKey];
|
|
787
789
|
if (endpointParam == null && parameter.default != null) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const { CONFIG_PREFIX_SEPARATOR, booleanSelector, SelectorType, loadConfig } = require("@smithy/core/config");
|
|
2
|
-
const { toEndpointV1, getSmithyContext, normalizeProvider, isValidHostLabel } = require("@smithy/core/transport");
|
|
2
|
+
const { toEndpointV1, getSmithyContext, normalizeProvider, isValidHostLabel, hasOwn } = require("@smithy/core/transport");
|
|
3
3
|
exports.isValidHostLabel = isValidHostLabel;
|
|
4
4
|
exports.middlewareEndpointToEndpointV1 = toEndpointV1;
|
|
5
5
|
exports.toEndpointV1 = toEndpointV1;
|
|
@@ -830,6 +830,8 @@ const resolveEndpoint = (ruleSetObject, options) => {
|
|
|
830
830
|
const { parameters, rules } = ruleSetObject;
|
|
831
831
|
options.logger?.debug?.(`${debugId} Initial EndpointParams: ${toDebugString(endpointParams)}`);
|
|
832
832
|
for (const paramKey in parameters) {
|
|
833
|
+
if (!hasOwn(parameters, paramKey))
|
|
834
|
+
continue;
|
|
833
835
|
const parameter = parameters[paramKey];
|
|
834
836
|
const endpointParam = endpointParams[paramKey];
|
|
835
837
|
if (endpointParam == null && parameter.default != null) {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
const { Crc32 } = require("@smithy/core/checksum");
|
|
2
|
+
const { hasOwn } = require("@smithy/core/transport");
|
|
2
3
|
const { toHex, fromHex, toUtf8, fromUtf8 } = require("@smithy/core/serde");
|
|
3
4
|
const { TypeRegistry } = require("@smithy/core/schema");
|
|
4
5
|
|
|
@@ -55,7 +56,9 @@ class HeaderMarshaller {
|
|
|
55
56
|
}
|
|
56
57
|
format(headers) {
|
|
57
58
|
const chunks = [];
|
|
58
|
-
for (const headerName
|
|
59
|
+
for (const headerName in headers) {
|
|
60
|
+
if (!hasOwn(headers, headerName))
|
|
61
|
+
continue;
|
|
59
62
|
const bytes = this.fromUtf8(headerName);
|
|
60
63
|
chunks.push(Uint8Array.from([bytes.byteLength]), bytes, this.formatHeaderValue(headers[headerName]));
|
|
61
64
|
}
|
|
@@ -70,27 +73,27 @@ class HeaderMarshaller {
|
|
|
70
73
|
formatHeaderValue(header) {
|
|
71
74
|
switch (header.type) {
|
|
72
75
|
case "boolean":
|
|
73
|
-
return Uint8Array.from([header.value ?
|
|
76
|
+
return Uint8Array.from([header.value ? 0 : 1]);
|
|
74
77
|
case "byte":
|
|
75
|
-
return Uint8Array.from([
|
|
78
|
+
return Uint8Array.from([2, header.value]);
|
|
76
79
|
case "short":
|
|
77
80
|
const shortView = new DataView(new ArrayBuffer(3));
|
|
78
|
-
shortView.setUint8(0,
|
|
81
|
+
shortView.setUint8(0, 3);
|
|
79
82
|
shortView.setInt16(1, header.value, false);
|
|
80
83
|
return new Uint8Array(shortView.buffer);
|
|
81
84
|
case "integer":
|
|
82
85
|
const intView = new DataView(new ArrayBuffer(5));
|
|
83
|
-
intView.setUint8(0,
|
|
86
|
+
intView.setUint8(0, 4);
|
|
84
87
|
intView.setInt32(1, header.value, false);
|
|
85
88
|
return new Uint8Array(intView.buffer);
|
|
86
89
|
case "long":
|
|
87
90
|
const longBytes = new Uint8Array(9);
|
|
88
|
-
longBytes[0] =
|
|
91
|
+
longBytes[0] = 5;
|
|
89
92
|
longBytes.set(header.value.bytes, 1);
|
|
90
93
|
return longBytes;
|
|
91
94
|
case "binary":
|
|
92
95
|
const binView = new DataView(new ArrayBuffer(3 + header.value.byteLength));
|
|
93
|
-
binView.setUint8(0,
|
|
96
|
+
binView.setUint8(0, 6);
|
|
94
97
|
binView.setUint16(1, header.value.byteLength, false);
|
|
95
98
|
const binBytes = new Uint8Array(binView.buffer);
|
|
96
99
|
binBytes.set(header.value, 3);
|
|
@@ -98,14 +101,14 @@ class HeaderMarshaller {
|
|
|
98
101
|
case "string":
|
|
99
102
|
const utf8Bytes = this.fromUtf8(header.value);
|
|
100
103
|
const strView = new DataView(new ArrayBuffer(3 + utf8Bytes.byteLength));
|
|
101
|
-
strView.setUint8(0,
|
|
104
|
+
strView.setUint8(0, 7);
|
|
102
105
|
strView.setUint16(1, utf8Bytes.byteLength, false);
|
|
103
106
|
const strBytes = new Uint8Array(strView.buffer);
|
|
104
107
|
strBytes.set(utf8Bytes, 3);
|
|
105
108
|
return strBytes;
|
|
106
109
|
case "timestamp":
|
|
107
110
|
const tsBytes = new Uint8Array(9);
|
|
108
|
-
tsBytes[0] =
|
|
111
|
+
tsBytes[0] = 8;
|
|
109
112
|
tsBytes.set(Int64.fromNumber(header.value.valueOf()).bytes, 1);
|
|
110
113
|
return tsBytes;
|
|
111
114
|
case "uuid":
|
|
@@ -113,7 +116,7 @@ class HeaderMarshaller {
|
|
|
113
116
|
throw new Error(`Invalid UUID received: ${header.value}`);
|
|
114
117
|
}
|
|
115
118
|
const uuidBytes = new Uint8Array(17);
|
|
116
|
-
uuidBytes[0] =
|
|
119
|
+
uuidBytes[0] = 9;
|
|
117
120
|
uuidBytes.set(fromHex(header.value.replace(/-/g, "")), 1);
|
|
118
121
|
return uuidBytes;
|
|
119
122
|
}
|
|
@@ -126,46 +129,46 @@ class HeaderMarshaller {
|
|
|
126
129
|
const name = this.toUtf8(new Uint8Array(headers.buffer, headers.byteOffset + position, nameLength));
|
|
127
130
|
position += nameLength;
|
|
128
131
|
switch (headers.getUint8(position++)) {
|
|
129
|
-
case
|
|
132
|
+
case 0:
|
|
130
133
|
out[name] = {
|
|
131
134
|
type: BOOLEAN_TAG,
|
|
132
135
|
value: true,
|
|
133
136
|
};
|
|
134
137
|
break;
|
|
135
|
-
case
|
|
138
|
+
case 1:
|
|
136
139
|
out[name] = {
|
|
137
140
|
type: BOOLEAN_TAG,
|
|
138
141
|
value: false,
|
|
139
142
|
};
|
|
140
143
|
break;
|
|
141
|
-
case
|
|
144
|
+
case 2:
|
|
142
145
|
out[name] = {
|
|
143
146
|
type: BYTE_TAG,
|
|
144
147
|
value: headers.getInt8(position++),
|
|
145
148
|
};
|
|
146
149
|
break;
|
|
147
|
-
case
|
|
150
|
+
case 3:
|
|
148
151
|
out[name] = {
|
|
149
152
|
type: SHORT_TAG,
|
|
150
153
|
value: headers.getInt16(position, false),
|
|
151
154
|
};
|
|
152
155
|
position += 2;
|
|
153
156
|
break;
|
|
154
|
-
case
|
|
157
|
+
case 4:
|
|
155
158
|
out[name] = {
|
|
156
159
|
type: INT_TAG,
|
|
157
160
|
value: headers.getInt32(position, false),
|
|
158
161
|
};
|
|
159
162
|
position += 4;
|
|
160
163
|
break;
|
|
161
|
-
case
|
|
164
|
+
case 5:
|
|
162
165
|
out[name] = {
|
|
163
166
|
type: LONG_TAG,
|
|
164
167
|
value: new Int64(new Uint8Array(headers.buffer, headers.byteOffset + position, 8)),
|
|
165
168
|
};
|
|
166
169
|
position += 8;
|
|
167
170
|
break;
|
|
168
|
-
case
|
|
171
|
+
case 6:
|
|
169
172
|
const binaryLength = headers.getUint16(position, false);
|
|
170
173
|
position += 2;
|
|
171
174
|
out[name] = {
|
|
@@ -174,7 +177,7 @@ class HeaderMarshaller {
|
|
|
174
177
|
};
|
|
175
178
|
position += binaryLength;
|
|
176
179
|
break;
|
|
177
|
-
case
|
|
180
|
+
case 7:
|
|
178
181
|
const stringLength = headers.getUint16(position, false);
|
|
179
182
|
position += 2;
|
|
180
183
|
out[name] = {
|
|
@@ -183,14 +186,14 @@ class HeaderMarshaller {
|
|
|
183
186
|
};
|
|
184
187
|
position += stringLength;
|
|
185
188
|
break;
|
|
186
|
-
case
|
|
189
|
+
case 8:
|
|
187
190
|
out[name] = {
|
|
188
191
|
type: TIMESTAMP_TAG,
|
|
189
192
|
value: new Date(new Int64(new Uint8Array(headers.buffer, headers.byteOffset + position, 8)).valueOf()),
|
|
190
193
|
};
|
|
191
194
|
position += 8;
|
|
192
195
|
break;
|
|
193
|
-
case
|
|
196
|
+
case 9:
|
|
194
197
|
const uuidBytes = new Uint8Array(headers.buffer, headers.byteOffset + position, 16);
|
|
195
198
|
position += 16;
|
|
196
199
|
out[name] = {
|
|
@@ -601,7 +604,7 @@ class EventStreamSerde {
|
|
|
601
604
|
this.defaultContentType = defaultContentType;
|
|
602
605
|
this.compositeErrorRegistry = compositeErrorRegistry;
|
|
603
606
|
}
|
|
604
|
-
async serializeEventStream({ eventStream, requestSchema, initialRequest, }) {
|
|
607
|
+
async serializeEventStream({ eventStream, requestSchema, initialRequest, initialMessageType, }) {
|
|
605
608
|
const marshaller = this.marshaller;
|
|
606
609
|
const eventStreamMember = requestSchema.getEventStreamMember();
|
|
607
610
|
const unionSchema = requestSchema.getMemberSchema(eventStreamMember);
|
|
@@ -612,7 +615,7 @@ class EventStreamSerde {
|
|
|
612
615
|
async *[Symbol.asyncIterator]() {
|
|
613
616
|
if (initialRequest) {
|
|
614
617
|
const headers = {
|
|
615
|
-
":event-type": { type: "string", value: "initial-request" },
|
|
618
|
+
":event-type": { type: "string", value: initialMessageType ?? "initial-request" },
|
|
616
619
|
":message-type": { type: "string", value: "event" },
|
|
617
620
|
":content-type": { type: "string", value: defaultContentType },
|
|
618
621
|
};
|
|
@@ -638,6 +641,8 @@ class EventStreamSerde {
|
|
|
638
641
|
}
|
|
639
642
|
let unionMember = "";
|
|
640
643
|
for (const key in event) {
|
|
644
|
+
if (!hasOwn(event, key))
|
|
645
|
+
continue;
|
|
641
646
|
if (key !== "__type") {
|
|
642
647
|
unionMember = key;
|
|
643
648
|
break;
|
|
@@ -656,7 +661,7 @@ class EventStreamSerde {
|
|
|
656
661
|
};
|
|
657
662
|
});
|
|
658
663
|
}
|
|
659
|
-
async deserializeEventStream({ response, responseSchema, initialResponseContainer, }) {
|
|
664
|
+
async deserializeEventStream({ response, responseSchema, initialResponseContainer, initialMessageType, }) {
|
|
660
665
|
const marshaller = this.marshaller;
|
|
661
666
|
const eventStreamMember = responseSchema.getEventStreamMember();
|
|
662
667
|
const unionSchema = responseSchema.getMemberSchema(eventStreamMember);
|
|
@@ -665,13 +670,15 @@ class EventStreamSerde {
|
|
|
665
670
|
const asyncIterable = marshaller.deserialize(response.body, async (event) => {
|
|
666
671
|
let unionMember = "";
|
|
667
672
|
for (const key in event) {
|
|
673
|
+
if (!hasOwn(event, key))
|
|
674
|
+
continue;
|
|
668
675
|
if (key !== "__type") {
|
|
669
676
|
unionMember = key;
|
|
670
677
|
break;
|
|
671
678
|
}
|
|
672
679
|
}
|
|
673
680
|
const body = event[unionMember].body;
|
|
674
|
-
if (unionMember === "initial-response") {
|
|
681
|
+
if (unionMember === (initialMessageType ?? "initial-response")) {
|
|
675
682
|
const dataObject = await this.deserializer.read(responseSchema, body);
|
|
676
683
|
delete dataObject[eventStreamMember];
|
|
677
684
|
return {
|
|
@@ -739,6 +746,8 @@ class EventStreamSerde {
|
|
|
739
746
|
throw new Error("@smithy::core/protocols - initial-response event encountered in event stream but no response schema given.");
|
|
740
747
|
}
|
|
741
748
|
for (const key in firstEvent.value) {
|
|
749
|
+
if (!hasOwn(firstEvent.value, key))
|
|
750
|
+
continue;
|
|
742
751
|
initialResponseContainer[key] = firstEvent.value[key];
|
|
743
752
|
}
|
|
744
753
|
}
|