Skip to content

Commit d8372a8

Browse files
committed
chore(sso-oidc): make DeviceCode optional for createToken call (#127)
1 parent e908b17 commit d8372a8

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

clients/client-sso-oidc/src/models/models_0.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export interface CreateTokenRequest {
8181
* used to identify this authentication attempt. This should come from an in-memory reference to
8282
* the result of the <a>StartDeviceAuthorization</a> API.</p>
8383
*/
84-
deviceCode: string | undefined;
84+
deviceCode?: string;
8585

8686
/**
8787
* <p>The authorization code received from the authorization service. This parameter is required

codegen/sdk-codegen/aws-models/sso-oidc.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,7 @@
190190
"deviceCode": {
191191
"target": "com.amazonaws.ssooidc#DeviceCode",
192192
"traits": {
193-
"smithy.api#documentation": "<p>Used only when calling this API for the device code grant type. This short-term code is\n used to identify this authentication attempt. This should come from an in-memory reference to\n the result of the <a>StartDeviceAuthorization</a> API.</p>",
194-
"smithy.api#required": {}
193+
"smithy.api#documentation": "<p>Used only when calling this API for the device code grant type. This short-term code is\n used to identify this authentication attempt. This should come from an in-memory reference to\n the result of the <a>StartDeviceAuthorization</a> API.</p>"
195194
}
196195
},
197196
"code": {

0 commit comments

Comments
 (0)