@aws-sdk/client-elastic-load-balancing-v2 3.35.0 → 3.38.0
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/CHANGELOG.md +47 -0
- package/dist-cjs/ElasticLoadBalancingV2.js +0 -42
- package/dist-cjs/ElasticLoadBalancingV2Client.js +0 -47
- package/dist-cjs/commands/AddListenerCertificatesCommand.js +0 -32
- package/dist-cjs/commands/AddTagsCommand.js +0 -29
- package/dist-cjs/commands/CreateListenerCommand.js +0 -52
- package/dist-cjs/commands/CreateLoadBalancerCommand.js +0 -52
- package/dist-cjs/commands/CreateRuleCommand.js +0 -30
- package/dist-cjs/commands/CreateTargetGroupCommand.js +0 -52
- package/dist-cjs/commands/DeleteListenerCommand.js +0 -27
- package/dist-cjs/commands/DeleteLoadBalancerCommand.js +0 -31
- package/dist-cjs/commands/DeleteRuleCommand.js +0 -26
- package/dist-cjs/commands/DeleteTargetGroupCommand.js +0 -29
- package/dist-cjs/commands/DeregisterTargetsCommand.js +0 -26
- package/dist-cjs/commands/DescribeAccountLimitsCommand.js +0 -47
- package/dist-cjs/commands/DescribeListenerCertificatesCommand.js +0 -32
- package/dist-cjs/commands/DescribeListenersCommand.js +0 -27
- package/dist-cjs/commands/DescribeLoadBalancerAttributesCommand.js +0 -48
- package/dist-cjs/commands/DescribeLoadBalancersCommand.js +0 -25
- package/dist-cjs/commands/DescribeRulesCommand.js +0 -26
- package/dist-cjs/commands/DescribeSSLPoliciesCommand.js +0 -27
- package/dist-cjs/commands/DescribeTagsCommand.js +0 -27
- package/dist-cjs/commands/DescribeTargetGroupAttributesCommand.js +0 -46
- package/dist-cjs/commands/DescribeTargetGroupsCommand.js +0 -28
- package/dist-cjs/commands/DescribeTargetHealthCommand.js +0 -25
- package/dist-cjs/commands/ModifyListenerCommand.js +0 -32
- package/dist-cjs/commands/ModifyLoadBalancerAttributesCommand.js +0 -28
- package/dist-cjs/commands/ModifyRuleCommand.js +0 -29
- package/dist-cjs/commands/ModifyTargetGroupAttributesCommand.js +0 -25
- package/dist-cjs/commands/ModifyTargetGroupCommand.js +0 -26
- package/dist-cjs/commands/RegisterTargetsCommand.js +0 -37
- package/dist-cjs/commands/RemoveListenerCertificatesCommand.js +0 -26
- package/dist-cjs/commands/RemoveTagsCommand.js +0 -27
- package/dist-cjs/commands/SetIpAddressTypeCommand.js +0 -26
- package/dist-cjs/commands/SetRulePrioritiesCommand.js +0 -27
- package/dist-cjs/commands/SetSecurityGroupsCommand.js +0 -28
- package/dist-cjs/commands/SetSubnetsCommand.js +0 -30
- package/dist-cjs/commands/index.js +37 -0
- package/dist-cjs/endpoints.js +1 -2
- package/dist-cjs/index.js +5 -46
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +8 -430
- package/dist-cjs/pagination/DescribeListenersPaginator.js +0 -11
- package/dist-cjs/pagination/DescribeLoadBalancersPaginator.js +0 -11
- package/dist-cjs/pagination/DescribeTargetGroupsPaginator.js +0 -11
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/index.js +7 -0
- package/dist-cjs/protocols/Aws_query.js +18 -3
- package/dist-cjs/runtimeConfig.browser.js +1 -6
- package/dist-cjs/runtimeConfig.js +2 -7
- package/dist-cjs/runtimeConfig.native.js +0 -4
- package/dist-cjs/runtimeConfig.shared.js +0 -4
- package/dist-cjs/waiters/index.js +8 -0
- package/dist-cjs/waiters/waitForLoadBalancerAvailable.js +0 -10
- package/dist-cjs/waiters/waitForLoadBalancerExists.js +0 -10
- package/dist-cjs/waiters/waitForLoadBalancersDeleted.js +0 -10
- package/dist-cjs/waiters/waitForTargetDeregistered.js +0 -10
- package/dist-cjs/waiters/waitForTargetInService.js +0 -10
- package/dist-es/ElasticLoadBalancingV2.js +0 -1
- package/dist-es/ElasticLoadBalancingV2Client.js +0 -1
- package/dist-es/commands/AddListenerCertificatesCommand.js +0 -1
- package/dist-es/commands/AddTagsCommand.js +0 -1
- package/dist-es/commands/CreateListenerCommand.js +0 -1
- package/dist-es/commands/CreateLoadBalancerCommand.js +0 -1
- package/dist-es/commands/CreateRuleCommand.js +0 -1
- package/dist-es/commands/CreateTargetGroupCommand.js +0 -1
- package/dist-es/commands/DeleteListenerCommand.js +0 -1
- package/dist-es/commands/DeleteLoadBalancerCommand.js +0 -1
- package/dist-es/commands/DeleteRuleCommand.js +0 -1
- package/dist-es/commands/DeleteTargetGroupCommand.js +0 -1
- package/dist-es/commands/DeregisterTargetsCommand.js +0 -1
- package/dist-es/commands/DescribeAccountLimitsCommand.js +0 -1
- package/dist-es/commands/DescribeListenerCertificatesCommand.js +0 -1
- package/dist-es/commands/DescribeListenersCommand.js +0 -1
- package/dist-es/commands/DescribeLoadBalancerAttributesCommand.js +0 -1
- package/dist-es/commands/DescribeLoadBalancersCommand.js +0 -1
- package/dist-es/commands/DescribeRulesCommand.js +0 -1
- package/dist-es/commands/DescribeSSLPoliciesCommand.js +0 -1
- package/dist-es/commands/DescribeTagsCommand.js +0 -1
- package/dist-es/commands/DescribeTargetGroupAttributesCommand.js +0 -1
- package/dist-es/commands/DescribeTargetGroupsCommand.js +0 -1
- package/dist-es/commands/DescribeTargetHealthCommand.js +0 -1
- package/dist-es/commands/ModifyListenerCommand.js +0 -1
- package/dist-es/commands/ModifyLoadBalancerAttributesCommand.js +0 -1
- package/dist-es/commands/ModifyRuleCommand.js +0 -1
- package/dist-es/commands/ModifyTargetGroupAttributesCommand.js +0 -1
- package/dist-es/commands/ModifyTargetGroupCommand.js +0 -1
- package/dist-es/commands/RegisterTargetsCommand.js +0 -1
- package/dist-es/commands/RemoveListenerCertificatesCommand.js +0 -1
- package/dist-es/commands/RemoveTagsCommand.js +0 -1
- package/dist-es/commands/SetIpAddressTypeCommand.js +0 -1
- package/dist-es/commands/SetRulePrioritiesCommand.js +0 -1
- package/dist-es/commands/SetSecurityGroupsCommand.js +0 -1
- package/dist-es/commands/SetSubnetsCommand.js +0 -1
- package/dist-es/commands/index.js +34 -0
- package/dist-es/endpoints.js +1 -2
- package/dist-es/index.js +5 -46
- package/dist-es/models/index.js +0 -1
- package/dist-es/models/models_0.js +5 -1
- package/dist-es/pagination/DescribeListenersPaginator.js +0 -1
- package/dist-es/pagination/DescribeLoadBalancersPaginator.js +0 -1
- package/dist-es/pagination/DescribeTargetGroupsPaginator.js +0 -1
- package/dist-es/pagination/Interfaces.js +0 -1
- package/dist-es/pagination/index.js +4 -0
- package/dist-es/protocols/Aws_query.js +18 -1
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +2 -3
- package/dist-es/runtimeConfig.native.js +0 -1
- package/dist-es/runtimeConfig.shared.js +0 -1
- package/dist-es/waiters/index.js +5 -0
- package/dist-es/waiters/waitForLoadBalancerAvailable.js +0 -1
- package/dist-es/waiters/waitForLoadBalancerExists.js +0 -1
- package/dist-es/waiters/waitForLoadBalancersDeleted.js +0 -1
- package/dist-es/waiters/waitForTargetDeregistered.js +0 -1
- package/dist-es/waiters/waitForTargetInService.js +0 -1
- package/dist-types/commands/index.d.ts +34 -0
- package/dist-types/index.d.ts +5 -45
- package/dist-types/models/models_0.d.ts +41 -12
- package/dist-types/pagination/index.d.ts +4 -0
- package/dist-types/runtimeConfig.browser.d.ts +3 -1
- package/dist-types/ts3.4/ElasticLoadBalancingV2.d.ts +35 -378
- package/dist-types/ts3.4/ElasticLoadBalancingV2Client.d.ts +24 -127
- package/dist-types/ts3.4/commands/AddListenerCertificatesCommand.d.ts +2 -27
- package/dist-types/ts3.4/commands/AddTagsCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/CreateListenerCommand.d.ts +2 -47
- package/dist-types/ts3.4/commands/CreateLoadBalancerCommand.d.ts +2 -47
- package/dist-types/ts3.4/commands/CreateRuleCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/CreateTargetGroupCommand.d.ts +2 -47
- package/dist-types/ts3.4/commands/DeleteListenerCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/DeleteLoadBalancerCommand.d.ts +2 -26
- package/dist-types/ts3.4/commands/DeleteRuleCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DeleteTargetGroupCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/DeregisterTargetsCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DescribeAccountLimitsCommand.d.ts +2 -42
- package/dist-types/ts3.4/commands/DescribeListenerCertificatesCommand.d.ts +2 -27
- package/dist-types/ts3.4/commands/DescribeListenersCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/DescribeLoadBalancerAttributesCommand.d.ts +2 -43
- package/dist-types/ts3.4/commands/DescribeLoadBalancersCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeRulesCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DescribeSSLPoliciesCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/DescribeTagsCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/DescribeTargetGroupAttributesCommand.d.ts +2 -41
- package/dist-types/ts3.4/commands/DescribeTargetGroupsCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/DescribeTargetHealthCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ModifyListenerCommand.d.ts +2 -27
- package/dist-types/ts3.4/commands/ModifyLoadBalancerAttributesCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/ModifyRuleCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/ModifyTargetGroupAttributesCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ModifyTargetGroupCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/RegisterTargetsCommand.d.ts +2 -32
- package/dist-types/ts3.4/commands/RemoveListenerCertificatesCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/RemoveTagsCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/SetIpAddressTypeCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/SetRulePrioritiesCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/SetSecurityGroupsCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/SetSubnetsCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/index.d.ts +34 -0
- package/dist-types/ts3.4/index.d.ts +5 -45
- package/dist-types/ts3.4/models/models_0.d.ts +238 -3056
- package/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -4
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/dist-types/ts3.4/waiters/index.d.ts +5 -0
- package/dist-types/ts3.4/waiters/waitForLoadBalancerAvailable.d.ts +2 -9
- package/dist-types/ts3.4/waiters/waitForLoadBalancerExists.d.ts +2 -9
- package/dist-types/ts3.4/waiters/waitForLoadBalancersDeleted.d.ts +2 -9
- package/dist-types/ts3.4/waiters/waitForTargetDeregistered.d.ts +2 -9
- package/dist-types/ts3.4/waiters/waitForTargetInService.d.ts +2 -9
- package/dist-types/waiters/index.d.ts +5 -0
- package/package.json +34 -31
- package/dist-cjs/ElasticLoadBalancingV2.js.map +0 -1
- package/dist-cjs/ElasticLoadBalancingV2Client.js.map +0 -1
- package/dist-cjs/commands/AddListenerCertificatesCommand.js.map +0 -1
- package/dist-cjs/commands/AddTagsCommand.js.map +0 -1
- package/dist-cjs/commands/CreateListenerCommand.js.map +0 -1
- package/dist-cjs/commands/CreateLoadBalancerCommand.js.map +0 -1
- package/dist-cjs/commands/CreateRuleCommand.js.map +0 -1
- package/dist-cjs/commands/CreateTargetGroupCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteListenerCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteLoadBalancerCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteRuleCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteTargetGroupCommand.js.map +0 -1
- package/dist-cjs/commands/DeregisterTargetsCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeAccountLimitsCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeListenerCertificatesCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeListenersCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeLoadBalancerAttributesCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeLoadBalancersCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeRulesCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeSSLPoliciesCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeTagsCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeTargetGroupAttributesCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeTargetGroupsCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeTargetHealthCommand.js.map +0 -1
- package/dist-cjs/commands/ModifyListenerCommand.js.map +0 -1
- package/dist-cjs/commands/ModifyLoadBalancerAttributesCommand.js.map +0 -1
- package/dist-cjs/commands/ModifyRuleCommand.js.map +0 -1
- package/dist-cjs/commands/ModifyTargetGroupAttributesCommand.js.map +0 -1
- package/dist-cjs/commands/ModifyTargetGroupCommand.js.map +0 -1
- package/dist-cjs/commands/RegisterTargetsCommand.js.map +0 -1
- package/dist-cjs/commands/RemoveListenerCertificatesCommand.js.map +0 -1
- package/dist-cjs/commands/RemoveTagsCommand.js.map +0 -1
- package/dist-cjs/commands/SetIpAddressTypeCommand.js.map +0 -1
- package/dist-cjs/commands/SetRulePrioritiesCommand.js.map +0 -1
- package/dist-cjs/commands/SetSecurityGroupsCommand.js.map +0 -1
- package/dist-cjs/commands/SetSubnetsCommand.js.map +0 -1
- package/dist-cjs/endpoints.js.map +0 -1
- package/dist-cjs/index.js.map +0 -1
- package/dist-cjs/models/index.js.map +0 -1
- package/dist-cjs/models/models_0.js.map +0 -1
- package/dist-cjs/pagination/DescribeListenersPaginator.js.map +0 -1
- package/dist-cjs/pagination/DescribeLoadBalancersPaginator.js.map +0 -1
- package/dist-cjs/pagination/DescribeTargetGroupsPaginator.js.map +0 -1
- package/dist-cjs/pagination/Interfaces.js.map +0 -1
- package/dist-cjs/protocols/Aws_query.js.map +0 -1
- package/dist-cjs/runtimeConfig.browser.js.map +0 -1
- package/dist-cjs/runtimeConfig.js.map +0 -1
- package/dist-cjs/runtimeConfig.native.js.map +0 -1
- package/dist-cjs/runtimeConfig.shared.js.map +0 -1
- package/dist-cjs/waiters/waitForLoadBalancerAvailable.js.map +0 -1
- package/dist-cjs/waiters/waitForLoadBalancerExists.js.map +0 -1
- package/dist-cjs/waiters/waitForLoadBalancersDeleted.js.map +0 -1
- package/dist-cjs/waiters/waitForTargetDeregistered.js.map +0 -1
- package/dist-cjs/waiters/waitForTargetInService.js.map +0 -1
- package/dist-es/ElasticLoadBalancingV2.js.map +0 -1
- package/dist-es/ElasticLoadBalancingV2Client.js.map +0 -1
- package/dist-es/commands/AddListenerCertificatesCommand.js.map +0 -1
- package/dist-es/commands/AddTagsCommand.js.map +0 -1
- package/dist-es/commands/CreateListenerCommand.js.map +0 -1
- package/dist-es/commands/CreateLoadBalancerCommand.js.map +0 -1
- package/dist-es/commands/CreateRuleCommand.js.map +0 -1
- package/dist-es/commands/CreateTargetGroupCommand.js.map +0 -1
- package/dist-es/commands/DeleteListenerCommand.js.map +0 -1
- package/dist-es/commands/DeleteLoadBalancerCommand.js.map +0 -1
- package/dist-es/commands/DeleteRuleCommand.js.map +0 -1
- package/dist-es/commands/DeleteTargetGroupCommand.js.map +0 -1
- package/dist-es/commands/DeregisterTargetsCommand.js.map +0 -1
- package/dist-es/commands/DescribeAccountLimitsCommand.js.map +0 -1
- package/dist-es/commands/DescribeListenerCertificatesCommand.js.map +0 -1
- package/dist-es/commands/DescribeListenersCommand.js.map +0 -1
- package/dist-es/commands/DescribeLoadBalancerAttributesCommand.js.map +0 -1
- package/dist-es/commands/DescribeLoadBalancersCommand.js.map +0 -1
- package/dist-es/commands/DescribeRulesCommand.js.map +0 -1
- package/dist-es/commands/DescribeSSLPoliciesCommand.js.map +0 -1
- package/dist-es/commands/DescribeTagsCommand.js.map +0 -1
- package/dist-es/commands/DescribeTargetGroupAttributesCommand.js.map +0 -1
- package/dist-es/commands/DescribeTargetGroupsCommand.js.map +0 -1
- package/dist-es/commands/DescribeTargetHealthCommand.js.map +0 -1
- package/dist-es/commands/ModifyListenerCommand.js.map +0 -1
- package/dist-es/commands/ModifyLoadBalancerAttributesCommand.js.map +0 -1
- package/dist-es/commands/ModifyRuleCommand.js.map +0 -1
- package/dist-es/commands/ModifyTargetGroupAttributesCommand.js.map +0 -1
- package/dist-es/commands/ModifyTargetGroupCommand.js.map +0 -1
- package/dist-es/commands/RegisterTargetsCommand.js.map +0 -1
- package/dist-es/commands/RemoveListenerCertificatesCommand.js.map +0 -1
- package/dist-es/commands/RemoveTagsCommand.js.map +0 -1
- package/dist-es/commands/SetIpAddressTypeCommand.js.map +0 -1
- package/dist-es/commands/SetRulePrioritiesCommand.js.map +0 -1
- package/dist-es/commands/SetSecurityGroupsCommand.js.map +0 -1
- package/dist-es/commands/SetSubnetsCommand.js.map +0 -1
- package/dist-es/endpoints.js.map +0 -1
- package/dist-es/index.js.map +0 -1
- package/dist-es/models/index.js.map +0 -1
- package/dist-es/models/models_0.js.map +0 -1
- package/dist-es/pagination/DescribeListenersPaginator.js.map +0 -1
- package/dist-es/pagination/DescribeLoadBalancersPaginator.js.map +0 -1
- package/dist-es/pagination/DescribeTargetGroupsPaginator.js.map +0 -1
- package/dist-es/pagination/Interfaces.js.map +0 -1
- package/dist-es/protocols/Aws_query.js.map +0 -1
- package/dist-es/runtimeConfig.browser.js.map +0 -1
- package/dist-es/runtimeConfig.js.map +0 -1
- package/dist-es/runtimeConfig.native.js.map +0 -1
- package/dist-es/runtimeConfig.shared.js.map +0 -1
- package/dist-es/waiters/waitForLoadBalancerAvailable.js.map +0 -1
- package/dist-es/waiters/waitForLoadBalancerExists.js.map +0 -1
- package/dist-es/waiters/waitForLoadBalancersDeleted.js.map +0 -1
- package/dist-es/waiters/waitForTargetDeregistered.js.map +0 -1
- package/dist-es/waiters/waitForTargetInService.js.map +0 -1
- package/jest.config.js +0 -4
- package/src/ElasticLoadBalancingV2.ts +0 -1476
- package/src/ElasticLoadBalancingV2Client.ts +0 -412
- package/src/commands/AddListenerCertificatesCommand.ts +0 -106
- package/src/commands/AddTagsCommand.ts +0 -100
- package/src/commands/CreateListenerCommand.ts +0 -126
- package/src/commands/CreateLoadBalancerCommand.ts +0 -126
- package/src/commands/CreateRuleCommand.ts +0 -101
- package/src/commands/CreateTargetGroupCommand.ts +0 -126
- package/src/commands/DeleteListenerCommand.ts +0 -101
- package/src/commands/DeleteLoadBalancerCommand.ts +0 -105
- package/src/commands/DeleteRuleCommand.ts +0 -97
- package/src/commands/DeleteTargetGroupCommand.ts +0 -103
- package/src/commands/DeregisterTargetsCommand.ts +0 -100
- package/src/commands/DescribeAccountLimitsCommand.ts +0 -121
- package/src/commands/DescribeListenerCertificatesCommand.ts +0 -111
- package/src/commands/DescribeListenersCommand.ts +0 -101
- package/src/commands/DescribeLoadBalancerAttributesCommand.ts +0 -130
- package/src/commands/DescribeLoadBalancersCommand.ts +0 -99
- package/src/commands/DescribeRulesCommand.ts +0 -100
- package/src/commands/DescribeSSLPoliciesCommand.ts +0 -101
- package/src/commands/DescribeTagsCommand.ts +0 -98
- package/src/commands/DescribeTargetGroupAttributesCommand.ts +0 -125
- package/src/commands/DescribeTargetGroupsCommand.ts +0 -102
- package/src/commands/DescribeTargetHealthCommand.ts +0 -99
- package/src/commands/ModifyListenerCommand.ts +0 -106
- package/src/commands/ModifyLoadBalancerAttributesCommand.ts +0 -107
- package/src/commands/ModifyRuleCommand.ts +0 -100
- package/src/commands/ModifyTargetGroupAttributesCommand.ts +0 -102
- package/src/commands/ModifyTargetGroupCommand.ts +0 -100
- package/src/commands/RegisterTargetsCommand.ts +0 -111
- package/src/commands/RemoveListenerCertificatesCommand.ts +0 -103
- package/src/commands/RemoveTagsCommand.ts +0 -98
- package/src/commands/SetIpAddressTypeCommand.ts +0 -100
- package/src/commands/SetRulePrioritiesCommand.ts +0 -101
- package/src/commands/SetSecurityGroupsCommand.ts +0 -102
- package/src/commands/SetSubnetsCommand.ts +0 -101
- package/src/endpoints.ts +0 -86
- package/src/index.ts +0 -46
- package/src/models/index.ts +0 -1
- package/src/models/models_0.ts +0 -4397
- package/src/pagination/DescribeListenersPaginator.ts +0 -58
- package/src/pagination/DescribeLoadBalancersPaginator.ts +0 -58
- package/src/pagination/DescribeTargetGroupsPaginator.ts +0 -58
- package/src/pagination/Interfaces.ts +0 -8
- package/src/protocols/Aws_query.ts +0 -7922
- package/src/runtimeConfig.browser.ts +0 -41
- package/src/runtimeConfig.native.ts +0 -17
- package/src/runtimeConfig.shared.ts +0 -17
- package/src/runtimeConfig.ts +0 -46
- package/src/waiters/waitForLoadBalancerAvailable.ts +0 -78
- package/src/waiters/waitForLoadBalancerExists.ts +0 -49
- package/src/waiters/waitForLoadBalancersDeleted.ts +0 -64
- package/src/waiters/waitForTargetDeregistered.ts +0 -61
- package/src/waiters/waitForTargetInService.ts +0 -61
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -33
- package/tsconfig.types.json +0 -9
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
2
|
-
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
3
|
-
import { invalidProvider } from "@aws-sdk/invalid-dependency";
|
|
4
|
-
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
|
|
5
|
-
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
|
|
6
|
-
import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
|
|
7
|
-
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
8
|
-
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
|
|
9
|
-
|
|
10
|
-
// @ts-ignore: package.json will be imported from dist folders
|
|
11
|
-
import packageInfo from "../package.json";
|
|
12
|
-
import { ElasticLoadBalancingV2ClientConfig } from "./ElasticLoadBalancingV2Client";
|
|
13
|
-
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* @internal
|
|
17
|
-
*/
|
|
18
|
-
export const getRuntimeConfig = (config: ElasticLoadBalancingV2ClientConfig) => {
|
|
19
|
-
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
20
|
-
return {
|
|
21
|
-
...clientSharedValues,
|
|
22
|
-
...config,
|
|
23
|
-
runtime: "browser",
|
|
24
|
-
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
25
|
-
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
26
|
-
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
27
|
-
credentialDefaultProvider:
|
|
28
|
-
config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))),
|
|
29
|
-
defaultUserAgentProvider:
|
|
30
|
-
config?.defaultUserAgentProvider ??
|
|
31
|
-
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
32
|
-
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
33
|
-
region: config?.region ?? invalidProvider("Region is missing"),
|
|
34
|
-
requestHandler: config?.requestHandler ?? new FetchHttpHandler(),
|
|
35
|
-
retryMode: config?.retryMode ?? (() => Promise.resolve(DEFAULT_RETRY_MODE)),
|
|
36
|
-
sha256: config?.sha256 ?? Sha256,
|
|
37
|
-
streamCollector: config?.streamCollector ?? streamCollector,
|
|
38
|
-
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
39
|
-
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
40
|
-
};
|
|
41
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Sha256 } from "@aws-crypto/sha256-js";
|
|
2
|
-
|
|
3
|
-
import { ElasticLoadBalancingV2ClientConfig } from "./ElasticLoadBalancingV2Client";
|
|
4
|
-
import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* @internal
|
|
8
|
-
*/
|
|
9
|
-
export const getRuntimeConfig = (config: ElasticLoadBalancingV2ClientConfig) => {
|
|
10
|
-
const browserDefaults = getBrowserRuntimeConfig(config);
|
|
11
|
-
return {
|
|
12
|
-
...browserDefaults,
|
|
13
|
-
...config,
|
|
14
|
-
runtime: "react-native",
|
|
15
|
-
sha256: config?.sha256 ?? Sha256,
|
|
16
|
-
};
|
|
17
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Logger as __Logger } from "@aws-sdk/types";
|
|
2
|
-
import { parseUrl } from "@aws-sdk/url-parser";
|
|
3
|
-
|
|
4
|
-
import { ElasticLoadBalancingV2ClientConfig } from "./ElasticLoadBalancingV2Client";
|
|
5
|
-
import { defaultRegionInfoProvider } from "./endpoints";
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* @internal
|
|
9
|
-
*/
|
|
10
|
-
export const getRuntimeConfig = (config: ElasticLoadBalancingV2ClientConfig) => ({
|
|
11
|
-
apiVersion: "2015-12-01",
|
|
12
|
-
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
13
|
-
logger: config?.logger ?? ({} as __Logger),
|
|
14
|
-
regionInfoProvider: config?.regionInfoProvider ?? defaultRegionInfoProvider,
|
|
15
|
-
serviceId: config?.serviceId ?? "Elastic Load Balancing v2",
|
|
16
|
-
urlParser: config?.urlParser ?? parseUrl,
|
|
17
|
-
});
|
package/src/runtimeConfig.ts
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
2
|
-
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@aws-sdk/config-resolver";
|
|
3
|
-
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
4
|
-
import { Hash } from "@aws-sdk/hash-node";
|
|
5
|
-
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
|
|
6
|
-
import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
|
|
7
|
-
import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
8
|
-
import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
|
|
9
|
-
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
|
|
10
|
-
import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
|
|
11
|
-
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
12
|
-
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
|
|
13
|
-
|
|
14
|
-
// @ts-ignore: package.json will be imported from dist folders
|
|
15
|
-
import packageInfo from "../package.json";
|
|
16
|
-
import { ElasticLoadBalancingV2ClientConfig } from "./ElasticLoadBalancingV2Client";
|
|
17
|
-
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* @internal
|
|
21
|
-
*/
|
|
22
|
-
export const getRuntimeConfig = (config: ElasticLoadBalancingV2ClientConfig) => {
|
|
23
|
-
emitWarningIfUnsupportedVersion(process.version);
|
|
24
|
-
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
25
|
-
return {
|
|
26
|
-
...clientSharedValues,
|
|
27
|
-
...config,
|
|
28
|
-
runtime: "node",
|
|
29
|
-
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
30
|
-
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
31
|
-
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
32
|
-
credentialDefaultProvider:
|
|
33
|
-
config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider),
|
|
34
|
-
defaultUserAgentProvider:
|
|
35
|
-
config?.defaultUserAgentProvider ??
|
|
36
|
-
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
37
|
-
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
38
|
-
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
39
|
-
requestHandler: config?.requestHandler ?? new NodeHttpHandler(),
|
|
40
|
-
retryMode: config?.retryMode ?? loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS),
|
|
41
|
-
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
42
|
-
streamCollector: config?.streamCollector ?? streamCollector,
|
|
43
|
-
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
44
|
-
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
45
|
-
};
|
|
46
|
-
};
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { checkExceptions, createWaiter, WaiterConfiguration, WaiterResult, WaiterState } from "@aws-sdk/util-waiter";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
DescribeLoadBalancersCommand,
|
|
5
|
-
DescribeLoadBalancersCommandInput,
|
|
6
|
-
} from "../commands/DescribeLoadBalancersCommand";
|
|
7
|
-
import { ElasticLoadBalancingV2Client } from "../ElasticLoadBalancingV2Client";
|
|
8
|
-
|
|
9
|
-
const checkState = async (
|
|
10
|
-
client: ElasticLoadBalancingV2Client,
|
|
11
|
-
input: DescribeLoadBalancersCommandInput
|
|
12
|
-
): Promise<WaiterResult> => {
|
|
13
|
-
let reason;
|
|
14
|
-
try {
|
|
15
|
-
const result: any = await client.send(new DescribeLoadBalancersCommand(input));
|
|
16
|
-
reason = result;
|
|
17
|
-
try {
|
|
18
|
-
const returnComparator = () => {
|
|
19
|
-
const flat_1: any[] = [].concat(...result.LoadBalancers);
|
|
20
|
-
const projection_3 = flat_1.map((element_2: any) => {
|
|
21
|
-
return element_2.State.Code;
|
|
22
|
-
});
|
|
23
|
-
return projection_3;
|
|
24
|
-
};
|
|
25
|
-
let allStringEq_5 = returnComparator().length > 0;
|
|
26
|
-
for (const element_4 of returnComparator()) {
|
|
27
|
-
allStringEq_5 = allStringEq_5 && element_4 == "active";
|
|
28
|
-
}
|
|
29
|
-
if (allStringEq_5) {
|
|
30
|
-
return { state: WaiterState.SUCCESS, reason };
|
|
31
|
-
}
|
|
32
|
-
} catch (e) {}
|
|
33
|
-
try {
|
|
34
|
-
const returnComparator = () => {
|
|
35
|
-
const flat_1: any[] = [].concat(...result.LoadBalancers);
|
|
36
|
-
const projection_3 = flat_1.map((element_2: any) => {
|
|
37
|
-
return element_2.State.Code;
|
|
38
|
-
});
|
|
39
|
-
return projection_3;
|
|
40
|
-
};
|
|
41
|
-
for (const anyStringEq_4 of returnComparator()) {
|
|
42
|
-
if (anyStringEq_4 == "provisioning") {
|
|
43
|
-
return { state: WaiterState.RETRY, reason };
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
} catch (e) {}
|
|
47
|
-
} catch (exception) {
|
|
48
|
-
reason = exception;
|
|
49
|
-
if (exception.name && exception.name == "LoadBalancerNotFound") {
|
|
50
|
-
return { state: WaiterState.RETRY, reason };
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
return { state: WaiterState.RETRY, reason };
|
|
54
|
-
};
|
|
55
|
-
/**
|
|
56
|
-
*
|
|
57
|
-
* @deprecated Use waitUntilLoadBalancerAvailable instead. waitForLoadBalancerAvailable does not throw error in non-success cases.
|
|
58
|
-
*/
|
|
59
|
-
export const waitForLoadBalancerAvailable = async (
|
|
60
|
-
params: WaiterConfiguration<ElasticLoadBalancingV2Client>,
|
|
61
|
-
input: DescribeLoadBalancersCommandInput
|
|
62
|
-
): Promise<WaiterResult> => {
|
|
63
|
-
const serviceDefaults = { minDelay: 15, maxDelay: 120 };
|
|
64
|
-
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
65
|
-
};
|
|
66
|
-
/**
|
|
67
|
-
*
|
|
68
|
-
* @param params - Waiter configuration options.
|
|
69
|
-
* @param input - The input to DescribeLoadBalancersCommand for polling.
|
|
70
|
-
*/
|
|
71
|
-
export const waitUntilLoadBalancerAvailable = async (
|
|
72
|
-
params: WaiterConfiguration<ElasticLoadBalancingV2Client>,
|
|
73
|
-
input: DescribeLoadBalancersCommandInput
|
|
74
|
-
): Promise<WaiterResult> => {
|
|
75
|
-
const serviceDefaults = { minDelay: 15, maxDelay: 120 };
|
|
76
|
-
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
77
|
-
return checkExceptions(result);
|
|
78
|
-
};
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { checkExceptions, createWaiter, WaiterConfiguration, WaiterResult, WaiterState } from "@aws-sdk/util-waiter";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
DescribeLoadBalancersCommand,
|
|
5
|
-
DescribeLoadBalancersCommandInput,
|
|
6
|
-
} from "../commands/DescribeLoadBalancersCommand";
|
|
7
|
-
import { ElasticLoadBalancingV2Client } from "../ElasticLoadBalancingV2Client";
|
|
8
|
-
|
|
9
|
-
const checkState = async (
|
|
10
|
-
client: ElasticLoadBalancingV2Client,
|
|
11
|
-
input: DescribeLoadBalancersCommandInput
|
|
12
|
-
): Promise<WaiterResult> => {
|
|
13
|
-
let reason;
|
|
14
|
-
try {
|
|
15
|
-
const result: any = await client.send(new DescribeLoadBalancersCommand(input));
|
|
16
|
-
reason = result;
|
|
17
|
-
return { state: WaiterState.SUCCESS, reason };
|
|
18
|
-
} catch (exception) {
|
|
19
|
-
reason = exception;
|
|
20
|
-
if (exception.name && exception.name == "LoadBalancerNotFound") {
|
|
21
|
-
return { state: WaiterState.RETRY, reason };
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
return { state: WaiterState.RETRY, reason };
|
|
25
|
-
};
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @deprecated Use waitUntilLoadBalancerExists instead. waitForLoadBalancerExists does not throw error in non-success cases.
|
|
29
|
-
*/
|
|
30
|
-
export const waitForLoadBalancerExists = async (
|
|
31
|
-
params: WaiterConfiguration<ElasticLoadBalancingV2Client>,
|
|
32
|
-
input: DescribeLoadBalancersCommandInput
|
|
33
|
-
): Promise<WaiterResult> => {
|
|
34
|
-
const serviceDefaults = { minDelay: 15, maxDelay: 120 };
|
|
35
|
-
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
36
|
-
};
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* @param params - Waiter configuration options.
|
|
40
|
-
* @param input - The input to DescribeLoadBalancersCommand for polling.
|
|
41
|
-
*/
|
|
42
|
-
export const waitUntilLoadBalancerExists = async (
|
|
43
|
-
params: WaiterConfiguration<ElasticLoadBalancingV2Client>,
|
|
44
|
-
input: DescribeLoadBalancersCommandInput
|
|
45
|
-
): Promise<WaiterResult> => {
|
|
46
|
-
const serviceDefaults = { minDelay: 15, maxDelay: 120 };
|
|
47
|
-
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
48
|
-
return checkExceptions(result);
|
|
49
|
-
};
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { checkExceptions, createWaiter, WaiterConfiguration, WaiterResult, WaiterState } from "@aws-sdk/util-waiter";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
DescribeLoadBalancersCommand,
|
|
5
|
-
DescribeLoadBalancersCommandInput,
|
|
6
|
-
} from "../commands/DescribeLoadBalancersCommand";
|
|
7
|
-
import { ElasticLoadBalancingV2Client } from "../ElasticLoadBalancingV2Client";
|
|
8
|
-
|
|
9
|
-
const checkState = async (
|
|
10
|
-
client: ElasticLoadBalancingV2Client,
|
|
11
|
-
input: DescribeLoadBalancersCommandInput
|
|
12
|
-
): Promise<WaiterResult> => {
|
|
13
|
-
let reason;
|
|
14
|
-
try {
|
|
15
|
-
const result: any = await client.send(new DescribeLoadBalancersCommand(input));
|
|
16
|
-
reason = result;
|
|
17
|
-
try {
|
|
18
|
-
const returnComparator = () => {
|
|
19
|
-
const flat_1: any[] = [].concat(...result.LoadBalancers);
|
|
20
|
-
const projection_3 = flat_1.map((element_2: any) => {
|
|
21
|
-
return element_2.State.Code;
|
|
22
|
-
});
|
|
23
|
-
return projection_3;
|
|
24
|
-
};
|
|
25
|
-
let allStringEq_5 = returnComparator().length > 0;
|
|
26
|
-
for (const element_4 of returnComparator()) {
|
|
27
|
-
allStringEq_5 = allStringEq_5 && element_4 == "active";
|
|
28
|
-
}
|
|
29
|
-
if (allStringEq_5) {
|
|
30
|
-
return { state: WaiterState.RETRY, reason };
|
|
31
|
-
}
|
|
32
|
-
} catch (e) {}
|
|
33
|
-
} catch (exception) {
|
|
34
|
-
reason = exception;
|
|
35
|
-
if (exception.name && exception.name == "LoadBalancerNotFound") {
|
|
36
|
-
return { state: WaiterState.SUCCESS, reason };
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
return { state: WaiterState.RETRY, reason };
|
|
40
|
-
};
|
|
41
|
-
/**
|
|
42
|
-
*
|
|
43
|
-
* @deprecated Use waitUntilLoadBalancersDeleted instead. waitForLoadBalancersDeleted does not throw error in non-success cases.
|
|
44
|
-
*/
|
|
45
|
-
export const waitForLoadBalancersDeleted = async (
|
|
46
|
-
params: WaiterConfiguration<ElasticLoadBalancingV2Client>,
|
|
47
|
-
input: DescribeLoadBalancersCommandInput
|
|
48
|
-
): Promise<WaiterResult> => {
|
|
49
|
-
const serviceDefaults = { minDelay: 15, maxDelay: 120 };
|
|
50
|
-
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
51
|
-
};
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
* @param params - Waiter configuration options.
|
|
55
|
-
* @param input - The input to DescribeLoadBalancersCommand for polling.
|
|
56
|
-
*/
|
|
57
|
-
export const waitUntilLoadBalancersDeleted = async (
|
|
58
|
-
params: WaiterConfiguration<ElasticLoadBalancingV2Client>,
|
|
59
|
-
input: DescribeLoadBalancersCommandInput
|
|
60
|
-
): Promise<WaiterResult> => {
|
|
61
|
-
const serviceDefaults = { minDelay: 15, maxDelay: 120 };
|
|
62
|
-
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
63
|
-
return checkExceptions(result);
|
|
64
|
-
};
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { checkExceptions, createWaiter, WaiterConfiguration, WaiterResult, WaiterState } from "@aws-sdk/util-waiter";
|
|
2
|
-
|
|
3
|
-
import { DescribeTargetHealthCommand, DescribeTargetHealthCommandInput } from "../commands/DescribeTargetHealthCommand";
|
|
4
|
-
import { ElasticLoadBalancingV2Client } from "../ElasticLoadBalancingV2Client";
|
|
5
|
-
|
|
6
|
-
const checkState = async (
|
|
7
|
-
client: ElasticLoadBalancingV2Client,
|
|
8
|
-
input: DescribeTargetHealthCommandInput
|
|
9
|
-
): Promise<WaiterResult> => {
|
|
10
|
-
let reason;
|
|
11
|
-
try {
|
|
12
|
-
const result: any = await client.send(new DescribeTargetHealthCommand(input));
|
|
13
|
-
reason = result;
|
|
14
|
-
try {
|
|
15
|
-
const returnComparator = () => {
|
|
16
|
-
const flat_1: any[] = [].concat(...result.TargetHealthDescriptions);
|
|
17
|
-
const projection_3 = flat_1.map((element_2: any) => {
|
|
18
|
-
return element_2.TargetHealth.State;
|
|
19
|
-
});
|
|
20
|
-
return projection_3;
|
|
21
|
-
};
|
|
22
|
-
let allStringEq_5 = returnComparator().length > 0;
|
|
23
|
-
for (const element_4 of returnComparator()) {
|
|
24
|
-
allStringEq_5 = allStringEq_5 && element_4 == "unused";
|
|
25
|
-
}
|
|
26
|
-
if (allStringEq_5) {
|
|
27
|
-
return { state: WaiterState.SUCCESS, reason };
|
|
28
|
-
}
|
|
29
|
-
} catch (e) {}
|
|
30
|
-
} catch (exception) {
|
|
31
|
-
reason = exception;
|
|
32
|
-
if (exception.name && exception.name == "InvalidTarget") {
|
|
33
|
-
return { state: WaiterState.SUCCESS, reason };
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
return { state: WaiterState.RETRY, reason };
|
|
37
|
-
};
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
* @deprecated Use waitUntilTargetDeregistered instead. waitForTargetDeregistered does not throw error in non-success cases.
|
|
41
|
-
*/
|
|
42
|
-
export const waitForTargetDeregistered = async (
|
|
43
|
-
params: WaiterConfiguration<ElasticLoadBalancingV2Client>,
|
|
44
|
-
input: DescribeTargetHealthCommandInput
|
|
45
|
-
): Promise<WaiterResult> => {
|
|
46
|
-
const serviceDefaults = { minDelay: 15, maxDelay: 120 };
|
|
47
|
-
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
48
|
-
};
|
|
49
|
-
/**
|
|
50
|
-
*
|
|
51
|
-
* @param params - Waiter configuration options.
|
|
52
|
-
* @param input - The input to DescribeTargetHealthCommand for polling.
|
|
53
|
-
*/
|
|
54
|
-
export const waitUntilTargetDeregistered = async (
|
|
55
|
-
params: WaiterConfiguration<ElasticLoadBalancingV2Client>,
|
|
56
|
-
input: DescribeTargetHealthCommandInput
|
|
57
|
-
): Promise<WaiterResult> => {
|
|
58
|
-
const serviceDefaults = { minDelay: 15, maxDelay: 120 };
|
|
59
|
-
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
60
|
-
return checkExceptions(result);
|
|
61
|
-
};
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { checkExceptions, createWaiter, WaiterConfiguration, WaiterResult, WaiterState } from "@aws-sdk/util-waiter";
|
|
2
|
-
|
|
3
|
-
import { DescribeTargetHealthCommand, DescribeTargetHealthCommandInput } from "../commands/DescribeTargetHealthCommand";
|
|
4
|
-
import { ElasticLoadBalancingV2Client } from "../ElasticLoadBalancingV2Client";
|
|
5
|
-
|
|
6
|
-
const checkState = async (
|
|
7
|
-
client: ElasticLoadBalancingV2Client,
|
|
8
|
-
input: DescribeTargetHealthCommandInput
|
|
9
|
-
): Promise<WaiterResult> => {
|
|
10
|
-
let reason;
|
|
11
|
-
try {
|
|
12
|
-
const result: any = await client.send(new DescribeTargetHealthCommand(input));
|
|
13
|
-
reason = result;
|
|
14
|
-
try {
|
|
15
|
-
const returnComparator = () => {
|
|
16
|
-
const flat_1: any[] = [].concat(...result.TargetHealthDescriptions);
|
|
17
|
-
const projection_3 = flat_1.map((element_2: any) => {
|
|
18
|
-
return element_2.TargetHealth.State;
|
|
19
|
-
});
|
|
20
|
-
return projection_3;
|
|
21
|
-
};
|
|
22
|
-
let allStringEq_5 = returnComparator().length > 0;
|
|
23
|
-
for (const element_4 of returnComparator()) {
|
|
24
|
-
allStringEq_5 = allStringEq_5 && element_4 == "healthy";
|
|
25
|
-
}
|
|
26
|
-
if (allStringEq_5) {
|
|
27
|
-
return { state: WaiterState.SUCCESS, reason };
|
|
28
|
-
}
|
|
29
|
-
} catch (e) {}
|
|
30
|
-
} catch (exception) {
|
|
31
|
-
reason = exception;
|
|
32
|
-
if (exception.name && exception.name == "InvalidInstance") {
|
|
33
|
-
return { state: WaiterState.RETRY, reason };
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
return { state: WaiterState.RETRY, reason };
|
|
37
|
-
};
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
* @deprecated Use waitUntilTargetInService instead. waitForTargetInService does not throw error in non-success cases.
|
|
41
|
-
*/
|
|
42
|
-
export const waitForTargetInService = async (
|
|
43
|
-
params: WaiterConfiguration<ElasticLoadBalancingV2Client>,
|
|
44
|
-
input: DescribeTargetHealthCommandInput
|
|
45
|
-
): Promise<WaiterResult> => {
|
|
46
|
-
const serviceDefaults = { minDelay: 15, maxDelay: 120 };
|
|
47
|
-
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
48
|
-
};
|
|
49
|
-
/**
|
|
50
|
-
*
|
|
51
|
-
* @param params - Waiter configuration options.
|
|
52
|
-
* @param input - The input to DescribeTargetHealthCommand for polling.
|
|
53
|
-
*/
|
|
54
|
-
export const waitUntilTargetInService = async (
|
|
55
|
-
params: WaiterConfiguration<ElasticLoadBalancingV2Client>,
|
|
56
|
-
input: DescribeTargetHealthCommandInput
|
|
57
|
-
): Promise<WaiterResult> => {
|
|
58
|
-
const serviceDefaults = { minDelay: 15, maxDelay: 120 };
|
|
59
|
-
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
60
|
-
return checkExceptions(result);
|
|
61
|
-
};
|
package/tsconfig.es.json
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "./tsconfig",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"target": "es5",
|
|
5
|
-
"module": "esnext",
|
|
6
|
-
"moduleResolution": "node",
|
|
7
|
-
"lib": ["dom", "es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"],
|
|
8
|
-
"outDir": "dist-es"
|
|
9
|
-
}
|
|
10
|
-
}
|
package/tsconfig.json
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"alwaysStrict": true,
|
|
4
|
-
"target": "ES2018",
|
|
5
|
-
"module": "commonjs",
|
|
6
|
-
"strict": true,
|
|
7
|
-
"sourceMap": true,
|
|
8
|
-
"downlevelIteration": true,
|
|
9
|
-
"importHelpers": true,
|
|
10
|
-
"noEmitHelpers": true,
|
|
11
|
-
"incremental": true,
|
|
12
|
-
"resolveJsonModule": true,
|
|
13
|
-
"esModuleInterop": true,
|
|
14
|
-
"rootDir": "src",
|
|
15
|
-
"outDir": "dist-cjs",
|
|
16
|
-
"removeComments": true
|
|
17
|
-
},
|
|
18
|
-
"typedocOptions": {
|
|
19
|
-
"exclude": ["**/node_modules/**", "**/*.spec.ts", "**/protocols/*.ts", "**/e2e/*.ts", "**/endpoints.ts"],
|
|
20
|
-
"excludeNotExported": true,
|
|
21
|
-
"excludePrivate": true,
|
|
22
|
-
"hideGenerator": true,
|
|
23
|
-
"ignoreCompilerErrors": true,
|
|
24
|
-
"includeDeclarations": true,
|
|
25
|
-
"stripInternal": true,
|
|
26
|
-
"readme": "README.md",
|
|
27
|
-
"mode": "file",
|
|
28
|
-
"out": "docs",
|
|
29
|
-
"theme": "minimal",
|
|
30
|
-
"plugin": ["@aws-sdk/client-documentation-generator"]
|
|
31
|
-
},
|
|
32
|
-
"exclude": ["test/**/*"]
|
|
33
|
-
}
|