@cdk8s/awscdk-resolver 0.0.22 → 0.0.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +4 -4
- package/lib/resolve.js +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/endpoint/endpointResolver.js +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/runtimeConfig.js +2 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/runtimeConfig.shared.js +15 -13
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/endpoint/endpointResolver.js +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/index.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/runtimeConfig.js +2 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/runtimeConfig.shared.js +15 -13
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/index.d.ts +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/index.d.ts +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/package.json +8 -6
- package/node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/endpointResolver.js +1 -1
- package/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +1 -0
- package/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.js +2 -0
- package/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.shared.js +15 -13
- package/node_modules/@aws-sdk/client-sso/dist-es/endpoint/endpointResolver.js +1 -1
- package/node_modules/@aws-sdk/client-sso/dist-es/index.js +1 -0
- package/node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.js +2 -0
- package/node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.shared.js +15 -13
- package/node_modules/@aws-sdk/client-sso/dist-types/index.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/index.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso/package.json +6 -4
- package/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/endpointResolver.js +1 -1
- package/node_modules/@aws-sdk/client-sts/dist-cjs/index.js +1 -0
- package/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js +2 -0
- package/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.shared.js +15 -13
- package/node_modules/@aws-sdk/client-sts/dist-es/endpoint/endpointResolver.js +1 -1
- package/node_modules/@aws-sdk/client-sts/dist-es/index.js +1 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.js +2 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.shared.js +15 -13
- package/node_modules/@aws-sdk/client-sts/dist-types/index.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/index.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sts/package.json +7 -5
- package/node_modules/@aws-sdk/core/CHANGELOG.md +43 -0
- package/node_modules/@aws-sdk/core/README.md +5 -0
- package/node_modules/@aws-sdk/core/api-extractor.json +4 -0
- package/node_modules/@aws-sdk/core/dist-cjs/client/emitWarningIfUnsupportedVersion.js +17 -0
- package/node_modules/@aws-sdk/core/dist-cjs/client/index.js +4 -0
- package/node_modules/@aws-sdk/core/dist-cjs/index.js +5 -0
- package/node_modules/@aws-sdk/core/dist-cjs/protocols/index.js +4 -0
- package/node_modules/@aws-sdk/core/dist-cjs/protocols/json/awsExpectUnion.js +14 -0
- package/node_modules/@aws-sdk/core/dist-es/client/emitWarningIfUnsupportedVersion.js +13 -0
- package/node_modules/@aws-sdk/core/dist-es/client/index.js +1 -0
- package/node_modules/@aws-sdk/core/dist-es/index.js +2 -0
- package/node_modules/@aws-sdk/core/dist-es/protocols/index.js +1 -0
- package/node_modules/@aws-sdk/core/dist-es/protocols/json/awsExpectUnion.js +10 -0
- package/node_modules/@aws-sdk/core/dist-types/client/emitWarningIfUnsupportedVersion.d.ts +9 -0
- package/node_modules/@aws-sdk/core/dist-types/client/index.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/index.d.ts +2 -0
- package/node_modules/@aws-sdk/core/dist-types/protocols/index.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/protocols/json/awsExpectUnion.d.ts +7 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/client/emitWarningIfUnsupportedVersion.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/client/index.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/index.d.ts +2 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/protocols/index.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/protocols/json/awsExpectUnion.d.ts +3 -0
- package/node_modules/@aws-sdk/core/jest.config.js +6 -0
- package/node_modules/@aws-sdk/core/package.json +56 -0
- package/node_modules/@aws-sdk/core/scripts/lint.js +24 -0
- package/node_modules/@aws-sdk/core/src/client/emitWarningIfUnsupportedVersion.spec.ts +70 -0
- package/node_modules/@aws-sdk/core/src/client/emitWarningIfUnsupportedVersion.ts +25 -0
- package/node_modules/@aws-sdk/core/src/client/index.ts +1 -0
- package/node_modules/@aws-sdk/core/src/index.ts +2 -0
- package/node_modules/@aws-sdk/core/src/protocols/index.ts +1 -0
- package/node_modules/@aws-sdk/core/src/protocols/json/awsExpectUnion.spec.ts +30 -0
- package/node_modules/@aws-sdk/core/src/protocols/json/awsExpectUnion.ts +17 -0
- package/node_modules/@aws-sdk/core/tsconfig.cjs.json +9 -0
- package/node_modules/@aws-sdk/core/tsconfig.cjs.tsbuildinfo +1 -0
- package/node_modules/@aws-sdk/core/tsconfig.es.json +9 -0
- package/node_modules/@aws-sdk/core/tsconfig.es.tsbuildinfo +1 -0
- package/node_modules/@aws-sdk/core/tsconfig.types.json +9 -0
- package/node_modules/@aws-sdk/core/tsconfig.types.tsbuildinfo +1 -0
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-node/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +2 -2
- package/node_modules/@aws-sdk/token-providers/dist-cjs/bundle/client-sso-oidc-node.js +1 -1
- package/node_modules/@aws-sdk/token-providers/dist-es/bundle/client-sso-oidc-node.js +1 -1
- package/node_modules/@aws-sdk/token-providers/package.json +5 -4
- package/node_modules/@aws-sdk/util-endpoints/dist-cjs/aws.js +12 -0
- package/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +1 -0
- package/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/isVirtualHostableS3Bucket.js +2 -2
- package/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/isIpAddress.js +2 -3
- package/node_modules/@aws-sdk/util-endpoints/dist-cjs/resolveEndpoint.js +2 -39
- package/node_modules/@aws-sdk/util-endpoints/dist-cjs/types/EndpointError.js +2 -7
- package/node_modules/@aws-sdk/util-endpoints/dist-es/aws.js +10 -0
- package/node_modules/@aws-sdk/util-endpoints/dist-es/index.js +1 -0
- package/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/isVirtualHostableS3Bucket.js +1 -1
- package/node_modules/@aws-sdk/util-endpoints/dist-es/lib/isIpAddress.js +1 -2
- package/node_modules/@aws-sdk/util-endpoints/dist-es/resolveEndpoint.js +1 -37
- package/node_modules/@aws-sdk/util-endpoints/dist-es/types/EndpointError.js +1 -6
- package/node_modules/@aws-sdk/util-endpoints/dist-types/aws.d.ts +1 -0
- package/node_modules/@aws-sdk/util-endpoints/dist-types/index.d.ts +1 -0
- package/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/parseArn.d.ts +1 -1
- package/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/partition.d.ts +1 -1
- package/node_modules/@aws-sdk/util-endpoints/dist-types/lib/isIpAddress.d.ts +1 -4
- package/node_modules/@aws-sdk/util-endpoints/dist-types/resolveEndpoint.d.ts +1 -6
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/aws.d.ts +1 -0
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/index.d.ts +1 -0
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/parseArn.d.ts +1 -1
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/partition.d.ts +1 -1
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/isIpAddress.d.ts +1 -1
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/resolveEndpoint.d.ts +1 -6
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/EndpointError.d.ts +1 -3
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/EndpointRuleObject.d.ts +6 -15
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/ErrorRuleObject.d.ts +1 -7
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/RuleSetObject.d.ts +5 -19
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/TreeRuleObject.d.ts +1 -12
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/shared.d.ts +12 -29
- package/node_modules/@aws-sdk/util-endpoints/dist-types/types/EndpointError.d.ts +1 -3
- package/node_modules/@aws-sdk/util-endpoints/dist-types/types/EndpointRuleObject.d.ts +1 -15
- package/node_modules/@aws-sdk/util-endpoints/dist-types/types/ErrorRuleObject.d.ts +1 -7
- package/node_modules/@aws-sdk/util-endpoints/dist-types/types/RuleSetObject.d.ts +1 -19
- package/node_modules/@aws-sdk/util-endpoints/dist-types/types/TreeRuleObject.d.ts +1 -10
- package/node_modules/@aws-sdk/util-endpoints/dist-types/types/shared.d.ts +1 -25
- package/node_modules/@aws-sdk/util-endpoints/package.json +2 -1
- package/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/crt-availability.js +6 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js +3 -1
- package/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/is-crt-available.js +4 -8
- package/node_modules/@aws-sdk/util-user-agent-node/dist-es/crt-availability.js +3 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-es/index.js +1 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-es/is-crt-available.js +4 -8
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/crt-availability.d.ts +9 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/index.d.ts +1 -1
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/crt-availability.d.ts +3 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/index.d.ts +1 -1
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +1 -1
- package/node_modules/@smithy/util-endpoints/LICENSE +201 -0
- package/node_modules/@smithy/util-endpoints/README.md +10 -0
- package/node_modules/@smithy/util-endpoints/dist-cjs/getEndpointUrlConfig.js +25 -0
- package/node_modules/@smithy/util-endpoints/dist-cjs/index.js +8 -0
- package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/lib/index.js +0 -2
- package/node_modules/@smithy/util-endpoints/dist-cjs/lib/isIpAddress.js +6 -0
- package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/lib/parseURL.js +1 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/resolveEndpoint.js +42 -0
- package/node_modules/@smithy/util-endpoints/dist-cjs/types/EndpointError.js +10 -0
- package/node_modules/@smithy/util-endpoints/dist-cjs/types/EndpointFunctions.js +2 -0
- package/node_modules/@smithy/util-endpoints/dist-cjs/types/EndpointRuleObject.js +2 -0
- package/node_modules/@smithy/util-endpoints/dist-cjs/types/ErrorRuleObject.js +2 -0
- package/node_modules/@smithy/util-endpoints/dist-cjs/types/RuleSetObject.js +2 -0
- package/node_modules/@smithy/util-endpoints/dist-cjs/types/TreeRuleObject.js +2 -0
- package/node_modules/@smithy/util-endpoints/dist-cjs/types/index.js +10 -0
- package/node_modules/@smithy/util-endpoints/dist-cjs/types/shared.js +2 -0
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/callFunction.js +15 -0
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/customEndpointFunctions.js +4 -0
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/endpointFunctions.js +15 -0
- package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/utils/index.js +1 -0
- package/node_modules/@smithy/util-endpoints/dist-es/getEndpointUrlConfig.js +21 -0
- package/node_modules/@smithy/util-endpoints/dist-es/index.js +5 -0
- package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/lib/index.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-es/lib/isIpAddress.js +2 -0
- package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/lib/parseURL.js +1 -1
- package/node_modules/@smithy/util-endpoints/dist-es/resolveEndpoint.js +37 -0
- package/node_modules/@smithy/util-endpoints/dist-es/types/EndpointError.js +6 -0
- package/node_modules/@smithy/util-endpoints/dist-es/types/EndpointFunctions.js +1 -0
- package/node_modules/@smithy/util-endpoints/dist-es/types/EndpointRuleObject.js +1 -0
- package/node_modules/@smithy/util-endpoints/dist-es/types/ErrorRuleObject.js +1 -0
- package/node_modules/@smithy/util-endpoints/dist-es/types/RuleSetObject.js +1 -0
- package/node_modules/@smithy/util-endpoints/dist-es/types/TreeRuleObject.js +1 -0
- package/node_modules/@smithy/util-endpoints/dist-es/types/index.js +7 -0
- package/node_modules/@smithy/util-endpoints/dist-es/types/shared.js +1 -0
- package/node_modules/@smithy/util-endpoints/dist-es/utils/callFunction.js +11 -0
- package/node_modules/@smithy/util-endpoints/dist-es/utils/customEndpointFunctions.js +1 -0
- package/node_modules/@smithy/util-endpoints/dist-es/utils/endpointFunctions.js +12 -0
- package/node_modules/@smithy/util-endpoints/dist-es/utils/index.js +2 -0
- package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/debug/toDebugString.d.ts +1 -1
- package/node_modules/@smithy/util-endpoints/dist-types/getEndpointUrlConfig.d.ts +2 -0
- package/node_modules/@smithy/util-endpoints/dist-types/index.d.ts +5 -0
- package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/lib/index.d.ts +0 -1
- package/node_modules/@smithy/util-endpoints/dist-types/lib/isIpAddress.d.ts +4 -0
- package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/lib/parseURL.d.ts +1 -1
- package/node_modules/@smithy/util-endpoints/dist-types/resolveEndpoint.d.ts +6 -0
- package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/ts3.4/debug/debugId.d.ts +1 -1
- package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/ts3.4/debug/index.d.ts +2 -2
- package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/ts3.4/debug/toDebugString.d.ts +9 -9
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/getEndpointUrlConfig.d.ts +2 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/index.d.ts +5 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/booleanEquals.d.ts +5 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/getAttr.d.ts +7 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/getAttrPathList.d.ts +4 -0
- package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/ts3.4/lib/index.d.ts +9 -11
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/isIpAddress.d.ts +4 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/isSet.d.ts +5 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/isValidHostLabel.d.ts +7 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/not.d.ts +5 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/parseURL.d.ts +5 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/stringEquals.d.ts +5 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/substring.d.ts +7 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/uriEncode.d.ts +4 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/resolveEndpoint.d.ts +6 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/types/EndpointError.d.ts +3 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/types/EndpointFunctions.d.ts +2 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/types/EndpointRuleObject.d.ts +5 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/types/ErrorRuleObject.d.ts +2 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/types/RuleSetObject.d.ts +4 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/types/TreeRuleObject.d.ts +3 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/types/index.d.ts +7 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/types/shared.d.ts +25 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/callFunction.d.ts +2 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/customEndpointFunctions.d.ts +4 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/endpointFunctions.d.ts +11 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateCondition.d.ts +8 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateConditions.d.ts +8 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateEndpointRule.d.ts +3 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateErrorRule.d.ts +2 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateExpression.d.ts +2 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateRules.d.ts +3 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateTemplate.d.ts +2 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateTreeRule.d.ts +3 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/getEndpointHeaders.d.ts +2 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/getEndpointProperties.d.ts +2 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/getEndpointProperty.d.ts +3 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/getEndpointUrl.d.ts +2 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/getReferenceValue.d.ts +2 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/index.d.ts +2 -0
- package/node_modules/@smithy/util-endpoints/dist-types/types/EndpointError.d.ts +3 -0
- package/node_modules/@smithy/util-endpoints/dist-types/types/EndpointFunctions.d.ts +2 -0
- package/node_modules/@smithy/util-endpoints/dist-types/types/EndpointRuleObject.d.ts +5 -0
- package/node_modules/@smithy/util-endpoints/dist-types/types/ErrorRuleObject.d.ts +2 -0
- package/node_modules/@smithy/util-endpoints/dist-types/types/RuleSetObject.d.ts +4 -0
- package/node_modules/@smithy/util-endpoints/dist-types/types/TreeRuleObject.d.ts +3 -0
- package/node_modules/@smithy/util-endpoints/dist-types/types/index.d.ts +7 -0
- package/node_modules/@smithy/util-endpoints/dist-types/types/shared.d.ts +25 -0
- package/node_modules/@smithy/util-endpoints/dist-types/utils/customEndpointFunctions.d.ts +4 -0
- package/node_modules/@smithy/util-endpoints/dist-types/utils/endpointFunctions.d.ts +11 -0
- package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/utils/evaluateEndpointRule.d.ts +1 -1
- package/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateRules.d.ts +3 -0
- package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/utils/evaluateTreeRule.d.ts +1 -1
- package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/utils/getEndpointProperty.d.ts +1 -1
- package/node_modules/@smithy/util-endpoints/dist-types/utils/index.d.ts +2 -0
- package/node_modules/@smithy/util-endpoints/package.json +67 -0
- package/package.json +8 -8
- package/node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/callFunction.js +0 -11
- package/node_modules/@aws-sdk/util-endpoints/dist-es/utils/callFunction.js +0 -6
- package/node_modules/@aws-sdk/util-endpoints/dist-es/utils/index.js +0 -1
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/booleanEquals.d.ts +0 -4
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/getAttr.d.ts +0 -11
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/getAttrPathList.d.ts +0 -1
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/isSet.d.ts +0 -1
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/isValidHostLabel.d.ts +0 -4
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/not.d.ts +0 -1
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/parseURL.d.ts +0 -4
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/stringEquals.d.ts +0 -1
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/substring.d.ts +0 -6
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/uriEncode.d.ts +0 -1
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/utils/callFunction.d.ts +0 -5
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/utils/evaluateCondition.d.ts +0 -13
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/utils/evaluateConditions.d.ts +0 -13
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/utils/evaluateEndpointRule.d.ts +0 -6
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/utils/evaluateErrorRule.d.ts +0 -5
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/utils/evaluateExpression.d.ts +0 -6
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/utils/evaluateRules.d.ts +0 -6
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/utils/evaluateTemplate.d.ts +0 -5
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/utils/evaluateTreeRule.d.ts +0 -6
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/utils/getEndpointHeaders.d.ts +0 -5
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/utils/getEndpointProperties.d.ts +0 -5
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/utils/getEndpointProperty.d.ts +0 -6
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/utils/getEndpointUrl.d.ts +0 -5
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/utils/getReferenceValue.d.ts +0 -5
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/utils/index.d.ts +0 -1
- package/node_modules/@aws-sdk/util-endpoints/dist-types/utils/evaluateRules.d.ts +0 -3
- package/node_modules/@aws-sdk/util-endpoints/dist-types/utils/index.d.ts +0 -1
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/debug/debugId.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/debug/index.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/debug/toDebugString.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/lib/booleanEquals.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/lib/getAttr.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/lib/getAttrPathList.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/lib/isSet.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/lib/isValidHostLabel.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/lib/not.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/lib/stringEquals.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/lib/substring.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/lib/uriEncode.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/utils/evaluateCondition.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/utils/evaluateConditions.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/utils/evaluateEndpointRule.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/utils/evaluateErrorRule.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/utils/evaluateExpression.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/utils/evaluateRules.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/utils/evaluateTemplate.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/utils/evaluateTreeRule.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/utils/getEndpointHeaders.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/utils/getEndpointProperties.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/utils/getEndpointProperty.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/utils/getEndpointUrl.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/utils/getReferenceValue.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/debug/debugId.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/debug/index.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/debug/toDebugString.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/lib/booleanEquals.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/lib/getAttr.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/lib/getAttrPathList.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/lib/isSet.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/lib/isValidHostLabel.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/lib/not.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/lib/stringEquals.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/lib/substring.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/lib/uriEncode.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/utils/evaluateCondition.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/utils/evaluateConditions.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/utils/evaluateEndpointRule.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/utils/evaluateErrorRule.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/utils/evaluateExpression.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/utils/evaluateRules.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/utils/evaluateTemplate.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/utils/evaluateTreeRule.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/utils/getEndpointHeaders.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/utils/getEndpointProperties.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/utils/getEndpointProperty.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/utils/getEndpointUrl.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/utils/getReferenceValue.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/debug/debugId.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/debug/index.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/lib/booleanEquals.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/lib/getAttr.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/lib/getAttrPathList.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/lib/isSet.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/lib/isValidHostLabel.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/lib/not.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/lib/stringEquals.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/lib/substring.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/lib/uriEncode.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/utils/callFunction.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/utils/evaluateCondition.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/utils/evaluateConditions.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/utils/evaluateErrorRule.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/utils/evaluateExpression.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/utils/evaluateTemplate.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/utils/getEndpointHeaders.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/utils/getEndpointProperties.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/utils/getEndpointUrl.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/utils/getReferenceValue.d.ts +0 -0
@@ -0,0 +1,25 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.getEndpointUrlConfig = void 0;
|
4
|
+
const ENV_ENDPOINT_URL = "AWS_ENDPOINT_URL";
|
5
|
+
const CONFIG_ENDPOINT_URL = "endpoint_url";
|
6
|
+
const getEndpointUrlConfig = (serviceId) => ({
|
7
|
+
environmentVariableSelector: (env) => {
|
8
|
+
const serviceEndpointUrlSections = [ENV_ENDPOINT_URL, ...serviceId.split(" ").map((w) => w.toUpperCase())];
|
9
|
+
const serviceEndpointUrl = env[serviceEndpointUrlSections.join("_")];
|
10
|
+
if (serviceEndpointUrl)
|
11
|
+
return serviceEndpointUrl;
|
12
|
+
const endpointUrl = env[ENV_ENDPOINT_URL];
|
13
|
+
if (endpointUrl)
|
14
|
+
return endpointUrl;
|
15
|
+
return undefined;
|
16
|
+
},
|
17
|
+
configFileSelector: (profile) => {
|
18
|
+
const endpointUrl = profile[CONFIG_ENDPOINT_URL];
|
19
|
+
if (endpointUrl)
|
20
|
+
return endpointUrl;
|
21
|
+
return undefined;
|
22
|
+
},
|
23
|
+
default: undefined,
|
24
|
+
});
|
25
|
+
exports.getEndpointUrlConfig = getEndpointUrlConfig;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
const tslib_1 = require("tslib");
|
4
|
+
tslib_1.__exportStar(require("./lib/isIpAddress"), exports);
|
5
|
+
tslib_1.__exportStar(require("./lib/isValidHostLabel"), exports);
|
6
|
+
tslib_1.__exportStar(require("./utils/customEndpointFunctions"), exports);
|
7
|
+
tslib_1.__exportStar(require("./resolveEndpoint"), exports);
|
8
|
+
tslib_1.__exportStar(require("./types"), exports);
|
@@ -1,8 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.aws = void 0;
|
4
3
|
const tslib_1 = require("tslib");
|
5
|
-
exports.aws = tslib_1.__importStar(require("./aws"));
|
6
4
|
tslib_1.__exportStar(require("./booleanEquals"), exports);
|
7
5
|
tslib_1.__exportStar(require("./getAttr"), exports);
|
8
6
|
tslib_1.__exportStar(require("./isSet"), exports);
|
@@ -0,0 +1,6 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isIpAddress = void 0;
|
4
|
+
const IP_V4_REGEX = new RegExp(`^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$`);
|
5
|
+
const isIpAddress = (value) => IP_V4_REGEX.test(value) || (value.startsWith("[") && value.endsWith("]"));
|
6
|
+
exports.isIpAddress = isIpAddress;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.parseURL = void 0;
|
4
|
-
const types_1 = require("@
|
4
|
+
const types_1 = require("@smithy/types");
|
5
5
|
const isIpAddress_1 = require("./isIpAddress");
|
6
6
|
const DEFAULT_PORTS = {
|
7
7
|
[types_1.EndpointURLScheme.HTTP]: 80,
|
@@ -0,0 +1,42 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.resolveEndpoint = void 0;
|
4
|
+
const debug_1 = require("./debug");
|
5
|
+
const types_1 = require("./types");
|
6
|
+
const utils_1 = require("./utils");
|
7
|
+
const resolveEndpoint = (ruleSetObject, options) => {
|
8
|
+
var _a, _b, _c, _d, _e, _f;
|
9
|
+
const { endpointParams, logger } = options;
|
10
|
+
const { parameters, rules } = ruleSetObject;
|
11
|
+
(_b = (_a = options.logger) === null || _a === void 0 ? void 0 : _a.debug) === null || _b === void 0 ? void 0 : _b.call(_a, `${debug_1.debugId} Initial EndpointParams: ${(0, debug_1.toDebugString)(endpointParams)}`);
|
12
|
+
const paramsWithDefault = Object.entries(parameters)
|
13
|
+
.filter(([, v]) => v.default != null)
|
14
|
+
.map(([k, v]) => [k, v.default]);
|
15
|
+
if (paramsWithDefault.length > 0) {
|
16
|
+
for (const [paramKey, paramDefaultValue] of paramsWithDefault) {
|
17
|
+
endpointParams[paramKey] = (_c = endpointParams[paramKey]) !== null && _c !== void 0 ? _c : paramDefaultValue;
|
18
|
+
}
|
19
|
+
}
|
20
|
+
const requiredParams = Object.entries(parameters)
|
21
|
+
.filter(([, v]) => v.required)
|
22
|
+
.map(([k]) => k);
|
23
|
+
for (const requiredParam of requiredParams) {
|
24
|
+
if (endpointParams[requiredParam] == null) {
|
25
|
+
throw new types_1.EndpointError(`Missing required parameter: '${requiredParam}'`);
|
26
|
+
}
|
27
|
+
}
|
28
|
+
const endpoint = (0, utils_1.evaluateRules)(rules, { endpointParams, logger, referenceRecord: {} });
|
29
|
+
if ((_d = options.endpointParams) === null || _d === void 0 ? void 0 : _d.Endpoint) {
|
30
|
+
try {
|
31
|
+
const givenEndpoint = new URL(options.endpointParams.Endpoint);
|
32
|
+
const { protocol, port } = givenEndpoint;
|
33
|
+
endpoint.url.protocol = protocol;
|
34
|
+
endpoint.url.port = port;
|
35
|
+
}
|
36
|
+
catch (e) {
|
37
|
+
}
|
38
|
+
}
|
39
|
+
(_f = (_e = options.logger) === null || _e === void 0 ? void 0 : _e.debug) === null || _f === void 0 ? void 0 : _f.call(_e, `${debug_1.debugId} Resolved endpoint: ${(0, debug_1.toDebugString)(endpoint)}`);
|
40
|
+
return endpoint;
|
41
|
+
};
|
42
|
+
exports.resolveEndpoint = resolveEndpoint;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.EndpointError = void 0;
|
4
|
+
class EndpointError extends Error {
|
5
|
+
constructor(message) {
|
6
|
+
super(message);
|
7
|
+
this.name = "EndpointError";
|
8
|
+
}
|
9
|
+
}
|
10
|
+
exports.EndpointError = EndpointError;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
const tslib_1 = require("tslib");
|
4
|
+
tslib_1.__exportStar(require("./EndpointError"), exports);
|
5
|
+
tslib_1.__exportStar(require("./EndpointFunctions"), exports);
|
6
|
+
tslib_1.__exportStar(require("./EndpointRuleObject"), exports);
|
7
|
+
tslib_1.__exportStar(require("./ErrorRuleObject"), exports);
|
8
|
+
tslib_1.__exportStar(require("./RuleSetObject"), exports);
|
9
|
+
tslib_1.__exportStar(require("./TreeRuleObject"), exports);
|
10
|
+
tslib_1.__exportStar(require("./shared"), exports);
|
@@ -0,0 +1,15 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.callFunction = void 0;
|
4
|
+
const customEndpointFunctions_1 = require("./customEndpointFunctions");
|
5
|
+
const endpointFunctions_1 = require("./endpointFunctions");
|
6
|
+
const evaluateExpression_1 = require("./evaluateExpression");
|
7
|
+
const callFunction = ({ fn, argv }, options) => {
|
8
|
+
const evaluatedArgs = argv.map((arg) => ["boolean", "number"].includes(typeof arg) ? arg : (0, evaluateExpression_1.evaluateExpression)(arg, "arg", options));
|
9
|
+
const fnSegments = fn.split(".");
|
10
|
+
if (fnSegments[0] in customEndpointFunctions_1.customEndpointFunctions && fnSegments[1] != null) {
|
11
|
+
return customEndpointFunctions_1.customEndpointFunctions[fnSegments[0]][fnSegments[1]](...evaluatedArgs);
|
12
|
+
}
|
13
|
+
return endpointFunctions_1.endpointFunctions[fn](...evaluatedArgs);
|
14
|
+
};
|
15
|
+
exports.callFunction = callFunction;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.endpointFunctions = void 0;
|
4
|
+
const lib_1 = require("../lib");
|
5
|
+
exports.endpointFunctions = {
|
6
|
+
booleanEquals: lib_1.booleanEquals,
|
7
|
+
getAttr: lib_1.getAttr,
|
8
|
+
isSet: lib_1.isSet,
|
9
|
+
isValidHostLabel: lib_1.isValidHostLabel,
|
10
|
+
not: lib_1.not,
|
11
|
+
parseURL: lib_1.parseURL,
|
12
|
+
stringEquals: lib_1.stringEquals,
|
13
|
+
substring: lib_1.substring,
|
14
|
+
uriEncode: lib_1.uriEncode,
|
15
|
+
};
|
@@ -0,0 +1,21 @@
|
|
1
|
+
const ENV_ENDPOINT_URL = "AWS_ENDPOINT_URL";
|
2
|
+
const CONFIG_ENDPOINT_URL = "endpoint_url";
|
3
|
+
export const getEndpointUrlConfig = (serviceId) => ({
|
4
|
+
environmentVariableSelector: (env) => {
|
5
|
+
const serviceEndpointUrlSections = [ENV_ENDPOINT_URL, ...serviceId.split(" ").map((w) => w.toUpperCase())];
|
6
|
+
const serviceEndpointUrl = env[serviceEndpointUrlSections.join("_")];
|
7
|
+
if (serviceEndpointUrl)
|
8
|
+
return serviceEndpointUrl;
|
9
|
+
const endpointUrl = env[ENV_ENDPOINT_URL];
|
10
|
+
if (endpointUrl)
|
11
|
+
return endpointUrl;
|
12
|
+
return undefined;
|
13
|
+
},
|
14
|
+
configFileSelector: (profile) => {
|
15
|
+
const endpointUrl = profile[CONFIG_ENDPOINT_URL];
|
16
|
+
if (endpointUrl)
|
17
|
+
return endpointUrl;
|
18
|
+
return undefined;
|
19
|
+
},
|
20
|
+
default: undefined,
|
21
|
+
});
|
@@ -0,0 +1,37 @@
|
|
1
|
+
import { debugId, toDebugString } from "./debug";
|
2
|
+
import { EndpointError } from "./types";
|
3
|
+
import { evaluateRules } from "./utils";
|
4
|
+
export const resolveEndpoint = (ruleSetObject, options) => {
|
5
|
+
const { endpointParams, logger } = options;
|
6
|
+
const { parameters, rules } = ruleSetObject;
|
7
|
+
options.logger?.debug?.(`${debugId} Initial EndpointParams: ${toDebugString(endpointParams)}`);
|
8
|
+
const paramsWithDefault = Object.entries(parameters)
|
9
|
+
.filter(([, v]) => v.default != null)
|
10
|
+
.map(([k, v]) => [k, v.default]);
|
11
|
+
if (paramsWithDefault.length > 0) {
|
12
|
+
for (const [paramKey, paramDefaultValue] of paramsWithDefault) {
|
13
|
+
endpointParams[paramKey] = endpointParams[paramKey] ?? paramDefaultValue;
|
14
|
+
}
|
15
|
+
}
|
16
|
+
const requiredParams = Object.entries(parameters)
|
17
|
+
.filter(([, v]) => v.required)
|
18
|
+
.map(([k]) => k);
|
19
|
+
for (const requiredParam of requiredParams) {
|
20
|
+
if (endpointParams[requiredParam] == null) {
|
21
|
+
throw new EndpointError(`Missing required parameter: '${requiredParam}'`);
|
22
|
+
}
|
23
|
+
}
|
24
|
+
const endpoint = evaluateRules(rules, { endpointParams, logger, referenceRecord: {} });
|
25
|
+
if (options.endpointParams?.Endpoint) {
|
26
|
+
try {
|
27
|
+
const givenEndpoint = new URL(options.endpointParams.Endpoint);
|
28
|
+
const { protocol, port } = givenEndpoint;
|
29
|
+
endpoint.url.protocol = protocol;
|
30
|
+
endpoint.url.port = port;
|
31
|
+
}
|
32
|
+
catch (e) {
|
33
|
+
}
|
34
|
+
}
|
35
|
+
options.logger?.debug?.(`${debugId} Resolved endpoint: ${toDebugString(endpoint)}`);
|
36
|
+
return endpoint;
|
37
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { customEndpointFunctions } from "./customEndpointFunctions";
|
2
|
+
import { endpointFunctions } from "./endpointFunctions";
|
3
|
+
import { evaluateExpression } from "./evaluateExpression";
|
4
|
+
export const callFunction = ({ fn, argv }, options) => {
|
5
|
+
const evaluatedArgs = argv.map((arg) => ["boolean", "number"].includes(typeof arg) ? arg : evaluateExpression(arg, "arg", options));
|
6
|
+
const fnSegments = fn.split(".");
|
7
|
+
if (fnSegments[0] in customEndpointFunctions && fnSegments[1] != null) {
|
8
|
+
return customEndpointFunctions[fnSegments[0]][fnSegments[1]](...evaluatedArgs);
|
9
|
+
}
|
10
|
+
return endpointFunctions[fn](...evaluatedArgs);
|
11
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export const customEndpointFunctions = {};
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { booleanEquals, getAttr, isSet, isValidHostLabel, not, parseURL, stringEquals, substring, uriEncode, } from "../lib";
|
2
|
+
export const endpointFunctions = {
|
3
|
+
booleanEquals,
|
4
|
+
getAttr,
|
5
|
+
isSet,
|
6
|
+
isValidHostLabel,
|
7
|
+
not,
|
8
|
+
parseURL,
|
9
|
+
stringEquals,
|
10
|
+
substring,
|
11
|
+
uriEncode,
|
12
|
+
};
|
package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/debug/toDebugString.d.ts
RENAMED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { EndpointParameters, EndpointV2 } from "@
|
1
|
+
import { EndpointParameters, EndpointV2 } from "@smithy/types";
|
2
2
|
import { GetAttrValue } from "../lib";
|
3
3
|
import { EndpointObject, FunctionObject, FunctionReturn } from "../types";
|
4
4
|
export declare function toDebugString(input: EndpointParameters): string;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import { EndpointV2 } from "@smithy/types";
|
2
|
+
import { EndpointResolverOptions, RuleSetObject } from "./types";
|
3
|
+
/**
|
4
|
+
* Resolves an endpoint URL by processing the endpoints ruleset and options.
|
5
|
+
*/
|
6
|
+
export declare const resolveEndpoint: (ruleSetObject: RuleSetObject, options: EndpointResolverOptions) => EndpointV2;
|
package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/ts3.4/debug/debugId.d.ts
RENAMED
@@ -1 +1 @@
|
|
1
|
-
export declare const debugId = "endpoints";
|
1
|
+
export declare const debugId = "endpoints";
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export * from "./debugId";
|
2
|
-
export * from "./toDebugString";
|
1
|
+
export * from "./debugId";
|
2
|
+
export * from "./toDebugString";
|
package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/ts3.4/debug/toDebugString.d.ts
RENAMED
@@ -1,9 +1,9 @@
|
|
1
|
-
import { EndpointParameters, EndpointV2 } from "@
|
2
|
-
import { GetAttrValue } from "../lib";
|
3
|
-
import { EndpointObject, FunctionObject, FunctionReturn } from "../types";
|
4
|
-
export declare function toDebugString(input: EndpointParameters): string;
|
5
|
-
export declare function toDebugString(input: EndpointV2): string;
|
6
|
-
export declare function toDebugString(input: GetAttrValue): string;
|
7
|
-
export declare function toDebugString(input: FunctionObject): string;
|
8
|
-
export declare function toDebugString(input: FunctionReturn): string;
|
9
|
-
export declare function toDebugString(input: EndpointObject): string;
|
1
|
+
import { EndpointParameters, EndpointV2 } from "@smithy/types";
|
2
|
+
import { GetAttrValue } from "../lib";
|
3
|
+
import { EndpointObject, FunctionObject, FunctionReturn } from "../types";
|
4
|
+
export declare function toDebugString(input: EndpointParameters): string;
|
5
|
+
export declare function toDebugString(input: EndpointV2): string;
|
6
|
+
export declare function toDebugString(input: GetAttrValue): string;
|
7
|
+
export declare function toDebugString(input: FunctionObject): string;
|
8
|
+
export declare function toDebugString(input: FunctionReturn): string;
|
9
|
+
export declare function toDebugString(input: EndpointObject): string;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
export type GetAttrValue = string | boolean | {
|
2
|
+
[key: string]: GetAttrValue;
|
3
|
+
} | Array<GetAttrValue>;
|
4
|
+
/**
|
5
|
+
* Returns value corresponding to pathing string for an array or object.
|
6
|
+
*/
|
7
|
+
export declare const getAttr: (value: GetAttrValue, path: string) => GetAttrValue;
|
@@ -1,11 +1,9 @@
|
|
1
|
-
|
2
|
-
export
|
3
|
-
export * from "./
|
4
|
-
export * from "./
|
5
|
-
export * from "./
|
6
|
-
export * from "./
|
7
|
-
export * from "./
|
8
|
-
export * from "./
|
9
|
-
export * from "./
|
10
|
-
export * from "./substring";
|
11
|
-
export * from "./uriEncode";
|
1
|
+
export * from "./booleanEquals";
|
2
|
+
export * from "./getAttr";
|
3
|
+
export * from "./isSet";
|
4
|
+
export * from "./isValidHostLabel";
|
5
|
+
export * from "./not";
|
6
|
+
export * from "./parseURL";
|
7
|
+
export * from "./stringEquals";
|
8
|
+
export * from "./substring";
|
9
|
+
export * from "./uriEncode";
|
@@ -0,0 +1,7 @@
|
|
1
|
+
/**
|
2
|
+
* Evaluates whether one or more string values are valid host labels per RFC 1123.
|
3
|
+
*
|
4
|
+
* If allowSubDomains is true, then the provided value may be zero or more dotted
|
5
|
+
* subdomains which are each validated per RFC 1123.
|
6
|
+
*/
|
7
|
+
export declare const isValidHostLabel: (value: string, allowSubDomains?: boolean) => boolean;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
/**
|
2
|
+
* Computes the substring of a given string, conditionally indexing from the end of the string.
|
3
|
+
* When the string is long enough to fully include the substring, return the substring.
|
4
|
+
* Otherwise, return None. The start index is inclusive and the stop index is exclusive.
|
5
|
+
* The length of the returned string will always be stop-start.
|
6
|
+
*/
|
7
|
+
export declare const substring: (input: string, start: number, stop: number, reverse: boolean) => string | null;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import { EndpointV2 } from "@smithy/types";
|
2
|
+
import { EndpointResolverOptions, RuleSetObject } from "./types";
|
3
|
+
/**
|
4
|
+
* Resolves an endpoint URL by processing the endpoints ruleset and options.
|
5
|
+
*/
|
6
|
+
export declare const resolveEndpoint: (ruleSetObject: RuleSetObject, options: EndpointResolverOptions) => EndpointV2;
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import { EndpointObject as __EndpointObject, EndpointObjectHeaders as __EndpointObjectHeaders, EndpointObjectProperties as __EndpointObjectProperties, EndpointRuleObject as __EndpointRuleObject } from "@smithy/types";
|
2
|
+
export type EndpointObjectProperties = __EndpointObjectProperties;
|
3
|
+
export type EndpointObjectHeaders = __EndpointObjectHeaders;
|
4
|
+
export type EndpointObject = __EndpointObject;
|
5
|
+
export type EndpointRuleObject = __EndpointRuleObject;
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import { DeprecatedObject as __DeprecatedObject, ParameterObject as __ParameterObject, RuleSetObject as __RuleSetObject } from "@smithy/types";
|
2
|
+
export type DeprecatedObject = __DeprecatedObject;
|
3
|
+
export type ParameterObject = __ParameterObject;
|
4
|
+
export type RuleSetObject = __RuleSetObject;
|