@@ -18,7 +18,7 @@ final class AssumeRoleRequest extends Input
18
18
*
19
19
* @var string|null
20
20
*/
21
- private $ RoleArn ;
21
+ private $ roleArn ;
22
22
23
23
/**
24
24
* An identifier for the assumed role session.
@@ -27,22 +27,22 @@ final class AssumeRoleRequest extends Input
27
27
*
28
28
* @var string|null
29
29
*/
30
- private $ RoleSessionName ;
30
+ private $ roleSessionName ;
31
31
32
32
/**
33
33
* The Amazon Resource Names (ARNs) of the IAM managed policies that you want to use as managed session policies. The
34
34
* policies must exist in the same account as the role.
35
35
*
36
36
* @var PolicyDescriptorType[]|null
37
37
*/
38
- private $ PolicyArns ;
38
+ private $ policyArns ;
39
39
40
40
/**
41
41
* An IAM policy in JSON format that you want to use as an inline session policy.
42
42
*
43
43
* @var string|null
44
44
*/
45
- private $ Policy ;
45
+ private $ policy ;
46
46
47
47
/**
48
48
* The duration, in seconds, of the role session. The value can range from 900 seconds (15 minutes) up to the maximum
@@ -55,7 +55,7 @@ final class AssumeRoleRequest extends Input
55
55
*
56
56
* @var int|null
57
57
*/
58
- private $ DurationSeconds ;
58
+ private $ durationSeconds ;
59
59
60
60
/**
61
61
* A list of session tags that you want to pass. Each session tag consists of a key name and an associated value. For
@@ -65,7 +65,7 @@ final class AssumeRoleRequest extends Input
65
65
*
66
66
* @var Tag[]|null
67
67
*/
68
- private $ Tags ;
68
+ private $ tags ;
69
69
70
70
/**
71
71
* A list of keys for session tags that you want to set as transitive. If you set a tag key as transitive, the
@@ -76,7 +76,7 @@ final class AssumeRoleRequest extends Input
76
76
*
77
77
* @var string[]|null
78
78
*/
79
- private $ TransitiveTagKeys ;
79
+ private $ transitiveTagKeys ;
80
80
81
81
/**
82
82
* A unique identifier that might be required when you assume a role in another account. If the administrator of the
@@ -91,7 +91,7 @@ final class AssumeRoleRequest extends Input
91
91
*
92
92
* @var string|null
93
93
*/
94
- private $ ExternalId ;
94
+ private $ externalId ;
95
95
96
96
/**
97
97
* The identification number of the MFA device that is associated with the user who is making the `AssumeRole` call.
@@ -101,7 +101,7 @@ final class AssumeRoleRequest extends Input
101
101
*
102
102
* @var string|null
103
103
*/
104
- private $ SerialNumber ;
104
+ private $ serialNumber ;
105
105
106
106
/**
107
107
* The value provided by the MFA device, if the trust policy of the role being assumed requires MFA (that is, if the
@@ -110,7 +110,7 @@ final class AssumeRoleRequest extends Input
110
110
*
111
111
* @var string|null
112
112
*/
113
- private $ TokenCode ;
113
+ private $ tokenCode ;
114
114
115
115
/**
116
116
* @param array{
@@ -129,16 +129,16 @@ final class AssumeRoleRequest extends Input
129
129
*/
130
130
public function __construct (array $ input = [])
131
131
{
132
- $ this ->RoleArn = $ input ['RoleArn ' ] ?? null ;
133
- $ this ->RoleSessionName = $ input ['RoleSessionName ' ] ?? null ;
134
- $ this ->PolicyArns = isset ($ input ['PolicyArns ' ]) ? array_map ([PolicyDescriptorType::class, 'create ' ], $ input ['PolicyArns ' ]) : null ;
135
- $ this ->Policy = $ input ['Policy ' ] ?? null ;
136
- $ this ->DurationSeconds = $ input ['DurationSeconds ' ] ?? null ;
137
- $ this ->Tags = isset ($ input ['Tags ' ]) ? array_map ([Tag::class, 'create ' ], $ input ['Tags ' ]) : null ;
138
- $ this ->TransitiveTagKeys = $ input ['TransitiveTagKeys ' ] ?? null ;
139
- $ this ->ExternalId = $ input ['ExternalId ' ] ?? null ;
140
- $ this ->SerialNumber = $ input ['SerialNumber ' ] ?? null ;
141
- $ this ->TokenCode = $ input ['TokenCode ' ] ?? null ;
132
+ $ this ->roleArn = $ input ['RoleArn ' ] ?? null ;
133
+ $ this ->roleSessionName = $ input ['RoleSessionName ' ] ?? null ;
134
+ $ this ->policyArns = isset ($ input ['PolicyArns ' ]) ? array_map ([PolicyDescriptorType::class, 'create ' ], $ input ['PolicyArns ' ]) : null ;
135
+ $ this ->policy = $ input ['Policy ' ] ?? null ;
136
+ $ this ->durationSeconds = $ input ['DurationSeconds ' ] ?? null ;
137
+ $ this ->tags = isset ($ input ['Tags ' ]) ? array_map ([Tag::class, 'create ' ], $ input ['Tags ' ]) : null ;
138
+ $ this ->transitiveTagKeys = $ input ['TransitiveTagKeys ' ] ?? null ;
139
+ $ this ->externalId = $ input ['ExternalId ' ] ?? null ;
140
+ $ this ->serialNumber = $ input ['SerialNumber ' ] ?? null ;
141
+ $ this ->tokenCode = $ input ['TokenCode ' ] ?? null ;
142
142
parent ::__construct ($ input );
143
143
}
144
144
@@ -149,61 +149,61 @@ public static function create($input): self
149
149
150
150
public function getDurationSeconds (): ?int
151
151
{
152
- return $ this ->DurationSeconds ;
152
+ return $ this ->durationSeconds ;
153
153
}
154
154
155
155
public function getExternalId (): ?string
156
156
{
157
- return $ this ->ExternalId ;
157
+ return $ this ->externalId ;
158
158
}
159
159
160
160
public function getPolicy (): ?string
161
161
{
162
- return $ this ->Policy ;
162
+ return $ this ->policy ;
163
163
}
164
164
165
165
/**
166
166
* @return PolicyDescriptorType[]
167
167
*/
168
168
public function getPolicyArns (): array
169
169
{
170
- return $ this ->PolicyArns ?? [];
170
+ return $ this ->policyArns ?? [];
171
171
}
172
172
173
173
public function getRoleArn (): ?string
174
174
{
175
- return $ this ->RoleArn ;
175
+ return $ this ->roleArn ;
176
176
}
177
177
178
178
public function getRoleSessionName (): ?string
179
179
{
180
- return $ this ->RoleSessionName ;
180
+ return $ this ->roleSessionName ;
181
181
}
182
182
183
183
public function getSerialNumber (): ?string
184
184
{
185
- return $ this ->SerialNumber ;
185
+ return $ this ->serialNumber ;
186
186
}
187
187
188
188
/**
189
189
* @return Tag[]
190
190
*/
191
191
public function getTags (): array
192
192
{
193
- return $ this ->Tags ?? [];
193
+ return $ this ->tags ?? [];
194
194
}
195
195
196
196
public function getTokenCode (): ?string
197
197
{
198
- return $ this ->TokenCode ;
198
+ return $ this ->tokenCode ;
199
199
}
200
200
201
201
/**
202
202
* @return string[]
203
203
*/
204
204
public function getTransitiveTagKeys (): array
205
205
{
206
- return $ this ->TransitiveTagKeys ?? [];
206
+ return $ this ->transitiveTagKeys ?? [];
207
207
}
208
208
209
209
/**
@@ -229,21 +229,21 @@ public function request(): Request
229
229
230
230
public function setDurationSeconds (?int $ value ): self
231
231
{
232
- $ this ->DurationSeconds = $ value ;
232
+ $ this ->durationSeconds = $ value ;
233
233
234
234
return $ this ;
235
235
}
236
236
237
237
public function setExternalId (?string $ value ): self
238
238
{
239
- $ this ->ExternalId = $ value ;
239
+ $ this ->externalId = $ value ;
240
240
241
241
return $ this ;
242
242
}
243
243
244
244
public function setPolicy (?string $ value ): self
245
245
{
246
- $ this ->Policy = $ value ;
246
+ $ this ->policy = $ value ;
247
247
248
248
return $ this ;
249
249
}
@@ -253,28 +253,28 @@ public function setPolicy(?string $value): self
253
253
*/
254
254
public function setPolicyArns (array $ value ): self
255
255
{
256
- $ this ->PolicyArns = $ value ;
256
+ $ this ->policyArns = $ value ;
257
257
258
258
return $ this ;
259
259
}
260
260
261
261
public function setRoleArn (?string $ value ): self
262
262
{
263
- $ this ->RoleArn = $ value ;
263
+ $ this ->roleArn = $ value ;
264
264
265
265
return $ this ;
266
266
}
267
267
268
268
public function setRoleSessionName (?string $ value ): self
269
269
{
270
- $ this ->RoleSessionName = $ value ;
270
+ $ this ->roleSessionName = $ value ;
271
271
272
272
return $ this ;
273
273
}
274
274
275
275
public function setSerialNumber (?string $ value ): self
276
276
{
277
- $ this ->SerialNumber = $ value ;
277
+ $ this ->serialNumber = $ value ;
278
278
279
279
return $ this ;
280
280
}
@@ -284,14 +284,14 @@ public function setSerialNumber(?string $value): self
284
284
*/
285
285
public function setTags (array $ value ): self
286
286
{
287
- $ this ->Tags = $ value ;
287
+ $ this ->tags = $ value ;
288
288
289
289
return $ this ;
290
290
}
291
291
292
292
public function setTokenCode (?string $ value ): self
293
293
{
294
- $ this ->TokenCode = $ value ;
294
+ $ this ->tokenCode = $ value ;
295
295
296
296
return $ this ;
297
297
}
@@ -301,23 +301,23 @@ public function setTokenCode(?string $value): self
301
301
*/
302
302
public function setTransitiveTagKeys (array $ value ): self
303
303
{
304
- $ this ->TransitiveTagKeys = $ value ;
304
+ $ this ->transitiveTagKeys = $ value ;
305
305
306
306
return $ this ;
307
307
}
308
308
309
309
private function requestBody (): array
310
310
{
311
311
$ payload = [];
312
- if (null === $ v = $ this ->RoleArn ) {
312
+ if (null === $ v = $ this ->roleArn ) {
313
313
throw new InvalidArgument (sprintf ('Missing parameter "RoleArn" for "%s". The value cannot be null. ' , __CLASS__ ));
314
314
}
315
315
$ payload ['RoleArn ' ] = $ v ;
316
- if (null === $ v = $ this ->RoleSessionName ) {
316
+ if (null === $ v = $ this ->roleSessionName ) {
317
317
throw new InvalidArgument (sprintf ('Missing parameter "RoleSessionName" for "%s". The value cannot be null. ' , __CLASS__ ));
318
318
}
319
319
$ payload ['RoleSessionName ' ] = $ v ;
320
- if (null !== $ v = $ this ->PolicyArns ) {
320
+ if (null !== $ v = $ this ->policyArns ) {
321
321
$ index = 0 ;
322
322
foreach ($ v as $ mapValue ) {
323
323
++$ index ;
@@ -326,13 +326,13 @@ private function requestBody(): array
326
326
}
327
327
}
328
328
}
329
- if (null !== $ v = $ this ->Policy ) {
329
+ if (null !== $ v = $ this ->policy ) {
330
330
$ payload ['Policy ' ] = $ v ;
331
331
}
332
- if (null !== $ v = $ this ->DurationSeconds ) {
332
+ if (null !== $ v = $ this ->durationSeconds ) {
333
333
$ payload ['DurationSeconds ' ] = $ v ;
334
334
}
335
- if (null !== $ v = $ this ->Tags ) {
335
+ if (null !== $ v = $ this ->tags ) {
336
336
$ index = 0 ;
337
337
foreach ($ v as $ mapValue ) {
338
338
++$ index ;
@@ -341,20 +341,20 @@ private function requestBody(): array
341
341
}
342
342
}
343
343
}
344
- if (null !== $ v = $ this ->TransitiveTagKeys ) {
344
+ if (null !== $ v = $ this ->transitiveTagKeys ) {
345
345
$ index = 0 ;
346
346
foreach ($ v as $ mapValue ) {
347
347
++$ index ;
348
348
$ payload ["TransitiveTagKeys.member. $ index " ] = $ mapValue ;
349
349
}
350
350
}
351
- if (null !== $ v = $ this ->ExternalId ) {
351
+ if (null !== $ v = $ this ->externalId ) {
352
352
$ payload ['ExternalId ' ] = $ v ;
353
353
}
354
- if (null !== $ v = $ this ->SerialNumber ) {
354
+ if (null !== $ v = $ this ->serialNumber ) {
355
355
$ payload ['SerialNumber ' ] = $ v ;
356
356
}
357
- if (null !== $ v = $ this ->TokenCode ) {
357
+ if (null !== $ v = $ this ->tokenCode ) {
358
358
$ payload ['TokenCode ' ] = $ v ;
359
359
}
360
360
0 commit comments