UNPKG

cdk-amazon-chime-resources

Version:

![Experimental](https://img.shields.io/badge/experimental-important.svg?style=for-the-badge)

919 lines 604 kB
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http"; import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, throwDefaultError, } from "@aws-sdk/smithy-client"; import { v4 as generateIdempotencyToken } from "uuid"; import { AlreadyExistsException, AssociatedInstances, AssociationAlreadyExists, AssociationDoesNotExist, AssociationExecutionDoesNotExist, AssociationLimitExceeded, AutomationExecutionNotFoundException, DocumentAlreadyExists, DocumentLimitExceeded, DoesNotExistException, DuplicateInstanceId, IdempotentParameterMismatch, InternalServerError, InvalidActivation, InvalidActivationId, InvalidAssociationVersion, InvalidCommandId, InvalidDeleteInventoryParametersException, InvalidDeletionIdException, InvalidDocument, InvalidDocumentContent, InvalidDocumentOperation, InvalidDocumentSchemaVersion, InvalidDocumentVersion, InvalidFilter, InvalidFilterKey, InvalidFilterValue, InvalidInstanceId, InvalidInstanceInformationFilterValue, InvalidInventoryRequestException, InvalidNextToken, InvalidOptionException, InvalidOutputLocation, InvalidParameters, InvalidPermissionType, InvalidResourceId, InvalidResourceType, InvalidSchedule, InvalidTag, InvalidTarget, InvalidTargetMaps, InvalidTypeNameException, MaxDocumentSizeExceeded, OpsItemAccessDeniedException, OpsItemAlreadyExistsException, OpsItemInvalidParameterException, OpsItemLimitExceededException, OpsItemNotFoundException, OpsItemRelatedItemAlreadyExistsException, OpsMetadataAlreadyExistsException, OpsMetadataInvalidArgumentException, OpsMetadataLimitExceededException, OpsMetadataNotFoundException, OpsMetadataTooManyUpdatesException, ParameterNotFound, ResourceDataSyncAlreadyExistsException, ResourceDataSyncCountExceededException, ResourceDataSyncInvalidConfigurationException, ResourceDataSyncNotFoundException, ResourceInUseException, ResourceLimitExceededException, ResourcePolicyConflictException, ResourcePolicyInvalidParameterException, TargetInUseException, TooManyTagsError, TooManyUpdates, UnsupportedOperatingSystem, UnsupportedPlatformType, } from "../models/models_0"; import { AssociationVersionLimitExceeded, AutomationDefinitionNotApprovedException, AutomationDefinitionNotFoundException, AutomationDefinitionVersionNotFoundException, AutomationExecutionLimitExceededException, AutomationStepNotFoundException, ComplianceTypeCountLimitExceededException, CustomSchemaCountLimitExceededException, DocumentPermissionLimit, FeatureNotAvailableException, HierarchyLevelLimitExceededException, HierarchyTypeMismatchException, IncompatiblePolicyException, InvalidAggregatorException, InvalidAllowedPatternException, InvalidAssociation, InvalidAutomationExecutionParametersException, InvalidAutomationSignalException, InvalidAutomationStatusUpdateException, InvalidDocumentType, InvalidFilterOption, InvalidInventoryGroupException, InvalidInventoryItemContextException, InvalidItemContentException, InvalidKeyId, InvalidNotificationConfig, InvalidOutputFolder, InvalidPluginName, InvalidPolicyAttributeException, InvalidPolicyTypeException, InvalidResultAttributeException, InvalidRole, InvocationDoesNotExist, ItemContentMismatchException, ItemSizeLimitExceededException, OpsItemRelatedItemAssociationNotFoundException, ParameterAlreadyExists, ParameterLimitExceeded, ParameterMaxVersionLimitExceeded, ParameterPatternMismatchException, ParameterVersionLabelLimitExceeded, ParameterVersionNotFound, PoliciesLimitExceededException, ResourcePolicyLimitExceededException, ServiceSettingNotFound, SubTypeCountLimitExceededException, TargetNotConnected, TotalSizeLimitExceededException, UnsupportedCalendarException, UnsupportedFeatureRequiredException, UnsupportedInventoryItemContextException, UnsupportedInventorySchemaVersionException, UnsupportedParameterType, } from "../models/models_1"; import { DocumentVersionLimitExceeded, DuplicateDocumentContent, DuplicateDocumentVersionName, InvalidUpdate, OpsMetadataKeyLimitExceededException, ResourceDataSyncConflictException, StatusUnchanged, } from "../models/models_2"; import { SSMServiceException as __BaseException } from "../models/SSMServiceException"; export const se_AddTagsToResourceCommand = async (input, context) => { const headers = sharedHeaders("AddTagsToResource"); let body; body = JSON.stringify(se_AddTagsToResourceRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_AssociateOpsItemRelatedItemCommand = async (input, context) => { const headers = sharedHeaders("AssociateOpsItemRelatedItem"); let body; body = JSON.stringify(se_AssociateOpsItemRelatedItemRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_CancelCommandCommand = async (input, context) => { const headers = sharedHeaders("CancelCommand"); let body; body = JSON.stringify(se_CancelCommandRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_CancelMaintenanceWindowExecutionCommand = async (input, context) => { const headers = sharedHeaders("CancelMaintenanceWindowExecution"); let body; body = JSON.stringify(se_CancelMaintenanceWindowExecutionRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_CreateActivationCommand = async (input, context) => { const headers = sharedHeaders("CreateActivation"); let body; body = JSON.stringify(se_CreateActivationRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_CreateAssociationCommand = async (input, context) => { const headers = sharedHeaders("CreateAssociation"); let body; body = JSON.stringify(se_CreateAssociationRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_CreateAssociationBatchCommand = async (input, context) => { const headers = sharedHeaders("CreateAssociationBatch"); let body; body = JSON.stringify(se_CreateAssociationBatchRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_CreateDocumentCommand = async (input, context) => { const headers = sharedHeaders("CreateDocument"); let body; body = JSON.stringify(se_CreateDocumentRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_CreateMaintenanceWindowCommand = async (input, context) => { const headers = sharedHeaders("CreateMaintenanceWindow"); let body; body = JSON.stringify(se_CreateMaintenanceWindowRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_CreateOpsItemCommand = async (input, context) => { const headers = sharedHeaders("CreateOpsItem"); let body; body = JSON.stringify(se_CreateOpsItemRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_CreateOpsMetadataCommand = async (input, context) => { const headers = sharedHeaders("CreateOpsMetadata"); let body; body = JSON.stringify(se_CreateOpsMetadataRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_CreatePatchBaselineCommand = async (input, context) => { const headers = sharedHeaders("CreatePatchBaseline"); let body; body = JSON.stringify(se_CreatePatchBaselineRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_CreateResourceDataSyncCommand = async (input, context) => { const headers = sharedHeaders("CreateResourceDataSync"); let body; body = JSON.stringify(se_CreateResourceDataSyncRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_DeleteActivationCommand = async (input, context) => { const headers = sharedHeaders("DeleteActivation"); let body; body = JSON.stringify(se_DeleteActivationRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_DeleteAssociationCommand = async (input, context) => { const headers = sharedHeaders("DeleteAssociation"); let body; body = JSON.stringify(se_DeleteAssociationRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_DeleteDocumentCommand = async (input, context) => { const headers = sharedHeaders("DeleteDocument"); let body; body = JSON.stringify(se_DeleteDocumentRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_DeleteInventoryCommand = async (input, context) => { const headers = sharedHeaders("DeleteInventory"); let body; body = JSON.stringify(se_DeleteInventoryRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_DeleteMaintenanceWindowCommand = async (input, context) => { const headers = sharedHeaders("DeleteMaintenanceWindow"); let body; body = JSON.stringify(se_DeleteMaintenanceWindowRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_DeleteOpsMetadataCommand = async (input, context) => { const headers = sharedHeaders("DeleteOpsMetadata"); let body; body = JSON.stringify(se_DeleteOpsMetadataRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_DeleteParameterCommand = async (input, context) => { const headers = sharedHeaders("DeleteParameter"); let body; body = JSON.stringify(se_DeleteParameterRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_DeleteParametersCommand = async (input, context) => { const headers = sharedHeaders("DeleteParameters"); let body; body = JSON.stringify(se_DeleteParametersRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_DeletePatchBaselineCommand = async (input, context) => { const headers = sharedHeaders("DeletePatchBaseline"); let body; body = JSON.stringify(se_DeletePatchBaselineRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_DeleteResourceDataSyncCommand = async (input, context) => { const headers = sharedHeaders("DeleteResourceDataSync"); let body; body = JSON.stringify(se_DeleteResourceDataSyncRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_DeleteResourcePolicyCommand = async (input, context) => { const headers = sharedHeaders("DeleteResourcePolicy"); let body; body = JSON.stringify(se_DeleteResourcePolicyRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_DeregisterManagedInstanceCommand = async (input, context) => { const headers = sharedHeaders("DeregisterManagedInstance"); let body; body = JSON.stringify(se_DeregisterManagedInstanceRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_DeregisterPatchBaselineForPatchGroupCommand = async (input, context) => { const headers = sharedHeaders("DeregisterPatchBaselineForPatchGroup"); let body; body = JSON.stringify(se_DeregisterPatchBaselineForPatchGroupRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_DeregisterTargetFromMaintenanceWindowCommand = async (input, context) => { const headers = sharedHeaders("DeregisterTargetFromMaintenanceWindow"); let body; body = JSON.stringify(se_DeregisterTargetFromMaintenanceWindowRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_DeregisterTaskFromMaintenanceWindowCommand = async (input, context) => { const headers = sharedHeaders("DeregisterTaskFromMaintenanceWindow"); let body; body = JSON.stringify(se_DeregisterTaskFromMaintenanceWindowRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_DescribeActivationsCommand = async (input, context) => { const headers = sharedHeaders("DescribeActivations"); let body; body = JSON.stringify(se_DescribeActivationsRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_DescribeAssociationCommand = async (input, context) => { const headers = sharedHeaders("DescribeAssociation"); let body; body = JSON.stringify(se_DescribeAssociationRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_DescribeAssociationExecutionsCommand = async (input, context) => { const headers = sharedHeaders("DescribeAssociationExecutions"); let body; body = JSON.stringify(se_DescribeAssociationExecutionsRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_DescribeAssociationExecutionTargetsCommand = async (input, context) => { const headers = sharedHeaders("DescribeAssociationExecutionTargets"); let body; body = JSON.stringify(se_DescribeAssociationExecutionTargetsRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_DescribeAutomationExecutionsCommand = async (input, context) => { const headers = sharedHeaders("DescribeAutomationExecutions"); let body; body = JSON.stringify(se_DescribeAutomationExecutionsRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_DescribeAutomationStepExecutionsCommand = async (input, context) => { const headers = sharedHeaders("DescribeAutomationStepExecutions"); let body; body = JSON.stringify(se_DescribeAutomationStepExecutionsRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_DescribeAvailablePatchesCommand = async (input, context) => { const headers = sharedHeaders("DescribeAvailablePatches"); let body; body = JSON.stringify(se_DescribeAvailablePatchesRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_DescribeDocumentCommand = async (input, context) => { const headers = sharedHeaders("DescribeDocument"); let body; body = JSON.stringify(se_DescribeDocumentRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_DescribeDocumentPermissionCommand = async (input, context) => { const headers = sharedHeaders("DescribeDocumentPermission"); let body; body = JSON.stringify(se_DescribeDocumentPermissionRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_DescribeEffectiveInstanceAssociationsCommand = async (input, context) => { const headers = sharedHeaders("DescribeEffectiveInstanceAssociations"); let body; body = JSON.stringify(se_DescribeEffectiveInstanceAssociationsRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_DescribeEffectivePatchesForPatchBaselineCommand = async (input, context) => { const headers = sharedHeaders("DescribeEffectivePatchesForPatchBaseline"); let body; body = JSON.stringify(se_DescribeEffectivePatchesForPatchBaselineRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_DescribeInstanceAssociationsStatusCommand = async (input, context) => { const headers = sharedHeaders("DescribeInstanceAssociationsStatus"); let body; body = JSON.stringify(se_DescribeInstanceAssociationsStatusRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_DescribeInstanceInformationCommand = async (input, context) => { const headers = sharedHeaders("DescribeInstanceInformation"); let body; body = JSON.stringify(se_DescribeInstanceInformationRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_DescribeInstancePatchesCommand = async (input, context) => { const headers = sharedHeaders("DescribeInstancePatches"); let body; body = JSON.stringify(se_DescribeInstancePatchesRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_DescribeInstancePatchStatesCommand = async (input, context) => { const headers = sharedHeaders("DescribeInstancePatchStates"); let body; body = JSON.stringify(se_DescribeInstancePatchStatesRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_DescribeInstancePatchStatesForPatchGroupCommand = async (input, context) => { const headers = sharedHeaders("DescribeInstancePatchStatesForPatchGroup"); let body; body = JSON.stringify(se_DescribeInstancePatchStatesForPatchGroupRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_DescribeInventoryDeletionsCommand = async (input, context) => { const headers = sharedHeaders("DescribeInventoryDeletions"); let body; body = JSON.stringify(se_DescribeInventoryDeletionsRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_DescribeMaintenanceWindowExecutionsCommand = async (input, context) => { const headers = sharedHeaders("DescribeMaintenanceWindowExecutions"); let body; body = JSON.stringify(se_DescribeMaintenanceWindowExecutionsRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_DescribeMaintenanceWindowExecutionTaskInvocationsCommand = async (input, context) => { const headers = sharedHeaders("DescribeMaintenanceWindowExecutionTaskInvocations"); let body; body = JSON.stringify(se_DescribeMaintenanceWindowExecutionTaskInvocationsRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_DescribeMaintenanceWindowExecutionTasksCommand = async (input, context) => { const headers = sharedHeaders("DescribeMaintenanceWindowExecutionTasks"); let body; body = JSON.stringify(se_DescribeMaintenanceWindowExecutionTasksRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_DescribeMaintenanceWindowsCommand = async (input, context) => { const headers = sharedHeaders("DescribeMaintenanceWindows"); let body; body = JSON.stringify(se_DescribeMaintenanceWindowsRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_DescribeMaintenanceWindowScheduleCommand = async (input, context) => { const headers = sharedHeaders("DescribeMaintenanceWindowSchedule"); let body; body = JSON.stringify(se_DescribeMaintenanceWindowScheduleRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_DescribeMaintenanceWindowsForTargetCommand = async (input, context) => { const headers = sharedHeaders("DescribeMaintenanceWindowsForTarget"); let body; body = JSON.stringify(se_DescribeMaintenanceWindowsForTargetRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_DescribeMaintenanceWindowTargetsCommand = async (input, context) => { const headers = sharedHeaders("DescribeMaintenanceWindowTargets"); let body; body = JSON.stringify(se_DescribeMaintenanceWindowTargetsRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_DescribeMaintenanceWindowTasksCommand = async (input, context) => { const headers = sharedHeaders("DescribeMaintenanceWindowTasks"); let body; body = JSON.stringify(se_DescribeMaintenanceWindowTasksRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_DescribeOpsItemsCommand = async (input, context) => { const headers = sharedHeaders("DescribeOpsItems"); let body; body = JSON.stringify(se_DescribeOpsItemsRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_DescribeParametersCommand = async (input, context) => { const headers = sharedHeaders("DescribeParameters"); let body; body = JSON.stringify(se_DescribeParametersRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_DescribePatchBaselinesCommand = async (input, context) => { const headers = sharedHeaders("DescribePatchBaselines"); let body; body = JSON.stringify(se_DescribePatchBaselinesRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_DescribePatchGroupsCommand = async (input, context) => { const headers = sharedHeaders("DescribePatchGroups"); let body; body = JSON.stringify(se_DescribePatchGroupsRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_DescribePatchGroupStateCommand = async (input, context) => { const headers = sharedHeaders("DescribePatchGroupState"); let body; body = JSON.stringify(se_DescribePatchGroupStateRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_DescribePatchPropertiesCommand = async (input, context) => { const headers = sharedHeaders("DescribePatchProperties"); let body; body = JSON.stringify(se_DescribePatchPropertiesRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_DescribeSessionsCommand = async (input, context) => { const headers = sharedHeaders("DescribeSessions"); let body; body = JSON.stringify(se_DescribeSessionsRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_DisassociateOpsItemRelatedItemCommand = async (input, context) => { const headers = sharedHeaders("DisassociateOpsItemRelatedItem"); let body; body = JSON.stringify(se_DisassociateOpsItemRelatedItemRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_GetAutomationExecutionCommand = async (input, context) => { const headers = sharedHeaders("GetAutomationExecution"); let body; body = JSON.stringify(se_GetAutomationExecutionRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_GetCalendarStateCommand = async (input, context) => { const headers = sharedHeaders("GetCalendarState"); let body; body = JSON.stringify(se_GetCalendarStateRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_GetCommandInvocationCommand = async (input, context) => { const headers = sharedHeaders("GetCommandInvocation"); let body; body = JSON.stringify(se_GetCommandInvocationRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_GetConnectionStatusCommand = async (input, context) => { const headers = sharedHeaders("GetConnectionStatus"); let body; body = JSON.stringify(se_GetConnectionStatusRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_GetDefaultPatchBaselineCommand = async (input, context) => { const headers = sharedHeaders("GetDefaultPatchBaseline"); let body; body = JSON.stringify(se_GetDefaultPatchBaselineRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_GetDeployablePatchSnapshotForInstanceCommand = async (input, context) => { const headers = sharedHeaders("GetDeployablePatchSnapshotForInstance"); let body; body = JSON.stringify(se_GetDeployablePatchSnapshotForInstanceRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_GetDocumentCommand = async (input, context) => { const headers = sharedHeaders("GetDocument"); let body; body = JSON.stringify(se_GetDocumentRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_GetInventoryCommand = async (input, context) => { const headers = sharedHeaders("GetInventory"); let body; body = JSON.stringify(se_GetInventoryRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_GetInventorySchemaCommand = async (input, context) => { const headers = sharedHeaders("GetInventorySchema"); let body; body = JSON.stringify(se_GetInventorySchemaRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_GetMaintenanceWindowCommand = async (input, context) => { const headers = sharedHeaders("GetMaintenanceWindow"); let body; body = JSON.stringify(se_GetMaintenanceWindowRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_GetMaintenanceWindowExecutionCommand = async (input, context) => { const headers = sharedHeaders("GetMaintenanceWindowExecution"); let body; body = JSON.stringify(se_GetMaintenanceWindowExecutionRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_GetMaintenanceWindowExecutionTaskCommand = async (input, context) => { const headers = sharedHeaders("GetMaintenanceWindowExecutionTask"); let body; body = JSON.stringify(se_GetMaintenanceWindowExecutionTaskRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_GetMaintenanceWindowExecutionTaskInvocationCommand = async (input, context) => { const headers = sharedHeaders("GetMaintenanceWindowExecutionTaskInvocation"); let body; body = JSON.stringify(se_GetMaintenanceWindowExecutionTaskInvocationRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_GetMaintenanceWindowTaskCommand = async (input, context) => { const headers = sharedHeaders("GetMaintenanceWindowTask"); let body; body = JSON.stringify(se_GetMaintenanceWindowTaskRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_GetOpsItemCommand = async (input, context) => { const headers = sharedHeaders("GetOpsItem"); let body; body = JSON.stringify(se_GetOpsItemRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_GetOpsMetadataCommand = async (input, context) => { const headers = sharedHeaders("GetOpsMetadata"); let body; body = JSON.stringify(se_GetOpsMetadataRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_GetOpsSummaryCommand = async (input, context) => { const headers = sharedHeaders("GetOpsSummary"); let body; body = JSON.stringify(se_GetOpsSummaryRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_GetParameterCommand = async (input, context) => { const headers = sharedHeaders("GetParameter"); let body; body = JSON.stringify(se_GetParameterRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_GetParameterHistoryCommand = async (input, context) => { const headers = sharedHeaders("GetParameterHistory"); let body; body = JSON.stringify(se_GetParameterHistoryRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_GetParametersCommand = async (input, context) => { const headers = sharedHeaders("GetParameters"); let body; body = JSON.stringify(se_GetParametersRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_GetParametersByPathCommand = async (input, context) => { const headers = sharedHeaders("GetParametersByPath"); let body; body = JSON.stringify(se_GetParametersByPathRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_GetPatchBaselineCommand = async (input, context) => { const headers = sharedHeaders("GetPatchBaseline"); let body; body = JSON.stringify(se_GetPatchBaselineRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_GetPatchBaselineForPatchGroupCommand = async (input, context) => { const headers = sharedHeaders("GetPatchBaselineForPatchGroup"); let body; body = JSON.stringify(se_GetPatchBaselineForPatchGroupRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_GetResourcePoliciesCommand = async (input, context) => { const headers = sharedHeaders("GetResourcePolicies"); let body; body = JSON.stringify(se_GetResourcePoliciesRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_GetServiceSettingCommand = async (input, context) => { const headers = sharedHeaders("GetServiceSetting"); let body; body = JSON.stringify(se_GetServiceSettingRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_LabelParameterVersionCommand = async (input, context) => { const headers = sharedHeaders("LabelParameterVersion"); let body; body = JSON.stringify(se_LabelParameterVersionRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_ListAssociationsCommand = async (input, context) => { const headers = sharedHeaders("ListAssociations"); let body; body = JSON.stringify(se_ListAssociationsRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_ListAssociationVersionsCommand = async (input, context) => { const headers = sharedHeaders("ListAssociationVersions"); let body; body = JSON.stringify(se_ListAssociationVersionsRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_ListCommandInvocationsCommand = async (input, context) => { const headers = sharedHeaders("ListCommandInvocations"); let body; body = JSON.stringify(se_ListCommandInvocationsRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_ListCommandsCommand = async (input, context) => { const headers = sharedHeaders("ListCommands"); let body; body = JSON.stringify(se_ListCommandsRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_ListComplianceItemsCommand = async (input, context) => { const headers = sharedHeaders("ListComplianceItems"); let body; body = JSON.stringify(se_ListComplianceItemsRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_ListComplianceSummariesCommand = async (input, context) => { const headers = sharedHeaders("ListComplianceSummaries"); let body; body = JSON.stringify(se_ListComplianceSummariesRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_ListDocumentMetadataHistoryCommand = async (input, context) => { const headers = sharedHeaders("ListDocumentMetadataHistory"); let body; body = JSON.stringify(se_ListDocumentMetadataHistoryRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_ListDocumentsCommand = async (input, context) => { const headers = sharedHeaders("ListDocuments"); let body; body = JSON.stringify(se_ListDocumentsRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_ListDocumentVersionsCommand = async (input, context) => { const headers = sharedHeaders("ListDocumentVersions"); let body; body = JSON.stringify(se_ListDocumentVersionsRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_ListInventoryEntriesCommand = async (input, context) => { const headers = sharedHeaders("ListInventoryEntries"); let body; body = JSON.stringify(se_ListInventoryEntriesRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_ListOpsItemEventsCommand = async (input, context) => { const headers = sharedHeaders("ListOpsItemEvents"); let body; body = JSON.stringify(se_ListOpsItemEventsRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_ListOpsItemRelatedItemsCommand = async (input, context) => { const headers = sharedHeaders("ListOpsItemRelatedItems"); let body; body = JSON.stringify(se_ListOpsItemRelatedItemsRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_ListOpsMetadataCommand = async (input, context) => { const headers = sharedHeaders("ListOpsMetadata"); let body; body = JSON.stringify(se_ListOpsMetadataRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_ListResourceComplianceSummariesCommand = async (input, context) => { const headers = sharedHeaders("ListResourceComplianceSummaries"); let body; body = JSON.stringify(se_ListResourceComplianceSummariesRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_ListResourceDataSyncCommand = async (input, context) => { const headers = sharedHeaders("ListResourceDataSync"); let body; body = JSON.stringify(se_ListResourceDataSyncRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_ListTagsForResourceCommand = async (input, context) => { const headers = sharedHeaders("ListTagsForResource"); let body; body = JSON.stringify(se_ListTagsForResourceRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_ModifyDocumentPermissionCommand = async (input, context) => { const headers = sharedHeaders("ModifyDocumentPermission"); let body; body = JSON.stringify(se_ModifyDocumentPermissionRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_PutComplianceItemsCommand = async (input, context) => { const headers = sharedHeaders("PutComplianceItems"); let body; body = JSON.stringify(se_PutComplianceItemsRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_PutInventoryCommand = async (input, context) => { const headers = sharedHeaders("PutInventory"); let body; body = JSON.stringify(se_PutInventoryRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_PutParameterCommand = async (input, context) => { const headers = sharedHeaders("PutParameter"); let body; body = JSON.stringify(se_PutParameterRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_PutResourcePolicyCommand = async (input, context) => { const headers = sharedHeaders("PutResourcePolicy"); let body; body = JSON.stringify(se_PutResourcePolicyRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_RegisterDefaultPatchBaselineCommand = async (input, context) => { const headers = sharedHeaders("RegisterDefaultPatchBaseline"); let body; body = JSON.stringify(se_RegisterDefaultPatchBaselineRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_RegisterPatchBaselineForPatchGroupCommand = async (input, context) => { const headers = sharedHeaders("RegisterPatchBaselineForPatchGroup"); let body; body = JSON.stringify(se_RegisterPatchBaselineForPatchGroupRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_RegisterTargetWithMaintenanceWindowCommand = async (input, context) => { const headers = sharedHeaders("RegisterTargetWithMaintenanceWindow"); let body; body = JSON.stringify(se_RegisterTargetWithMaintenanceWindowRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_RegisterTaskWithMaintenanceWindowCommand = async (input, context) => { const headers = sharedHeaders("RegisterTaskWithMaintenanceWindow"); let body; body = JSON.stringify(se_RegisterTaskWithMaintenanceWindowRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_RemoveTagsFromResourceCommand = async (input, context) => { const headers = sharedHeaders("RemoveTagsFromResource"); let body; body = JSON.stringify(se_RemoveTagsFromResourceRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_ResetServiceSettingCommand = async (input, context) => { const headers = sharedHeaders("ResetServiceSetting"); let body; body = JSON.stringify(se_ResetServiceSettingRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_ResumeSessionCommand = async (input, context) => { const headers = sharedHeaders("ResumeSession"); let body; body = JSON.stringify(se_ResumeSessionRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_SendAutomationSignalCommand = async (input, context) => { const headers = sharedHeaders("SendAutomationSignal"); let body; body = JSON.stringify(se_SendAutomationSignalRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_SendCommandCommand = async (input, context) => { const headers = sharedHeaders("SendCommand"); let body; body = JSON.stringify(se_SendCommandRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_StartAssociationsOnceCommand = async (input, context) => { const headers = sharedHeaders("StartAssociationsOnce"); let body; body = JSON.stringify(se_StartAssociationsOnceRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_StartAutomationExecutionCommand = async (input, context) => { const headers = sharedHeaders("StartAutomationExecution"); let body; body = JSON.stringify(se_StartAutomationExecutionRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_StartChangeRequestExecutionCommand = async (input, context) => { const headers = sharedHeaders("StartChangeRequestExecution"); let body; body = JSON.stringify(se_StartChangeRequestExecutionRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_StartSessionCommand = async (input, context) => { const headers = sharedHeaders("StartSession"); let body; body = JSON.stringify(se_StartSessionRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_StopAutomationExecutionCommand = async (input, context) => { const headers = sharedHeaders("StopAutomationExecution"); let body; body = JSON.stringify(se_StopAutomationExecutionRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_TerminateSessionCommand = async (input, context) => { const headers = sharedHeaders("TerminateSession"); let body; body = JSON.stringify(se_TerminateSessionRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_UnlabelParameterVersionCommand = async (input, context) => { const headers = sharedHeaders("UnlabelParameterVersion"); let body; body = JSON.stringify(se_UnlabelParameterVersionRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_UpdateAssociationCommand = async (input, context) => { const headers = sharedHeaders("UpdateAssociation"); let body; body = JSON.stringify(se_UpdateAssociationRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_UpdateAssociationStatusCommand = async (input, context) => { const headers = sharedHeaders("UpdateAssociationStatus"); let body; body = JSON.stringify(se_UpdateAssociationStatusRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_UpdateDocumentCommand = async (input, context) => { const headers = sharedHeaders("UpdateDocument"); let body; body = JSON.stringify(se_UpdateDocumentRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_UpdateDocumentDefaultVersionCommand = async (input, context) => { const headers = sharedHeaders("UpdateDocumentDefaultVersion"); let body; body = JSON.stringify(se_UpdateDocumentDefaultVersionRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_UpdateDocumentMetadataCommand = async (input, context) => { const headers = sharedHeaders("UpdateDocumentMetadata"); let body; body = JSON.stringify(se_UpdateDocumentMetadataRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_UpdateMaintenanceWindowCommand = async (input, context) => { const headers = sharedHeaders("UpdateMaintenanceWindow"); let body; body = JSON.stringify(se_UpdateMaintenanceWindowRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_UpdateMaintenanceWindowTargetCommand = async (input, context) => { const headers = sharedHeaders("UpdateMaintenanceWindowTarget"); let body; body = JSON.stringify(se_UpdateMaintenanceWindowTargetRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_UpdateMaintenanceWindowTaskCommand = async (input, context) => { const headers = sharedHeaders("UpdateMaintenanceWindowTask"); let body; body = JSON.stringify(se_UpdateMaintenanceWindowTaskRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_UpdateManagedInstanceRoleCommand = async (input, context) => { const headers = sharedHeaders("UpdateManagedInstanceRole"); let body; body = JSON.stringify(se_UpdateManagedInstanceRoleRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_UpdateOpsItemCommand = async (input, context) => { const headers = sharedHeaders("UpdateOpsItem"); let body; body = JSON.stringify(se_UpdateOpsItemRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_UpdateOpsMetadataCommand = async (input, context) => { const headers = sharedHeaders("UpdateOpsMetadata"); let body; body = JSON.stringify(se_UpdateOpsMetadataRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_UpdatePatchBaselineCommand = async (input, context) => { const headers = sharedHeaders("UpdatePatchBaseline"); let body; body = JSON.stringify(se_UpdatePatchBaselineRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_UpdateResourceDataSyncCommand = async (input, context) => { const headers = sharedHeaders("UpdateResourceDataSync"); let body; body = JSON.stringify(se_UpdateResourceDataSyncRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const se_UpdateServiceSettingCommand = async (input, context) => { const headers = sharedHeaders("UpdateServiceSetting"); let body; body = JSON.stringify(se_UpdateServiceSettingRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", undefined, body); }; export const de_AddTagsToResourceCommand = async (output, context) => { if (output.statusCode >= 300) { return de_AddTagsToResourceCommandError(output, context); } const data = await parseBody(output.body, context); let contents = {}; contents = de_AddTagsToResourceResult(data, context); const response = { $metadata: deserializeMetadata(output), ...contents, }; return Promise.resolve(response); }; const de_AddTagsToResourceCommandError = async (output, context) => { const parsedOutput = { ...output, body: await parseErrorBody(output.body, context), }; const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { case "InternalServerError": case "com.amazonaws.ssm#InternalServerError": throw await de_InternalServerErrorRes(parsedOutput, context); case "InvalidResourceId": case "com.amazonaws.ssm#InvalidResourceId": throw await de_InvalidResourceIdRes(parsedOutput, context); case "InvalidResourceType": case "com.amazonaws.ssm#InvalidResourceType": throw await de_InvalidResourceTypeRes(parsedOutput, context); case "TooManyTagsError": case "com.amazonaws.ssm#TooManyTagsError": throw await de_TooManyTagsErrorRes(parsedOutput, context); case "TooManyUpdates": case "com.amazonaws.ssm#TooManyUpdates": throw await de_TooManyUpdatesRes(parsedOutput, context); default: const parsedBody = parsedOutput.body; throwDefaultError({ output, parsedBody, exceptionCtor: __BaseException, errorCode, }); } }; export const de_AssociateOpsItemRelatedItemCommand = async (output, context) => { if (output.statusCode >= 300) { return de_AssociateOpsItemRelatedItemCommandError(output, context); } const data = await parseBody(output.body, context); let contents = {}; contents = de_AssociateOpsItemRelatedItemResponse(data, context); const response = { $metadata: deserializeMetadata(output), ...contents, }; return Promise.resolve(response); }; const de_AssociateOpsItemRelatedItemCommandError = async (output, context) => { const parsedOutput = { ...output, body: await parseErrorBody(output.body, context), }; const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { case "InternalServerError": case "com.amazonaws.ssm#InternalServerError": throw await de_InternalServerErrorRes(parsedOutput, context); case "OpsItemInvalidParameterException": case "com.amazonaws.ssm#OpsItemInvalidParameterException": throw await de_OpsItemInvalidParameterExceptionRes(parsedOutput, context); case "OpsItemLimitExceededException": case "com.amazonaws.ssm#OpsItemLimitExceededException": throw await de_OpsItemLimitExceededExceptionRes(parsedOutput, context); case "OpsItemNotFoundException": case "com.amazonaws.ssm#OpsItemNotFoundException": throw await de_OpsItemNotFoundExceptionRes(parsedOutput, context); case "OpsItemRelatedItemAlreadyExistsException": case "com.amazonaws.ssm#OpsItemRelatedItemAlreadyExistsException": throw await de_OpsItemRelatedItemAlreadyExistsExceptionRes(parsedOutput, context); default: const parsedBody = parsedOutput.body; throwDefaultError({ output,