UNPKG

lambda-live-debugger

Version:

Debug Lambda functions locally like it is running in the cloud

445 lines (444 loc) 14.7 kB
import { SENSITIVE_STRING } from "@smithy/smithy-client"; import { IAMServiceException as __BaseException } from "./IAMServiceException"; export const AccessAdvisorUsageGranularityType = { ACTION_LEVEL: "ACTION_LEVEL", SERVICE_LEVEL: "SERVICE_LEVEL", }; export const StatusType = { Active: "Active", Inactive: "Inactive", }; export class InvalidInputException extends __BaseException { constructor(opts) { super({ name: "InvalidInputException", $fault: "client", ...opts, }); this.name = "InvalidInputException"; this.$fault = "client"; Object.setPrototypeOf(this, InvalidInputException.prototype); } } export class LimitExceededException extends __BaseException { constructor(opts) { super({ name: "LimitExceededException", $fault: "client", ...opts, }); this.name = "LimitExceededException"; this.$fault = "client"; Object.setPrototypeOf(this, LimitExceededException.prototype); } } export class NoSuchEntityException extends __BaseException { constructor(opts) { super({ name: "NoSuchEntityException", $fault: "client", ...opts, }); this.name = "NoSuchEntityException"; this.$fault = "client"; Object.setPrototypeOf(this, NoSuchEntityException.prototype); } } export class ServiceFailureException extends __BaseException { constructor(opts) { super({ name: "ServiceFailureException", $fault: "server", ...opts, }); this.name = "ServiceFailureException"; this.$fault = "server"; Object.setPrototypeOf(this, ServiceFailureException.prototype); } } export class EntityAlreadyExistsException extends __BaseException { constructor(opts) { super({ name: "EntityAlreadyExistsException", $fault: "client", ...opts, }); this.name = "EntityAlreadyExistsException"; this.$fault = "client"; Object.setPrototypeOf(this, EntityAlreadyExistsException.prototype); } } export class UnmodifiableEntityException extends __BaseException { constructor(opts) { super({ name: "UnmodifiableEntityException", $fault: "client", ...opts, }); this.name = "UnmodifiableEntityException"; this.$fault = "client"; Object.setPrototypeOf(this, UnmodifiableEntityException.prototype); } } export const AssignmentStatusType = { Any: "Any", Assigned: "Assigned", Unassigned: "Unassigned", }; export const PermissionsBoundaryAttachmentType = { Policy: "PermissionsBoundaryPolicy", }; export class PolicyNotAttachableException extends __BaseException { constructor(opts) { super({ name: "PolicyNotAttachableException", $fault: "client", ...opts, }); this.name = "PolicyNotAttachableException"; this.$fault = "client"; Object.setPrototypeOf(this, PolicyNotAttachableException.prototype); } } export class EntityTemporarilyUnmodifiableException extends __BaseException { constructor(opts) { super({ name: "EntityTemporarilyUnmodifiableException", $fault: "client", ...opts, }); this.name = "EntityTemporarilyUnmodifiableException"; this.$fault = "client"; Object.setPrototypeOf(this, EntityTemporarilyUnmodifiableException.prototype); } } export class InvalidUserTypeException extends __BaseException { constructor(opts) { super({ name: "InvalidUserTypeException", $fault: "client", ...opts, }); this.name = "InvalidUserTypeException"; this.$fault = "client"; Object.setPrototypeOf(this, InvalidUserTypeException.prototype); } } export class PasswordPolicyViolationException extends __BaseException { constructor(opts) { super({ name: "PasswordPolicyViolationException", $fault: "client", ...opts, }); this.name = "PasswordPolicyViolationException"; this.$fault = "client"; Object.setPrototypeOf(this, PasswordPolicyViolationException.prototype); } } export class ConcurrentModificationException extends __BaseException { constructor(opts) { super({ name: "ConcurrentModificationException", $fault: "client", ...opts, }); this.name = "ConcurrentModificationException"; this.$fault = "client"; Object.setPrototypeOf(this, ConcurrentModificationException.prototype); } } export class OpenIdIdpCommunicationErrorException extends __BaseException { constructor(opts) { super({ name: "OpenIdIdpCommunicationErrorException", $fault: "client", ...opts, }); this.name = "OpenIdIdpCommunicationErrorException"; this.$fault = "client"; Object.setPrototypeOf(this, OpenIdIdpCommunicationErrorException.prototype); } } export class MalformedPolicyDocumentException extends __BaseException { constructor(opts) { super({ name: "MalformedPolicyDocumentException", $fault: "client", ...opts, }); this.name = "MalformedPolicyDocumentException"; this.$fault = "client"; Object.setPrototypeOf(this, MalformedPolicyDocumentException.prototype); } } export class ServiceNotSupportedException extends __BaseException { constructor(opts) { super({ name: "ServiceNotSupportedException", $fault: "client", ...opts, }); this.name = "ServiceNotSupportedException"; this.$fault = "client"; Object.setPrototypeOf(this, ServiceNotSupportedException.prototype); } } export class DeleteConflictException extends __BaseException { constructor(opts) { super({ name: "DeleteConflictException", $fault: "client", ...opts, }); this.name = "DeleteConflictException"; this.$fault = "client"; Object.setPrototypeOf(this, DeleteConflictException.prototype); } } export class InvalidAuthenticationCodeException extends __BaseException { constructor(opts) { super({ name: "InvalidAuthenticationCodeException", $fault: "client", ...opts, }); this.name = "InvalidAuthenticationCodeException"; this.$fault = "client"; Object.setPrototypeOf(this, InvalidAuthenticationCodeException.prototype); } } export const ReportStateType = { COMPLETE: "COMPLETE", INPROGRESS: "INPROGRESS", STARTED: "STARTED", }; export class ReportGenerationLimitExceededException extends __BaseException { constructor(opts) { super({ name: "ReportGenerationLimitExceededException", $fault: "client", ...opts, }); this.name = "ReportGenerationLimitExceededException"; this.$fault = "client"; Object.setPrototypeOf(this, ReportGenerationLimitExceededException.prototype); } } export const EntityType = { AWSManagedPolicy: "AWSManagedPolicy", Group: "Group", LocalManagedPolicy: "LocalManagedPolicy", Role: "Role", User: "User", }; export const SummaryKeyType = { AccessKeysPerUserQuota: "AccessKeysPerUserQuota", AccountAccessKeysPresent: "AccountAccessKeysPresent", AccountMFAEnabled: "AccountMFAEnabled", AccountSigningCertificatesPresent: "AccountSigningCertificatesPresent", AttachedPoliciesPerGroupQuota: "AttachedPoliciesPerGroupQuota", AttachedPoliciesPerRoleQuota: "AttachedPoliciesPerRoleQuota", AttachedPoliciesPerUserQuota: "AttachedPoliciesPerUserQuota", GlobalEndpointTokenVersion: "GlobalEndpointTokenVersion", GroupPolicySizeQuota: "GroupPolicySizeQuota", Groups: "Groups", GroupsPerUserQuota: "GroupsPerUserQuota", GroupsQuota: "GroupsQuota", MFADevices: "MFADevices", MFADevicesInUse: "MFADevicesInUse", Policies: "Policies", PoliciesQuota: "PoliciesQuota", PolicySizeQuota: "PolicySizeQuota", PolicyVersionsInUse: "PolicyVersionsInUse", PolicyVersionsInUseQuota: "PolicyVersionsInUseQuota", ServerCertificates: "ServerCertificates", ServerCertificatesQuota: "ServerCertificatesQuota", SigningCertificatesPerUserQuota: "SigningCertificatesPerUserQuota", UserPolicySizeQuota: "UserPolicySizeQuota", Users: "Users", UsersQuota: "UsersQuota", VersionsPerPolicyQuota: "VersionsPerPolicyQuota", }; export class CredentialReportExpiredException extends __BaseException { constructor(opts) { super({ name: "CredentialReportExpiredException", $fault: "client", ...opts, }); this.name = "CredentialReportExpiredException"; this.$fault = "client"; Object.setPrototypeOf(this, CredentialReportExpiredException.prototype); } } export class CredentialReportNotPresentException extends __BaseException { constructor(opts) { super({ name: "CredentialReportNotPresentException", $fault: "client", ...opts, }); this.name = "CredentialReportNotPresentException"; this.$fault = "client"; Object.setPrototypeOf(this, CredentialReportNotPresentException.prototype); } } export class CredentialReportNotReadyException extends __BaseException { constructor(opts) { super({ name: "CredentialReportNotReadyException", $fault: "client", ...opts, }); this.name = "CredentialReportNotReadyException"; this.$fault = "client"; Object.setPrototypeOf(this, CredentialReportNotReadyException.prototype); } } export const ReportFormatType = { text_csv: "text/csv", }; export const SortKeyType = { LAST_AUTHENTICATED_TIME_ASCENDING: "LAST_AUTHENTICATED_TIME_ASCENDING", LAST_AUTHENTICATED_TIME_DESCENDING: "LAST_AUTHENTICATED_TIME_DESCENDING", SERVICE_NAMESPACE_ASCENDING: "SERVICE_NAMESPACE_ASCENDING", SERVICE_NAMESPACE_DESCENDING: "SERVICE_NAMESPACE_DESCENDING", }; export const JobStatusType = { COMPLETED: "COMPLETED", FAILED: "FAILED", IN_PROGRESS: "IN_PROGRESS", }; export const PolicyOwnerEntityType = { GROUP: "GROUP", ROLE: "ROLE", USER: "USER", }; export const DeletionTaskStatusType = { FAILED: "FAILED", IN_PROGRESS: "IN_PROGRESS", NOT_STARTED: "NOT_STARTED", SUCCEEDED: "SUCCEEDED", }; export const EncodingType = { PEM: "PEM", SSH: "SSH", }; export class UnrecognizedPublicKeyEncodingException extends __BaseException { constructor(opts) { super({ name: "UnrecognizedPublicKeyEncodingException", $fault: "client", ...opts, }); this.name = "UnrecognizedPublicKeyEncodingException"; this.$fault = "client"; Object.setPrototypeOf(this, UnrecognizedPublicKeyEncodingException.prototype); } } export const PolicyUsageType = { PermissionsBoundary: "PermissionsBoundary", PermissionsPolicy: "PermissionsPolicy", }; export const PolicyScopeType = { AWS: "AWS", All: "All", Local: "Local", }; export const PolicyType = { INLINE: "INLINE", MANAGED: "MANAGED", }; export const GlobalEndpointTokenVersion = { v1Token: "v1Token", v2Token: "v2Token", }; export class PolicyEvaluationException extends __BaseException { constructor(opts) { super({ name: "PolicyEvaluationException", $fault: "server", ...opts, }); this.name = "PolicyEvaluationException"; this.$fault = "server"; Object.setPrototypeOf(this, PolicyEvaluationException.prototype); } } export const ContextKeyTypeEnum = { BINARY: "binary", BINARY_LIST: "binaryList", BOOLEAN: "boolean", BOOLEAN_LIST: "booleanList", DATE: "date", DATE_LIST: "dateList", IP: "ip", IP_LIST: "ipList", NUMERIC: "numeric", NUMERIC_LIST: "numericList", STRING: "string", STRING_LIST: "stringList", }; export const PolicyEvaluationDecisionType = { ALLOWED: "allowed", EXPLICIT_DENY: "explicitDeny", IMPLICIT_DENY: "implicitDeny", }; export const PolicySourceType = { AWS_MANAGED: "aws-managed", GROUP: "group", NONE: "none", RESOURCE: "resource", ROLE: "role", USER: "user", USER_MANAGED: "user-managed", }; export const AccessKeyFilterSensitiveLog = (obj) => ({ ...obj, ...(obj.SecretAccessKey && { SecretAccessKey: SENSITIVE_STRING }), }); export const ChangePasswordRequestFilterSensitiveLog = (obj) => ({ ...obj, ...(obj.OldPassword && { OldPassword: SENSITIVE_STRING }), ...(obj.NewPassword && { NewPassword: SENSITIVE_STRING }), }); export const CreateAccessKeyResponseFilterSensitiveLog = (obj) => ({ ...obj, ...(obj.AccessKey && { AccessKey: AccessKeyFilterSensitiveLog(obj.AccessKey) }), }); export const CreateLoginProfileRequestFilterSensitiveLog = (obj) => ({ ...obj, ...(obj.Password && { Password: SENSITIVE_STRING }), }); export const ServiceSpecificCredentialFilterSensitiveLog = (obj) => ({ ...obj, ...(obj.ServicePassword && { ServicePassword: SENSITIVE_STRING }), }); export const CreateServiceSpecificCredentialResponseFilterSensitiveLog = (obj) => ({ ...obj, ...(obj.ServiceSpecificCredential && { ServiceSpecificCredential: ServiceSpecificCredentialFilterSensitiveLog(obj.ServiceSpecificCredential), }), }); export const VirtualMFADeviceFilterSensitiveLog = (obj) => ({ ...obj, ...(obj.Base32StringSeed && { Base32StringSeed: SENSITIVE_STRING }), ...(obj.QRCodePNG && { QRCodePNG: SENSITIVE_STRING }), }); export const CreateVirtualMFADeviceResponseFilterSensitiveLog = (obj) => ({ ...obj, ...(obj.VirtualMFADevice && { VirtualMFADevice: VirtualMFADeviceFilterSensitiveLog(obj.VirtualMFADevice) }), }); export const ListVirtualMFADevicesResponseFilterSensitiveLog = (obj) => ({ ...obj, ...(obj.VirtualMFADevices && { VirtualMFADevices: obj.VirtualMFADevices.map((item) => VirtualMFADeviceFilterSensitiveLog(item)), }), }); export const ResetServiceSpecificCredentialResponseFilterSensitiveLog = (obj) => ({ ...obj, ...(obj.ServiceSpecificCredential && { ServiceSpecificCredential: ServiceSpecificCredentialFilterSensitiveLog(obj.ServiceSpecificCredential), }), });