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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
20 changes: 20 additions & 0 deletions clients/client-accessanalyzer/test/index-objects.spec.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
AccessAnalyzerServiceException,
AccessCheckPolicyType,
AccessCheckResourceType,
AccessDeniedException,
AccessPreviewStatus,
AccessPreviewStatusReasonCode,
AclPermission,
Expand All @@ -16,6 +17,7 @@ import {
CheckNoNewAccessResult,
CheckNoPublicAccessCommand,
CheckNoPublicAccessResult,
ConflictException,
CreateAccessPreviewCommand,
CreateAnalyzerCommand,
CreateArchiveRuleCommand,
Expand All @@ -37,6 +39,8 @@ import {
GetFindingsStatisticsCommand,
GetGeneratedPolicyCommand,
InternalAccessType,
InternalServerException,
InvalidParameterException,
JobErrorCode,
JobStatus,
KmsGrantOperation,
Expand All @@ -57,20 +61,26 @@ import {
RecommendationType,
RecommendedRemediationAction,
ResourceControlPolicyRestriction,
ResourceNotFoundException,
ResourceType,
ServiceControlPolicyRestriction,
ServiceQuotaExceededException,
StartPolicyGenerationCommand,
StartResourceScanCommand,
Status,
TagResourceCommand,
ThrottlingException,
Type,
UnprocessableEntityException,
UntagResourceCommand,
UpdateAnalyzerCommand,
UpdateArchiveRuleCommand,
UpdateFindingsCommand,
ValidatePolicyCommand,
ValidatePolicyFindingType,
ValidatePolicyResourceType,
ValidationException,
ValidationExceptionReason,
paginateGetFindingRecommendation,
paginateGetFindingV2,
paginateListAccessPreviewFindings,
Expand Down Expand Up @@ -158,7 +168,17 @@ assert(typeof Status === "object");
assert(typeof Type === "object");
assert(typeof ValidatePolicyFindingType === "object");
assert(typeof ValidatePolicyResourceType === "object");
assert(typeof ValidationExceptionReason === "object");
// errors
assert(AccessDeniedException.prototype instanceof AccessAnalyzerServiceException);
assert(ConflictException.prototype instanceof AccessAnalyzerServiceException);
assert(InternalServerException.prototype instanceof AccessAnalyzerServiceException);
assert(InvalidParameterException.prototype instanceof AccessAnalyzerServiceException);
assert(ResourceNotFoundException.prototype instanceof AccessAnalyzerServiceException);
assert(ServiceQuotaExceededException.prototype instanceof AccessAnalyzerServiceException);
assert(ThrottlingException.prototype instanceof AccessAnalyzerServiceException);
assert(UnprocessableEntityException.prototype instanceof AccessAnalyzerServiceException);
assert(ValidationException.prototype instanceof AccessAnalyzerServiceException);
assert(AccessAnalyzerServiceException.prototype instanceof Error);
// paginators
assert(typeof paginateGetFindingRecommendation === "function");
Expand Down
11 changes: 11 additions & 0 deletions clients/client-accessanalyzer/test/index-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ export type {
Type,
ValidatePolicyFindingType,
ValidatePolicyResourceType,
ValidationExceptionReason,
Access,
AccessPreview,
AccessPreviewFinding,
Expand Down Expand Up @@ -299,7 +300,17 @@ export type {
ValidatePolicyFinding,
ValidatePolicyRequest,
ValidatePolicyResponse,
ValidationExceptionField,
VpcConfiguration,
AccessDeniedException,
ConflictException,
InternalServerException,
InvalidParameterException,
ResourceNotFoundException,
ServiceQuotaExceededException,
ThrottlingException,
UnprocessableEntityException,
ValidationException,
AccessAnalyzerServiceException,
paginateGetFindingRecommendation,
paginateGetFindingV2,
Expand Down
14 changes: 14 additions & 0 deletions clients/client-account/test/index-objects.spec.mjs
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import {
AcceptPrimaryEmailUpdateCommand,
AccessDeniedException,
Account,
AccountClient,
AccountServiceException,
AlternateContactType,
ConflictException,
DeleteAlternateContactCommand,
DisableRegionCommand,
EnableRegionCommand,
Expand All @@ -12,13 +14,18 @@ import {
GetContactInformationCommand,
GetPrimaryEmailCommand,
GetRegionOptStatusCommand,
InternalServerException,
ListRegionsCommand,
PrimaryEmailUpdateStatus,
PutAccountNameCommand,
PutAlternateContactCommand,
PutContactInformationCommand,
RegionOptStatus,
ResourceNotFoundException,
StartPrimaryEmailUpdateCommand,
TooManyRequestsException,
ValidationException,
ValidationExceptionReason,
paginateListRegions,
} from "../dist-cjs/index.js";
import assert from "node:assert";
Expand All @@ -44,7 +51,14 @@ assert(typeof StartPrimaryEmailUpdateCommand === "function");
assert(typeof AlternateContactType === "object");
assert(typeof PrimaryEmailUpdateStatus === "object");
assert(typeof RegionOptStatus === "object");
assert(typeof ValidationExceptionReason === "object");
// errors
assert(AccessDeniedException.prototype instanceof AccountServiceException);
assert(ConflictException.prototype instanceof AccountServiceException);
assert(InternalServerException.prototype instanceof AccountServiceException);
assert(ResourceNotFoundException.prototype instanceof AccountServiceException);
assert(TooManyRequestsException.prototype instanceof AccountServiceException);
assert(ValidationException.prototype instanceof AccountServiceException);
assert(AccountServiceException.prototype instanceof Error);
// paginators
assert(typeof paginateListRegions === "function");
Expand Down
8 changes: 8 additions & 0 deletions clients/client-account/test/index-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export type {
AlternateContactType,
PrimaryEmailUpdateStatus,
RegionOptStatus,
ValidationExceptionReason,
AcceptPrimaryEmailUpdateRequest,
AcceptPrimaryEmailUpdateResponse,
AlternateContact,
Expand All @@ -72,6 +73,13 @@ export type {
Region,
StartPrimaryEmailUpdateRequest,
StartPrimaryEmailUpdateResponse,
ValidationExceptionField,
AccessDeniedException,
ConflictException,
InternalServerException,
ResourceNotFoundException,
TooManyRequestsException,
ValidationException,
AccountServiceException,
paginateListRegions,
} from "../dist-types/index.d";
38 changes: 38 additions & 0 deletions clients/client-acm-pca/test/index-objects.spec.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import {
CertificateAuthorityStatus,
CertificateAuthorityType,
CertificateAuthorityUsageMode,
CertificateMismatchException,
ConcurrentModificationException,
CreateCertificateAuthorityAuditReportCommand,
CreateCertificateAuthorityCommand,
CreatePermissionCommand,
Expand All @@ -25,21 +27,38 @@ import {
GetCertificateCommand,
GetPolicyCommand,
ImportCertificateAuthorityCertificateCommand,
InvalidArgsException,
InvalidArnException,
InvalidNextTokenException,
InvalidPolicyException,
InvalidRequestException,
InvalidStateException,
InvalidTagException,
IssueCertificateCommand,
KeyAlgorithm,
KeyStorageSecurityStandard,
LimitExceededException,
ListCertificateAuthoritiesCommand,
ListPermissionsCommand,
ListTagsCommand,
LockoutPreventedException,
MalformedCSRException,
MalformedCertificateException,
PermissionAlreadyExistsException,
PolicyQualifierId,
PutPolicyCommand,
RequestAlreadyProcessedException,
RequestFailedException,
RequestInProgressException,
ResourceNotFoundException,
ResourceOwner,
RestoreCertificateAuthorityCommand,
RevocationReason,
RevokeCertificateCommand,
S3ObjectAcl,
SigningAlgorithm,
TagCertificateAuthorityCommand,
TooManyTagsException,
UntagCertificateAuthorityCommand,
UpdateCertificateAuthorityCommand,
ValidityPeriodType,
Expand Down Expand Up @@ -101,6 +120,25 @@ assert(typeof S3ObjectAcl === "object");
assert(typeof SigningAlgorithm === "object");
assert(typeof ValidityPeriodType === "object");
// errors
assert(CertificateMismatchException.prototype instanceof ACMPCAServiceException);
assert(ConcurrentModificationException.prototype instanceof ACMPCAServiceException);
assert(InvalidArgsException.prototype instanceof ACMPCAServiceException);
assert(InvalidArnException.prototype instanceof ACMPCAServiceException);
assert(InvalidNextTokenException.prototype instanceof ACMPCAServiceException);
assert(InvalidPolicyException.prototype instanceof ACMPCAServiceException);
assert(InvalidRequestException.prototype instanceof ACMPCAServiceException);
assert(InvalidStateException.prototype instanceof ACMPCAServiceException);
assert(InvalidTagException.prototype instanceof ACMPCAServiceException);
assert(LimitExceededException.prototype instanceof ACMPCAServiceException);
assert(LockoutPreventedException.prototype instanceof ACMPCAServiceException);
assert(MalformedCertificateException.prototype instanceof ACMPCAServiceException);
assert(MalformedCSRException.prototype instanceof ACMPCAServiceException);
assert(PermissionAlreadyExistsException.prototype instanceof ACMPCAServiceException);
assert(RequestAlreadyProcessedException.prototype instanceof ACMPCAServiceException);
assert(RequestFailedException.prototype instanceof ACMPCAServiceException);
assert(RequestInProgressException.prototype instanceof ACMPCAServiceException);
assert(ResourceNotFoundException.prototype instanceof ACMPCAServiceException);
assert(TooManyTagsException.prototype instanceof ACMPCAServiceException);
assert(ACMPCAServiceException.prototype instanceof Error);
// waiters
assert(typeof waitForAuditReportCreated === "function");
Expand Down
19 changes: 19 additions & 0 deletions clients/client-acm-pca/test/index-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,25 @@ export type {
UntagCertificateAuthorityRequest,
UpdateCertificateAuthorityRequest,
Validity,
CertificateMismatchException,
ConcurrentModificationException,
InvalidArgsException,
InvalidArnException,
InvalidNextTokenException,
InvalidPolicyException,
InvalidRequestException,
InvalidStateException,
InvalidTagException,
LimitExceededException,
LockoutPreventedException,
MalformedCertificateException,
MalformedCSRException,
PermissionAlreadyExistsException,
RequestAlreadyProcessedException,
RequestFailedException,
RequestInProgressException,
ResourceNotFoundException,
TooManyTagsException,
ACMPCAServiceException,
waitForAuditReportCreated,
waitForCertificateAuthorityCSRCreated,
Expand Down
32 changes: 32 additions & 0 deletions clients/client-acm/test/index-objects.spec.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@ import {
ACM,
ACMClient,
ACMServiceException,
AccessDeniedException,
AddTagsToCertificateCommand,
CertificateExport,
CertificateManagedBy,
CertificateStatus,
CertificateTransparencyLoggingPreference,
CertificateType,
ConflictException,
DeleteCertificateCommand,
DescribeCertificateCommand,
DomainStatus,
Expand All @@ -17,8 +19,15 @@ import {
GetAccountConfigurationCommand,
GetCertificateCommand,
ImportCertificateCommand,
InvalidArgsException,
InvalidArnException,
InvalidDomainValidationOptionsException,
InvalidParameterException,
InvalidStateException,
InvalidTagException,
KeyAlgorithm,
KeyUsageName,
LimitExceededException,
ListCertificatesCommand,
ListTagsForCertificateCommand,
PutAccountConfigurationCommand,
Expand All @@ -28,12 +37,19 @@ import {
RenewalEligibility,
RenewalStatus,
RequestCertificateCommand,
RequestInProgressException,
ResendValidationEmailCommand,
ResourceInUseException,
ResourceNotFoundException,
RevocationReason,
RevokeCertificateCommand,
SortBy,
SortOrder,
TagPolicyException,
ThrottlingException,
TooManyTagsException,
UpdateCertificateOptionsCommand,
ValidationException,
ValidationMethod,
paginateListCertificates,
waitForCertificateValidated,
Expand Down Expand Up @@ -79,6 +95,22 @@ assert(typeof SortBy === "object");
assert(typeof SortOrder === "object");
assert(typeof ValidationMethod === "object");
// errors
assert(AccessDeniedException.prototype instanceof ACMServiceException);
assert(ConflictException.prototype instanceof ACMServiceException);
assert(InvalidArgsException.prototype instanceof ACMServiceException);
assert(InvalidArnException.prototype instanceof ACMServiceException);
assert(InvalidDomainValidationOptionsException.prototype instanceof ACMServiceException);
assert(InvalidParameterException.prototype instanceof ACMServiceException);
assert(InvalidStateException.prototype instanceof ACMServiceException);
assert(InvalidTagException.prototype instanceof ACMServiceException);
assert(LimitExceededException.prototype instanceof ACMServiceException);
assert(RequestInProgressException.prototype instanceof ACMServiceException);
assert(ResourceInUseException.prototype instanceof ACMServiceException);
assert(ResourceNotFoundException.prototype instanceof ACMServiceException);
assert(TagPolicyException.prototype instanceof ACMServiceException);
assert(ThrottlingException.prototype instanceof ACMServiceException);
assert(TooManyTagsException.prototype instanceof ACMServiceException);
assert(ValidationException.prototype instanceof ACMServiceException);
assert(ACMServiceException.prototype instanceof Error);
// waiters
assert(typeof waitForCertificateValidated === "function");
Expand Down
16 changes: 16 additions & 0 deletions clients/client-acm/test/index-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,22 @@ export type {
RevokeCertificateResponse,
Tag,
UpdateCertificateOptionsRequest,
AccessDeniedException,
ConflictException,
InvalidArgsException,
InvalidArnException,
InvalidDomainValidationOptionsException,
InvalidParameterException,
InvalidStateException,
InvalidTagException,
LimitExceededException,
RequestInProgressException,
ResourceInUseException,
ResourceNotFoundException,
TagPolicyException,
ThrottlingException,
TooManyTagsException,
ValidationException,
ACMServiceException,
waitForCertificateValidated,
waitUntilCertificateValidated,
Expand Down
Loading
Loading