Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export interface SSOOIDC {
* <b>API namespaces</b>
* </p>
* <p>IAM Identity Center uses the <code>sso</code> and <code>identitystore</code> API namespaces. IAM Identity Center
* OpenID Connect uses the <code>sso-oidc</code> namespace.</p>
* OpenID Connect uses the <code>sso-oauth</code> namespace.</p>
* <p>
* <b>Considerations for using this guide</b>
* </p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ export interface SSOOIDCClientResolvedConfig extends SSOOIDCClientResolvedConfig
* <b>API namespaces</b>
* </p>
* <p>IAM Identity Center uses the <code>sso</code> and <code>identitystore</code> API namespaces. IAM Identity Center
* OpenID Connect uses the <code>sso-oidc</code> namespace.</p>
* OpenID Connect uses the <code>sso-oauth</code> namespace.</p>
* <p>
* <b>Considerations for using this guide</b>
* </p>
Expand Down
2 changes: 1 addition & 1 deletion packages/nested-clients/src/submodules/sso-oidc/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* <b>API namespaces</b>
* </p>
* <p>IAM Identity Center uses the <code>sso</code> and <code>identitystore</code> API namespaces. IAM Identity Center
* OpenID Connect uses the <code>sso-oidc</code> namespace.</p>
* OpenID Connect uses the <code>sso-oauth</code> namespace.</p>
* <p>
* <b>Considerations for using this guide</b>
* </p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,19 @@ import { ExceptionOptionType as __ExceptionOptionType, SENSITIVE_STRING } from "

import { SSOOIDCServiceException as __BaseException } from "./SSOOIDCServiceException";

/**
* @public
* @enum
*/
export const AccessDeniedExceptionReason = {
KMS_ACCESS_DENIED: "KMS_AccessDeniedException",
} as const;
/**
* @public
*/
export type AccessDeniedExceptionReason =
(typeof AccessDeniedExceptionReason)[keyof typeof AccessDeniedExceptionReason];

/**
* <p>You do not have sufficient access to perform this action.</p>
* @public
Expand All @@ -16,6 +29,12 @@ export class AccessDeniedException extends __BaseException {
*/
error?: string | undefined;

/**
* <p>A string that uniquely identifies a reason for the error.</p>
* @public
*/
reason?: AccessDeniedExceptionReason | undefined;

/**
* <p>Human-readable text providing additional information, used to assist the client developer
* in understanding the error that occurred.</p>
Expand All @@ -33,6 +52,7 @@ export class AccessDeniedException extends __BaseException {
});
Object.setPrototypeOf(this, AccessDeniedException.prototype);
this.error = opts.error;
this.reason = opts.reason;
this.error_description = opts.error_description;
}
}
Expand Down Expand Up @@ -129,9 +149,7 @@ export interface CreateTokenRequest {
refreshToken?: string | undefined;

/**
* <p>The list of scopes for which authorization is requested. The access token that is issued
* is limited to the scopes that are granted. If this value is not specified, IAM Identity Center authorizes
* all scopes that are configured for the client during the call to <a>RegisterClient</a>.</p>
* <p>The list of scopes for which authorization is requested. This parameter has no effect; the access token will always include all scopes configured during client registration.</p>
* @public
*/
scope?: string[] | undefined;
Expand Down Expand Up @@ -359,6 +377,22 @@ export class InvalidGrantException extends __BaseException {
}
}

/**
* @public
* @enum
*/
export const InvalidRequestExceptionReason = {
KMS_DISABLED_KEY: "KMS_DisabledException",
KMS_INVALID_KEY_USAGE: "KMS_InvalidKeyUsageException",
KMS_INVALID_STATE: "KMS_InvalidStateException",
KMS_KEY_NOT_FOUND: "KMS_NotFoundException",
} as const;
/**
* @public
*/
export type InvalidRequestExceptionReason =
(typeof InvalidRequestExceptionReason)[keyof typeof InvalidRequestExceptionReason];

/**
* <p>Indicates that something is wrong with the input to the request. For example, a required
* parameter might be missing or out of range.</p>
Expand All @@ -374,6 +408,12 @@ export class InvalidRequestException extends __BaseException {
*/
error?: string | undefined;

/**
* <p>A string that uniquely identifies a reason for the error.</p>
* @public
*/
reason?: InvalidRequestExceptionReason | undefined;

/**
* <p>Human-readable text providing additional information, used to assist the client developer
* in understanding the error that occurred.</p>
Expand All @@ -391,6 +431,7 @@ export class InvalidRequestException extends __BaseException {
});
Object.setPrototypeOf(this, InvalidRequestException.prototype);
this.error = opts.error;
this.reason = opts.reason;
this.error_description = opts.error_description;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ const de_AccessDeniedExceptionRes = async (
const doc = take(data, {
error: __expectString,
error_description: __expectString,
reason: __expectString,
});
Object.assign(contents, doc);
const exception = new AccessDeniedException({
Expand Down Expand Up @@ -283,6 +284,7 @@ const de_InvalidRequestExceptionRes = async (
const doc = take(data, {
error: __expectString,
error_description: __expectString,
reason: __expectString,
});
Object.assign(contents, doc);
const exception = new InvalidRequestException({
Expand Down
Loading