@cdklabs/cdk-ecs-codedeploy 0.0.225 → 0.0.227
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 +3 -3
- package/.jsii.tabl.json +1 -1
- package/.projenrc.ts +1 -0
- package/lib/api-canary/index.js +1 -1
- package/lib/ecs-appspec/index.js +1 -1
- package/lib/ecs-deployment/index.js +1 -1
- package/lib/ecs-patterns/application-load-balanced-codedeployed-fargate-service.js +1 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/pagination/ListApplicationRevisionsPaginator.js +2 -23
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/pagination/ListApplicationsPaginator.js +2 -23
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/pagination/ListDeploymentConfigsPaginator.js +2 -23
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/pagination/ListDeploymentGroupsPaginator.js +2 -23
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/pagination/ListDeploymentInstancesPaginator.js +2 -23
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/pagination/ListDeploymentsPaginator.js +2 -23
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/pagination/ListApplicationRevisionsPaginator.js +2 -22
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/pagination/ListApplicationsPaginator.js +2 -22
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/pagination/ListDeploymentConfigsPaginator.js +2 -22
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/pagination/ListDeploymentGroupsPaginator.js +2 -22
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/pagination/ListDeploymentInstancesPaginator.js +2 -22
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/pagination/ListDeploymentsPaginator.js +2 -22
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/pagination/ListApplicationRevisionsPaginator.d.ts +1 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/pagination/ListApplicationsPaginator.d.ts +1 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/pagination/ListDeploymentConfigsPaginator.d.ts +1 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/pagination/ListDeploymentGroupsPaginator.d.ts +1 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/pagination/ListDeploymentInstancesPaginator.d.ts +1 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/pagination/ListDeploymentsPaginator.d.ts +1 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/pagination/ListApplicationRevisionsPaginator.d.ts +3 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/pagination/ListApplicationsPaginator.d.ts +3 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/pagination/ListDeploymentConfigsPaginator.d.ts +3 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/pagination/ListDeploymentGroupsPaginator.d.ts +3 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/pagination/ListDeploymentInstancesPaginator.d.ts +3 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/pagination/ListDeploymentsPaginator.d.ts +3 -3
- package/node_modules/@aws-sdk/client-codedeploy/package.json +7 -6
- package/node_modules/@aws-sdk/client-sso/dist-cjs/pagination/ListAccountRolesPaginator.js +2 -24
- package/node_modules/@aws-sdk/client-sso/dist-cjs/pagination/ListAccountsPaginator.js +2 -24
- package/node_modules/@aws-sdk/client-sso/dist-cjs/protocols/Aws_restJson1.js +38 -59
- package/node_modules/@aws-sdk/client-sso/dist-es/pagination/ListAccountRolesPaginator.js +2 -23
- package/node_modules/@aws-sdk/client-sso/dist-es/pagination/ListAccountsPaginator.js +2 -23
- package/node_modules/@aws-sdk/client-sso/dist-es/protocols/Aws_restJson1.js +38 -59
- package/node_modules/@aws-sdk/client-sso/dist-types/pagination/ListAccountRolesPaginator.d.ts +1 -1
- package/node_modules/@aws-sdk/client-sso/dist-types/pagination/ListAccountsPaginator.d.ts +1 -1
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/pagination/ListAccountRolesPaginator.d.ts +3 -3
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/pagination/ListAccountsPaginator.d.ts +3 -3
- package/node_modules/@aws-sdk/client-sso/package.json +5 -4
- package/node_modules/@aws-sdk/client-sts/dist-cjs/protocols/Aws_query.js +250 -194
- package/node_modules/@aws-sdk/client-sts/dist-es/protocols/Aws_query.js +250 -194
- package/node_modules/@aws-sdk/client-sts/package.json +6 -6
- package/node_modules/@aws-sdk/core/CHANGELOG.md +11 -0
- package/node_modules/@aws-sdk/core/dist-cjs/httpAuthSchemes/index.js +1 -1
- package/node_modules/@aws-sdk/core/dist-es/httpAuthSchemes/index.js +1 -1
- package/node_modules/@aws-sdk/core/dist-types/httpAuthSchemes/index.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/httpAuthSchemes/index.d.ts +1 -1
- package/node_modules/@aws-sdk/core/package.json +2 -2
- package/node_modules/@aws-sdk/core/src/httpAuthSchemes/index.ts +1 -1
- package/node_modules/@aws-sdk/core/tsconfig.cjs.tsbuildinfo +1 -1
- package/node_modules/@aws-sdk/core/tsconfig.es.tsbuildinfo +1 -1
- package/node_modules/@aws-sdk/core/tsconfig.types.tsbuildinfo +1 -1
- 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/package.json +3 -3
- package/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json +3 -0
- package/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partitions.json +3 -0
- package/node_modules/@aws-sdk/util-endpoints/package.json +1 -1
- package/package.json +5 -5
- package/node_modules/@aws-sdk/util-utf8-browser/dist-cjs/index.js +0 -9
- package/node_modules/@aws-sdk/util-utf8-browser/dist-cjs/pureJs.js +0 -47
- package/node_modules/@aws-sdk/util-utf8-browser/dist-cjs/whatwgEncodingApi.js +0 -11
- package/node_modules/@aws-sdk/util-utf8-browser/dist-es/index.js +0 -4
- package/node_modules/@aws-sdk/util-utf8-browser/dist-es/pureJs.js +0 -42
- package/node_modules/@aws-sdk/util-utf8-browser/dist-es/whatwgEncodingApi.js +0 -6
- package/node_modules/@aws-sdk/util-utf8-browser/dist-types/index.d.ts +0 -2
- package/node_modules/@aws-sdk/util-utf8-browser/dist-types/pureJs.d.ts +0 -17
- package/node_modules/@aws-sdk/util-utf8-browser/dist-types/ts3.4/index.d.ts +0 -2
- package/node_modules/@aws-sdk/util-utf8-browser/dist-types/ts3.4/pureJs.d.ts +0 -2
- package/node_modules/@aws-sdk/util-utf8-browser/dist-types/ts3.4/whatwgEncodingApi.d.ts +0 -2
- package/node_modules/@aws-sdk/util-utf8-browser/dist-types/whatwgEncodingApi.d.ts +0 -2
- /package/node_modules/@aws-sdk/core/dist-cjs/httpAuthSchemes/{aws-sdk → aws_sdk}/AWSSDKSigV4Signer.js +0 -0
- /package/node_modules/@aws-sdk/core/dist-cjs/httpAuthSchemes/{aws-sdk → aws_sdk}/index.js +0 -0
- /package/node_modules/@aws-sdk/core/dist-cjs/httpAuthSchemes/{aws-sdk → aws_sdk}/resolveAWSSDKSigV4Config.js +0 -0
- /package/node_modules/@aws-sdk/core/dist-cjs/httpAuthSchemes/{aws-sdk → aws_sdk}/throwAWSSDKSigningPropertyError.js +0 -0
- /package/node_modules/@aws-sdk/core/dist-es/httpAuthSchemes/{aws-sdk → aws_sdk}/AWSSDKSigV4Signer.js +0 -0
- /package/node_modules/@aws-sdk/core/dist-es/httpAuthSchemes/{aws-sdk → aws_sdk}/index.js +0 -0
- /package/node_modules/@aws-sdk/core/dist-es/httpAuthSchemes/{aws-sdk → aws_sdk}/resolveAWSSDKSigV4Config.js +0 -0
- /package/node_modules/@aws-sdk/core/dist-es/httpAuthSchemes/{aws-sdk → aws_sdk}/throwAWSSDKSigningPropertyError.js +0 -0
- /package/node_modules/@aws-sdk/core/dist-types/httpAuthSchemes/{aws-sdk → aws_sdk}/AWSSDKSigV4Signer.d.ts +0 -0
- /package/node_modules/@aws-sdk/core/dist-types/httpAuthSchemes/{aws-sdk → aws_sdk}/index.d.ts +0 -0
- /package/node_modules/@aws-sdk/core/dist-types/httpAuthSchemes/{aws-sdk → aws_sdk}/resolveAWSSDKSigV4Config.d.ts +0 -0
- /package/node_modules/@aws-sdk/core/dist-types/httpAuthSchemes/{aws-sdk → aws_sdk}/throwAWSSDKSigningPropertyError.d.ts +0 -0
- /package/node_modules/@aws-sdk/core/dist-types/ts3.4/httpAuthSchemes/{aws-sdk → aws_sdk}/AWSSDKSigV4Signer.d.ts +0 -0
- /package/node_modules/@aws-sdk/core/dist-types/ts3.4/httpAuthSchemes/{aws-sdk → aws_sdk}/index.d.ts +0 -0
- /package/node_modules/@aws-sdk/core/dist-types/ts3.4/httpAuthSchemes/{aws-sdk → aws_sdk}/resolveAWSSDKSigV4Config.d.ts +0 -0
- /package/node_modules/@aws-sdk/core/dist-types/ts3.4/httpAuthSchemes/{aws-sdk → aws_sdk}/throwAWSSDKSigningPropertyError.d.ts +0 -0
- /package/node_modules/@aws-sdk/core/src/httpAuthSchemes/{aws-sdk → aws_sdk}/AWSSDKSigV4Signer.ts +0 -0
- /package/node_modules/@aws-sdk/core/src/httpAuthSchemes/{aws-sdk → aws_sdk}/index.ts +0 -0
- /package/node_modules/@aws-sdk/core/src/httpAuthSchemes/{aws-sdk → aws_sdk}/resolveAWSSDKSigV4Config.ts +0 -0
- /package/node_modules/@aws-sdk/core/src/httpAuthSchemes/{aws-sdk → aws_sdk}/throwAWSSDKSigningPropertyError.ts +0 -0
|
@@ -1,24 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { CodeDeployClient } from "../CodeDeployClient";
|
|
2
3
|
import { ListDeploymentInstancesCommand, } from "../commands/ListDeploymentInstancesCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListDeploymentInstancesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListDeploymentInstances(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
if (config.client instanceof CodeDeployClient) {
|
|
13
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
14
|
-
}
|
|
15
|
-
else {
|
|
16
|
-
throw new Error("Invalid client, expected CodeDeploy | CodeDeployClient");
|
|
17
|
-
}
|
|
18
|
-
yield page;
|
|
19
|
-
const prevToken = token;
|
|
20
|
-
token = page.nextToken;
|
|
21
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
22
|
-
}
|
|
23
|
-
return undefined;
|
|
24
|
-
}
|
|
4
|
+
export const paginateListDeploymentInstances = createPaginator(CodeDeployClient, ListDeploymentInstancesCommand, "nextToken", "nextToken", "");
|
package/node_modules/@aws-sdk/client-codedeploy/dist-es/pagination/ListDeploymentsPaginator.js
CHANGED
|
@@ -1,24 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { CodeDeployClient } from "../CodeDeployClient";
|
|
2
3
|
import { ListDeploymentsCommand, } from "../commands/ListDeploymentsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListDeploymentsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListDeployments(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
if (config.client instanceof CodeDeployClient) {
|
|
13
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
14
|
-
}
|
|
15
|
-
else {
|
|
16
|
-
throw new Error("Invalid client, expected CodeDeploy | CodeDeployClient");
|
|
17
|
-
}
|
|
18
|
-
yield page;
|
|
19
|
-
const prevToken = token;
|
|
20
|
-
token = page.nextToken;
|
|
21
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
22
|
-
}
|
|
23
|
-
return undefined;
|
|
24
|
-
}
|
|
4
|
+
export const paginateListDeployments = createPaginator(CodeDeployClient, ListDeploymentsCommand, "nextToken", "nextToken", "");
|
|
@@ -4,4 +4,4 @@ import { CodeDeployPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListApplicationRevisions: (config: CodeDeployPaginationConfiguration, input: ListApplicationRevisionsCommandInput, ...rest: any[]) => Paginator<ListApplicationRevisionsCommandOutput>;
|
package/node_modules/@aws-sdk/client-codedeploy/dist-types/pagination/ListApplicationsPaginator.d.ts
CHANGED
|
@@ -4,4 +4,4 @@ import { CodeDeployPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListApplications: (config: CodeDeployPaginationConfiguration, input: ListApplicationsCommandInput, ...rest: any[]) => Paginator<ListApplicationsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { CodeDeployPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListDeploymentConfigs: (config: CodeDeployPaginationConfiguration, input: ListDeploymentConfigsCommandInput, ...rest: any[]) => Paginator<ListDeploymentConfigsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { CodeDeployPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListDeploymentGroups: (config: CodeDeployPaginationConfiguration, input: ListDeploymentGroupsCommandInput, ...rest: any[]) => Paginator<ListDeploymentGroupsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { CodeDeployPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListDeploymentInstances: (config: CodeDeployPaginationConfiguration, input: ListDeploymentInstancesCommandInput, ...rest: any[]) => Paginator<ListDeploymentInstancesCommandOutput>;
|
package/node_modules/@aws-sdk/client-codedeploy/dist-types/pagination/ListDeploymentsPaginator.d.ts
CHANGED
|
@@ -4,4 +4,4 @@ import { CodeDeployPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListDeployments: (config: CodeDeployPaginationConfiguration, input: ListDeploymentsCommandInput, ...rest: any[]) => Paginator<ListDeploymentsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListApplicationRevisionsCommandOutput,
|
|
5
5
|
} from "../commands/ListApplicationRevisionsCommand";
|
|
6
6
|
import { CodeDeployPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListApplicationRevisions: (
|
|
8
8
|
config: CodeDeployPaginationConfiguration,
|
|
9
9
|
input: ListApplicationRevisionsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListApplicationRevisionsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListApplicationsCommandOutput,
|
|
5
5
|
} from "../commands/ListApplicationsCommand";
|
|
6
6
|
import { CodeDeployPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListApplications: (
|
|
8
8
|
config: CodeDeployPaginationConfiguration,
|
|
9
9
|
input: ListApplicationsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListApplicationsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListDeploymentConfigsCommandOutput,
|
|
5
5
|
} from "../commands/ListDeploymentConfigsCommand";
|
|
6
6
|
import { CodeDeployPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListDeploymentConfigs: (
|
|
8
8
|
config: CodeDeployPaginationConfiguration,
|
|
9
9
|
input: ListDeploymentConfigsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListDeploymentConfigsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListDeploymentGroupsCommandOutput,
|
|
5
5
|
} from "../commands/ListDeploymentGroupsCommand";
|
|
6
6
|
import { CodeDeployPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListDeploymentGroups: (
|
|
8
8
|
config: CodeDeployPaginationConfiguration,
|
|
9
9
|
input: ListDeploymentGroupsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListDeploymentGroupsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListDeploymentInstancesCommandOutput,
|
|
5
5
|
} from "../commands/ListDeploymentInstancesCommand";
|
|
6
6
|
import { CodeDeployPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListDeploymentInstances: (
|
|
8
8
|
config: CodeDeployPaginationConfiguration,
|
|
9
9
|
input: ListDeploymentInstancesCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListDeploymentInstancesCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListDeploymentsCommandOutput,
|
|
5
5
|
} from "../commands/ListDeploymentsCommand";
|
|
6
6
|
import { CodeDeployPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListDeployments: (
|
|
8
8
|
config: CodeDeployPaginationConfiguration,
|
|
9
9
|
input: ListDeploymentsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListDeploymentsCommandOutput>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-codedeploy",
|
|
3
3
|
"description": "AWS SDK for JavaScript Codedeploy Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.478.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -20,20 +20,21 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.478.0",
|
|
24
|
+
"@aws-sdk/core": "3.477.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.478.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.468.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.468.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.468.0",
|
|
29
29
|
"@aws-sdk/middleware-signing": "3.468.0",
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.478.0",
|
|
31
31
|
"@aws-sdk/region-config-resolver": "3.470.0",
|
|
32
32
|
"@aws-sdk/types": "3.468.0",
|
|
33
|
-
"@aws-sdk/util-endpoints": "3.
|
|
33
|
+
"@aws-sdk/util-endpoints": "3.478.0",
|
|
34
34
|
"@aws-sdk/util-user-agent-browser": "3.468.0",
|
|
35
35
|
"@aws-sdk/util-user-agent-node": "3.470.0",
|
|
36
36
|
"@smithy/config-resolver": "^2.0.21",
|
|
37
|
+
"@smithy/core": "^1.2.0",
|
|
37
38
|
"@smithy/fetch-http-handler": "^2.3.1",
|
|
38
39
|
"@smithy/hash-node": "^2.0.17",
|
|
39
40
|
"@smithy/invalid-dependency": "^2.0.15",
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListAccountRoles = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListAccountRolesCommand_1 = require("../commands/ListAccountRolesCommand");
|
|
5
6
|
const SSOClient_1 = require("../SSOClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListAccountRolesCommand_1.ListAccountRolesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListAccountRoles(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.nextToken = token;
|
|
15
|
-
input["maxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof SSOClient_1.SSOClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected SSO | SSOClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.nextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListAccountRoles = paginateListAccountRoles;
|
|
7
|
+
exports.paginateListAccountRoles = (0, core_1.createPaginator)(SSOClient_1.SSOClient, ListAccountRolesCommand_1.ListAccountRolesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListAccounts = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListAccountsCommand_1 = require("../commands/ListAccountsCommand");
|
|
5
6
|
const SSOClient_1 = require("../SSOClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListAccountsCommand_1.ListAccountsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListAccounts(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.nextToken = token;
|
|
15
|
-
input["maxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof SSOClient_1.SSOClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected SSO | SSOClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.nextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListAccounts = paginateListAccounts;
|
|
7
|
+
exports.paginateListAccounts = (0, core_1.createPaginator)(SSOClient_1.SSOClient, ListAccountsCommand_1.ListAccountsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,96 +1,65 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.de_LogoutCommand = exports.de_ListAccountsCommand = exports.de_ListAccountRolesCommand = exports.de_GetRoleCredentialsCommand = exports.se_LogoutCommand = exports.se_ListAccountsCommand = exports.se_ListAccountRolesCommand = exports.se_GetRoleCredentialsCommand = void 0;
|
|
4
|
-
const
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
5
5
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const SSOServiceException_1 = require("../models/SSOServiceException");
|
|
8
8
|
const se_GetRoleCredentialsCommand = async (input, context) => {
|
|
9
|
-
const
|
|
9
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
10
10
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
11
|
-
|
|
11
|
+
[_xasbt]: input[_aT],
|
|
12
12
|
});
|
|
13
|
-
|
|
13
|
+
b.bp("/federation/credentials");
|
|
14
14
|
const query = (0, smithy_client_1.map)({
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
[_rn]: [, (0, smithy_client_1.expectNonNull)(input[_rN], `roleName`)],
|
|
16
|
+
[_ai]: [, (0, smithy_client_1.expectNonNull)(input[_aI], `accountId`)],
|
|
17
17
|
});
|
|
18
18
|
let body;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
hostname,
|
|
22
|
-
port,
|
|
23
|
-
method: "GET",
|
|
24
|
-
headers,
|
|
25
|
-
path: resolvedPath,
|
|
26
|
-
query,
|
|
27
|
-
body,
|
|
28
|
-
});
|
|
19
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
20
|
+
return b.build();
|
|
29
21
|
};
|
|
30
22
|
exports.se_GetRoleCredentialsCommand = se_GetRoleCredentialsCommand;
|
|
31
23
|
const se_ListAccountRolesCommand = async (input, context) => {
|
|
32
|
-
const
|
|
24
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
33
25
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
34
|
-
|
|
26
|
+
[_xasbt]: input[_aT],
|
|
35
27
|
});
|
|
36
|
-
|
|
28
|
+
b.bp("/assignment/roles");
|
|
37
29
|
const query = (0, smithy_client_1.map)({
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
30
|
+
[_nt]: [, input[_nT]],
|
|
31
|
+
[_mr]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
32
|
+
[_ai]: [, (0, smithy_client_1.expectNonNull)(input[_aI], `accountId`)],
|
|
41
33
|
});
|
|
42
34
|
let body;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
hostname,
|
|
46
|
-
port,
|
|
47
|
-
method: "GET",
|
|
48
|
-
headers,
|
|
49
|
-
path: resolvedPath,
|
|
50
|
-
query,
|
|
51
|
-
body,
|
|
52
|
-
});
|
|
35
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
36
|
+
return b.build();
|
|
53
37
|
};
|
|
54
38
|
exports.se_ListAccountRolesCommand = se_ListAccountRolesCommand;
|
|
55
39
|
const se_ListAccountsCommand = async (input, context) => {
|
|
56
|
-
const
|
|
40
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
57
41
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
58
|
-
|
|
42
|
+
[_xasbt]: input[_aT],
|
|
59
43
|
});
|
|
60
|
-
|
|
44
|
+
b.bp("/assignment/accounts");
|
|
61
45
|
const query = (0, smithy_client_1.map)({
|
|
62
|
-
|
|
63
|
-
|
|
46
|
+
[_nt]: [, input[_nT]],
|
|
47
|
+
[_mr]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
64
48
|
});
|
|
65
49
|
let body;
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
hostname,
|
|
69
|
-
port,
|
|
70
|
-
method: "GET",
|
|
71
|
-
headers,
|
|
72
|
-
path: resolvedPath,
|
|
73
|
-
query,
|
|
74
|
-
body,
|
|
75
|
-
});
|
|
50
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
51
|
+
return b.build();
|
|
76
52
|
};
|
|
77
53
|
exports.se_ListAccountsCommand = se_ListAccountsCommand;
|
|
78
54
|
const se_LogoutCommand = async (input, context) => {
|
|
79
|
-
const
|
|
55
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
80
56
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
81
|
-
|
|
57
|
+
[_xasbt]: input[_aT],
|
|
82
58
|
});
|
|
83
|
-
|
|
59
|
+
b.bp("/logout");
|
|
84
60
|
let body;
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
hostname,
|
|
88
|
-
port,
|
|
89
|
-
method: "POST",
|
|
90
|
-
headers,
|
|
91
|
-
path: resolvedPath,
|
|
92
|
-
body,
|
|
93
|
-
});
|
|
61
|
+
b.m("POST").h(headers).b(body);
|
|
62
|
+
return b.build();
|
|
94
63
|
};
|
|
95
64
|
exports.se_LogoutCommand = se_LogoutCommand;
|
|
96
65
|
const de_GetRoleCredentialsCommand = async (output, context) => {
|
|
@@ -325,6 +294,16 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
325
294
|
value !== "" &&
|
|
326
295
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
327
296
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
297
|
+
const _aI = "accountId";
|
|
298
|
+
const _aT = "accessToken";
|
|
299
|
+
const _ai = "account_id";
|
|
300
|
+
const _mR = "maxResults";
|
|
301
|
+
const _mr = "max_result";
|
|
302
|
+
const _nT = "nextToken";
|
|
303
|
+
const _nt = "next_token";
|
|
304
|
+
const _rN = "roleName";
|
|
305
|
+
const _rn = "role_name";
|
|
306
|
+
const _xasbt = "x-amz-sso_bearer_token";
|
|
328
307
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
329
308
|
if (encoded.length) {
|
|
330
309
|
return JSON.parse(encoded);
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListAccountRolesCommand, } from "../commands/ListAccountRolesCommand";
|
|
2
3
|
import { SSOClient } from "../SSOClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListAccountRolesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListAccountRoles(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof SSOClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected SSO | SSOClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListAccountRoles = createPaginator(SSOClient, ListAccountRolesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListAccountsCommand, } from "../commands/ListAccountsCommand";
|
|
2
3
|
import { SSOClient } from "../SSOClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListAccountsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListAccounts(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof SSOClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected SSO | SSOClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListAccounts = createPaginator(SSOClient, ListAccountsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,90 +1,59 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { requestBuilder as rb } from "@smithy/core";
|
|
2
2
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
3
|
import { InvalidRequestException, ResourceNotFoundException, TooManyRequestsException, UnauthorizedException, } from "../models/models_0";
|
|
4
4
|
import { SSOServiceException as __BaseException } from "../models/SSOServiceException";
|
|
5
5
|
export const se_GetRoleCredentialsCommand = async (input, context) => {
|
|
6
|
-
const
|
|
6
|
+
const b = rb(input, context);
|
|
7
7
|
const headers = map({}, isSerializableHeaderValue, {
|
|
8
|
-
|
|
8
|
+
[_xasbt]: input[_aT],
|
|
9
9
|
});
|
|
10
|
-
|
|
10
|
+
b.bp("/federation/credentials");
|
|
11
11
|
const query = map({
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
[_rn]: [, __expectNonNull(input[_rN], `roleName`)],
|
|
13
|
+
[_ai]: [, __expectNonNull(input[_aI], `accountId`)],
|
|
14
14
|
});
|
|
15
15
|
let body;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
hostname,
|
|
19
|
-
port,
|
|
20
|
-
method: "GET",
|
|
21
|
-
headers,
|
|
22
|
-
path: resolvedPath,
|
|
23
|
-
query,
|
|
24
|
-
body,
|
|
25
|
-
});
|
|
16
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
17
|
+
return b.build();
|
|
26
18
|
};
|
|
27
19
|
export const se_ListAccountRolesCommand = async (input, context) => {
|
|
28
|
-
const
|
|
20
|
+
const b = rb(input, context);
|
|
29
21
|
const headers = map({}, isSerializableHeaderValue, {
|
|
30
|
-
|
|
22
|
+
[_xasbt]: input[_aT],
|
|
31
23
|
});
|
|
32
|
-
|
|
24
|
+
b.bp("/assignment/roles");
|
|
33
25
|
const query = map({
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
26
|
+
[_nt]: [, input[_nT]],
|
|
27
|
+
[_mr]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
28
|
+
[_ai]: [, __expectNonNull(input[_aI], `accountId`)],
|
|
37
29
|
});
|
|
38
30
|
let body;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
hostname,
|
|
42
|
-
port,
|
|
43
|
-
method: "GET",
|
|
44
|
-
headers,
|
|
45
|
-
path: resolvedPath,
|
|
46
|
-
query,
|
|
47
|
-
body,
|
|
48
|
-
});
|
|
31
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
32
|
+
return b.build();
|
|
49
33
|
};
|
|
50
34
|
export const se_ListAccountsCommand = async (input, context) => {
|
|
51
|
-
const
|
|
35
|
+
const b = rb(input, context);
|
|
52
36
|
const headers = map({}, isSerializableHeaderValue, {
|
|
53
|
-
|
|
37
|
+
[_xasbt]: input[_aT],
|
|
54
38
|
});
|
|
55
|
-
|
|
39
|
+
b.bp("/assignment/accounts");
|
|
56
40
|
const query = map({
|
|
57
|
-
|
|
58
|
-
|
|
41
|
+
[_nt]: [, input[_nT]],
|
|
42
|
+
[_mr]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
59
43
|
});
|
|
60
44
|
let body;
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
hostname,
|
|
64
|
-
port,
|
|
65
|
-
method: "GET",
|
|
66
|
-
headers,
|
|
67
|
-
path: resolvedPath,
|
|
68
|
-
query,
|
|
69
|
-
body,
|
|
70
|
-
});
|
|
45
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
46
|
+
return b.build();
|
|
71
47
|
};
|
|
72
48
|
export const se_LogoutCommand = async (input, context) => {
|
|
73
|
-
const
|
|
49
|
+
const b = rb(input, context);
|
|
74
50
|
const headers = map({}, isSerializableHeaderValue, {
|
|
75
|
-
|
|
51
|
+
[_xasbt]: input[_aT],
|
|
76
52
|
});
|
|
77
|
-
|
|
53
|
+
b.bp("/logout");
|
|
78
54
|
let body;
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
hostname,
|
|
82
|
-
port,
|
|
83
|
-
method: "POST",
|
|
84
|
-
headers,
|
|
85
|
-
path: resolvedPath,
|
|
86
|
-
body,
|
|
87
|
-
});
|
|
55
|
+
b.m("POST").h(headers).b(body);
|
|
56
|
+
return b.build();
|
|
88
57
|
};
|
|
89
58
|
export const de_GetRoleCredentialsCommand = async (output, context) => {
|
|
90
59
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -314,6 +283,16 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
314
283
|
value !== "" &&
|
|
315
284
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
316
285
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
286
|
+
const _aI = "accountId";
|
|
287
|
+
const _aT = "accessToken";
|
|
288
|
+
const _ai = "account_id";
|
|
289
|
+
const _mR = "maxResults";
|
|
290
|
+
const _mr = "max_result";
|
|
291
|
+
const _nT = "nextToken";
|
|
292
|
+
const _nt = "next_token";
|
|
293
|
+
const _rN = "roleName";
|
|
294
|
+
const _rn = "role_name";
|
|
295
|
+
const _xasbt = "x-amz-sso_bearer_token";
|
|
317
296
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
318
297
|
if (encoded.length) {
|
|
319
298
|
return JSON.parse(encoded);
|
package/node_modules/@aws-sdk/client-sso/dist-types/pagination/ListAccountRolesPaginator.d.ts
CHANGED
|
@@ -4,4 +4,4 @@ import { SSOPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListAccountRoles: (config: SSOPaginationConfiguration, input: ListAccountRolesCommandInput, ...rest: any[]) => Paginator<ListAccountRolesCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { SSOPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListAccounts: (config: SSOPaginationConfiguration, input: ListAccountsCommandInput, ...rest: any[]) => Paginator<ListAccountsCommandOutput>;
|