Skip to content

Commit a7579e4

Browse files
author
awstools
committed
feat(client-iam): Added CreateDelegationRequest API, which is not available for general use at this time.
1 parent 41552ed commit a7579e4

File tree

11 files changed

+1165
-375
lines changed

11 files changed

+1165
-375
lines changed

clients/client-iam/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,14 @@ CreateAccountAlias
279279

280280
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/iam/command/CreateAccountAliasCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-iam/Interface/CreateAccountAliasCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-iam/Interface/CreateAccountAliasCommandOutput/)
281281

282+
</details>
283+
<details>
284+
<summary>
285+
CreateDelegationRequest
286+
</summary>
287+
288+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/iam/command/CreateDelegationRequestCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-iam/Interface/CreateDelegationRequestCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-iam/Interface/CreateDelegationRequestCommandOutput/)
289+
282290
</details>
283291
<details>
284292
<summary>

clients/client-iam/src/IAM.ts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ import {
4747
CreateAccountAliasCommandInput,
4848
CreateAccountAliasCommandOutput,
4949
} from "./commands/CreateAccountAliasCommand";
50+
import {
51+
CreateDelegationRequestCommand,
52+
CreateDelegationRequestCommandInput,
53+
CreateDelegationRequestCommandOutput,
54+
} from "./commands/CreateDelegationRequestCommand";
5055
import { CreateGroupCommand, CreateGroupCommandInput, CreateGroupCommandOutput } from "./commands/CreateGroupCommand";
5156
import {
5257
CreateInstanceProfileCommand,
@@ -746,6 +751,7 @@ const commands = {
746751
ChangePasswordCommand,
747752
CreateAccessKeyCommand,
748753
CreateAccountAliasCommand,
754+
CreateDelegationRequestCommand,
749755
CreateGroupCommand,
750756
CreateInstanceProfileCommand,
751757
CreateLoginProfileCommand,
@@ -1049,6 +1055,23 @@ export interface IAM {
10491055
cb: (err: any, data?: CreateAccountAliasCommandOutput) => void
10501056
): void;
10511057

1058+
/**
1059+
* @see {@link CreateDelegationRequestCommand}
1060+
*/
1061+
createDelegationRequest(
1062+
args: CreateDelegationRequestCommandInput,
1063+
options?: __HttpHandlerOptions
1064+
): Promise<CreateDelegationRequestCommandOutput>;
1065+
createDelegationRequest(
1066+
args: CreateDelegationRequestCommandInput,
1067+
cb: (err: any, data?: CreateDelegationRequestCommandOutput) => void
1068+
): void;
1069+
createDelegationRequest(
1070+
args: CreateDelegationRequestCommandInput,
1071+
options: __HttpHandlerOptions,
1072+
cb: (err: any, data?: CreateDelegationRequestCommandOutput) => void
1073+
): void;
1074+
10521075
/**
10531076
* @see {@link CreateGroupCommand}
10541077
*/

clients/client-iam/src/IAMClient.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ import { AttachUserPolicyCommandInput, AttachUserPolicyCommandOutput } from "./c
6868
import { ChangePasswordCommandInput, ChangePasswordCommandOutput } from "./commands/ChangePasswordCommand";
6969
import { CreateAccessKeyCommandInput, CreateAccessKeyCommandOutput } from "./commands/CreateAccessKeyCommand";
7070
import { CreateAccountAliasCommandInput, CreateAccountAliasCommandOutput } from "./commands/CreateAccountAliasCommand";
71+
import {
72+
CreateDelegationRequestCommandInput,
73+
CreateDelegationRequestCommandOutput,
74+
} from "./commands/CreateDelegationRequestCommand";
7175
import { CreateGroupCommandInput, CreateGroupCommandOutput } from "./commands/CreateGroupCommand";
7276
import {
7377
CreateInstanceProfileCommandInput,
@@ -481,6 +485,7 @@ export type ServiceInputTypes =
481485
| ChangePasswordCommandInput
482486
| CreateAccessKeyCommandInput
483487
| CreateAccountAliasCommandInput
488+
| CreateDelegationRequestCommandInput
484489
| CreateGroupCommandInput
485490
| CreateInstanceProfileCommandInput
486491
| CreateLoginProfileCommandInput
@@ -650,6 +655,7 @@ export type ServiceOutputTypes =
650655
| ChangePasswordCommandOutput
651656
| CreateAccessKeyCommandOutput
652657
| CreateAccountAliasCommandOutput
658+
| CreateDelegationRequestCommandOutput
653659
| CreateGroupCommandOutput
654660
| CreateInstanceProfileCommandOutput
655661
| CreateLoginProfileCommandOutput
Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
1+
// smithy-typescript generated code
2+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
3+
import { getSerdePlugin } from "@smithy/middleware-serde";
4+
import { Command as $Command } from "@smithy/smithy-client";
5+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
6+
7+
import { commonParams } from "../endpoint/EndpointParameters";
8+
import { IAMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IAMClient";
9+
import { CreateDelegationRequestRequest, CreateDelegationRequestResponse } from "../models/models_0";
10+
import { de_CreateDelegationRequestCommand, se_CreateDelegationRequestCommand } from "../protocols/Aws_query";
11+
12+
/**
13+
* @public
14+
*/
15+
export type { __MetadataBearer };
16+
export { $Command };
17+
/**
18+
* @public
19+
*
20+
* The input for {@link CreateDelegationRequestCommand}.
21+
*/
22+
export interface CreateDelegationRequestCommandInput extends CreateDelegationRequestRequest {}
23+
/**
24+
* @public
25+
*
26+
* The output of {@link CreateDelegationRequestCommand}.
27+
*/
28+
export interface CreateDelegationRequestCommandOutput extends CreateDelegationRequestResponse, __MetadataBearer {}
29+
30+
/**
31+
* <p>This API is currently unavailable for general use.</p>
32+
* @example
33+
* Use a bare-bones client and the command you need to make an API call.
34+
* ```javascript
35+
* import { IAMClient, CreateDelegationRequestCommand } from "@aws-sdk/client-iam"; // ES Modules import
36+
* // const { IAMClient, CreateDelegationRequestCommand } = require("@aws-sdk/client-iam"); // CommonJS import
37+
* // import type { IAMClientConfig } from "@aws-sdk/client-iam";
38+
* const config = {}; // type is IAMClientConfig
39+
* const client = new IAMClient(config);
40+
* const input = { // CreateDelegationRequestRequest
41+
* OwnerAccountId: "STRING_VALUE",
42+
* Description: "STRING_VALUE", // required
43+
* Permissions: { // DelegationPermission
44+
* PolicyTemplateArn: "STRING_VALUE",
45+
* Parameters: [ // policyParameterListType
46+
* { // PolicyParameter
47+
* Name: "STRING_VALUE",
48+
* Values: [ // policyParameterValuesListType
49+
* "STRING_VALUE",
50+
* ],
51+
* Type: "string" || "stringList",
52+
* },
53+
* ],
54+
* },
55+
* RequestMessage: "STRING_VALUE",
56+
* RequestorWorkflowId: "STRING_VALUE", // required
57+
* RedirectUrl: "STRING_VALUE",
58+
* NotificationChannel: "STRING_VALUE", // required
59+
* SessionDuration: Number("int"), // required
60+
* OnlySendByOwner: true || false,
61+
* };
62+
* const command = new CreateDelegationRequestCommand(input);
63+
* const response = await client.send(command);
64+
* // { // CreateDelegationRequestResponse
65+
* // ConsoleDeepLink: "STRING_VALUE",
66+
* // DelegationRequestId: "STRING_VALUE",
67+
* // };
68+
*
69+
* ```
70+
*
71+
* @param CreateDelegationRequestCommandInput - {@link CreateDelegationRequestCommandInput}
72+
* @returns {@link CreateDelegationRequestCommandOutput}
73+
* @see {@link CreateDelegationRequestCommandInput} for command's `input` shape.
74+
* @see {@link CreateDelegationRequestCommandOutput} for command's `response` shape.
75+
* @see {@link IAMClientResolvedConfig | config} for IAMClient's `config` shape.
76+
*
77+
* @throws {@link ConcurrentModificationException} (client fault)
78+
* <p>The request was rejected because multiple requests to change this object were submitted
79+
* simultaneously. Wait a few minutes and submit your request again.</p>
80+
*
81+
* @throws {@link EntityAlreadyExistsException} (client fault)
82+
* <p>The request was rejected because it attempted to create a resource that already
83+
* exists.</p>
84+
*
85+
* @throws {@link InvalidInputException} (client fault)
86+
* <p>The request was rejected because an invalid or out-of-range value was supplied for an
87+
* input parameter.</p>
88+
*
89+
* @throws {@link LimitExceededException} (client fault)
90+
* <p>The request was rejected because it attempted to create resources beyond the current
91+
* Amazon Web Services account limits. The error message describes the limit exceeded.</p>
92+
*
93+
* @throws {@link ServiceFailureException} (server fault)
94+
* <p>The request processing has failed because of an unknown error, exception or
95+
* failure.</p>
96+
*
97+
* @throws {@link IAMServiceException}
98+
* <p>Base exception class for all service exceptions from IAM service.</p>
99+
*
100+
*
101+
* @public
102+
*/
103+
export class CreateDelegationRequestCommand extends $Command
104+
.classBuilder<
105+
CreateDelegationRequestCommandInput,
106+
CreateDelegationRequestCommandOutput,
107+
IAMClientResolvedConfig,
108+
ServiceInputTypes,
109+
ServiceOutputTypes
110+
>()
111+
.ep(commonParams)
112+
.m(function (this: any, Command: any, cs: any, config: IAMClientResolvedConfig, o: any) {
113+
return [
114+
getSerdePlugin(config, this.serialize, this.deserialize),
115+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
116+
];
117+
})
118+
.s("AWSIdentityManagementV20100508", "CreateDelegationRequest", {})
119+
.n("IAMClient", "CreateDelegationRequestCommand")
120+
.f(void 0, void 0)
121+
.ser(se_CreateDelegationRequestCommand)
122+
.de(de_CreateDelegationRequestCommand)
123+
.build() {
124+
/** @internal type navigation helper, not in runtime. */
125+
protected declare static __types: {
126+
api: {
127+
input: CreateDelegationRequestRequest;
128+
output: CreateDelegationRequestResponse;
129+
};
130+
sdk: {
131+
input: CreateDelegationRequestCommandInput;
132+
output: CreateDelegationRequestCommandOutput;
133+
};
134+
};
135+
}

clients/client-iam/src/commands/SetSecurityTokenServicePreferencesCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
66

77
import { commonParams } from "../endpoint/EndpointParameters";
88
import { IAMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IAMClient";
9-
import { SetSecurityTokenServicePreferencesRequest } from "../models/models_0";
9+
import { SetSecurityTokenServicePreferencesRequest } from "../models/models_1";
1010
import {
1111
de_SetSecurityTokenServicePreferencesCommand,
1212
se_SetSecurityTokenServicePreferencesCommand,

clients/client-iam/src/commands/SimulateCustomPolicyCommand.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
66

77
import { commonParams } from "../endpoint/EndpointParameters";
88
import { IAMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IAMClient";
9-
import { SimulateCustomPolicyRequest } from "../models/models_0";
10-
import { SimulatePolicyResponse } from "../models/models_1";
9+
import { SimulateCustomPolicyRequest, SimulatePolicyResponse } from "../models/models_1";
1110
import { de_SimulateCustomPolicyCommand, se_SimulateCustomPolicyCommand } from "../protocols/Aws_query";
1211

1312
/**

clients/client-iam/src/commands/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export * from "./AttachUserPolicyCommand";
88
export * from "./ChangePasswordCommand";
99
export * from "./CreateAccessKeyCommand";
1010
export * from "./CreateAccountAliasCommand";
11+
export * from "./CreateDelegationRequestCommand";
1112
export * from "./CreateGroupCommand";
1213
export * from "./CreateInstanceProfileCommand";
1314
export * from "./CreateLoginProfileCommand";

0 commit comments

Comments
 (0)