@aws-sdk/client-efs 3.32.0 → 3.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +45 -0
- package/{dist/cjs → dist-cjs}/EFS.js +2 -3
- package/{dist/cjs → dist-cjs}/EFSClient.js +8 -9
- package/{dist/cjs → dist-cjs}/commands/CreateAccessPointCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/CreateFileSystemCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/CreateMountTargetCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/CreateTagsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DeleteAccessPointCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DeleteFileSystemCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DeleteFileSystemPolicyCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DeleteMountTargetCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DeleteTagsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DescribeAccessPointsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DescribeAccountPreferencesCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DescribeBackupPolicyCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DescribeFileSystemPolicyCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DescribeFileSystemsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DescribeLifecycleConfigurationCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DescribeMountTargetSecurityGroupsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DescribeMountTargetsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DescribeTagsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListTagsForResourceCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ModifyMountTargetSecurityGroupsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/PutAccountPreferencesCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/PutBackupPolicyCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/PutFileSystemPolicyCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/PutLifecycleConfigurationCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/TagResourceCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/UntagResourceCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/UpdateFileSystemCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
- package/{dist/cjs → dist-cjs}/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -1
- package/{dist/cjs → dist-cjs}/pagination/DescribeAccessPointsPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/pagination/DescribeFileSystemsPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/pagination/DescribeTagsPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
- package/{dist/cjs → dist-cjs}/pagination/ListTagsForResourcePaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +16 -9
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +2 -2
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +2 -2
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -1
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -2
- package/{dist/es → dist-es}/EFS.js +3 -11
- package/{dist/es → dist-es}/EFSClient.js +2 -15
- package/{dist/es → dist-es}/commands/CreateAccessPointCommand.js +4 -37
- package/dist-es/commands/CreateFileSystemCommand.js +39 -0
- package/dist-es/commands/CreateMountTargetCommand.js +39 -0
- package/{dist/es → dist-es}/commands/CreateTagsCommand.js +4 -41
- package/{dist/es → dist-es}/commands/DeleteAccessPointCommand.js +4 -33
- package/dist-es/commands/DeleteFileSystemCommand.js +39 -0
- package/{dist/es → dist-es}/commands/DeleteFileSystemPolicyCommand.js +4 -33
- package/dist-es/commands/DeleteMountTargetCommand.js +39 -0
- package/dist-es/commands/DeleteTagsCommand.js +39 -0
- package/{dist/es → dist-es}/commands/DescribeAccessPointsCommand.js +4 -33
- package/{dist/es → dist-es}/commands/DescribeAccountPreferencesCommand.js +4 -31
- package/{dist/es → dist-es}/commands/DescribeBackupPolicyCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DescribeFileSystemPolicyCommand.js +4 -31
- package/dist-es/commands/DescribeFileSystemsCommand.js +39 -0
- package/{dist/es → dist-es}/commands/DescribeLifecycleConfigurationCommand.js +4 -37
- package/{dist/es → dist-es}/commands/DescribeMountTargetSecurityGroupsCommand.js +4 -45
- package/{dist/es → dist-es}/commands/DescribeMountTargetsCommand.js +4 -37
- package/{dist/es → dist-es}/commands/DescribeTagsCommand.js +4 -40
- package/{dist/es → dist-es}/commands/ListTagsForResourceCommand.js +4 -31
- package/dist-es/commands/ModifyMountTargetSecurityGroupsCommand.js +39 -0
- package/{dist/es → dist-es}/commands/PutAccountPreferencesCommand.js +4 -33
- package/{dist/es → dist-es}/commands/PutBackupPolicyCommand.js +4 -30
- package/dist-es/commands/PutFileSystemPolicyCommand.js +39 -0
- package/dist-es/commands/PutLifecycleConfigurationCommand.js +39 -0
- package/{dist/es → dist-es}/commands/TagResourceCommand.js +4 -31
- package/{dist/es → dist-es}/commands/UntagResourceCommand.js +4 -31
- package/{dist/es → dist-es}/commands/UpdateFileSystemCommand.js +4 -31
- package/{dist/es → dist-es}/endpoints.js +1 -2
- package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
- package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -232
- package/{dist/es → dist-es}/pagination/DescribeAccessPointsPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/DescribeFileSystemsPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/DescribeTagsPaginator.js +17 -30
- package/dist-es/pagination/Interfaces.js +1 -0
- package/{dist/es → dist-es}/pagination/ListTagsForResourcePaginator.js +17 -30
- package/{dist/es → dist-es}/protocols/Aws_restJson1.js +750 -748
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
- package/{dist/types → dist-types}/EFS.d.ts +3 -3
- package/{dist/types → dist-types}/EFSClient.d.ts +9 -9
- package/{dist/types → dist-types}/commands/CreateAccessPointCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateFileSystemCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateMountTargetCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateTagsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteAccessPointCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteFileSystemCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteFileSystemPolicyCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteMountTargetCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteTagsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeAccessPointsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeAccountPreferencesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeBackupPolicyCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeFileSystemPolicyCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeFileSystemsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeLifecycleConfigurationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeMountTargetSecurityGroupsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeMountTargetsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeTagsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListTagsForResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ModifyMountTargetSecurityGroupsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/PutAccountPreferencesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/PutBackupPolicyCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/PutFileSystemPolicyCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/PutLifecycleConfigurationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/TagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UntagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UpdateFileSystemCommand.d.ts +2 -2
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{index.ts → dist-types/index.d.ts} +0 -0
- package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
- package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/pagination/DescribeAccessPointsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/DescribeFileSystemsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/DescribeTagsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListTagsForResourcePaginator.d.ts +1 -1
- package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +3 -3
- package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +1 -0
- package/{dist/types/ts3.4 → dist-types}/runtimeConfig.d.ts +37 -36
- package/{dist/types → dist-types}/runtimeConfig.native.d.ts +1 -0
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/EFS.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/EFSClient.d.ts +9 -9
- package/{dist/types → dist-types}/ts3.4/commands/CreateAccessPointCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/CreateFileSystemCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/CreateMountTargetCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/CreateTagsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeleteAccessPointCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeleteFileSystemCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeleteFileSystemPolicyCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeleteMountTargetCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeleteTagsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeAccessPointsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeAccountPreferencesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeBackupPolicyCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeFileSystemPolicyCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeFileSystemsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeLifecycleConfigurationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeMountTargetSecurityGroupsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeMountTargetsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeTagsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ModifyMountTargetSecurityGroupsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/PutAccountPreferencesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/PutBackupPolicyCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/PutFileSystemPolicyCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/PutLifecycleConfigurationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/TagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/UntagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/UpdateFileSystemCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/pagination/DescribeAccessPointsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/DescribeFileSystemsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/DescribeTagsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListTagsForResourcePaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/{dist/types → dist-types/ts3.4}/runtimeConfig.d.ts +37 -36
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
- package/package.json +52 -49
- package/EFS.ts +0 -1385
- package/EFSClient.ts +0 -362
- package/commands/CreateAccessPointCommand.ts +0 -101
- package/commands/CreateFileSystemCommand.ts +0 -147
- package/commands/CreateMountTargetCommand.ts +0 -235
- package/commands/CreateTagsCommand.ts +0 -105
- package/commands/DeleteAccessPointCommand.ts +0 -97
- package/commands/DeleteFileSystemCommand.ts +0 -108
- package/commands/DeleteFileSystemPolicyCommand.ts +0 -97
- package/commands/DeleteMountTargetCommand.ts +0 -127
- package/commands/DeleteTagsCommand.ts +0 -106
- package/commands/DescribeAccessPointsCommand.ts +0 -97
- package/commands/DescribeAccountPreferencesCommand.ts +0 -98
- package/commands/DescribeBackupPolicyCommand.ts +0 -94
- package/commands/DescribeFileSystemPolicyCommand.ts +0 -95
- package/commands/DescribeFileSystemsCommand.ts +0 -116
- package/commands/DescribeLifecycleConfigurationCommand.ts +0 -109
- package/commands/DescribeMountTargetSecurityGroupsCommand.ts +0 -120
- package/commands/DescribeMountTargetsCommand.ts +0 -101
- package/commands/DescribeTagsCommand.ts +0 -104
- package/commands/ListTagsForResourceCommand.ts +0 -95
- package/commands/ModifyMountTargetSecurityGroupsCommand.ts +0 -119
- package/commands/PutAccountPreferencesCommand.ts +0 -97
- package/commands/PutBackupPolicyCommand.ts +0 -94
- package/commands/PutFileSystemPolicyCommand.ts +0 -103
- package/commands/PutLifecycleConfigurationCommand.ts +0 -127
- package/commands/TagResourceCommand.ts +0 -95
- package/commands/UntagResourceCommand.ts +0 -95
- package/commands/UpdateFileSystemCommand.ts +0 -95
- package/dist/cjs/EFS.js.map +0 -1
- package/dist/cjs/EFSClient.js.map +0 -1
- package/dist/cjs/commands/CreateAccessPointCommand.js.map +0 -1
- package/dist/cjs/commands/CreateFileSystemCommand.js.map +0 -1
- package/dist/cjs/commands/CreateMountTargetCommand.js.map +0 -1
- package/dist/cjs/commands/CreateTagsCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteAccessPointCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteFileSystemCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteFileSystemPolicyCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteMountTargetCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteTagsCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeAccessPointsCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeAccountPreferencesCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeBackupPolicyCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeFileSystemPolicyCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeFileSystemsCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeLifecycleConfigurationCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeMountTargetSecurityGroupsCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeMountTargetsCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeTagsCommand.js.map +0 -1
- package/dist/cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist/cjs/commands/ModifyMountTargetSecurityGroupsCommand.js.map +0 -1
- package/dist/cjs/commands/PutAccountPreferencesCommand.js.map +0 -1
- package/dist/cjs/commands/PutBackupPolicyCommand.js.map +0 -1
- package/dist/cjs/commands/PutFileSystemPolicyCommand.js.map +0 -1
- package/dist/cjs/commands/PutLifecycleConfigurationCommand.js.map +0 -1
- package/dist/cjs/commands/TagResourceCommand.js.map +0 -1
- package/dist/cjs/commands/UntagResourceCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateFileSystemCommand.js.map +0 -1
- package/dist/cjs/endpoints.js.map +0 -1
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models/index.js.map +0 -1
- package/dist/cjs/models/models_0.js.map +0 -1
- package/dist/cjs/package.json +0 -93
- package/dist/cjs/pagination/DescribeAccessPointsPaginator.js.map +0 -1
- package/dist/cjs/pagination/DescribeFileSystemsPaginator.js.map +0 -1
- package/dist/cjs/pagination/DescribeTagsPaginator.js.map +0 -1
- package/dist/cjs/pagination/Interfaces.js.map +0 -1
- package/dist/cjs/pagination/ListTagsForResourcePaginator.js.map +0 -1
- package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
- package/dist/cjs/runtimeConfig.browser.js.map +0 -1
- package/dist/cjs/runtimeConfig.js.map +0 -1
- package/dist/cjs/runtimeConfig.native.js.map +0 -1
- package/dist/cjs/runtimeConfig.shared.js.map +0 -1
- package/dist/es/EFS.js.map +0 -1
- package/dist/es/EFSClient.js.map +0 -1
- package/dist/es/commands/CreateAccessPointCommand.js.map +0 -1
- package/dist/es/commands/CreateFileSystemCommand.js +0 -118
- package/dist/es/commands/CreateFileSystemCommand.js.map +0 -1
- package/dist/es/commands/CreateMountTargetCommand.js +0 -206
- package/dist/es/commands/CreateMountTargetCommand.js.map +0 -1
- package/dist/es/commands/CreateTagsCommand.js.map +0 -1
- package/dist/es/commands/DeleteAccessPointCommand.js.map +0 -1
- package/dist/es/commands/DeleteFileSystemCommand.js +0 -79
- package/dist/es/commands/DeleteFileSystemCommand.js.map +0 -1
- package/dist/es/commands/DeleteFileSystemPolicyCommand.js.map +0 -1
- package/dist/es/commands/DeleteMountTargetCommand.js +0 -98
- package/dist/es/commands/DeleteMountTargetCommand.js.map +0 -1
- package/dist/es/commands/DeleteTagsCommand.js +0 -77
- package/dist/es/commands/DeleteTagsCommand.js.map +0 -1
- package/dist/es/commands/DescribeAccessPointsCommand.js.map +0 -1
- package/dist/es/commands/DescribeAccountPreferencesCommand.js.map +0 -1
- package/dist/es/commands/DescribeBackupPolicyCommand.js.map +0 -1
- package/dist/es/commands/DescribeFileSystemPolicyCommand.js.map +0 -1
- package/dist/es/commands/DescribeFileSystemsCommand.js +0 -87
- package/dist/es/commands/DescribeFileSystemsCommand.js.map +0 -1
- package/dist/es/commands/DescribeLifecycleConfigurationCommand.js.map +0 -1
- package/dist/es/commands/DescribeMountTargetSecurityGroupsCommand.js.map +0 -1
- package/dist/es/commands/DescribeMountTargetsCommand.js.map +0 -1
- package/dist/es/commands/DescribeTagsCommand.js.map +0 -1
- package/dist/es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist/es/commands/ModifyMountTargetSecurityGroupsCommand.js +0 -84
- package/dist/es/commands/ModifyMountTargetSecurityGroupsCommand.js.map +0 -1
- package/dist/es/commands/PutAccountPreferencesCommand.js.map +0 -1
- package/dist/es/commands/PutBackupPolicyCommand.js.map +0 -1
- package/dist/es/commands/PutFileSystemPolicyCommand.js +0 -74
- package/dist/es/commands/PutFileSystemPolicyCommand.js.map +0 -1
- package/dist/es/commands/PutLifecycleConfigurationCommand.js +0 -95
- package/dist/es/commands/PutLifecycleConfigurationCommand.js.map +0 -1
- package/dist/es/commands/TagResourceCommand.js.map +0 -1
- package/dist/es/commands/UntagResourceCommand.js.map +0 -1
- package/dist/es/commands/UpdateFileSystemCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js +0 -36
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js +0 -2
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -93
- package/dist/es/pagination/DescribeAccessPointsPaginator.js.map +0 -1
- package/dist/es/pagination/DescribeFileSystemsPaginator.js.map +0 -1
- package/dist/es/pagination/DescribeTagsPaginator.js.map +0 -1
- package/dist/es/pagination/Interfaces.js +0 -2
- package/dist/es/pagination/Interfaces.js.map +0 -1
- package/dist/es/pagination/ListTagsForResourcePaginator.js.map +0 -1
- package/dist/es/protocols/Aws_restJson1.js.map +0 -1
- package/dist/es/runtimeConfig.browser.js.map +0 -1
- package/dist/es/runtimeConfig.js.map +0 -1
- package/dist/es/runtimeConfig.native.js.map +0 -1
- package/dist/es/runtimeConfig.shared.js.map +0 -1
- package/endpoints.ts +0 -183
- package/jest.config.js +0 -4
- package/models/models_0.ts +0 -2185
- package/pagination/DescribeAccessPointsPaginator.ts +0 -58
- package/pagination/DescribeFileSystemsPaginator.ts +0 -58
- package/pagination/DescribeTagsPaginator.ts +0 -58
- package/pagination/Interfaces.ts +0 -7
- package/pagination/ListTagsForResourcePaginator.ts +0 -58
- package/protocols/Aws_restJson1.ts +0 -4417
- package/runtimeConfig.browser.ts +0 -40
- package/runtimeConfig.native.ts +0 -16
- package/runtimeConfig.shared.ts +0 -16
- package/runtimeConfig.ts +0 -45
- package/tsconfig.es.json +0 -12
- package/tsconfig.json +0 -32
|
@@ -7,7 +7,7 @@ export var serializeAws_restJson1CreateAccessPointCommand = function (input, con
|
|
|
7
7
|
var _c;
|
|
8
8
|
return __generator(this, function (_d) {
|
|
9
9
|
switch (_d.label) {
|
|
10
|
-
case 0: return [4
|
|
10
|
+
case 0: return [4, context.endpoint()];
|
|
11
11
|
case 1:
|
|
12
12
|
_a = _d.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
13
13
|
headers = {
|
|
@@ -19,7 +19,7 @@ export var serializeAws_restJson1CreateAccessPointCommand = function (input, con
|
|
|
19
19
|
input.RootDirectory !== null && {
|
|
20
20
|
RootDirectory: serializeAws_restJson1RootDirectory(input.RootDirectory, context),
|
|
21
21
|
})), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1Tags(input.Tags, context) })));
|
|
22
|
-
return [2
|
|
22
|
+
return [2, new __HttpRequest({
|
|
23
23
|
protocol: protocol,
|
|
24
24
|
hostname: hostname,
|
|
25
25
|
port: port,
|
|
@@ -36,7 +36,7 @@ export var serializeAws_restJson1CreateFileSystemCommand = function (input, cont
|
|
|
36
36
|
var _c;
|
|
37
37
|
return __generator(this, function (_d) {
|
|
38
38
|
switch (_d.label) {
|
|
39
|
-
case 0: return [4
|
|
39
|
+
case 0: return [4, context.endpoint()];
|
|
40
40
|
case 1:
|
|
41
41
|
_a = _d.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
42
42
|
headers = {
|
|
@@ -50,7 +50,7 @@ export var serializeAws_restJson1CreateFileSystemCommand = function (input, cont
|
|
|
50
50
|
ProvisionedThroughputInMibps: __serializeFloat(input.ProvisionedThroughputInMibps),
|
|
51
51
|
})), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1Tags(input.Tags, context) })), (input.ThroughputMode !== undefined &&
|
|
52
52
|
input.ThroughputMode !== null && { ThroughputMode: input.ThroughputMode })));
|
|
53
|
-
return [2
|
|
53
|
+
return [2, new __HttpRequest({
|
|
54
54
|
protocol: protocol,
|
|
55
55
|
hostname: hostname,
|
|
56
56
|
port: port,
|
|
@@ -66,7 +66,7 @@ export var serializeAws_restJson1CreateMountTargetCommand = function (input, con
|
|
|
66
66
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
67
67
|
return __generator(this, function (_c) {
|
|
68
68
|
switch (_c.label) {
|
|
69
|
-
case 0: return [4
|
|
69
|
+
case 0: return [4, context.endpoint()];
|
|
70
70
|
case 1:
|
|
71
71
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
72
72
|
headers = {
|
|
@@ -77,7 +77,7 @@ export var serializeAws_restJson1CreateMountTargetCommand = function (input, con
|
|
|
77
77
|
input.SecurityGroups !== null && {
|
|
78
78
|
SecurityGroups: serializeAws_restJson1SecurityGroups(input.SecurityGroups, context),
|
|
79
79
|
})), (input.SubnetId !== undefined && input.SubnetId !== null && { SubnetId: input.SubnetId })));
|
|
80
|
-
return [2
|
|
80
|
+
return [2, new __HttpRequest({
|
|
81
81
|
protocol: protocol,
|
|
82
82
|
hostname: hostname,
|
|
83
83
|
port: port,
|
|
@@ -93,7 +93,7 @@ export var serializeAws_restJson1CreateTagsCommand = function (input, context) {
|
|
|
93
93
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
94
94
|
return __generator(this, function (_c) {
|
|
95
95
|
switch (_c.label) {
|
|
96
|
-
case 0: return [4
|
|
96
|
+
case 0: return [4, context.endpoint()];
|
|
97
97
|
case 1:
|
|
98
98
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
99
99
|
headers = {
|
|
@@ -111,7 +111,7 @@ export var serializeAws_restJson1CreateTagsCommand = function (input, context) {
|
|
|
111
111
|
throw new Error("No value provided for input HTTP label: FileSystemId.");
|
|
112
112
|
}
|
|
113
113
|
body = JSON.stringify(__assign({}, (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1Tags(input.Tags, context) })));
|
|
114
|
-
return [2
|
|
114
|
+
return [2, new __HttpRequest({
|
|
115
115
|
protocol: protocol,
|
|
116
116
|
hostname: hostname,
|
|
117
117
|
port: port,
|
|
@@ -127,7 +127,7 @@ export var serializeAws_restJson1DeleteAccessPointCommand = function (input, con
|
|
|
127
127
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
128
128
|
return __generator(this, function (_c) {
|
|
129
129
|
switch (_c.label) {
|
|
130
|
-
case 0: return [4
|
|
130
|
+
case 0: return [4, context.endpoint()];
|
|
131
131
|
case 1:
|
|
132
132
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
133
133
|
headers = {};
|
|
@@ -142,7 +142,7 @@ export var serializeAws_restJson1DeleteAccessPointCommand = function (input, con
|
|
|
142
142
|
else {
|
|
143
143
|
throw new Error("No value provided for input HTTP label: AccessPointId.");
|
|
144
144
|
}
|
|
145
|
-
return [2
|
|
145
|
+
return [2, new __HttpRequest({
|
|
146
146
|
protocol: protocol,
|
|
147
147
|
hostname: hostname,
|
|
148
148
|
port: port,
|
|
@@ -158,7 +158,7 @@ export var serializeAws_restJson1DeleteFileSystemCommand = function (input, cont
|
|
|
158
158
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
159
159
|
return __generator(this, function (_c) {
|
|
160
160
|
switch (_c.label) {
|
|
161
|
-
case 0: return [4
|
|
161
|
+
case 0: return [4, context.endpoint()];
|
|
162
162
|
case 1:
|
|
163
163
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
164
164
|
headers = {};
|
|
@@ -173,7 +173,7 @@ export var serializeAws_restJson1DeleteFileSystemCommand = function (input, cont
|
|
|
173
173
|
else {
|
|
174
174
|
throw new Error("No value provided for input HTTP label: FileSystemId.");
|
|
175
175
|
}
|
|
176
|
-
return [2
|
|
176
|
+
return [2, new __HttpRequest({
|
|
177
177
|
protocol: protocol,
|
|
178
178
|
hostname: hostname,
|
|
179
179
|
port: port,
|
|
@@ -189,7 +189,7 @@ export var serializeAws_restJson1DeleteFileSystemPolicyCommand = function (input
|
|
|
189
189
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
190
190
|
return __generator(this, function (_c) {
|
|
191
191
|
switch (_c.label) {
|
|
192
|
-
case 0: return [4
|
|
192
|
+
case 0: return [4, context.endpoint()];
|
|
193
193
|
case 1:
|
|
194
194
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
195
195
|
headers = {};
|
|
@@ -205,7 +205,7 @@ export var serializeAws_restJson1DeleteFileSystemPolicyCommand = function (input
|
|
|
205
205
|
else {
|
|
206
206
|
throw new Error("No value provided for input HTTP label: FileSystemId.");
|
|
207
207
|
}
|
|
208
|
-
return [2
|
|
208
|
+
return [2, new __HttpRequest({
|
|
209
209
|
protocol: protocol,
|
|
210
210
|
hostname: hostname,
|
|
211
211
|
port: port,
|
|
@@ -221,7 +221,7 @@ export var serializeAws_restJson1DeleteMountTargetCommand = function (input, con
|
|
|
221
221
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
222
222
|
return __generator(this, function (_c) {
|
|
223
223
|
switch (_c.label) {
|
|
224
|
-
case 0: return [4
|
|
224
|
+
case 0: return [4, context.endpoint()];
|
|
225
225
|
case 1:
|
|
226
226
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
227
227
|
headers = {};
|
|
@@ -236,7 +236,7 @@ export var serializeAws_restJson1DeleteMountTargetCommand = function (input, con
|
|
|
236
236
|
else {
|
|
237
237
|
throw new Error("No value provided for input HTTP label: MountTargetId.");
|
|
238
238
|
}
|
|
239
|
-
return [2
|
|
239
|
+
return [2, new __HttpRequest({
|
|
240
240
|
protocol: protocol,
|
|
241
241
|
hostname: hostname,
|
|
242
242
|
port: port,
|
|
@@ -252,7 +252,7 @@ export var serializeAws_restJson1DeleteTagsCommand = function (input, context) {
|
|
|
252
252
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
253
253
|
return __generator(this, function (_c) {
|
|
254
254
|
switch (_c.label) {
|
|
255
|
-
case 0: return [4
|
|
255
|
+
case 0: return [4, context.endpoint()];
|
|
256
256
|
case 1:
|
|
257
257
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
258
258
|
headers = {
|
|
@@ -271,7 +271,7 @@ export var serializeAws_restJson1DeleteTagsCommand = function (input, context) {
|
|
|
271
271
|
}
|
|
272
272
|
body = JSON.stringify(__assign({}, (input.TagKeys !== undefined &&
|
|
273
273
|
input.TagKeys !== null && { TagKeys: serializeAws_restJson1TagKeys(input.TagKeys, context) })));
|
|
274
|
-
return [2
|
|
274
|
+
return [2, new __HttpRequest({
|
|
275
275
|
protocol: protocol,
|
|
276
276
|
hostname: hostname,
|
|
277
277
|
port: port,
|
|
@@ -287,13 +287,13 @@ export var serializeAws_restJson1DescribeAccessPointsCommand = function (input,
|
|
|
287
287
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
288
288
|
return __generator(this, function (_c) {
|
|
289
289
|
switch (_c.label) {
|
|
290
|
-
case 0: return [4
|
|
290
|
+
case 0: return [4, context.endpoint()];
|
|
291
291
|
case 1:
|
|
292
292
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
293
293
|
headers = {};
|
|
294
294
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2015-02-01/access-points";
|
|
295
295
|
query = __assign(__assign(__assign(__assign({}, (input.MaxResults !== undefined && { MaxResults: input.MaxResults.toString() })), (input.NextToken !== undefined && { NextToken: input.NextToken })), (input.AccessPointId !== undefined && { AccessPointId: input.AccessPointId })), (input.FileSystemId !== undefined && { FileSystemId: input.FileSystemId }));
|
|
296
|
-
return [2
|
|
296
|
+
return [2, new __HttpRequest({
|
|
297
297
|
protocol: protocol,
|
|
298
298
|
hostname: hostname,
|
|
299
299
|
port: port,
|
|
@@ -310,7 +310,7 @@ export var serializeAws_restJson1DescribeAccountPreferencesCommand = function (i
|
|
|
310
310
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
311
311
|
return __generator(this, function (_c) {
|
|
312
312
|
switch (_c.label) {
|
|
313
|
-
case 0: return [4
|
|
313
|
+
case 0: return [4, context.endpoint()];
|
|
314
314
|
case 1:
|
|
315
315
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
316
316
|
headers = {
|
|
@@ -318,7 +318,7 @@ export var serializeAws_restJson1DescribeAccountPreferencesCommand = function (i
|
|
|
318
318
|
};
|
|
319
319
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2015-02-01/account-preferences";
|
|
320
320
|
body = JSON.stringify(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })));
|
|
321
|
-
return [2
|
|
321
|
+
return [2, new __HttpRequest({
|
|
322
322
|
protocol: protocol,
|
|
323
323
|
hostname: hostname,
|
|
324
324
|
port: port,
|
|
@@ -334,7 +334,7 @@ export var serializeAws_restJson1DescribeBackupPolicyCommand = function (input,
|
|
|
334
334
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
335
335
|
return __generator(this, function (_c) {
|
|
336
336
|
switch (_c.label) {
|
|
337
|
-
case 0: return [4
|
|
337
|
+
case 0: return [4, context.endpoint()];
|
|
338
338
|
case 1:
|
|
339
339
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
340
340
|
headers = {};
|
|
@@ -350,7 +350,7 @@ export var serializeAws_restJson1DescribeBackupPolicyCommand = function (input,
|
|
|
350
350
|
else {
|
|
351
351
|
throw new Error("No value provided for input HTTP label: FileSystemId.");
|
|
352
352
|
}
|
|
353
|
-
return [2
|
|
353
|
+
return [2, new __HttpRequest({
|
|
354
354
|
protocol: protocol,
|
|
355
355
|
hostname: hostname,
|
|
356
356
|
port: port,
|
|
@@ -366,7 +366,7 @@ export var serializeAws_restJson1DescribeFileSystemPolicyCommand = function (inp
|
|
|
366
366
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
367
367
|
return __generator(this, function (_c) {
|
|
368
368
|
switch (_c.label) {
|
|
369
|
-
case 0: return [4
|
|
369
|
+
case 0: return [4, context.endpoint()];
|
|
370
370
|
case 1:
|
|
371
371
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
372
372
|
headers = {};
|
|
@@ -382,7 +382,7 @@ export var serializeAws_restJson1DescribeFileSystemPolicyCommand = function (inp
|
|
|
382
382
|
else {
|
|
383
383
|
throw new Error("No value provided for input HTTP label: FileSystemId.");
|
|
384
384
|
}
|
|
385
|
-
return [2
|
|
385
|
+
return [2, new __HttpRequest({
|
|
386
386
|
protocol: protocol,
|
|
387
387
|
hostname: hostname,
|
|
388
388
|
port: port,
|
|
@@ -398,13 +398,13 @@ export var serializeAws_restJson1DescribeFileSystemsCommand = function (input, c
|
|
|
398
398
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
399
399
|
return __generator(this, function (_c) {
|
|
400
400
|
switch (_c.label) {
|
|
401
|
-
case 0: return [4
|
|
401
|
+
case 0: return [4, context.endpoint()];
|
|
402
402
|
case 1:
|
|
403
403
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
404
404
|
headers = {};
|
|
405
405
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2015-02-01/file-systems";
|
|
406
406
|
query = __assign(__assign(__assign(__assign({}, (input.MaxItems !== undefined && { MaxItems: input.MaxItems.toString() })), (input.Marker !== undefined && { Marker: input.Marker })), (input.CreationToken !== undefined && { CreationToken: input.CreationToken })), (input.FileSystemId !== undefined && { FileSystemId: input.FileSystemId }));
|
|
407
|
-
return [2
|
|
407
|
+
return [2, new __HttpRequest({
|
|
408
408
|
protocol: protocol,
|
|
409
409
|
hostname: hostname,
|
|
410
410
|
port: port,
|
|
@@ -421,7 +421,7 @@ export var serializeAws_restJson1DescribeLifecycleConfigurationCommand = functio
|
|
|
421
421
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
422
422
|
return __generator(this, function (_c) {
|
|
423
423
|
switch (_c.label) {
|
|
424
|
-
case 0: return [4
|
|
424
|
+
case 0: return [4, context.endpoint()];
|
|
425
425
|
case 1:
|
|
426
426
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
427
427
|
headers = {};
|
|
@@ -437,7 +437,7 @@ export var serializeAws_restJson1DescribeLifecycleConfigurationCommand = functio
|
|
|
437
437
|
else {
|
|
438
438
|
throw new Error("No value provided for input HTTP label: FileSystemId.");
|
|
439
439
|
}
|
|
440
|
-
return [2
|
|
440
|
+
return [2, new __HttpRequest({
|
|
441
441
|
protocol: protocol,
|
|
442
442
|
hostname: hostname,
|
|
443
443
|
port: port,
|
|
@@ -453,13 +453,13 @@ export var serializeAws_restJson1DescribeMountTargetsCommand = function (input,
|
|
|
453
453
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
454
454
|
return __generator(this, function (_c) {
|
|
455
455
|
switch (_c.label) {
|
|
456
|
-
case 0: return [4
|
|
456
|
+
case 0: return [4, context.endpoint()];
|
|
457
457
|
case 1:
|
|
458
458
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
459
459
|
headers = {};
|
|
460
460
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2015-02-01/mount-targets";
|
|
461
461
|
query = __assign(__assign(__assign(__assign(__assign({}, (input.MaxItems !== undefined && { MaxItems: input.MaxItems.toString() })), (input.Marker !== undefined && { Marker: input.Marker })), (input.FileSystemId !== undefined && { FileSystemId: input.FileSystemId })), (input.MountTargetId !== undefined && { MountTargetId: input.MountTargetId })), (input.AccessPointId !== undefined && { AccessPointId: input.AccessPointId }));
|
|
462
|
-
return [2
|
|
462
|
+
return [2, new __HttpRequest({
|
|
463
463
|
protocol: protocol,
|
|
464
464
|
hostname: hostname,
|
|
465
465
|
port: port,
|
|
@@ -476,7 +476,7 @@ export var serializeAws_restJson1DescribeMountTargetSecurityGroupsCommand = func
|
|
|
476
476
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
477
477
|
return __generator(this, function (_c) {
|
|
478
478
|
switch (_c.label) {
|
|
479
|
-
case 0: return [4
|
|
479
|
+
case 0: return [4, context.endpoint()];
|
|
480
480
|
case 1:
|
|
481
481
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
482
482
|
headers = {};
|
|
@@ -492,7 +492,7 @@ export var serializeAws_restJson1DescribeMountTargetSecurityGroupsCommand = func
|
|
|
492
492
|
else {
|
|
493
493
|
throw new Error("No value provided for input HTTP label: MountTargetId.");
|
|
494
494
|
}
|
|
495
|
-
return [2
|
|
495
|
+
return [2, new __HttpRequest({
|
|
496
496
|
protocol: protocol,
|
|
497
497
|
hostname: hostname,
|
|
498
498
|
port: port,
|
|
@@ -508,7 +508,7 @@ export var serializeAws_restJson1DescribeTagsCommand = function (input, context)
|
|
|
508
508
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
509
509
|
return __generator(this, function (_c) {
|
|
510
510
|
switch (_c.label) {
|
|
511
|
-
case 0: return [4
|
|
511
|
+
case 0: return [4, context.endpoint()];
|
|
512
512
|
case 1:
|
|
513
513
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
514
514
|
headers = {};
|
|
@@ -524,7 +524,7 @@ export var serializeAws_restJson1DescribeTagsCommand = function (input, context)
|
|
|
524
524
|
throw new Error("No value provided for input HTTP label: FileSystemId.");
|
|
525
525
|
}
|
|
526
526
|
query = __assign(__assign({}, (input.MaxItems !== undefined && { MaxItems: input.MaxItems.toString() })), (input.Marker !== undefined && { Marker: input.Marker }));
|
|
527
|
-
return [2
|
|
527
|
+
return [2, new __HttpRequest({
|
|
528
528
|
protocol: protocol,
|
|
529
529
|
hostname: hostname,
|
|
530
530
|
port: port,
|
|
@@ -541,7 +541,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
541
541
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
542
542
|
return __generator(this, function (_c) {
|
|
543
543
|
switch (_c.label) {
|
|
544
|
-
case 0: return [4
|
|
544
|
+
case 0: return [4, context.endpoint()];
|
|
545
545
|
case 1:
|
|
546
546
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
547
547
|
headers = {};
|
|
@@ -557,7 +557,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
557
557
|
throw new Error("No value provided for input HTTP label: ResourceId.");
|
|
558
558
|
}
|
|
559
559
|
query = __assign(__assign({}, (input.MaxResults !== undefined && { MaxResults: input.MaxResults.toString() })), (input.NextToken !== undefined && { NextToken: input.NextToken }));
|
|
560
|
-
return [2
|
|
560
|
+
return [2, new __HttpRequest({
|
|
561
561
|
protocol: protocol,
|
|
562
562
|
hostname: hostname,
|
|
563
563
|
port: port,
|
|
@@ -574,7 +574,7 @@ export var serializeAws_restJson1ModifyMountTargetSecurityGroupsCommand = functi
|
|
|
574
574
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
575
575
|
return __generator(this, function (_c) {
|
|
576
576
|
switch (_c.label) {
|
|
577
|
-
case 0: return [4
|
|
577
|
+
case 0: return [4, context.endpoint()];
|
|
578
578
|
case 1:
|
|
579
579
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
580
580
|
headers = {
|
|
@@ -596,7 +596,7 @@ export var serializeAws_restJson1ModifyMountTargetSecurityGroupsCommand = functi
|
|
|
596
596
|
input.SecurityGroups !== null && {
|
|
597
597
|
SecurityGroups: serializeAws_restJson1SecurityGroups(input.SecurityGroups, context),
|
|
598
598
|
})));
|
|
599
|
-
return [2
|
|
599
|
+
return [2, new __HttpRequest({
|
|
600
600
|
protocol: protocol,
|
|
601
601
|
hostname: hostname,
|
|
602
602
|
port: port,
|
|
@@ -612,7 +612,7 @@ export var serializeAws_restJson1PutAccountPreferencesCommand = function (input,
|
|
|
612
612
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
613
613
|
return __generator(this, function (_c) {
|
|
614
614
|
switch (_c.label) {
|
|
615
|
-
case 0: return [4
|
|
615
|
+
case 0: return [4, context.endpoint()];
|
|
616
616
|
case 1:
|
|
617
617
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
618
618
|
headers = {
|
|
@@ -621,7 +621,7 @@ export var serializeAws_restJson1PutAccountPreferencesCommand = function (input,
|
|
|
621
621
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2015-02-01/account-preferences";
|
|
622
622
|
body = JSON.stringify(__assign({}, (input.ResourceIdType !== undefined &&
|
|
623
623
|
input.ResourceIdType !== null && { ResourceIdType: input.ResourceIdType })));
|
|
624
|
-
return [2
|
|
624
|
+
return [2, new __HttpRequest({
|
|
625
625
|
protocol: protocol,
|
|
626
626
|
hostname: hostname,
|
|
627
627
|
port: port,
|
|
@@ -637,7 +637,7 @@ export var serializeAws_restJson1PutBackupPolicyCommand = function (input, conte
|
|
|
637
637
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
638
638
|
return __generator(this, function (_c) {
|
|
639
639
|
switch (_c.label) {
|
|
640
|
-
case 0: return [4
|
|
640
|
+
case 0: return [4, context.endpoint()];
|
|
641
641
|
case 1:
|
|
642
642
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
643
643
|
headers = {
|
|
@@ -657,7 +657,7 @@ export var serializeAws_restJson1PutBackupPolicyCommand = function (input, conte
|
|
|
657
657
|
}
|
|
658
658
|
body = JSON.stringify(__assign({}, (input.BackupPolicy !== undefined &&
|
|
659
659
|
input.BackupPolicy !== null && { BackupPolicy: serializeAws_restJson1BackupPolicy(input.BackupPolicy, context) })));
|
|
660
|
-
return [2
|
|
660
|
+
return [2, new __HttpRequest({
|
|
661
661
|
protocol: protocol,
|
|
662
662
|
hostname: hostname,
|
|
663
663
|
port: port,
|
|
@@ -673,7 +673,7 @@ export var serializeAws_restJson1PutFileSystemPolicyCommand = function (input, c
|
|
|
673
673
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
674
674
|
return __generator(this, function (_c) {
|
|
675
675
|
switch (_c.label) {
|
|
676
|
-
case 0: return [4
|
|
676
|
+
case 0: return [4, context.endpoint()];
|
|
677
677
|
case 1:
|
|
678
678
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
679
679
|
headers = {
|
|
@@ -695,7 +695,7 @@ export var serializeAws_restJson1PutFileSystemPolicyCommand = function (input, c
|
|
|
695
695
|
input.BypassPolicyLockoutSafetyCheck !== null && {
|
|
696
696
|
BypassPolicyLockoutSafetyCheck: input.BypassPolicyLockoutSafetyCheck,
|
|
697
697
|
})), (input.Policy !== undefined && input.Policy !== null && { Policy: input.Policy })));
|
|
698
|
-
return [2
|
|
698
|
+
return [2, new __HttpRequest({
|
|
699
699
|
protocol: protocol,
|
|
700
700
|
hostname: hostname,
|
|
701
701
|
port: port,
|
|
@@ -711,7 +711,7 @@ export var serializeAws_restJson1PutLifecycleConfigurationCommand = function (in
|
|
|
711
711
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
712
712
|
return __generator(this, function (_c) {
|
|
713
713
|
switch (_c.label) {
|
|
714
|
-
case 0: return [4
|
|
714
|
+
case 0: return [4, context.endpoint()];
|
|
715
715
|
case 1:
|
|
716
716
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
717
717
|
headers = {
|
|
@@ -733,7 +733,7 @@ export var serializeAws_restJson1PutLifecycleConfigurationCommand = function (in
|
|
|
733
733
|
input.LifecyclePolicies !== null && {
|
|
734
734
|
LifecyclePolicies: serializeAws_restJson1LifecyclePolicies(input.LifecyclePolicies, context),
|
|
735
735
|
})));
|
|
736
|
-
return [2
|
|
736
|
+
return [2, new __HttpRequest({
|
|
737
737
|
protocol: protocol,
|
|
738
738
|
hostname: hostname,
|
|
739
739
|
port: port,
|
|
@@ -749,7 +749,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
749
749
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
750
750
|
return __generator(this, function (_c) {
|
|
751
751
|
switch (_c.label) {
|
|
752
|
-
case 0: return [4
|
|
752
|
+
case 0: return [4, context.endpoint()];
|
|
753
753
|
case 1:
|
|
754
754
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
755
755
|
headers = {
|
|
@@ -767,7 +767,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
767
767
|
throw new Error("No value provided for input HTTP label: ResourceId.");
|
|
768
768
|
}
|
|
769
769
|
body = JSON.stringify(__assign({}, (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1Tags(input.Tags, context) })));
|
|
770
|
-
return [2
|
|
770
|
+
return [2, new __HttpRequest({
|
|
771
771
|
protocol: protocol,
|
|
772
772
|
hostname: hostname,
|
|
773
773
|
port: port,
|
|
@@ -783,7 +783,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
783
783
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
784
784
|
return __generator(this, function (_c) {
|
|
785
785
|
switch (_c.label) {
|
|
786
|
-
case 0: return [4
|
|
786
|
+
case 0: return [4, context.endpoint()];
|
|
787
787
|
case 1:
|
|
788
788
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
789
789
|
headers = {};
|
|
@@ -799,7 +799,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
799
799
|
throw new Error("No value provided for input HTTP label: ResourceId.");
|
|
800
800
|
}
|
|
801
801
|
query = __assign({}, (input.TagKeys !== undefined && { tagKeys: (input.TagKeys || []).map(function (_entry) { return _entry; }) }));
|
|
802
|
-
return [2
|
|
802
|
+
return [2, new __HttpRequest({
|
|
803
803
|
protocol: protocol,
|
|
804
804
|
hostname: hostname,
|
|
805
805
|
port: port,
|
|
@@ -816,7 +816,7 @@ export var serializeAws_restJson1UpdateFileSystemCommand = function (input, cont
|
|
|
816
816
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
817
817
|
return __generator(this, function (_c) {
|
|
818
818
|
switch (_c.label) {
|
|
819
|
-
case 0: return [4
|
|
819
|
+
case 0: return [4, context.endpoint()];
|
|
820
820
|
case 1:
|
|
821
821
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
822
822
|
headers = {
|
|
@@ -838,7 +838,7 @@ export var serializeAws_restJson1UpdateFileSystemCommand = function (input, cont
|
|
|
838
838
|
ProvisionedThroughputInMibps: __serializeFloat(input.ProvisionedThroughputInMibps),
|
|
839
839
|
})), (input.ThroughputMode !== undefined &&
|
|
840
840
|
input.ThroughputMode !== null && { ThroughputMode: input.ThroughputMode })));
|
|
841
|
-
return [2
|
|
841
|
+
return [2, new __HttpRequest({
|
|
842
842
|
protocol: protocol,
|
|
843
843
|
hostname: hostname,
|
|
844
844
|
port: port,
|
|
@@ -856,7 +856,7 @@ export var deserializeAws_restJson1CreateAccessPointCommand = function (output,
|
|
|
856
856
|
switch (_c.label) {
|
|
857
857
|
case 0:
|
|
858
858
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
859
|
-
return [2
|
|
859
|
+
return [2, deserializeAws_restJson1CreateAccessPointCommandError(output, context)];
|
|
860
860
|
}
|
|
861
861
|
contents = {
|
|
862
862
|
$metadata: deserializeMetadata(output),
|
|
@@ -873,7 +873,7 @@ export var deserializeAws_restJson1CreateAccessPointCommand = function (output,
|
|
|
873
873
|
};
|
|
874
874
|
_a = __expectNonNull;
|
|
875
875
|
_b = __expectObject;
|
|
876
|
-
return [4
|
|
876
|
+
return [4, parseBody(output.body, context)];
|
|
877
877
|
case 1:
|
|
878
878
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
879
879
|
if (data.AccessPointArn !== undefined && data.AccessPointArn !== null) {
|
|
@@ -906,7 +906,7 @@ export var deserializeAws_restJson1CreateAccessPointCommand = function (output,
|
|
|
906
906
|
if (data.Tags !== undefined && data.Tags !== null) {
|
|
907
907
|
contents.Tags = deserializeAws_restJson1Tags(data.Tags, context);
|
|
908
908
|
}
|
|
909
|
-
return [2
|
|
909
|
+
return [2, Promise.resolve(contents)];
|
|
910
910
|
}
|
|
911
911
|
});
|
|
912
912
|
}); };
|
|
@@ -918,63 +918,63 @@ var deserializeAws_restJson1CreateAccessPointCommandError = function (output, co
|
|
|
918
918
|
case 0:
|
|
919
919
|
_a = [__assign({}, output)];
|
|
920
920
|
_j = {};
|
|
921
|
-
return [4
|
|
921
|
+
return [4, parseBody(output.body, context)];
|
|
922
922
|
case 1:
|
|
923
923
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
924
924
|
errorCode = "UnknownError";
|
|
925
925
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
926
926
|
_b = errorCode;
|
|
927
927
|
switch (_b) {
|
|
928
|
-
case "AccessPointAlreadyExists": return [3
|
|
929
|
-
case "com.amazonaws.efs#AccessPointAlreadyExists": return [3
|
|
930
|
-
case "AccessPointLimitExceeded": return [3
|
|
931
|
-
case "com.amazonaws.efs#AccessPointLimitExceeded": return [3
|
|
932
|
-
case "BadRequest": return [3
|
|
933
|
-
case "com.amazonaws.efs#BadRequest": return [3
|
|
934
|
-
case "FileSystemNotFound": return [3
|
|
935
|
-
case "com.amazonaws.efs#FileSystemNotFound": return [3
|
|
936
|
-
case "IncorrectFileSystemLifeCycleState": return [3
|
|
937
|
-
case "com.amazonaws.efs#IncorrectFileSystemLifeCycleState": return [3
|
|
938
|
-
case "InternalServerError": return [3
|
|
939
|
-
case "com.amazonaws.efs#InternalServerError": return [3
|
|
940
|
-
}
|
|
941
|
-
return [3
|
|
928
|
+
case "AccessPointAlreadyExists": return [3, 2];
|
|
929
|
+
case "com.amazonaws.efs#AccessPointAlreadyExists": return [3, 2];
|
|
930
|
+
case "AccessPointLimitExceeded": return [3, 4];
|
|
931
|
+
case "com.amazonaws.efs#AccessPointLimitExceeded": return [3, 4];
|
|
932
|
+
case "BadRequest": return [3, 6];
|
|
933
|
+
case "com.amazonaws.efs#BadRequest": return [3, 6];
|
|
934
|
+
case "FileSystemNotFound": return [3, 8];
|
|
935
|
+
case "com.amazonaws.efs#FileSystemNotFound": return [3, 8];
|
|
936
|
+
case "IncorrectFileSystemLifeCycleState": return [3, 10];
|
|
937
|
+
case "com.amazonaws.efs#IncorrectFileSystemLifeCycleState": return [3, 10];
|
|
938
|
+
case "InternalServerError": return [3, 12];
|
|
939
|
+
case "com.amazonaws.efs#InternalServerError": return [3, 12];
|
|
940
|
+
}
|
|
941
|
+
return [3, 14];
|
|
942
942
|
case 2:
|
|
943
943
|
_c = [{}];
|
|
944
|
-
return [4
|
|
944
|
+
return [4, deserializeAws_restJson1AccessPointAlreadyExistsResponse(parsedOutput, context)];
|
|
945
945
|
case 3:
|
|
946
946
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
947
|
-
return [3
|
|
947
|
+
return [3, 15];
|
|
948
948
|
case 4:
|
|
949
949
|
_d = [{}];
|
|
950
|
-
return [4
|
|
950
|
+
return [4, deserializeAws_restJson1AccessPointLimitExceededResponse(parsedOutput, context)];
|
|
951
951
|
case 5:
|
|
952
952
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
953
|
-
return [3
|
|
953
|
+
return [3, 15];
|
|
954
954
|
case 6:
|
|
955
955
|
_e = [{}];
|
|
956
|
-
return [4
|
|
956
|
+
return [4, deserializeAws_restJson1BadRequestResponse(parsedOutput, context)];
|
|
957
957
|
case 7:
|
|
958
958
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
959
|
-
return [3
|
|
959
|
+
return [3, 15];
|
|
960
960
|
case 8:
|
|
961
961
|
_f = [{}];
|
|
962
|
-
return [4
|
|
962
|
+
return [4, deserializeAws_restJson1FileSystemNotFoundResponse(parsedOutput, context)];
|
|
963
963
|
case 9:
|
|
964
964
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
965
|
-
return [3
|
|
965
|
+
return [3, 15];
|
|
966
966
|
case 10:
|
|
967
967
|
_g = [{}];
|
|
968
|
-
return [4
|
|
968
|
+
return [4, deserializeAws_restJson1IncorrectFileSystemLifeCycleStateResponse(parsedOutput, context)];
|
|
969
969
|
case 11:
|
|
970
970
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
971
|
-
return [3
|
|
971
|
+
return [3, 15];
|
|
972
972
|
case 12:
|
|
973
973
|
_h = [{}];
|
|
974
|
-
return [4
|
|
974
|
+
return [4, deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)];
|
|
975
975
|
case 13:
|
|
976
976
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
977
|
-
return [3
|
|
977
|
+
return [3, 15];
|
|
978
978
|
case 14:
|
|
979
979
|
parsedBody = parsedOutput.body;
|
|
980
980
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -984,7 +984,7 @@ var deserializeAws_restJson1CreateAccessPointCommandError = function (output, co
|
|
|
984
984
|
message = response.message || response.Message || errorCode;
|
|
985
985
|
response.message = message;
|
|
986
986
|
delete response.Message;
|
|
987
|
-
return [2
|
|
987
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
988
988
|
}
|
|
989
989
|
});
|
|
990
990
|
}); };
|
|
@@ -994,7 +994,7 @@ export var deserializeAws_restJson1CreateFileSystemCommand = function (output, c
|
|
|
994
994
|
switch (_c.label) {
|
|
995
995
|
case 0:
|
|
996
996
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
997
|
-
return [2
|
|
997
|
+
return [2, deserializeAws_restJson1CreateFileSystemCommandError(output, context)];
|
|
998
998
|
}
|
|
999
999
|
contents = {
|
|
1000
1000
|
$metadata: deserializeMetadata(output),
|
|
@@ -1018,7 +1018,7 @@ export var deserializeAws_restJson1CreateFileSystemCommand = function (output, c
|
|
|
1018
1018
|
};
|
|
1019
1019
|
_a = __expectNonNull;
|
|
1020
1020
|
_b = __expectObject;
|
|
1021
|
-
return [4
|
|
1021
|
+
return [4, parseBody(output.body, context)];
|
|
1022
1022
|
case 1:
|
|
1023
1023
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1024
1024
|
if (data.AvailabilityZoneId !== undefined && data.AvailabilityZoneId !== null) {
|
|
@@ -1072,7 +1072,7 @@ export var deserializeAws_restJson1CreateFileSystemCommand = function (output, c
|
|
|
1072
1072
|
if (data.ThroughputMode !== undefined && data.ThroughputMode !== null) {
|
|
1073
1073
|
contents.ThroughputMode = __expectString(data.ThroughputMode);
|
|
1074
1074
|
}
|
|
1075
|
-
return [2
|
|
1075
|
+
return [2, Promise.resolve(contents)];
|
|
1076
1076
|
}
|
|
1077
1077
|
});
|
|
1078
1078
|
}); };
|
|
@@ -1084,71 +1084,71 @@ var deserializeAws_restJson1CreateFileSystemCommandError = function (output, con
|
|
|
1084
1084
|
case 0:
|
|
1085
1085
|
_a = [__assign({}, output)];
|
|
1086
1086
|
_k = {};
|
|
1087
|
-
return [4
|
|
1087
|
+
return [4, parseBody(output.body, context)];
|
|
1088
1088
|
case 1:
|
|
1089
1089
|
parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
|
|
1090
1090
|
errorCode = "UnknownError";
|
|
1091
1091
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1092
1092
|
_b = errorCode;
|
|
1093
1093
|
switch (_b) {
|
|
1094
|
-
case "BadRequest": return [3
|
|
1095
|
-
case "com.amazonaws.efs#BadRequest": return [3
|
|
1096
|
-
case "FileSystemAlreadyExists": return [3
|
|
1097
|
-
case "com.amazonaws.efs#FileSystemAlreadyExists": return [3
|
|
1098
|
-
case "FileSystemLimitExceeded": return [3
|
|
1099
|
-
case "com.amazonaws.efs#FileSystemLimitExceeded": return [3
|
|
1100
|
-
case "InsufficientThroughputCapacity": return [3
|
|
1101
|
-
case "com.amazonaws.efs#InsufficientThroughputCapacity": return [3
|
|
1102
|
-
case "InternalServerError": return [3
|
|
1103
|
-
case "com.amazonaws.efs#InternalServerError": return [3
|
|
1104
|
-
case "ThroughputLimitExceeded": return [3
|
|
1105
|
-
case "com.amazonaws.efs#ThroughputLimitExceeded": return [3
|
|
1106
|
-
case "UnsupportedAvailabilityZone": return [3
|
|
1107
|
-
case "com.amazonaws.efs#UnsupportedAvailabilityZone": return [3
|
|
1108
|
-
}
|
|
1109
|
-
return [3
|
|
1094
|
+
case "BadRequest": return [3, 2];
|
|
1095
|
+
case "com.amazonaws.efs#BadRequest": return [3, 2];
|
|
1096
|
+
case "FileSystemAlreadyExists": return [3, 4];
|
|
1097
|
+
case "com.amazonaws.efs#FileSystemAlreadyExists": return [3, 4];
|
|
1098
|
+
case "FileSystemLimitExceeded": return [3, 6];
|
|
1099
|
+
case "com.amazonaws.efs#FileSystemLimitExceeded": return [3, 6];
|
|
1100
|
+
case "InsufficientThroughputCapacity": return [3, 8];
|
|
1101
|
+
case "com.amazonaws.efs#InsufficientThroughputCapacity": return [3, 8];
|
|
1102
|
+
case "InternalServerError": return [3, 10];
|
|
1103
|
+
case "com.amazonaws.efs#InternalServerError": return [3, 10];
|
|
1104
|
+
case "ThroughputLimitExceeded": return [3, 12];
|
|
1105
|
+
case "com.amazonaws.efs#ThroughputLimitExceeded": return [3, 12];
|
|
1106
|
+
case "UnsupportedAvailabilityZone": return [3, 14];
|
|
1107
|
+
case "com.amazonaws.efs#UnsupportedAvailabilityZone": return [3, 14];
|
|
1108
|
+
}
|
|
1109
|
+
return [3, 16];
|
|
1110
1110
|
case 2:
|
|
1111
1111
|
_c = [{}];
|
|
1112
|
-
return [4
|
|
1112
|
+
return [4, deserializeAws_restJson1BadRequestResponse(parsedOutput, context)];
|
|
1113
1113
|
case 3:
|
|
1114
1114
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1115
|
-
return [3
|
|
1115
|
+
return [3, 17];
|
|
1116
1116
|
case 4:
|
|
1117
1117
|
_d = [{}];
|
|
1118
|
-
return [4
|
|
1118
|
+
return [4, deserializeAws_restJson1FileSystemAlreadyExistsResponse(parsedOutput, context)];
|
|
1119
1119
|
case 5:
|
|
1120
1120
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1121
|
-
return [3
|
|
1121
|
+
return [3, 17];
|
|
1122
1122
|
case 6:
|
|
1123
1123
|
_e = [{}];
|
|
1124
|
-
return [4
|
|
1124
|
+
return [4, deserializeAws_restJson1FileSystemLimitExceededResponse(parsedOutput, context)];
|
|
1125
1125
|
case 7:
|
|
1126
1126
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1127
|
-
return [3
|
|
1127
|
+
return [3, 17];
|
|
1128
1128
|
case 8:
|
|
1129
1129
|
_f = [{}];
|
|
1130
|
-
return [4
|
|
1130
|
+
return [4, deserializeAws_restJson1InsufficientThroughputCapacityResponse(parsedOutput, context)];
|
|
1131
1131
|
case 9:
|
|
1132
1132
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1133
|
-
return [3
|
|
1133
|
+
return [3, 17];
|
|
1134
1134
|
case 10:
|
|
1135
1135
|
_g = [{}];
|
|
1136
|
-
return [4
|
|
1136
|
+
return [4, deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)];
|
|
1137
1137
|
case 11:
|
|
1138
1138
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1139
|
-
return [3
|
|
1139
|
+
return [3, 17];
|
|
1140
1140
|
case 12:
|
|
1141
1141
|
_h = [{}];
|
|
1142
|
-
return [4
|
|
1142
|
+
return [4, deserializeAws_restJson1ThroughputLimitExceededResponse(parsedOutput, context)];
|
|
1143
1143
|
case 13:
|
|
1144
1144
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1145
|
-
return [3
|
|
1145
|
+
return [3, 17];
|
|
1146
1146
|
case 14:
|
|
1147
1147
|
_j = [{}];
|
|
1148
|
-
return [4
|
|
1148
|
+
return [4, deserializeAws_restJson1UnsupportedAvailabilityZoneResponse(parsedOutput, context)];
|
|
1149
1149
|
case 15:
|
|
1150
1150
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1151
|
-
return [3
|
|
1151
|
+
return [3, 17];
|
|
1152
1152
|
case 16:
|
|
1153
1153
|
parsedBody = parsedOutput.body;
|
|
1154
1154
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1158,7 +1158,7 @@ var deserializeAws_restJson1CreateFileSystemCommandError = function (output, con
|
|
|
1158
1158
|
message = response.message || response.Message || errorCode;
|
|
1159
1159
|
response.message = message;
|
|
1160
1160
|
delete response.Message;
|
|
1161
|
-
return [2
|
|
1161
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1162
1162
|
}
|
|
1163
1163
|
});
|
|
1164
1164
|
}); };
|
|
@@ -1168,7 +1168,7 @@ export var deserializeAws_restJson1CreateMountTargetCommand = function (output,
|
|
|
1168
1168
|
switch (_c.label) {
|
|
1169
1169
|
case 0:
|
|
1170
1170
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1171
|
-
return [2
|
|
1171
|
+
return [2, deserializeAws_restJson1CreateMountTargetCommandError(output, context)];
|
|
1172
1172
|
}
|
|
1173
1173
|
contents = {
|
|
1174
1174
|
$metadata: deserializeMetadata(output),
|
|
@@ -1185,7 +1185,7 @@ export var deserializeAws_restJson1CreateMountTargetCommand = function (output,
|
|
|
1185
1185
|
};
|
|
1186
1186
|
_a = __expectNonNull;
|
|
1187
1187
|
_b = __expectObject;
|
|
1188
|
-
return [4
|
|
1188
|
+
return [4, parseBody(output.body, context)];
|
|
1189
1189
|
case 1:
|
|
1190
1190
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1191
1191
|
if (data.AvailabilityZoneId !== undefined && data.AvailabilityZoneId !== null) {
|
|
@@ -1218,7 +1218,7 @@ export var deserializeAws_restJson1CreateMountTargetCommand = function (output,
|
|
|
1218
1218
|
if (data.VpcId !== undefined && data.VpcId !== null) {
|
|
1219
1219
|
contents.VpcId = __expectString(data.VpcId);
|
|
1220
1220
|
}
|
|
1221
|
-
return [2
|
|
1221
|
+
return [2, Promise.resolve(contents)];
|
|
1222
1222
|
}
|
|
1223
1223
|
});
|
|
1224
1224
|
}); };
|
|
@@ -1230,119 +1230,119 @@ var deserializeAws_restJson1CreateMountTargetCommandError = function (output, co
|
|
|
1230
1230
|
case 0:
|
|
1231
1231
|
_a = [__assign({}, output)];
|
|
1232
1232
|
_r = {};
|
|
1233
|
-
return [4
|
|
1233
|
+
return [4, parseBody(output.body, context)];
|
|
1234
1234
|
case 1:
|
|
1235
1235
|
parsedOutput = __assign.apply(void 0, _a.concat([(_r.body = _s.sent(), _r)]));
|
|
1236
1236
|
errorCode = "UnknownError";
|
|
1237
1237
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1238
1238
|
_b = errorCode;
|
|
1239
1239
|
switch (_b) {
|
|
1240
|
-
case "AvailabilityZonesMismatch": return [3
|
|
1241
|
-
case "com.amazonaws.efs#AvailabilityZonesMismatch": return [3
|
|
1242
|
-
case "BadRequest": return [3
|
|
1243
|
-
case "com.amazonaws.efs#BadRequest": return [3
|
|
1244
|
-
case "FileSystemNotFound": return [3
|
|
1245
|
-
case "com.amazonaws.efs#FileSystemNotFound": return [3
|
|
1246
|
-
case "IncorrectFileSystemLifeCycleState": return [3
|
|
1247
|
-
case "com.amazonaws.efs#IncorrectFileSystemLifeCycleState": return [3
|
|
1248
|
-
case "InternalServerError": return [3
|
|
1249
|
-
case "com.amazonaws.efs#InternalServerError": return [3
|
|
1250
|
-
case "IpAddressInUse": return [3
|
|
1251
|
-
case "com.amazonaws.efs#IpAddressInUse": return [3
|
|
1252
|
-
case "MountTargetConflict": return [3
|
|
1253
|
-
case "com.amazonaws.efs#MountTargetConflict": return [3
|
|
1254
|
-
case "NetworkInterfaceLimitExceeded": return [3
|
|
1255
|
-
case "com.amazonaws.efs#NetworkInterfaceLimitExceeded": return [3
|
|
1256
|
-
case "NoFreeAddressesInSubnet": return [3
|
|
1257
|
-
case "com.amazonaws.efs#NoFreeAddressesInSubnet": return [3
|
|
1258
|
-
case "SecurityGroupLimitExceeded": return [3
|
|
1259
|
-
case "com.amazonaws.efs#SecurityGroupLimitExceeded": return [3
|
|
1260
|
-
case "SecurityGroupNotFound": return [3
|
|
1261
|
-
case "com.amazonaws.efs#SecurityGroupNotFound": return [3
|
|
1262
|
-
case "SubnetNotFound": return [3
|
|
1263
|
-
case "com.amazonaws.efs#SubnetNotFound": return [3
|
|
1264
|
-
case "UnsupportedAvailabilityZone": return [3
|
|
1265
|
-
case "com.amazonaws.efs#UnsupportedAvailabilityZone": return [3
|
|
1266
|
-
}
|
|
1267
|
-
return [3
|
|
1240
|
+
case "AvailabilityZonesMismatch": return [3, 2];
|
|
1241
|
+
case "com.amazonaws.efs#AvailabilityZonesMismatch": return [3, 2];
|
|
1242
|
+
case "BadRequest": return [3, 4];
|
|
1243
|
+
case "com.amazonaws.efs#BadRequest": return [3, 4];
|
|
1244
|
+
case "FileSystemNotFound": return [3, 6];
|
|
1245
|
+
case "com.amazonaws.efs#FileSystemNotFound": return [3, 6];
|
|
1246
|
+
case "IncorrectFileSystemLifeCycleState": return [3, 8];
|
|
1247
|
+
case "com.amazonaws.efs#IncorrectFileSystemLifeCycleState": return [3, 8];
|
|
1248
|
+
case "InternalServerError": return [3, 10];
|
|
1249
|
+
case "com.amazonaws.efs#InternalServerError": return [3, 10];
|
|
1250
|
+
case "IpAddressInUse": return [3, 12];
|
|
1251
|
+
case "com.amazonaws.efs#IpAddressInUse": return [3, 12];
|
|
1252
|
+
case "MountTargetConflict": return [3, 14];
|
|
1253
|
+
case "com.amazonaws.efs#MountTargetConflict": return [3, 14];
|
|
1254
|
+
case "NetworkInterfaceLimitExceeded": return [3, 16];
|
|
1255
|
+
case "com.amazonaws.efs#NetworkInterfaceLimitExceeded": return [3, 16];
|
|
1256
|
+
case "NoFreeAddressesInSubnet": return [3, 18];
|
|
1257
|
+
case "com.amazonaws.efs#NoFreeAddressesInSubnet": return [3, 18];
|
|
1258
|
+
case "SecurityGroupLimitExceeded": return [3, 20];
|
|
1259
|
+
case "com.amazonaws.efs#SecurityGroupLimitExceeded": return [3, 20];
|
|
1260
|
+
case "SecurityGroupNotFound": return [3, 22];
|
|
1261
|
+
case "com.amazonaws.efs#SecurityGroupNotFound": return [3, 22];
|
|
1262
|
+
case "SubnetNotFound": return [3, 24];
|
|
1263
|
+
case "com.amazonaws.efs#SubnetNotFound": return [3, 24];
|
|
1264
|
+
case "UnsupportedAvailabilityZone": return [3, 26];
|
|
1265
|
+
case "com.amazonaws.efs#UnsupportedAvailabilityZone": return [3, 26];
|
|
1266
|
+
}
|
|
1267
|
+
return [3, 28];
|
|
1268
1268
|
case 2:
|
|
1269
1269
|
_c = [{}];
|
|
1270
|
-
return [4
|
|
1270
|
+
return [4, deserializeAws_restJson1AvailabilityZonesMismatchResponse(parsedOutput, context)];
|
|
1271
1271
|
case 3:
|
|
1272
1272
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_s.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1273
|
-
return [3
|
|
1273
|
+
return [3, 29];
|
|
1274
1274
|
case 4:
|
|
1275
1275
|
_d = [{}];
|
|
1276
|
-
return [4
|
|
1276
|
+
return [4, deserializeAws_restJson1BadRequestResponse(parsedOutput, context)];
|
|
1277
1277
|
case 5:
|
|
1278
1278
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_s.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1279
|
-
return [3
|
|
1279
|
+
return [3, 29];
|
|
1280
1280
|
case 6:
|
|
1281
1281
|
_e = [{}];
|
|
1282
|
-
return [4
|
|
1282
|
+
return [4, deserializeAws_restJson1FileSystemNotFoundResponse(parsedOutput, context)];
|
|
1283
1283
|
case 7:
|
|
1284
1284
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_s.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1285
|
-
return [3
|
|
1285
|
+
return [3, 29];
|
|
1286
1286
|
case 8:
|
|
1287
1287
|
_f = [{}];
|
|
1288
|
-
return [4
|
|
1288
|
+
return [4, deserializeAws_restJson1IncorrectFileSystemLifeCycleStateResponse(parsedOutput, context)];
|
|
1289
1289
|
case 9:
|
|
1290
1290
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_s.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1291
|
-
return [3
|
|
1291
|
+
return [3, 29];
|
|
1292
1292
|
case 10:
|
|
1293
1293
|
_g = [{}];
|
|
1294
|
-
return [4
|
|
1294
|
+
return [4, deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)];
|
|
1295
1295
|
case 11:
|
|
1296
1296
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_s.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1297
|
-
return [3
|
|
1297
|
+
return [3, 29];
|
|
1298
1298
|
case 12:
|
|
1299
1299
|
_h = [{}];
|
|
1300
|
-
return [4
|
|
1300
|
+
return [4, deserializeAws_restJson1IpAddressInUseResponse(parsedOutput, context)];
|
|
1301
1301
|
case 13:
|
|
1302
1302
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_s.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1303
|
-
return [3
|
|
1303
|
+
return [3, 29];
|
|
1304
1304
|
case 14:
|
|
1305
1305
|
_j = [{}];
|
|
1306
|
-
return [4
|
|
1306
|
+
return [4, deserializeAws_restJson1MountTargetConflictResponse(parsedOutput, context)];
|
|
1307
1307
|
case 15:
|
|
1308
1308
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_s.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1309
|
-
return [3
|
|
1309
|
+
return [3, 29];
|
|
1310
1310
|
case 16:
|
|
1311
1311
|
_k = [{}];
|
|
1312
|
-
return [4
|
|
1312
|
+
return [4, deserializeAws_restJson1NetworkInterfaceLimitExceededResponse(parsedOutput, context)];
|
|
1313
1313
|
case 17:
|
|
1314
1314
|
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_s.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1315
|
-
return [3
|
|
1315
|
+
return [3, 29];
|
|
1316
1316
|
case 18:
|
|
1317
1317
|
_l = [{}];
|
|
1318
|
-
return [4
|
|
1318
|
+
return [4, deserializeAws_restJson1NoFreeAddressesInSubnetResponse(parsedOutput, context)];
|
|
1319
1319
|
case 19:
|
|
1320
1320
|
response = __assign.apply(void 0, [__assign.apply(void 0, _l.concat([(_s.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1321
|
-
return [3
|
|
1321
|
+
return [3, 29];
|
|
1322
1322
|
case 20:
|
|
1323
1323
|
_m = [{}];
|
|
1324
|
-
return [4
|
|
1324
|
+
return [4, deserializeAws_restJson1SecurityGroupLimitExceededResponse(parsedOutput, context)];
|
|
1325
1325
|
case 21:
|
|
1326
1326
|
response = __assign.apply(void 0, [__assign.apply(void 0, _m.concat([(_s.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1327
|
-
return [3
|
|
1327
|
+
return [3, 29];
|
|
1328
1328
|
case 22:
|
|
1329
1329
|
_o = [{}];
|
|
1330
|
-
return [4
|
|
1330
|
+
return [4, deserializeAws_restJson1SecurityGroupNotFoundResponse(parsedOutput, context)];
|
|
1331
1331
|
case 23:
|
|
1332
1332
|
response = __assign.apply(void 0, [__assign.apply(void 0, _o.concat([(_s.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1333
|
-
return [3
|
|
1333
|
+
return [3, 29];
|
|
1334
1334
|
case 24:
|
|
1335
1335
|
_p = [{}];
|
|
1336
|
-
return [4
|
|
1336
|
+
return [4, deserializeAws_restJson1SubnetNotFoundResponse(parsedOutput, context)];
|
|
1337
1337
|
case 25:
|
|
1338
1338
|
response = __assign.apply(void 0, [__assign.apply(void 0, _p.concat([(_s.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1339
|
-
return [3
|
|
1339
|
+
return [3, 29];
|
|
1340
1340
|
case 26:
|
|
1341
1341
|
_q = [{}];
|
|
1342
|
-
return [4
|
|
1342
|
+
return [4, deserializeAws_restJson1UnsupportedAvailabilityZoneResponse(parsedOutput, context)];
|
|
1343
1343
|
case 27:
|
|
1344
1344
|
response = __assign.apply(void 0, [__assign.apply(void 0, _q.concat([(_s.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1345
|
-
return [3
|
|
1345
|
+
return [3, 29];
|
|
1346
1346
|
case 28:
|
|
1347
1347
|
parsedBody = parsedOutput.body;
|
|
1348
1348
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1352,7 +1352,7 @@ var deserializeAws_restJson1CreateMountTargetCommandError = function (output, co
|
|
|
1352
1352
|
message = response.message || response.Message || errorCode;
|
|
1353
1353
|
response.message = message;
|
|
1354
1354
|
delete response.Message;
|
|
1355
|
-
return [2
|
|
1355
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1356
1356
|
}
|
|
1357
1357
|
});
|
|
1358
1358
|
}); };
|
|
@@ -1362,15 +1362,15 @@ export var deserializeAws_restJson1CreateTagsCommand = function (output, context
|
|
|
1362
1362
|
switch (_a.label) {
|
|
1363
1363
|
case 0:
|
|
1364
1364
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1365
|
-
return [2
|
|
1365
|
+
return [2, deserializeAws_restJson1CreateTagsCommandError(output, context)];
|
|
1366
1366
|
}
|
|
1367
1367
|
contents = {
|
|
1368
1368
|
$metadata: deserializeMetadata(output),
|
|
1369
1369
|
};
|
|
1370
|
-
return [4
|
|
1370
|
+
return [4, collectBody(output.body, context)];
|
|
1371
1371
|
case 1:
|
|
1372
1372
|
_a.sent();
|
|
1373
|
-
return [2
|
|
1373
|
+
return [2, Promise.resolve(contents)];
|
|
1374
1374
|
}
|
|
1375
1375
|
});
|
|
1376
1376
|
}); };
|
|
@@ -1382,39 +1382,39 @@ var deserializeAws_restJson1CreateTagsCommandError = function (output, context)
|
|
|
1382
1382
|
case 0:
|
|
1383
1383
|
_a = [__assign({}, output)];
|
|
1384
1384
|
_f = {};
|
|
1385
|
-
return [4
|
|
1385
|
+
return [4, parseBody(output.body, context)];
|
|
1386
1386
|
case 1:
|
|
1387
1387
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1388
1388
|
errorCode = "UnknownError";
|
|
1389
1389
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1390
1390
|
_b = errorCode;
|
|
1391
1391
|
switch (_b) {
|
|
1392
|
-
case "BadRequest": return [3
|
|
1393
|
-
case "com.amazonaws.efs#BadRequest": return [3
|
|
1394
|
-
case "FileSystemNotFound": return [3
|
|
1395
|
-
case "com.amazonaws.efs#FileSystemNotFound": return [3
|
|
1396
|
-
case "InternalServerError": return [3
|
|
1397
|
-
case "com.amazonaws.efs#InternalServerError": return [3
|
|
1398
|
-
}
|
|
1399
|
-
return [3
|
|
1392
|
+
case "BadRequest": return [3, 2];
|
|
1393
|
+
case "com.amazonaws.efs#BadRequest": return [3, 2];
|
|
1394
|
+
case "FileSystemNotFound": return [3, 4];
|
|
1395
|
+
case "com.amazonaws.efs#FileSystemNotFound": return [3, 4];
|
|
1396
|
+
case "InternalServerError": return [3, 6];
|
|
1397
|
+
case "com.amazonaws.efs#InternalServerError": return [3, 6];
|
|
1398
|
+
}
|
|
1399
|
+
return [3, 8];
|
|
1400
1400
|
case 2:
|
|
1401
1401
|
_c = [{}];
|
|
1402
|
-
return [4
|
|
1402
|
+
return [4, deserializeAws_restJson1BadRequestResponse(parsedOutput, context)];
|
|
1403
1403
|
case 3:
|
|
1404
1404
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1405
|
-
return [3
|
|
1405
|
+
return [3, 9];
|
|
1406
1406
|
case 4:
|
|
1407
1407
|
_d = [{}];
|
|
1408
|
-
return [4
|
|
1408
|
+
return [4, deserializeAws_restJson1FileSystemNotFoundResponse(parsedOutput, context)];
|
|
1409
1409
|
case 5:
|
|
1410
1410
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1411
|
-
return [3
|
|
1411
|
+
return [3, 9];
|
|
1412
1412
|
case 6:
|
|
1413
1413
|
_e = [{}];
|
|
1414
|
-
return [4
|
|
1414
|
+
return [4, deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)];
|
|
1415
1415
|
case 7:
|
|
1416
1416
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1417
|
-
return [3
|
|
1417
|
+
return [3, 9];
|
|
1418
1418
|
case 8:
|
|
1419
1419
|
parsedBody = parsedOutput.body;
|
|
1420
1420
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1424,7 +1424,7 @@ var deserializeAws_restJson1CreateTagsCommandError = function (output, context)
|
|
|
1424
1424
|
message = response.message || response.Message || errorCode;
|
|
1425
1425
|
response.message = message;
|
|
1426
1426
|
delete response.Message;
|
|
1427
|
-
return [2
|
|
1427
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1428
1428
|
}
|
|
1429
1429
|
});
|
|
1430
1430
|
}); };
|
|
@@ -1434,15 +1434,15 @@ export var deserializeAws_restJson1DeleteAccessPointCommand = function (output,
|
|
|
1434
1434
|
switch (_a.label) {
|
|
1435
1435
|
case 0:
|
|
1436
1436
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1437
|
-
return [2
|
|
1437
|
+
return [2, deserializeAws_restJson1DeleteAccessPointCommandError(output, context)];
|
|
1438
1438
|
}
|
|
1439
1439
|
contents = {
|
|
1440
1440
|
$metadata: deserializeMetadata(output),
|
|
1441
1441
|
};
|
|
1442
|
-
return [4
|
|
1442
|
+
return [4, collectBody(output.body, context)];
|
|
1443
1443
|
case 1:
|
|
1444
1444
|
_a.sent();
|
|
1445
|
-
return [2
|
|
1445
|
+
return [2, Promise.resolve(contents)];
|
|
1446
1446
|
}
|
|
1447
1447
|
});
|
|
1448
1448
|
}); };
|
|
@@ -1454,39 +1454,39 @@ var deserializeAws_restJson1DeleteAccessPointCommandError = function (output, co
|
|
|
1454
1454
|
case 0:
|
|
1455
1455
|
_a = [__assign({}, output)];
|
|
1456
1456
|
_f = {};
|
|
1457
|
-
return [4
|
|
1457
|
+
return [4, parseBody(output.body, context)];
|
|
1458
1458
|
case 1:
|
|
1459
1459
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1460
1460
|
errorCode = "UnknownError";
|
|
1461
1461
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1462
1462
|
_b = errorCode;
|
|
1463
1463
|
switch (_b) {
|
|
1464
|
-
case "AccessPointNotFound": return [3
|
|
1465
|
-
case "com.amazonaws.efs#AccessPointNotFound": return [3
|
|
1466
|
-
case "BadRequest": return [3
|
|
1467
|
-
case "com.amazonaws.efs#BadRequest": return [3
|
|
1468
|
-
case "InternalServerError": return [3
|
|
1469
|
-
case "com.amazonaws.efs#InternalServerError": return [3
|
|
1470
|
-
}
|
|
1471
|
-
return [3
|
|
1464
|
+
case "AccessPointNotFound": return [3, 2];
|
|
1465
|
+
case "com.amazonaws.efs#AccessPointNotFound": return [3, 2];
|
|
1466
|
+
case "BadRequest": return [3, 4];
|
|
1467
|
+
case "com.amazonaws.efs#BadRequest": return [3, 4];
|
|
1468
|
+
case "InternalServerError": return [3, 6];
|
|
1469
|
+
case "com.amazonaws.efs#InternalServerError": return [3, 6];
|
|
1470
|
+
}
|
|
1471
|
+
return [3, 8];
|
|
1472
1472
|
case 2:
|
|
1473
1473
|
_c = [{}];
|
|
1474
|
-
return [4
|
|
1474
|
+
return [4, deserializeAws_restJson1AccessPointNotFoundResponse(parsedOutput, context)];
|
|
1475
1475
|
case 3:
|
|
1476
1476
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1477
|
-
return [3
|
|
1477
|
+
return [3, 9];
|
|
1478
1478
|
case 4:
|
|
1479
1479
|
_d = [{}];
|
|
1480
|
-
return [4
|
|
1480
|
+
return [4, deserializeAws_restJson1BadRequestResponse(parsedOutput, context)];
|
|
1481
1481
|
case 5:
|
|
1482
1482
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1483
|
-
return [3
|
|
1483
|
+
return [3, 9];
|
|
1484
1484
|
case 6:
|
|
1485
1485
|
_e = [{}];
|
|
1486
|
-
return [4
|
|
1486
|
+
return [4, deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)];
|
|
1487
1487
|
case 7:
|
|
1488
1488
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1489
|
-
return [3
|
|
1489
|
+
return [3, 9];
|
|
1490
1490
|
case 8:
|
|
1491
1491
|
parsedBody = parsedOutput.body;
|
|
1492
1492
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1496,7 +1496,7 @@ var deserializeAws_restJson1DeleteAccessPointCommandError = function (output, co
|
|
|
1496
1496
|
message = response.message || response.Message || errorCode;
|
|
1497
1497
|
response.message = message;
|
|
1498
1498
|
delete response.Message;
|
|
1499
|
-
return [2
|
|
1499
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1500
1500
|
}
|
|
1501
1501
|
});
|
|
1502
1502
|
}); };
|
|
@@ -1506,15 +1506,15 @@ export var deserializeAws_restJson1DeleteFileSystemCommand = function (output, c
|
|
|
1506
1506
|
switch (_a.label) {
|
|
1507
1507
|
case 0:
|
|
1508
1508
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1509
|
-
return [2
|
|
1509
|
+
return [2, deserializeAws_restJson1DeleteFileSystemCommandError(output, context)];
|
|
1510
1510
|
}
|
|
1511
1511
|
contents = {
|
|
1512
1512
|
$metadata: deserializeMetadata(output),
|
|
1513
1513
|
};
|
|
1514
|
-
return [4
|
|
1514
|
+
return [4, collectBody(output.body, context)];
|
|
1515
1515
|
case 1:
|
|
1516
1516
|
_a.sent();
|
|
1517
|
-
return [2
|
|
1517
|
+
return [2, Promise.resolve(contents)];
|
|
1518
1518
|
}
|
|
1519
1519
|
});
|
|
1520
1520
|
}); };
|
|
@@ -1526,47 +1526,47 @@ var deserializeAws_restJson1DeleteFileSystemCommandError = function (output, con
|
|
|
1526
1526
|
case 0:
|
|
1527
1527
|
_a = [__assign({}, output)];
|
|
1528
1528
|
_g = {};
|
|
1529
|
-
return [4
|
|
1529
|
+
return [4, parseBody(output.body, context)];
|
|
1530
1530
|
case 1:
|
|
1531
1531
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1532
1532
|
errorCode = "UnknownError";
|
|
1533
1533
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1534
1534
|
_b = errorCode;
|
|
1535
1535
|
switch (_b) {
|
|
1536
|
-
case "BadRequest": return [3
|
|
1537
|
-
case "com.amazonaws.efs#BadRequest": return [3
|
|
1538
|
-
case "FileSystemInUse": return [3
|
|
1539
|
-
case "com.amazonaws.efs#FileSystemInUse": return [3
|
|
1540
|
-
case "FileSystemNotFound": return [3
|
|
1541
|
-
case "com.amazonaws.efs#FileSystemNotFound": return [3
|
|
1542
|
-
case "InternalServerError": return [3
|
|
1543
|
-
case "com.amazonaws.efs#InternalServerError": return [3
|
|
1544
|
-
}
|
|
1545
|
-
return [3
|
|
1536
|
+
case "BadRequest": return [3, 2];
|
|
1537
|
+
case "com.amazonaws.efs#BadRequest": return [3, 2];
|
|
1538
|
+
case "FileSystemInUse": return [3, 4];
|
|
1539
|
+
case "com.amazonaws.efs#FileSystemInUse": return [3, 4];
|
|
1540
|
+
case "FileSystemNotFound": return [3, 6];
|
|
1541
|
+
case "com.amazonaws.efs#FileSystemNotFound": return [3, 6];
|
|
1542
|
+
case "InternalServerError": return [3, 8];
|
|
1543
|
+
case "com.amazonaws.efs#InternalServerError": return [3, 8];
|
|
1544
|
+
}
|
|
1545
|
+
return [3, 10];
|
|
1546
1546
|
case 2:
|
|
1547
1547
|
_c = [{}];
|
|
1548
|
-
return [4
|
|
1548
|
+
return [4, deserializeAws_restJson1BadRequestResponse(parsedOutput, context)];
|
|
1549
1549
|
case 3:
|
|
1550
1550
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1551
|
-
return [3
|
|
1551
|
+
return [3, 11];
|
|
1552
1552
|
case 4:
|
|
1553
1553
|
_d = [{}];
|
|
1554
|
-
return [4
|
|
1554
|
+
return [4, deserializeAws_restJson1FileSystemInUseResponse(parsedOutput, context)];
|
|
1555
1555
|
case 5:
|
|
1556
1556
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1557
|
-
return [3
|
|
1557
|
+
return [3, 11];
|
|
1558
1558
|
case 6:
|
|
1559
1559
|
_e = [{}];
|
|
1560
|
-
return [4
|
|
1560
|
+
return [4, deserializeAws_restJson1FileSystemNotFoundResponse(parsedOutput, context)];
|
|
1561
1561
|
case 7:
|
|
1562
1562
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1563
|
-
return [3
|
|
1563
|
+
return [3, 11];
|
|
1564
1564
|
case 8:
|
|
1565
1565
|
_f = [{}];
|
|
1566
|
-
return [4
|
|
1566
|
+
return [4, deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)];
|
|
1567
1567
|
case 9:
|
|
1568
1568
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1569
|
-
return [3
|
|
1569
|
+
return [3, 11];
|
|
1570
1570
|
case 10:
|
|
1571
1571
|
parsedBody = parsedOutput.body;
|
|
1572
1572
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1576,7 +1576,7 @@ var deserializeAws_restJson1DeleteFileSystemCommandError = function (output, con
|
|
|
1576
1576
|
message = response.message || response.Message || errorCode;
|
|
1577
1577
|
response.message = message;
|
|
1578
1578
|
delete response.Message;
|
|
1579
|
-
return [2
|
|
1579
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1580
1580
|
}
|
|
1581
1581
|
});
|
|
1582
1582
|
}); };
|
|
@@ -1586,15 +1586,15 @@ export var deserializeAws_restJson1DeleteFileSystemPolicyCommand = function (out
|
|
|
1586
1586
|
switch (_a.label) {
|
|
1587
1587
|
case 0:
|
|
1588
1588
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1589
|
-
return [2
|
|
1589
|
+
return [2, deserializeAws_restJson1DeleteFileSystemPolicyCommandError(output, context)];
|
|
1590
1590
|
}
|
|
1591
1591
|
contents = {
|
|
1592
1592
|
$metadata: deserializeMetadata(output),
|
|
1593
1593
|
};
|
|
1594
|
-
return [4
|
|
1594
|
+
return [4, collectBody(output.body, context)];
|
|
1595
1595
|
case 1:
|
|
1596
1596
|
_a.sent();
|
|
1597
|
-
return [2
|
|
1597
|
+
return [2, Promise.resolve(contents)];
|
|
1598
1598
|
}
|
|
1599
1599
|
});
|
|
1600
1600
|
}); };
|
|
@@ -1606,39 +1606,39 @@ var deserializeAws_restJson1DeleteFileSystemPolicyCommandError = function (outpu
|
|
|
1606
1606
|
case 0:
|
|
1607
1607
|
_a = [__assign({}, output)];
|
|
1608
1608
|
_f = {};
|
|
1609
|
-
return [4
|
|
1609
|
+
return [4, parseBody(output.body, context)];
|
|
1610
1610
|
case 1:
|
|
1611
1611
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1612
1612
|
errorCode = "UnknownError";
|
|
1613
1613
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1614
1614
|
_b = errorCode;
|
|
1615
1615
|
switch (_b) {
|
|
1616
|
-
case "FileSystemNotFound": return [3
|
|
1617
|
-
case "com.amazonaws.efs#FileSystemNotFound": return [3
|
|
1618
|
-
case "IncorrectFileSystemLifeCycleState": return [3
|
|
1619
|
-
case "com.amazonaws.efs#IncorrectFileSystemLifeCycleState": return [3
|
|
1620
|
-
case "InternalServerError": return [3
|
|
1621
|
-
case "com.amazonaws.efs#InternalServerError": return [3
|
|
1622
|
-
}
|
|
1623
|
-
return [3
|
|
1616
|
+
case "FileSystemNotFound": return [3, 2];
|
|
1617
|
+
case "com.amazonaws.efs#FileSystemNotFound": return [3, 2];
|
|
1618
|
+
case "IncorrectFileSystemLifeCycleState": return [3, 4];
|
|
1619
|
+
case "com.amazonaws.efs#IncorrectFileSystemLifeCycleState": return [3, 4];
|
|
1620
|
+
case "InternalServerError": return [3, 6];
|
|
1621
|
+
case "com.amazonaws.efs#InternalServerError": return [3, 6];
|
|
1622
|
+
}
|
|
1623
|
+
return [3, 8];
|
|
1624
1624
|
case 2:
|
|
1625
1625
|
_c = [{}];
|
|
1626
|
-
return [4
|
|
1626
|
+
return [4, deserializeAws_restJson1FileSystemNotFoundResponse(parsedOutput, context)];
|
|
1627
1627
|
case 3:
|
|
1628
1628
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1629
|
-
return [3
|
|
1629
|
+
return [3, 9];
|
|
1630
1630
|
case 4:
|
|
1631
1631
|
_d = [{}];
|
|
1632
|
-
return [4
|
|
1632
|
+
return [4, deserializeAws_restJson1IncorrectFileSystemLifeCycleStateResponse(parsedOutput, context)];
|
|
1633
1633
|
case 5:
|
|
1634
1634
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1635
|
-
return [3
|
|
1635
|
+
return [3, 9];
|
|
1636
1636
|
case 6:
|
|
1637
1637
|
_e = [{}];
|
|
1638
|
-
return [4
|
|
1638
|
+
return [4, deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)];
|
|
1639
1639
|
case 7:
|
|
1640
1640
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1641
|
-
return [3
|
|
1641
|
+
return [3, 9];
|
|
1642
1642
|
case 8:
|
|
1643
1643
|
parsedBody = parsedOutput.body;
|
|
1644
1644
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1648,7 +1648,7 @@ var deserializeAws_restJson1DeleteFileSystemPolicyCommandError = function (outpu
|
|
|
1648
1648
|
message = response.message || response.Message || errorCode;
|
|
1649
1649
|
response.message = message;
|
|
1650
1650
|
delete response.Message;
|
|
1651
|
-
return [2
|
|
1651
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1652
1652
|
}
|
|
1653
1653
|
});
|
|
1654
1654
|
}); };
|
|
@@ -1658,15 +1658,15 @@ export var deserializeAws_restJson1DeleteMountTargetCommand = function (output,
|
|
|
1658
1658
|
switch (_a.label) {
|
|
1659
1659
|
case 0:
|
|
1660
1660
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1661
|
-
return [2
|
|
1661
|
+
return [2, deserializeAws_restJson1DeleteMountTargetCommandError(output, context)];
|
|
1662
1662
|
}
|
|
1663
1663
|
contents = {
|
|
1664
1664
|
$metadata: deserializeMetadata(output),
|
|
1665
1665
|
};
|
|
1666
|
-
return [4
|
|
1666
|
+
return [4, collectBody(output.body, context)];
|
|
1667
1667
|
case 1:
|
|
1668
1668
|
_a.sent();
|
|
1669
|
-
return [2
|
|
1669
|
+
return [2, Promise.resolve(contents)];
|
|
1670
1670
|
}
|
|
1671
1671
|
});
|
|
1672
1672
|
}); };
|
|
@@ -1678,47 +1678,47 @@ var deserializeAws_restJson1DeleteMountTargetCommandError = function (output, co
|
|
|
1678
1678
|
case 0:
|
|
1679
1679
|
_a = [__assign({}, output)];
|
|
1680
1680
|
_g = {};
|
|
1681
|
-
return [4
|
|
1681
|
+
return [4, parseBody(output.body, context)];
|
|
1682
1682
|
case 1:
|
|
1683
1683
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1684
1684
|
errorCode = "UnknownError";
|
|
1685
1685
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1686
1686
|
_b = errorCode;
|
|
1687
1687
|
switch (_b) {
|
|
1688
|
-
case "BadRequest": return [3
|
|
1689
|
-
case "com.amazonaws.efs#BadRequest": return [3
|
|
1690
|
-
case "DependencyTimeout": return [3
|
|
1691
|
-
case "com.amazonaws.efs#DependencyTimeout": return [3
|
|
1692
|
-
case "InternalServerError": return [3
|
|
1693
|
-
case "com.amazonaws.efs#InternalServerError": return [3
|
|
1694
|
-
case "MountTargetNotFound": return [3
|
|
1695
|
-
case "com.amazonaws.efs#MountTargetNotFound": return [3
|
|
1696
|
-
}
|
|
1697
|
-
return [3
|
|
1688
|
+
case "BadRequest": return [3, 2];
|
|
1689
|
+
case "com.amazonaws.efs#BadRequest": return [3, 2];
|
|
1690
|
+
case "DependencyTimeout": return [3, 4];
|
|
1691
|
+
case "com.amazonaws.efs#DependencyTimeout": return [3, 4];
|
|
1692
|
+
case "InternalServerError": return [3, 6];
|
|
1693
|
+
case "com.amazonaws.efs#InternalServerError": return [3, 6];
|
|
1694
|
+
case "MountTargetNotFound": return [3, 8];
|
|
1695
|
+
case "com.amazonaws.efs#MountTargetNotFound": return [3, 8];
|
|
1696
|
+
}
|
|
1697
|
+
return [3, 10];
|
|
1698
1698
|
case 2:
|
|
1699
1699
|
_c = [{}];
|
|
1700
|
-
return [4
|
|
1700
|
+
return [4, deserializeAws_restJson1BadRequestResponse(parsedOutput, context)];
|
|
1701
1701
|
case 3:
|
|
1702
1702
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1703
|
-
return [3
|
|
1703
|
+
return [3, 11];
|
|
1704
1704
|
case 4:
|
|
1705
1705
|
_d = [{}];
|
|
1706
|
-
return [4
|
|
1706
|
+
return [4, deserializeAws_restJson1DependencyTimeoutResponse(parsedOutput, context)];
|
|
1707
1707
|
case 5:
|
|
1708
1708
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1709
|
-
return [3
|
|
1709
|
+
return [3, 11];
|
|
1710
1710
|
case 6:
|
|
1711
1711
|
_e = [{}];
|
|
1712
|
-
return [4
|
|
1712
|
+
return [4, deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)];
|
|
1713
1713
|
case 7:
|
|
1714
1714
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1715
|
-
return [3
|
|
1715
|
+
return [3, 11];
|
|
1716
1716
|
case 8:
|
|
1717
1717
|
_f = [{}];
|
|
1718
|
-
return [4
|
|
1718
|
+
return [4, deserializeAws_restJson1MountTargetNotFoundResponse(parsedOutput, context)];
|
|
1719
1719
|
case 9:
|
|
1720
1720
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1721
|
-
return [3
|
|
1721
|
+
return [3, 11];
|
|
1722
1722
|
case 10:
|
|
1723
1723
|
parsedBody = parsedOutput.body;
|
|
1724
1724
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1728,7 +1728,7 @@ var deserializeAws_restJson1DeleteMountTargetCommandError = function (output, co
|
|
|
1728
1728
|
message = response.message || response.Message || errorCode;
|
|
1729
1729
|
response.message = message;
|
|
1730
1730
|
delete response.Message;
|
|
1731
|
-
return [2
|
|
1731
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1732
1732
|
}
|
|
1733
1733
|
});
|
|
1734
1734
|
}); };
|
|
@@ -1738,15 +1738,15 @@ export var deserializeAws_restJson1DeleteTagsCommand = function (output, context
|
|
|
1738
1738
|
switch (_a.label) {
|
|
1739
1739
|
case 0:
|
|
1740
1740
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1741
|
-
return [2
|
|
1741
|
+
return [2, deserializeAws_restJson1DeleteTagsCommandError(output, context)];
|
|
1742
1742
|
}
|
|
1743
1743
|
contents = {
|
|
1744
1744
|
$metadata: deserializeMetadata(output),
|
|
1745
1745
|
};
|
|
1746
|
-
return [4
|
|
1746
|
+
return [4, collectBody(output.body, context)];
|
|
1747
1747
|
case 1:
|
|
1748
1748
|
_a.sent();
|
|
1749
|
-
return [2
|
|
1749
|
+
return [2, Promise.resolve(contents)];
|
|
1750
1750
|
}
|
|
1751
1751
|
});
|
|
1752
1752
|
}); };
|
|
@@ -1758,39 +1758,39 @@ var deserializeAws_restJson1DeleteTagsCommandError = function (output, context)
|
|
|
1758
1758
|
case 0:
|
|
1759
1759
|
_a = [__assign({}, output)];
|
|
1760
1760
|
_f = {};
|
|
1761
|
-
return [4
|
|
1761
|
+
return [4, parseBody(output.body, context)];
|
|
1762
1762
|
case 1:
|
|
1763
1763
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1764
1764
|
errorCode = "UnknownError";
|
|
1765
1765
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1766
1766
|
_b = errorCode;
|
|
1767
1767
|
switch (_b) {
|
|
1768
|
-
case "BadRequest": return [3
|
|
1769
|
-
case "com.amazonaws.efs#BadRequest": return [3
|
|
1770
|
-
case "FileSystemNotFound": return [3
|
|
1771
|
-
case "com.amazonaws.efs#FileSystemNotFound": return [3
|
|
1772
|
-
case "InternalServerError": return [3
|
|
1773
|
-
case "com.amazonaws.efs#InternalServerError": return [3
|
|
1774
|
-
}
|
|
1775
|
-
return [3
|
|
1768
|
+
case "BadRequest": return [3, 2];
|
|
1769
|
+
case "com.amazonaws.efs#BadRequest": return [3, 2];
|
|
1770
|
+
case "FileSystemNotFound": return [3, 4];
|
|
1771
|
+
case "com.amazonaws.efs#FileSystemNotFound": return [3, 4];
|
|
1772
|
+
case "InternalServerError": return [3, 6];
|
|
1773
|
+
case "com.amazonaws.efs#InternalServerError": return [3, 6];
|
|
1774
|
+
}
|
|
1775
|
+
return [3, 8];
|
|
1776
1776
|
case 2:
|
|
1777
1777
|
_c = [{}];
|
|
1778
|
-
return [4
|
|
1778
|
+
return [4, deserializeAws_restJson1BadRequestResponse(parsedOutput, context)];
|
|
1779
1779
|
case 3:
|
|
1780
1780
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1781
|
-
return [3
|
|
1781
|
+
return [3, 9];
|
|
1782
1782
|
case 4:
|
|
1783
1783
|
_d = [{}];
|
|
1784
|
-
return [4
|
|
1784
|
+
return [4, deserializeAws_restJson1FileSystemNotFoundResponse(parsedOutput, context)];
|
|
1785
1785
|
case 5:
|
|
1786
1786
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1787
|
-
return [3
|
|
1787
|
+
return [3, 9];
|
|
1788
1788
|
case 6:
|
|
1789
1789
|
_e = [{}];
|
|
1790
|
-
return [4
|
|
1790
|
+
return [4, deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)];
|
|
1791
1791
|
case 7:
|
|
1792
1792
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1793
|
-
return [3
|
|
1793
|
+
return [3, 9];
|
|
1794
1794
|
case 8:
|
|
1795
1795
|
parsedBody = parsedOutput.body;
|
|
1796
1796
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1800,7 +1800,7 @@ var deserializeAws_restJson1DeleteTagsCommandError = function (output, context)
|
|
|
1800
1800
|
message = response.message || response.Message || errorCode;
|
|
1801
1801
|
response.message = message;
|
|
1802
1802
|
delete response.Message;
|
|
1803
|
-
return [2
|
|
1803
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1804
1804
|
}
|
|
1805
1805
|
});
|
|
1806
1806
|
}); };
|
|
@@ -1810,7 +1810,7 @@ export var deserializeAws_restJson1DescribeAccessPointsCommand = function (outpu
|
|
|
1810
1810
|
switch (_c.label) {
|
|
1811
1811
|
case 0:
|
|
1812
1812
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1813
|
-
return [2
|
|
1813
|
+
return [2, deserializeAws_restJson1DescribeAccessPointsCommandError(output, context)];
|
|
1814
1814
|
}
|
|
1815
1815
|
contents = {
|
|
1816
1816
|
$metadata: deserializeMetadata(output),
|
|
@@ -1819,7 +1819,7 @@ export var deserializeAws_restJson1DescribeAccessPointsCommand = function (outpu
|
|
|
1819
1819
|
};
|
|
1820
1820
|
_a = __expectNonNull;
|
|
1821
1821
|
_b = __expectObject;
|
|
1822
|
-
return [4
|
|
1822
|
+
return [4, parseBody(output.body, context)];
|
|
1823
1823
|
case 1:
|
|
1824
1824
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1825
1825
|
if (data.AccessPoints !== undefined && data.AccessPoints !== null) {
|
|
@@ -1828,7 +1828,7 @@ export var deserializeAws_restJson1DescribeAccessPointsCommand = function (outpu
|
|
|
1828
1828
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
1829
1829
|
contents.NextToken = __expectString(data.NextToken);
|
|
1830
1830
|
}
|
|
1831
|
-
return [2
|
|
1831
|
+
return [2, Promise.resolve(contents)];
|
|
1832
1832
|
}
|
|
1833
1833
|
});
|
|
1834
1834
|
}); };
|
|
@@ -1840,47 +1840,47 @@ var deserializeAws_restJson1DescribeAccessPointsCommandError = function (output,
|
|
|
1840
1840
|
case 0:
|
|
1841
1841
|
_a = [__assign({}, output)];
|
|
1842
1842
|
_g = {};
|
|
1843
|
-
return [4
|
|
1843
|
+
return [4, parseBody(output.body, context)];
|
|
1844
1844
|
case 1:
|
|
1845
1845
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1846
1846
|
errorCode = "UnknownError";
|
|
1847
1847
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1848
1848
|
_b = errorCode;
|
|
1849
1849
|
switch (_b) {
|
|
1850
|
-
case "AccessPointNotFound": return [3
|
|
1851
|
-
case "com.amazonaws.efs#AccessPointNotFound": return [3
|
|
1852
|
-
case "BadRequest": return [3
|
|
1853
|
-
case "com.amazonaws.efs#BadRequest": return [3
|
|
1854
|
-
case "FileSystemNotFound": return [3
|
|
1855
|
-
case "com.amazonaws.efs#FileSystemNotFound": return [3
|
|
1856
|
-
case "InternalServerError": return [3
|
|
1857
|
-
case "com.amazonaws.efs#InternalServerError": return [3
|
|
1858
|
-
}
|
|
1859
|
-
return [3
|
|
1850
|
+
case "AccessPointNotFound": return [3, 2];
|
|
1851
|
+
case "com.amazonaws.efs#AccessPointNotFound": return [3, 2];
|
|
1852
|
+
case "BadRequest": return [3, 4];
|
|
1853
|
+
case "com.amazonaws.efs#BadRequest": return [3, 4];
|
|
1854
|
+
case "FileSystemNotFound": return [3, 6];
|
|
1855
|
+
case "com.amazonaws.efs#FileSystemNotFound": return [3, 6];
|
|
1856
|
+
case "InternalServerError": return [3, 8];
|
|
1857
|
+
case "com.amazonaws.efs#InternalServerError": return [3, 8];
|
|
1858
|
+
}
|
|
1859
|
+
return [3, 10];
|
|
1860
1860
|
case 2:
|
|
1861
1861
|
_c = [{}];
|
|
1862
|
-
return [4
|
|
1862
|
+
return [4, deserializeAws_restJson1AccessPointNotFoundResponse(parsedOutput, context)];
|
|
1863
1863
|
case 3:
|
|
1864
1864
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1865
|
-
return [3
|
|
1865
|
+
return [3, 11];
|
|
1866
1866
|
case 4:
|
|
1867
1867
|
_d = [{}];
|
|
1868
|
-
return [4
|
|
1868
|
+
return [4, deserializeAws_restJson1BadRequestResponse(parsedOutput, context)];
|
|
1869
1869
|
case 5:
|
|
1870
1870
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1871
|
-
return [3
|
|
1871
|
+
return [3, 11];
|
|
1872
1872
|
case 6:
|
|
1873
1873
|
_e = [{}];
|
|
1874
|
-
return [4
|
|
1874
|
+
return [4, deserializeAws_restJson1FileSystemNotFoundResponse(parsedOutput, context)];
|
|
1875
1875
|
case 7:
|
|
1876
1876
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1877
|
-
return [3
|
|
1877
|
+
return [3, 11];
|
|
1878
1878
|
case 8:
|
|
1879
1879
|
_f = [{}];
|
|
1880
|
-
return [4
|
|
1880
|
+
return [4, deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)];
|
|
1881
1881
|
case 9:
|
|
1882
1882
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1883
|
-
return [3
|
|
1883
|
+
return [3, 11];
|
|
1884
1884
|
case 10:
|
|
1885
1885
|
parsedBody = parsedOutput.body;
|
|
1886
1886
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1890,7 +1890,7 @@ var deserializeAws_restJson1DescribeAccessPointsCommandError = function (output,
|
|
|
1890
1890
|
message = response.message || response.Message || errorCode;
|
|
1891
1891
|
response.message = message;
|
|
1892
1892
|
delete response.Message;
|
|
1893
|
-
return [2
|
|
1893
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1894
1894
|
}
|
|
1895
1895
|
});
|
|
1896
1896
|
}); };
|
|
@@ -1900,7 +1900,7 @@ export var deserializeAws_restJson1DescribeAccountPreferencesCommand = function
|
|
|
1900
1900
|
switch (_c.label) {
|
|
1901
1901
|
case 0:
|
|
1902
1902
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1903
|
-
return [2
|
|
1903
|
+
return [2, deserializeAws_restJson1DescribeAccountPreferencesCommandError(output, context)];
|
|
1904
1904
|
}
|
|
1905
1905
|
contents = {
|
|
1906
1906
|
$metadata: deserializeMetadata(output),
|
|
@@ -1909,7 +1909,7 @@ export var deserializeAws_restJson1DescribeAccountPreferencesCommand = function
|
|
|
1909
1909
|
};
|
|
1910
1910
|
_a = __expectNonNull;
|
|
1911
1911
|
_b = __expectObject;
|
|
1912
|
-
return [4
|
|
1912
|
+
return [4, parseBody(output.body, context)];
|
|
1913
1913
|
case 1:
|
|
1914
1914
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1915
1915
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
@@ -1918,7 +1918,7 @@ export var deserializeAws_restJson1DescribeAccountPreferencesCommand = function
|
|
|
1918
1918
|
if (data.ResourceIdPreference !== undefined && data.ResourceIdPreference !== null) {
|
|
1919
1919
|
contents.ResourceIdPreference = deserializeAws_restJson1ResourceIdPreference(data.ResourceIdPreference, context);
|
|
1920
1920
|
}
|
|
1921
|
-
return [2
|
|
1921
|
+
return [2, Promise.resolve(contents)];
|
|
1922
1922
|
}
|
|
1923
1923
|
});
|
|
1924
1924
|
}); };
|
|
@@ -1930,23 +1930,23 @@ var deserializeAws_restJson1DescribeAccountPreferencesCommandError = function (o
|
|
|
1930
1930
|
case 0:
|
|
1931
1931
|
_a = [__assign({}, output)];
|
|
1932
1932
|
_d = {};
|
|
1933
|
-
return [4
|
|
1933
|
+
return [4, parseBody(output.body, context)];
|
|
1934
1934
|
case 1:
|
|
1935
1935
|
parsedOutput = __assign.apply(void 0, _a.concat([(_d.body = _e.sent(), _d)]));
|
|
1936
1936
|
errorCode = "UnknownError";
|
|
1937
1937
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1938
1938
|
_b = errorCode;
|
|
1939
1939
|
switch (_b) {
|
|
1940
|
-
case "InternalServerError": return [3
|
|
1941
|
-
case "com.amazonaws.efs#InternalServerError": return [3
|
|
1940
|
+
case "InternalServerError": return [3, 2];
|
|
1941
|
+
case "com.amazonaws.efs#InternalServerError": return [3, 2];
|
|
1942
1942
|
}
|
|
1943
|
-
return [3
|
|
1943
|
+
return [3, 4];
|
|
1944
1944
|
case 2:
|
|
1945
1945
|
_c = [{}];
|
|
1946
|
-
return [4
|
|
1946
|
+
return [4, deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)];
|
|
1947
1947
|
case 3:
|
|
1948
1948
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1949
|
-
return [3
|
|
1949
|
+
return [3, 5];
|
|
1950
1950
|
case 4:
|
|
1951
1951
|
parsedBody = parsedOutput.body;
|
|
1952
1952
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1956,7 +1956,7 @@ var deserializeAws_restJson1DescribeAccountPreferencesCommandError = function (o
|
|
|
1956
1956
|
message = response.message || response.Message || errorCode;
|
|
1957
1957
|
response.message = message;
|
|
1958
1958
|
delete response.Message;
|
|
1959
|
-
return [2
|
|
1959
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1960
1960
|
}
|
|
1961
1961
|
});
|
|
1962
1962
|
}); };
|
|
@@ -1966,7 +1966,7 @@ export var deserializeAws_restJson1DescribeBackupPolicyCommand = function (outpu
|
|
|
1966
1966
|
switch (_c.label) {
|
|
1967
1967
|
case 0:
|
|
1968
1968
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1969
|
-
return [2
|
|
1969
|
+
return [2, deserializeAws_restJson1DescribeBackupPolicyCommandError(output, context)];
|
|
1970
1970
|
}
|
|
1971
1971
|
contents = {
|
|
1972
1972
|
$metadata: deserializeMetadata(output),
|
|
@@ -1974,13 +1974,13 @@ export var deserializeAws_restJson1DescribeBackupPolicyCommand = function (outpu
|
|
|
1974
1974
|
};
|
|
1975
1975
|
_a = __expectNonNull;
|
|
1976
1976
|
_b = __expectObject;
|
|
1977
|
-
return [4
|
|
1977
|
+
return [4, parseBody(output.body, context)];
|
|
1978
1978
|
case 1:
|
|
1979
1979
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1980
1980
|
if (data.BackupPolicy !== undefined && data.BackupPolicy !== null) {
|
|
1981
1981
|
contents.BackupPolicy = deserializeAws_restJson1BackupPolicy(data.BackupPolicy, context);
|
|
1982
1982
|
}
|
|
1983
|
-
return [2
|
|
1983
|
+
return [2, Promise.resolve(contents)];
|
|
1984
1984
|
}
|
|
1985
1985
|
});
|
|
1986
1986
|
}); };
|
|
@@ -1992,55 +1992,55 @@ var deserializeAws_restJson1DescribeBackupPolicyCommandError = function (output,
|
|
|
1992
1992
|
case 0:
|
|
1993
1993
|
_a = [__assign({}, output)];
|
|
1994
1994
|
_h = {};
|
|
1995
|
-
return [4
|
|
1995
|
+
return [4, parseBody(output.body, context)];
|
|
1996
1996
|
case 1:
|
|
1997
1997
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1998
1998
|
errorCode = "UnknownError";
|
|
1999
1999
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2000
2000
|
_b = errorCode;
|
|
2001
2001
|
switch (_b) {
|
|
2002
|
-
case "BadRequest": return [3
|
|
2003
|
-
case "com.amazonaws.efs#BadRequest": return [3
|
|
2004
|
-
case "FileSystemNotFound": return [3
|
|
2005
|
-
case "com.amazonaws.efs#FileSystemNotFound": return [3
|
|
2006
|
-
case "InternalServerError": return [3
|
|
2007
|
-
case "com.amazonaws.efs#InternalServerError": return [3
|
|
2008
|
-
case "PolicyNotFound": return [3
|
|
2009
|
-
case "com.amazonaws.efs#PolicyNotFound": return [3
|
|
2010
|
-
case "ValidationException": return [3
|
|
2011
|
-
case "com.amazonaws.efs#ValidationException": return [3
|
|
2012
|
-
}
|
|
2013
|
-
return [3
|
|
2002
|
+
case "BadRequest": return [3, 2];
|
|
2003
|
+
case "com.amazonaws.efs#BadRequest": return [3, 2];
|
|
2004
|
+
case "FileSystemNotFound": return [3, 4];
|
|
2005
|
+
case "com.amazonaws.efs#FileSystemNotFound": return [3, 4];
|
|
2006
|
+
case "InternalServerError": return [3, 6];
|
|
2007
|
+
case "com.amazonaws.efs#InternalServerError": return [3, 6];
|
|
2008
|
+
case "PolicyNotFound": return [3, 8];
|
|
2009
|
+
case "com.amazonaws.efs#PolicyNotFound": return [3, 8];
|
|
2010
|
+
case "ValidationException": return [3, 10];
|
|
2011
|
+
case "com.amazonaws.efs#ValidationException": return [3, 10];
|
|
2012
|
+
}
|
|
2013
|
+
return [3, 12];
|
|
2014
2014
|
case 2:
|
|
2015
2015
|
_c = [{}];
|
|
2016
|
-
return [4
|
|
2016
|
+
return [4, deserializeAws_restJson1BadRequestResponse(parsedOutput, context)];
|
|
2017
2017
|
case 3:
|
|
2018
2018
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2019
|
-
return [3
|
|
2019
|
+
return [3, 13];
|
|
2020
2020
|
case 4:
|
|
2021
2021
|
_d = [{}];
|
|
2022
|
-
return [4
|
|
2022
|
+
return [4, deserializeAws_restJson1FileSystemNotFoundResponse(parsedOutput, context)];
|
|
2023
2023
|
case 5:
|
|
2024
2024
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2025
|
-
return [3
|
|
2025
|
+
return [3, 13];
|
|
2026
2026
|
case 6:
|
|
2027
2027
|
_e = [{}];
|
|
2028
|
-
return [4
|
|
2028
|
+
return [4, deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)];
|
|
2029
2029
|
case 7:
|
|
2030
2030
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2031
|
-
return [3
|
|
2031
|
+
return [3, 13];
|
|
2032
2032
|
case 8:
|
|
2033
2033
|
_f = [{}];
|
|
2034
|
-
return [4
|
|
2034
|
+
return [4, deserializeAws_restJson1PolicyNotFoundResponse(parsedOutput, context)];
|
|
2035
2035
|
case 9:
|
|
2036
2036
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2037
|
-
return [3
|
|
2037
|
+
return [3, 13];
|
|
2038
2038
|
case 10:
|
|
2039
2039
|
_g = [{}];
|
|
2040
|
-
return [4
|
|
2040
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2041
2041
|
case 11:
|
|
2042
2042
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2043
|
-
return [3
|
|
2043
|
+
return [3, 13];
|
|
2044
2044
|
case 12:
|
|
2045
2045
|
parsedBody = parsedOutput.body;
|
|
2046
2046
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2050,7 +2050,7 @@ var deserializeAws_restJson1DescribeBackupPolicyCommandError = function (output,
|
|
|
2050
2050
|
message = response.message || response.Message || errorCode;
|
|
2051
2051
|
response.message = message;
|
|
2052
2052
|
delete response.Message;
|
|
2053
|
-
return [2
|
|
2053
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2054
2054
|
}
|
|
2055
2055
|
});
|
|
2056
2056
|
}); };
|
|
@@ -2060,7 +2060,7 @@ export var deserializeAws_restJson1DescribeFileSystemPolicyCommand = function (o
|
|
|
2060
2060
|
switch (_c.label) {
|
|
2061
2061
|
case 0:
|
|
2062
2062
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2063
|
-
return [2
|
|
2063
|
+
return [2, deserializeAws_restJson1DescribeFileSystemPolicyCommandError(output, context)];
|
|
2064
2064
|
}
|
|
2065
2065
|
contents = {
|
|
2066
2066
|
$metadata: deserializeMetadata(output),
|
|
@@ -2069,7 +2069,7 @@ export var deserializeAws_restJson1DescribeFileSystemPolicyCommand = function (o
|
|
|
2069
2069
|
};
|
|
2070
2070
|
_a = __expectNonNull;
|
|
2071
2071
|
_b = __expectObject;
|
|
2072
|
-
return [4
|
|
2072
|
+
return [4, parseBody(output.body, context)];
|
|
2073
2073
|
case 1:
|
|
2074
2074
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2075
2075
|
if (data.FileSystemId !== undefined && data.FileSystemId !== null) {
|
|
@@ -2078,7 +2078,7 @@ export var deserializeAws_restJson1DescribeFileSystemPolicyCommand = function (o
|
|
|
2078
2078
|
if (data.Policy !== undefined && data.Policy !== null) {
|
|
2079
2079
|
contents.Policy = __expectString(data.Policy);
|
|
2080
2080
|
}
|
|
2081
|
-
return [2
|
|
2081
|
+
return [2, Promise.resolve(contents)];
|
|
2082
2082
|
}
|
|
2083
2083
|
});
|
|
2084
2084
|
}); };
|
|
@@ -2090,39 +2090,39 @@ var deserializeAws_restJson1DescribeFileSystemPolicyCommandError = function (out
|
|
|
2090
2090
|
case 0:
|
|
2091
2091
|
_a = [__assign({}, output)];
|
|
2092
2092
|
_f = {};
|
|
2093
|
-
return [4
|
|
2093
|
+
return [4, parseBody(output.body, context)];
|
|
2094
2094
|
case 1:
|
|
2095
2095
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
2096
2096
|
errorCode = "UnknownError";
|
|
2097
2097
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2098
2098
|
_b = errorCode;
|
|
2099
2099
|
switch (_b) {
|
|
2100
|
-
case "FileSystemNotFound": return [3
|
|
2101
|
-
case "com.amazonaws.efs#FileSystemNotFound": return [3
|
|
2102
|
-
case "InternalServerError": return [3
|
|
2103
|
-
case "com.amazonaws.efs#InternalServerError": return [3
|
|
2104
|
-
case "PolicyNotFound": return [3
|
|
2105
|
-
case "com.amazonaws.efs#PolicyNotFound": return [3
|
|
2106
|
-
}
|
|
2107
|
-
return [3
|
|
2100
|
+
case "FileSystemNotFound": return [3, 2];
|
|
2101
|
+
case "com.amazonaws.efs#FileSystemNotFound": return [3, 2];
|
|
2102
|
+
case "InternalServerError": return [3, 4];
|
|
2103
|
+
case "com.amazonaws.efs#InternalServerError": return [3, 4];
|
|
2104
|
+
case "PolicyNotFound": return [3, 6];
|
|
2105
|
+
case "com.amazonaws.efs#PolicyNotFound": return [3, 6];
|
|
2106
|
+
}
|
|
2107
|
+
return [3, 8];
|
|
2108
2108
|
case 2:
|
|
2109
2109
|
_c = [{}];
|
|
2110
|
-
return [4
|
|
2110
|
+
return [4, deserializeAws_restJson1FileSystemNotFoundResponse(parsedOutput, context)];
|
|
2111
2111
|
case 3:
|
|
2112
2112
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2113
|
-
return [3
|
|
2113
|
+
return [3, 9];
|
|
2114
2114
|
case 4:
|
|
2115
2115
|
_d = [{}];
|
|
2116
|
-
return [4
|
|
2116
|
+
return [4, deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)];
|
|
2117
2117
|
case 5:
|
|
2118
2118
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2119
|
-
return [3
|
|
2119
|
+
return [3, 9];
|
|
2120
2120
|
case 6:
|
|
2121
2121
|
_e = [{}];
|
|
2122
|
-
return [4
|
|
2122
|
+
return [4, deserializeAws_restJson1PolicyNotFoundResponse(parsedOutput, context)];
|
|
2123
2123
|
case 7:
|
|
2124
2124
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2125
|
-
return [3
|
|
2125
|
+
return [3, 9];
|
|
2126
2126
|
case 8:
|
|
2127
2127
|
parsedBody = parsedOutput.body;
|
|
2128
2128
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2132,7 +2132,7 @@ var deserializeAws_restJson1DescribeFileSystemPolicyCommandError = function (out
|
|
|
2132
2132
|
message = response.message || response.Message || errorCode;
|
|
2133
2133
|
response.message = message;
|
|
2134
2134
|
delete response.Message;
|
|
2135
|
-
return [2
|
|
2135
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2136
2136
|
}
|
|
2137
2137
|
});
|
|
2138
2138
|
}); };
|
|
@@ -2142,7 +2142,7 @@ export var deserializeAws_restJson1DescribeFileSystemsCommand = function (output
|
|
|
2142
2142
|
switch (_c.label) {
|
|
2143
2143
|
case 0:
|
|
2144
2144
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2145
|
-
return [2
|
|
2145
|
+
return [2, deserializeAws_restJson1DescribeFileSystemsCommandError(output, context)];
|
|
2146
2146
|
}
|
|
2147
2147
|
contents = {
|
|
2148
2148
|
$metadata: deserializeMetadata(output),
|
|
@@ -2152,7 +2152,7 @@ export var deserializeAws_restJson1DescribeFileSystemsCommand = function (output
|
|
|
2152
2152
|
};
|
|
2153
2153
|
_a = __expectNonNull;
|
|
2154
2154
|
_b = __expectObject;
|
|
2155
|
-
return [4
|
|
2155
|
+
return [4, parseBody(output.body, context)];
|
|
2156
2156
|
case 1:
|
|
2157
2157
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2158
2158
|
if (data.FileSystems !== undefined && data.FileSystems !== null) {
|
|
@@ -2164,7 +2164,7 @@ export var deserializeAws_restJson1DescribeFileSystemsCommand = function (output
|
|
|
2164
2164
|
if (data.NextMarker !== undefined && data.NextMarker !== null) {
|
|
2165
2165
|
contents.NextMarker = __expectString(data.NextMarker);
|
|
2166
2166
|
}
|
|
2167
|
-
return [2
|
|
2167
|
+
return [2, Promise.resolve(contents)];
|
|
2168
2168
|
}
|
|
2169
2169
|
});
|
|
2170
2170
|
}); };
|
|
@@ -2176,39 +2176,39 @@ var deserializeAws_restJson1DescribeFileSystemsCommandError = function (output,
|
|
|
2176
2176
|
case 0:
|
|
2177
2177
|
_a = [__assign({}, output)];
|
|
2178
2178
|
_f = {};
|
|
2179
|
-
return [4
|
|
2179
|
+
return [4, parseBody(output.body, context)];
|
|
2180
2180
|
case 1:
|
|
2181
2181
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
2182
2182
|
errorCode = "UnknownError";
|
|
2183
2183
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2184
2184
|
_b = errorCode;
|
|
2185
2185
|
switch (_b) {
|
|
2186
|
-
case "BadRequest": return [3
|
|
2187
|
-
case "com.amazonaws.efs#BadRequest": return [3
|
|
2188
|
-
case "FileSystemNotFound": return [3
|
|
2189
|
-
case "com.amazonaws.efs#FileSystemNotFound": return [3
|
|
2190
|
-
case "InternalServerError": return [3
|
|
2191
|
-
case "com.amazonaws.efs#InternalServerError": return [3
|
|
2192
|
-
}
|
|
2193
|
-
return [3
|
|
2186
|
+
case "BadRequest": return [3, 2];
|
|
2187
|
+
case "com.amazonaws.efs#BadRequest": return [3, 2];
|
|
2188
|
+
case "FileSystemNotFound": return [3, 4];
|
|
2189
|
+
case "com.amazonaws.efs#FileSystemNotFound": return [3, 4];
|
|
2190
|
+
case "InternalServerError": return [3, 6];
|
|
2191
|
+
case "com.amazonaws.efs#InternalServerError": return [3, 6];
|
|
2192
|
+
}
|
|
2193
|
+
return [3, 8];
|
|
2194
2194
|
case 2:
|
|
2195
2195
|
_c = [{}];
|
|
2196
|
-
return [4
|
|
2196
|
+
return [4, deserializeAws_restJson1BadRequestResponse(parsedOutput, context)];
|
|
2197
2197
|
case 3:
|
|
2198
2198
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2199
|
-
return [3
|
|
2199
|
+
return [3, 9];
|
|
2200
2200
|
case 4:
|
|
2201
2201
|
_d = [{}];
|
|
2202
|
-
return [4
|
|
2202
|
+
return [4, deserializeAws_restJson1FileSystemNotFoundResponse(parsedOutput, context)];
|
|
2203
2203
|
case 5:
|
|
2204
2204
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2205
|
-
return [3
|
|
2205
|
+
return [3, 9];
|
|
2206
2206
|
case 6:
|
|
2207
2207
|
_e = [{}];
|
|
2208
|
-
return [4
|
|
2208
|
+
return [4, deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)];
|
|
2209
2209
|
case 7:
|
|
2210
2210
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2211
|
-
return [3
|
|
2211
|
+
return [3, 9];
|
|
2212
2212
|
case 8:
|
|
2213
2213
|
parsedBody = parsedOutput.body;
|
|
2214
2214
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2218,7 +2218,7 @@ var deserializeAws_restJson1DescribeFileSystemsCommandError = function (output,
|
|
|
2218
2218
|
message = response.message || response.Message || errorCode;
|
|
2219
2219
|
response.message = message;
|
|
2220
2220
|
delete response.Message;
|
|
2221
|
-
return [2
|
|
2221
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2222
2222
|
}
|
|
2223
2223
|
});
|
|
2224
2224
|
}); };
|
|
@@ -2228,7 +2228,7 @@ export var deserializeAws_restJson1DescribeLifecycleConfigurationCommand = funct
|
|
|
2228
2228
|
switch (_c.label) {
|
|
2229
2229
|
case 0:
|
|
2230
2230
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2231
|
-
return [2
|
|
2231
|
+
return [2, deserializeAws_restJson1DescribeLifecycleConfigurationCommandError(output, context)];
|
|
2232
2232
|
}
|
|
2233
2233
|
contents = {
|
|
2234
2234
|
$metadata: deserializeMetadata(output),
|
|
@@ -2236,13 +2236,13 @@ export var deserializeAws_restJson1DescribeLifecycleConfigurationCommand = funct
|
|
|
2236
2236
|
};
|
|
2237
2237
|
_a = __expectNonNull;
|
|
2238
2238
|
_b = __expectObject;
|
|
2239
|
-
return [4
|
|
2239
|
+
return [4, parseBody(output.body, context)];
|
|
2240
2240
|
case 1:
|
|
2241
2241
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2242
2242
|
if (data.LifecyclePolicies !== undefined && data.LifecyclePolicies !== null) {
|
|
2243
2243
|
contents.LifecyclePolicies = deserializeAws_restJson1LifecyclePolicies(data.LifecyclePolicies, context);
|
|
2244
2244
|
}
|
|
2245
|
-
return [2
|
|
2245
|
+
return [2, Promise.resolve(contents)];
|
|
2246
2246
|
}
|
|
2247
2247
|
});
|
|
2248
2248
|
}); };
|
|
@@ -2254,39 +2254,39 @@ var deserializeAws_restJson1DescribeLifecycleConfigurationCommandError = functio
|
|
|
2254
2254
|
case 0:
|
|
2255
2255
|
_a = [__assign({}, output)];
|
|
2256
2256
|
_f = {};
|
|
2257
|
-
return [4
|
|
2257
|
+
return [4, parseBody(output.body, context)];
|
|
2258
2258
|
case 1:
|
|
2259
2259
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
2260
2260
|
errorCode = "UnknownError";
|
|
2261
2261
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2262
2262
|
_b = errorCode;
|
|
2263
2263
|
switch (_b) {
|
|
2264
|
-
case "BadRequest": return [3
|
|
2265
|
-
case "com.amazonaws.efs#BadRequest": return [3
|
|
2266
|
-
case "FileSystemNotFound": return [3
|
|
2267
|
-
case "com.amazonaws.efs#FileSystemNotFound": return [3
|
|
2268
|
-
case "InternalServerError": return [3
|
|
2269
|
-
case "com.amazonaws.efs#InternalServerError": return [3
|
|
2270
|
-
}
|
|
2271
|
-
return [3
|
|
2264
|
+
case "BadRequest": return [3, 2];
|
|
2265
|
+
case "com.amazonaws.efs#BadRequest": return [3, 2];
|
|
2266
|
+
case "FileSystemNotFound": return [3, 4];
|
|
2267
|
+
case "com.amazonaws.efs#FileSystemNotFound": return [3, 4];
|
|
2268
|
+
case "InternalServerError": return [3, 6];
|
|
2269
|
+
case "com.amazonaws.efs#InternalServerError": return [3, 6];
|
|
2270
|
+
}
|
|
2271
|
+
return [3, 8];
|
|
2272
2272
|
case 2:
|
|
2273
2273
|
_c = [{}];
|
|
2274
|
-
return [4
|
|
2274
|
+
return [4, deserializeAws_restJson1BadRequestResponse(parsedOutput, context)];
|
|
2275
2275
|
case 3:
|
|
2276
2276
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2277
|
-
return [3
|
|
2277
|
+
return [3, 9];
|
|
2278
2278
|
case 4:
|
|
2279
2279
|
_d = [{}];
|
|
2280
|
-
return [4
|
|
2280
|
+
return [4, deserializeAws_restJson1FileSystemNotFoundResponse(parsedOutput, context)];
|
|
2281
2281
|
case 5:
|
|
2282
2282
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2283
|
-
return [3
|
|
2283
|
+
return [3, 9];
|
|
2284
2284
|
case 6:
|
|
2285
2285
|
_e = [{}];
|
|
2286
|
-
return [4
|
|
2286
|
+
return [4, deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)];
|
|
2287
2287
|
case 7:
|
|
2288
2288
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2289
|
-
return [3
|
|
2289
|
+
return [3, 9];
|
|
2290
2290
|
case 8:
|
|
2291
2291
|
parsedBody = parsedOutput.body;
|
|
2292
2292
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2296,7 +2296,7 @@ var deserializeAws_restJson1DescribeLifecycleConfigurationCommandError = functio
|
|
|
2296
2296
|
message = response.message || response.Message || errorCode;
|
|
2297
2297
|
response.message = message;
|
|
2298
2298
|
delete response.Message;
|
|
2299
|
-
return [2
|
|
2299
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2300
2300
|
}
|
|
2301
2301
|
});
|
|
2302
2302
|
}); };
|
|
@@ -2306,7 +2306,7 @@ export var deserializeAws_restJson1DescribeMountTargetsCommand = function (outpu
|
|
|
2306
2306
|
switch (_c.label) {
|
|
2307
2307
|
case 0:
|
|
2308
2308
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2309
|
-
return [2
|
|
2309
|
+
return [2, deserializeAws_restJson1DescribeMountTargetsCommandError(output, context)];
|
|
2310
2310
|
}
|
|
2311
2311
|
contents = {
|
|
2312
2312
|
$metadata: deserializeMetadata(output),
|
|
@@ -2316,7 +2316,7 @@ export var deserializeAws_restJson1DescribeMountTargetsCommand = function (outpu
|
|
|
2316
2316
|
};
|
|
2317
2317
|
_a = __expectNonNull;
|
|
2318
2318
|
_b = __expectObject;
|
|
2319
|
-
return [4
|
|
2319
|
+
return [4, parseBody(output.body, context)];
|
|
2320
2320
|
case 1:
|
|
2321
2321
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2322
2322
|
if (data.Marker !== undefined && data.Marker !== null) {
|
|
@@ -2328,7 +2328,7 @@ export var deserializeAws_restJson1DescribeMountTargetsCommand = function (outpu
|
|
|
2328
2328
|
if (data.NextMarker !== undefined && data.NextMarker !== null) {
|
|
2329
2329
|
contents.NextMarker = __expectString(data.NextMarker);
|
|
2330
2330
|
}
|
|
2331
|
-
return [2
|
|
2331
|
+
return [2, Promise.resolve(contents)];
|
|
2332
2332
|
}
|
|
2333
2333
|
});
|
|
2334
2334
|
}); };
|
|
@@ -2340,55 +2340,55 @@ var deserializeAws_restJson1DescribeMountTargetsCommandError = function (output,
|
|
|
2340
2340
|
case 0:
|
|
2341
2341
|
_a = [__assign({}, output)];
|
|
2342
2342
|
_h = {};
|
|
2343
|
-
return [4
|
|
2343
|
+
return [4, parseBody(output.body, context)];
|
|
2344
2344
|
case 1:
|
|
2345
2345
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
2346
2346
|
errorCode = "UnknownError";
|
|
2347
2347
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2348
2348
|
_b = errorCode;
|
|
2349
2349
|
switch (_b) {
|
|
2350
|
-
case "AccessPointNotFound": return [3
|
|
2351
|
-
case "com.amazonaws.efs#AccessPointNotFound": return [3
|
|
2352
|
-
case "BadRequest": return [3
|
|
2353
|
-
case "com.amazonaws.efs#BadRequest": return [3
|
|
2354
|
-
case "FileSystemNotFound": return [3
|
|
2355
|
-
case "com.amazonaws.efs#FileSystemNotFound": return [3
|
|
2356
|
-
case "InternalServerError": return [3
|
|
2357
|
-
case "com.amazonaws.efs#InternalServerError": return [3
|
|
2358
|
-
case "MountTargetNotFound": return [3
|
|
2359
|
-
case "com.amazonaws.efs#MountTargetNotFound": return [3
|
|
2360
|
-
}
|
|
2361
|
-
return [3
|
|
2350
|
+
case "AccessPointNotFound": return [3, 2];
|
|
2351
|
+
case "com.amazonaws.efs#AccessPointNotFound": return [3, 2];
|
|
2352
|
+
case "BadRequest": return [3, 4];
|
|
2353
|
+
case "com.amazonaws.efs#BadRequest": return [3, 4];
|
|
2354
|
+
case "FileSystemNotFound": return [3, 6];
|
|
2355
|
+
case "com.amazonaws.efs#FileSystemNotFound": return [3, 6];
|
|
2356
|
+
case "InternalServerError": return [3, 8];
|
|
2357
|
+
case "com.amazonaws.efs#InternalServerError": return [3, 8];
|
|
2358
|
+
case "MountTargetNotFound": return [3, 10];
|
|
2359
|
+
case "com.amazonaws.efs#MountTargetNotFound": return [3, 10];
|
|
2360
|
+
}
|
|
2361
|
+
return [3, 12];
|
|
2362
2362
|
case 2:
|
|
2363
2363
|
_c = [{}];
|
|
2364
|
-
return [4
|
|
2364
|
+
return [4, deserializeAws_restJson1AccessPointNotFoundResponse(parsedOutput, context)];
|
|
2365
2365
|
case 3:
|
|
2366
2366
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2367
|
-
return [3
|
|
2367
|
+
return [3, 13];
|
|
2368
2368
|
case 4:
|
|
2369
2369
|
_d = [{}];
|
|
2370
|
-
return [4
|
|
2370
|
+
return [4, deserializeAws_restJson1BadRequestResponse(parsedOutput, context)];
|
|
2371
2371
|
case 5:
|
|
2372
2372
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2373
|
-
return [3
|
|
2373
|
+
return [3, 13];
|
|
2374
2374
|
case 6:
|
|
2375
2375
|
_e = [{}];
|
|
2376
|
-
return [4
|
|
2376
|
+
return [4, deserializeAws_restJson1FileSystemNotFoundResponse(parsedOutput, context)];
|
|
2377
2377
|
case 7:
|
|
2378
2378
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2379
|
-
return [3
|
|
2379
|
+
return [3, 13];
|
|
2380
2380
|
case 8:
|
|
2381
2381
|
_f = [{}];
|
|
2382
|
-
return [4
|
|
2382
|
+
return [4, deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)];
|
|
2383
2383
|
case 9:
|
|
2384
2384
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2385
|
-
return [3
|
|
2385
|
+
return [3, 13];
|
|
2386
2386
|
case 10:
|
|
2387
2387
|
_g = [{}];
|
|
2388
|
-
return [4
|
|
2388
|
+
return [4, deserializeAws_restJson1MountTargetNotFoundResponse(parsedOutput, context)];
|
|
2389
2389
|
case 11:
|
|
2390
2390
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2391
|
-
return [3
|
|
2391
|
+
return [3, 13];
|
|
2392
2392
|
case 12:
|
|
2393
2393
|
parsedBody = parsedOutput.body;
|
|
2394
2394
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2398,7 +2398,7 @@ var deserializeAws_restJson1DescribeMountTargetsCommandError = function (output,
|
|
|
2398
2398
|
message = response.message || response.Message || errorCode;
|
|
2399
2399
|
response.message = message;
|
|
2400
2400
|
delete response.Message;
|
|
2401
|
-
return [2
|
|
2401
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2402
2402
|
}
|
|
2403
2403
|
});
|
|
2404
2404
|
}); };
|
|
@@ -2408,7 +2408,7 @@ export var deserializeAws_restJson1DescribeMountTargetSecurityGroupsCommand = fu
|
|
|
2408
2408
|
switch (_c.label) {
|
|
2409
2409
|
case 0:
|
|
2410
2410
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2411
|
-
return [2
|
|
2411
|
+
return [2, deserializeAws_restJson1DescribeMountTargetSecurityGroupsCommandError(output, context)];
|
|
2412
2412
|
}
|
|
2413
2413
|
contents = {
|
|
2414
2414
|
$metadata: deserializeMetadata(output),
|
|
@@ -2416,13 +2416,13 @@ export var deserializeAws_restJson1DescribeMountTargetSecurityGroupsCommand = fu
|
|
|
2416
2416
|
};
|
|
2417
2417
|
_a = __expectNonNull;
|
|
2418
2418
|
_b = __expectObject;
|
|
2419
|
-
return [4
|
|
2419
|
+
return [4, parseBody(output.body, context)];
|
|
2420
2420
|
case 1:
|
|
2421
2421
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2422
2422
|
if (data.SecurityGroups !== undefined && data.SecurityGroups !== null) {
|
|
2423
2423
|
contents.SecurityGroups = deserializeAws_restJson1SecurityGroups(data.SecurityGroups, context);
|
|
2424
2424
|
}
|
|
2425
|
-
return [2
|
|
2425
|
+
return [2, Promise.resolve(contents)];
|
|
2426
2426
|
}
|
|
2427
2427
|
});
|
|
2428
2428
|
}); };
|
|
@@ -2434,47 +2434,47 @@ var deserializeAws_restJson1DescribeMountTargetSecurityGroupsCommandError = func
|
|
|
2434
2434
|
case 0:
|
|
2435
2435
|
_a = [__assign({}, output)];
|
|
2436
2436
|
_g = {};
|
|
2437
|
-
return [4
|
|
2437
|
+
return [4, parseBody(output.body, context)];
|
|
2438
2438
|
case 1:
|
|
2439
2439
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2440
2440
|
errorCode = "UnknownError";
|
|
2441
2441
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2442
2442
|
_b = errorCode;
|
|
2443
2443
|
switch (_b) {
|
|
2444
|
-
case "BadRequest": return [3
|
|
2445
|
-
case "com.amazonaws.efs#BadRequest": return [3
|
|
2446
|
-
case "IncorrectMountTargetState": return [3
|
|
2447
|
-
case "com.amazonaws.efs#IncorrectMountTargetState": return [3
|
|
2448
|
-
case "InternalServerError": return [3
|
|
2449
|
-
case "com.amazonaws.efs#InternalServerError": return [3
|
|
2450
|
-
case "MountTargetNotFound": return [3
|
|
2451
|
-
case "com.amazonaws.efs#MountTargetNotFound": return [3
|
|
2452
|
-
}
|
|
2453
|
-
return [3
|
|
2444
|
+
case "BadRequest": return [3, 2];
|
|
2445
|
+
case "com.amazonaws.efs#BadRequest": return [3, 2];
|
|
2446
|
+
case "IncorrectMountTargetState": return [3, 4];
|
|
2447
|
+
case "com.amazonaws.efs#IncorrectMountTargetState": return [3, 4];
|
|
2448
|
+
case "InternalServerError": return [3, 6];
|
|
2449
|
+
case "com.amazonaws.efs#InternalServerError": return [3, 6];
|
|
2450
|
+
case "MountTargetNotFound": return [3, 8];
|
|
2451
|
+
case "com.amazonaws.efs#MountTargetNotFound": return [3, 8];
|
|
2452
|
+
}
|
|
2453
|
+
return [3, 10];
|
|
2454
2454
|
case 2:
|
|
2455
2455
|
_c = [{}];
|
|
2456
|
-
return [4
|
|
2456
|
+
return [4, deserializeAws_restJson1BadRequestResponse(parsedOutput, context)];
|
|
2457
2457
|
case 3:
|
|
2458
2458
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2459
|
-
return [3
|
|
2459
|
+
return [3, 11];
|
|
2460
2460
|
case 4:
|
|
2461
2461
|
_d = [{}];
|
|
2462
|
-
return [4
|
|
2462
|
+
return [4, deserializeAws_restJson1IncorrectMountTargetStateResponse(parsedOutput, context)];
|
|
2463
2463
|
case 5:
|
|
2464
2464
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2465
|
-
return [3
|
|
2465
|
+
return [3, 11];
|
|
2466
2466
|
case 6:
|
|
2467
2467
|
_e = [{}];
|
|
2468
|
-
return [4
|
|
2468
|
+
return [4, deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)];
|
|
2469
2469
|
case 7:
|
|
2470
2470
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2471
|
-
return [3
|
|
2471
|
+
return [3, 11];
|
|
2472
2472
|
case 8:
|
|
2473
2473
|
_f = [{}];
|
|
2474
|
-
return [4
|
|
2474
|
+
return [4, deserializeAws_restJson1MountTargetNotFoundResponse(parsedOutput, context)];
|
|
2475
2475
|
case 9:
|
|
2476
2476
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2477
|
-
return [3
|
|
2477
|
+
return [3, 11];
|
|
2478
2478
|
case 10:
|
|
2479
2479
|
parsedBody = parsedOutput.body;
|
|
2480
2480
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2484,7 +2484,7 @@ var deserializeAws_restJson1DescribeMountTargetSecurityGroupsCommandError = func
|
|
|
2484
2484
|
message = response.message || response.Message || errorCode;
|
|
2485
2485
|
response.message = message;
|
|
2486
2486
|
delete response.Message;
|
|
2487
|
-
return [2
|
|
2487
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2488
2488
|
}
|
|
2489
2489
|
});
|
|
2490
2490
|
}); };
|
|
@@ -2494,7 +2494,7 @@ export var deserializeAws_restJson1DescribeTagsCommand = function (output, conte
|
|
|
2494
2494
|
switch (_c.label) {
|
|
2495
2495
|
case 0:
|
|
2496
2496
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2497
|
-
return [2
|
|
2497
|
+
return [2, deserializeAws_restJson1DescribeTagsCommandError(output, context)];
|
|
2498
2498
|
}
|
|
2499
2499
|
contents = {
|
|
2500
2500
|
$metadata: deserializeMetadata(output),
|
|
@@ -2504,7 +2504,7 @@ export var deserializeAws_restJson1DescribeTagsCommand = function (output, conte
|
|
|
2504
2504
|
};
|
|
2505
2505
|
_a = __expectNonNull;
|
|
2506
2506
|
_b = __expectObject;
|
|
2507
|
-
return [4
|
|
2507
|
+
return [4, parseBody(output.body, context)];
|
|
2508
2508
|
case 1:
|
|
2509
2509
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2510
2510
|
if (data.Marker !== undefined && data.Marker !== null) {
|
|
@@ -2516,7 +2516,7 @@ export var deserializeAws_restJson1DescribeTagsCommand = function (output, conte
|
|
|
2516
2516
|
if (data.Tags !== undefined && data.Tags !== null) {
|
|
2517
2517
|
contents.Tags = deserializeAws_restJson1Tags(data.Tags, context);
|
|
2518
2518
|
}
|
|
2519
|
-
return [2
|
|
2519
|
+
return [2, Promise.resolve(contents)];
|
|
2520
2520
|
}
|
|
2521
2521
|
});
|
|
2522
2522
|
}); };
|
|
@@ -2528,39 +2528,39 @@ var deserializeAws_restJson1DescribeTagsCommandError = function (output, context
|
|
|
2528
2528
|
case 0:
|
|
2529
2529
|
_a = [__assign({}, output)];
|
|
2530
2530
|
_f = {};
|
|
2531
|
-
return [4
|
|
2531
|
+
return [4, parseBody(output.body, context)];
|
|
2532
2532
|
case 1:
|
|
2533
2533
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
2534
2534
|
errorCode = "UnknownError";
|
|
2535
2535
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2536
2536
|
_b = errorCode;
|
|
2537
2537
|
switch (_b) {
|
|
2538
|
-
case "BadRequest": return [3
|
|
2539
|
-
case "com.amazonaws.efs#BadRequest": return [3
|
|
2540
|
-
case "FileSystemNotFound": return [3
|
|
2541
|
-
case "com.amazonaws.efs#FileSystemNotFound": return [3
|
|
2542
|
-
case "InternalServerError": return [3
|
|
2543
|
-
case "com.amazonaws.efs#InternalServerError": return [3
|
|
2544
|
-
}
|
|
2545
|
-
return [3
|
|
2538
|
+
case "BadRequest": return [3, 2];
|
|
2539
|
+
case "com.amazonaws.efs#BadRequest": return [3, 2];
|
|
2540
|
+
case "FileSystemNotFound": return [3, 4];
|
|
2541
|
+
case "com.amazonaws.efs#FileSystemNotFound": return [3, 4];
|
|
2542
|
+
case "InternalServerError": return [3, 6];
|
|
2543
|
+
case "com.amazonaws.efs#InternalServerError": return [3, 6];
|
|
2544
|
+
}
|
|
2545
|
+
return [3, 8];
|
|
2546
2546
|
case 2:
|
|
2547
2547
|
_c = [{}];
|
|
2548
|
-
return [4
|
|
2548
|
+
return [4, deserializeAws_restJson1BadRequestResponse(parsedOutput, context)];
|
|
2549
2549
|
case 3:
|
|
2550
2550
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2551
|
-
return [3
|
|
2551
|
+
return [3, 9];
|
|
2552
2552
|
case 4:
|
|
2553
2553
|
_d = [{}];
|
|
2554
|
-
return [4
|
|
2554
|
+
return [4, deserializeAws_restJson1FileSystemNotFoundResponse(parsedOutput, context)];
|
|
2555
2555
|
case 5:
|
|
2556
2556
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2557
|
-
return [3
|
|
2557
|
+
return [3, 9];
|
|
2558
2558
|
case 6:
|
|
2559
2559
|
_e = [{}];
|
|
2560
|
-
return [4
|
|
2560
|
+
return [4, deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)];
|
|
2561
2561
|
case 7:
|
|
2562
2562
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2563
|
-
return [3
|
|
2563
|
+
return [3, 9];
|
|
2564
2564
|
case 8:
|
|
2565
2565
|
parsedBody = parsedOutput.body;
|
|
2566
2566
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2570,7 +2570,7 @@ var deserializeAws_restJson1DescribeTagsCommandError = function (output, context
|
|
|
2570
2570
|
message = response.message || response.Message || errorCode;
|
|
2571
2571
|
response.message = message;
|
|
2572
2572
|
delete response.Message;
|
|
2573
|
-
return [2
|
|
2573
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2574
2574
|
}
|
|
2575
2575
|
});
|
|
2576
2576
|
}); };
|
|
@@ -2580,7 +2580,7 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
2580
2580
|
switch (_c.label) {
|
|
2581
2581
|
case 0:
|
|
2582
2582
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2583
|
-
return [2
|
|
2583
|
+
return [2, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
|
|
2584
2584
|
}
|
|
2585
2585
|
contents = {
|
|
2586
2586
|
$metadata: deserializeMetadata(output),
|
|
@@ -2589,7 +2589,7 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
2589
2589
|
};
|
|
2590
2590
|
_a = __expectNonNull;
|
|
2591
2591
|
_b = __expectObject;
|
|
2592
|
-
return [4
|
|
2592
|
+
return [4, parseBody(output.body, context)];
|
|
2593
2593
|
case 1:
|
|
2594
2594
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2595
2595
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
@@ -2598,7 +2598,7 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
2598
2598
|
if (data.Tags !== undefined && data.Tags !== null) {
|
|
2599
2599
|
contents.Tags = deserializeAws_restJson1Tags(data.Tags, context);
|
|
2600
2600
|
}
|
|
2601
|
-
return [2
|
|
2601
|
+
return [2, Promise.resolve(contents)];
|
|
2602
2602
|
}
|
|
2603
2603
|
});
|
|
2604
2604
|
}); };
|
|
@@ -2610,47 +2610,47 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
2610
2610
|
case 0:
|
|
2611
2611
|
_a = [__assign({}, output)];
|
|
2612
2612
|
_g = {};
|
|
2613
|
-
return [4
|
|
2613
|
+
return [4, parseBody(output.body, context)];
|
|
2614
2614
|
case 1:
|
|
2615
2615
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2616
2616
|
errorCode = "UnknownError";
|
|
2617
2617
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2618
2618
|
_b = errorCode;
|
|
2619
2619
|
switch (_b) {
|
|
2620
|
-
case "AccessPointNotFound": return [3
|
|
2621
|
-
case "com.amazonaws.efs#AccessPointNotFound": return [3
|
|
2622
|
-
case "BadRequest": return [3
|
|
2623
|
-
case "com.amazonaws.efs#BadRequest": return [3
|
|
2624
|
-
case "FileSystemNotFound": return [3
|
|
2625
|
-
case "com.amazonaws.efs#FileSystemNotFound": return [3
|
|
2626
|
-
case "InternalServerError": return [3
|
|
2627
|
-
case "com.amazonaws.efs#InternalServerError": return [3
|
|
2628
|
-
}
|
|
2629
|
-
return [3
|
|
2620
|
+
case "AccessPointNotFound": return [3, 2];
|
|
2621
|
+
case "com.amazonaws.efs#AccessPointNotFound": return [3, 2];
|
|
2622
|
+
case "BadRequest": return [3, 4];
|
|
2623
|
+
case "com.amazonaws.efs#BadRequest": return [3, 4];
|
|
2624
|
+
case "FileSystemNotFound": return [3, 6];
|
|
2625
|
+
case "com.amazonaws.efs#FileSystemNotFound": return [3, 6];
|
|
2626
|
+
case "InternalServerError": return [3, 8];
|
|
2627
|
+
case "com.amazonaws.efs#InternalServerError": return [3, 8];
|
|
2628
|
+
}
|
|
2629
|
+
return [3, 10];
|
|
2630
2630
|
case 2:
|
|
2631
2631
|
_c = [{}];
|
|
2632
|
-
return [4
|
|
2632
|
+
return [4, deserializeAws_restJson1AccessPointNotFoundResponse(parsedOutput, context)];
|
|
2633
2633
|
case 3:
|
|
2634
2634
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2635
|
-
return [3
|
|
2635
|
+
return [3, 11];
|
|
2636
2636
|
case 4:
|
|
2637
2637
|
_d = [{}];
|
|
2638
|
-
return [4
|
|
2638
|
+
return [4, deserializeAws_restJson1BadRequestResponse(parsedOutput, context)];
|
|
2639
2639
|
case 5:
|
|
2640
2640
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2641
|
-
return [3
|
|
2641
|
+
return [3, 11];
|
|
2642
2642
|
case 6:
|
|
2643
2643
|
_e = [{}];
|
|
2644
|
-
return [4
|
|
2644
|
+
return [4, deserializeAws_restJson1FileSystemNotFoundResponse(parsedOutput, context)];
|
|
2645
2645
|
case 7:
|
|
2646
2646
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2647
|
-
return [3
|
|
2647
|
+
return [3, 11];
|
|
2648
2648
|
case 8:
|
|
2649
2649
|
_f = [{}];
|
|
2650
|
-
return [4
|
|
2650
|
+
return [4, deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)];
|
|
2651
2651
|
case 9:
|
|
2652
2652
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2653
|
-
return [3
|
|
2653
|
+
return [3, 11];
|
|
2654
2654
|
case 10:
|
|
2655
2655
|
parsedBody = parsedOutput.body;
|
|
2656
2656
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2660,7 +2660,7 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
2660
2660
|
message = response.message || response.Message || errorCode;
|
|
2661
2661
|
response.message = message;
|
|
2662
2662
|
delete response.Message;
|
|
2663
|
-
return [2
|
|
2663
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2664
2664
|
}
|
|
2665
2665
|
});
|
|
2666
2666
|
}); };
|
|
@@ -2670,15 +2670,15 @@ export var deserializeAws_restJson1ModifyMountTargetSecurityGroupsCommand = func
|
|
|
2670
2670
|
switch (_a.label) {
|
|
2671
2671
|
case 0:
|
|
2672
2672
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2673
|
-
return [2
|
|
2673
|
+
return [2, deserializeAws_restJson1ModifyMountTargetSecurityGroupsCommandError(output, context)];
|
|
2674
2674
|
}
|
|
2675
2675
|
contents = {
|
|
2676
2676
|
$metadata: deserializeMetadata(output),
|
|
2677
2677
|
};
|
|
2678
|
-
return [4
|
|
2678
|
+
return [4, collectBody(output.body, context)];
|
|
2679
2679
|
case 1:
|
|
2680
2680
|
_a.sent();
|
|
2681
|
-
return [2
|
|
2681
|
+
return [2, Promise.resolve(contents)];
|
|
2682
2682
|
}
|
|
2683
2683
|
});
|
|
2684
2684
|
}); };
|
|
@@ -2690,63 +2690,63 @@ var deserializeAws_restJson1ModifyMountTargetSecurityGroupsCommandError = functi
|
|
|
2690
2690
|
case 0:
|
|
2691
2691
|
_a = [__assign({}, output)];
|
|
2692
2692
|
_j = {};
|
|
2693
|
-
return [4
|
|
2693
|
+
return [4, parseBody(output.body, context)];
|
|
2694
2694
|
case 1:
|
|
2695
2695
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
2696
2696
|
errorCode = "UnknownError";
|
|
2697
2697
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2698
2698
|
_b = errorCode;
|
|
2699
2699
|
switch (_b) {
|
|
2700
|
-
case "BadRequest": return [3
|
|
2701
|
-
case "com.amazonaws.efs#BadRequest": return [3
|
|
2702
|
-
case "IncorrectMountTargetState": return [3
|
|
2703
|
-
case "com.amazonaws.efs#IncorrectMountTargetState": return [3
|
|
2704
|
-
case "InternalServerError": return [3
|
|
2705
|
-
case "com.amazonaws.efs#InternalServerError": return [3
|
|
2706
|
-
case "MountTargetNotFound": return [3
|
|
2707
|
-
case "com.amazonaws.efs#MountTargetNotFound": return [3
|
|
2708
|
-
case "SecurityGroupLimitExceeded": return [3
|
|
2709
|
-
case "com.amazonaws.efs#SecurityGroupLimitExceeded": return [3
|
|
2710
|
-
case "SecurityGroupNotFound": return [3
|
|
2711
|
-
case "com.amazonaws.efs#SecurityGroupNotFound": return [3
|
|
2712
|
-
}
|
|
2713
|
-
return [3
|
|
2700
|
+
case "BadRequest": return [3, 2];
|
|
2701
|
+
case "com.amazonaws.efs#BadRequest": return [3, 2];
|
|
2702
|
+
case "IncorrectMountTargetState": return [3, 4];
|
|
2703
|
+
case "com.amazonaws.efs#IncorrectMountTargetState": return [3, 4];
|
|
2704
|
+
case "InternalServerError": return [3, 6];
|
|
2705
|
+
case "com.amazonaws.efs#InternalServerError": return [3, 6];
|
|
2706
|
+
case "MountTargetNotFound": return [3, 8];
|
|
2707
|
+
case "com.amazonaws.efs#MountTargetNotFound": return [3, 8];
|
|
2708
|
+
case "SecurityGroupLimitExceeded": return [3, 10];
|
|
2709
|
+
case "com.amazonaws.efs#SecurityGroupLimitExceeded": return [3, 10];
|
|
2710
|
+
case "SecurityGroupNotFound": return [3, 12];
|
|
2711
|
+
case "com.amazonaws.efs#SecurityGroupNotFound": return [3, 12];
|
|
2712
|
+
}
|
|
2713
|
+
return [3, 14];
|
|
2714
2714
|
case 2:
|
|
2715
2715
|
_c = [{}];
|
|
2716
|
-
return [4
|
|
2716
|
+
return [4, deserializeAws_restJson1BadRequestResponse(parsedOutput, context)];
|
|
2717
2717
|
case 3:
|
|
2718
2718
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2719
|
-
return [3
|
|
2719
|
+
return [3, 15];
|
|
2720
2720
|
case 4:
|
|
2721
2721
|
_d = [{}];
|
|
2722
|
-
return [4
|
|
2722
|
+
return [4, deserializeAws_restJson1IncorrectMountTargetStateResponse(parsedOutput, context)];
|
|
2723
2723
|
case 5:
|
|
2724
2724
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2725
|
-
return [3
|
|
2725
|
+
return [3, 15];
|
|
2726
2726
|
case 6:
|
|
2727
2727
|
_e = [{}];
|
|
2728
|
-
return [4
|
|
2728
|
+
return [4, deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)];
|
|
2729
2729
|
case 7:
|
|
2730
2730
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2731
|
-
return [3
|
|
2731
|
+
return [3, 15];
|
|
2732
2732
|
case 8:
|
|
2733
2733
|
_f = [{}];
|
|
2734
|
-
return [4
|
|
2734
|
+
return [4, deserializeAws_restJson1MountTargetNotFoundResponse(parsedOutput, context)];
|
|
2735
2735
|
case 9:
|
|
2736
2736
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2737
|
-
return [3
|
|
2737
|
+
return [3, 15];
|
|
2738
2738
|
case 10:
|
|
2739
2739
|
_g = [{}];
|
|
2740
|
-
return [4
|
|
2740
|
+
return [4, deserializeAws_restJson1SecurityGroupLimitExceededResponse(parsedOutput, context)];
|
|
2741
2741
|
case 11:
|
|
2742
2742
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2743
|
-
return [3
|
|
2743
|
+
return [3, 15];
|
|
2744
2744
|
case 12:
|
|
2745
2745
|
_h = [{}];
|
|
2746
|
-
return [4
|
|
2746
|
+
return [4, deserializeAws_restJson1SecurityGroupNotFoundResponse(parsedOutput, context)];
|
|
2747
2747
|
case 13:
|
|
2748
2748
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2749
|
-
return [3
|
|
2749
|
+
return [3, 15];
|
|
2750
2750
|
case 14:
|
|
2751
2751
|
parsedBody = parsedOutput.body;
|
|
2752
2752
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2756,7 +2756,7 @@ var deserializeAws_restJson1ModifyMountTargetSecurityGroupsCommandError = functi
|
|
|
2756
2756
|
message = response.message || response.Message || errorCode;
|
|
2757
2757
|
response.message = message;
|
|
2758
2758
|
delete response.Message;
|
|
2759
|
-
return [2
|
|
2759
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2760
2760
|
}
|
|
2761
2761
|
});
|
|
2762
2762
|
}); };
|
|
@@ -2766,7 +2766,7 @@ export var deserializeAws_restJson1PutAccountPreferencesCommand = function (outp
|
|
|
2766
2766
|
switch (_c.label) {
|
|
2767
2767
|
case 0:
|
|
2768
2768
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2769
|
-
return [2
|
|
2769
|
+
return [2, deserializeAws_restJson1PutAccountPreferencesCommandError(output, context)];
|
|
2770
2770
|
}
|
|
2771
2771
|
contents = {
|
|
2772
2772
|
$metadata: deserializeMetadata(output),
|
|
@@ -2774,51 +2774,59 @@ export var deserializeAws_restJson1PutAccountPreferencesCommand = function (outp
|
|
|
2774
2774
|
};
|
|
2775
2775
|
_a = __expectNonNull;
|
|
2776
2776
|
_b = __expectObject;
|
|
2777
|
-
return [4
|
|
2777
|
+
return [4, parseBody(output.body, context)];
|
|
2778
2778
|
case 1:
|
|
2779
2779
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2780
2780
|
if (data.ResourceIdPreference !== undefined && data.ResourceIdPreference !== null) {
|
|
2781
2781
|
contents.ResourceIdPreference = deserializeAws_restJson1ResourceIdPreference(data.ResourceIdPreference, context);
|
|
2782
2782
|
}
|
|
2783
|
-
return [2
|
|
2783
|
+
return [2, Promise.resolve(contents)];
|
|
2784
2784
|
}
|
|
2785
2785
|
});
|
|
2786
2786
|
}); };
|
|
2787
2787
|
var deserializeAws_restJson1PutAccountPreferencesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2788
|
-
var parsedOutput, _a, response, errorCode, _b, _c, parsedBody, message;
|
|
2789
|
-
var
|
|
2790
|
-
return __generator(this, function (
|
|
2791
|
-
switch (
|
|
2788
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, parsedBody, message;
|
|
2789
|
+
var _e;
|
|
2790
|
+
return __generator(this, function (_f) {
|
|
2791
|
+
switch (_f.label) {
|
|
2792
2792
|
case 0:
|
|
2793
2793
|
_a = [__assign({}, output)];
|
|
2794
|
-
|
|
2795
|
-
return [4
|
|
2794
|
+
_e = {};
|
|
2795
|
+
return [4, parseBody(output.body, context)];
|
|
2796
2796
|
case 1:
|
|
2797
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2797
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
2798
2798
|
errorCode = "UnknownError";
|
|
2799
2799
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2800
2800
|
_b = errorCode;
|
|
2801
2801
|
switch (_b) {
|
|
2802
|
-
case "
|
|
2803
|
-
case "com.amazonaws.efs#
|
|
2802
|
+
case "BadRequest": return [3, 2];
|
|
2803
|
+
case "com.amazonaws.efs#BadRequest": return [3, 2];
|
|
2804
|
+
case "InternalServerError": return [3, 4];
|
|
2805
|
+
case "com.amazonaws.efs#InternalServerError": return [3, 4];
|
|
2804
2806
|
}
|
|
2805
|
-
return [3
|
|
2807
|
+
return [3, 6];
|
|
2806
2808
|
case 2:
|
|
2807
2809
|
_c = [{}];
|
|
2808
|
-
return [4
|
|
2810
|
+
return [4, deserializeAws_restJson1BadRequestResponse(parsedOutput, context)];
|
|
2809
2811
|
case 3:
|
|
2810
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(
|
|
2811
|
-
return [3
|
|
2812
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2813
|
+
return [3, 7];
|
|
2812
2814
|
case 4:
|
|
2815
|
+
_d = [{}];
|
|
2816
|
+
return [4, deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)];
|
|
2817
|
+
case 5:
|
|
2818
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2819
|
+
return [3, 7];
|
|
2820
|
+
case 6:
|
|
2813
2821
|
parsedBody = parsedOutput.body;
|
|
2814
2822
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2815
2823
|
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
2816
|
-
|
|
2817
|
-
case
|
|
2824
|
+
_f.label = 7;
|
|
2825
|
+
case 7:
|
|
2818
2826
|
message = response.message || response.Message || errorCode;
|
|
2819
2827
|
response.message = message;
|
|
2820
2828
|
delete response.Message;
|
|
2821
|
-
return [2
|
|
2829
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2822
2830
|
}
|
|
2823
2831
|
});
|
|
2824
2832
|
}); };
|
|
@@ -2828,7 +2836,7 @@ export var deserializeAws_restJson1PutBackupPolicyCommand = function (output, co
|
|
|
2828
2836
|
switch (_c.label) {
|
|
2829
2837
|
case 0:
|
|
2830
2838
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2831
|
-
return [2
|
|
2839
|
+
return [2, deserializeAws_restJson1PutBackupPolicyCommandError(output, context)];
|
|
2832
2840
|
}
|
|
2833
2841
|
contents = {
|
|
2834
2842
|
$metadata: deserializeMetadata(output),
|
|
@@ -2836,13 +2844,13 @@ export var deserializeAws_restJson1PutBackupPolicyCommand = function (output, co
|
|
|
2836
2844
|
};
|
|
2837
2845
|
_a = __expectNonNull;
|
|
2838
2846
|
_b = __expectObject;
|
|
2839
|
-
return [4
|
|
2847
|
+
return [4, parseBody(output.body, context)];
|
|
2840
2848
|
case 1:
|
|
2841
2849
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2842
2850
|
if (data.BackupPolicy !== undefined && data.BackupPolicy !== null) {
|
|
2843
2851
|
contents.BackupPolicy = deserializeAws_restJson1BackupPolicy(data.BackupPolicy, context);
|
|
2844
2852
|
}
|
|
2845
|
-
return [2
|
|
2853
|
+
return [2, Promise.resolve(contents)];
|
|
2846
2854
|
}
|
|
2847
2855
|
});
|
|
2848
2856
|
}); };
|
|
@@ -2854,55 +2862,55 @@ var deserializeAws_restJson1PutBackupPolicyCommandError = function (output, cont
|
|
|
2854
2862
|
case 0:
|
|
2855
2863
|
_a = [__assign({}, output)];
|
|
2856
2864
|
_h = {};
|
|
2857
|
-
return [4
|
|
2865
|
+
return [4, parseBody(output.body, context)];
|
|
2858
2866
|
case 1:
|
|
2859
2867
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
2860
2868
|
errorCode = "UnknownError";
|
|
2861
2869
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2862
2870
|
_b = errorCode;
|
|
2863
2871
|
switch (_b) {
|
|
2864
|
-
case "BadRequest": return [3
|
|
2865
|
-
case "com.amazonaws.efs#BadRequest": return [3
|
|
2866
|
-
case "FileSystemNotFound": return [3
|
|
2867
|
-
case "com.amazonaws.efs#FileSystemNotFound": return [3
|
|
2868
|
-
case "IncorrectFileSystemLifeCycleState": return [3
|
|
2869
|
-
case "com.amazonaws.efs#IncorrectFileSystemLifeCycleState": return [3
|
|
2870
|
-
case "InternalServerError": return [3
|
|
2871
|
-
case "com.amazonaws.efs#InternalServerError": return [3
|
|
2872
|
-
case "ValidationException": return [3
|
|
2873
|
-
case "com.amazonaws.efs#ValidationException": return [3
|
|
2874
|
-
}
|
|
2875
|
-
return [3
|
|
2872
|
+
case "BadRequest": return [3, 2];
|
|
2873
|
+
case "com.amazonaws.efs#BadRequest": return [3, 2];
|
|
2874
|
+
case "FileSystemNotFound": return [3, 4];
|
|
2875
|
+
case "com.amazonaws.efs#FileSystemNotFound": return [3, 4];
|
|
2876
|
+
case "IncorrectFileSystemLifeCycleState": return [3, 6];
|
|
2877
|
+
case "com.amazonaws.efs#IncorrectFileSystemLifeCycleState": return [3, 6];
|
|
2878
|
+
case "InternalServerError": return [3, 8];
|
|
2879
|
+
case "com.amazonaws.efs#InternalServerError": return [3, 8];
|
|
2880
|
+
case "ValidationException": return [3, 10];
|
|
2881
|
+
case "com.amazonaws.efs#ValidationException": return [3, 10];
|
|
2882
|
+
}
|
|
2883
|
+
return [3, 12];
|
|
2876
2884
|
case 2:
|
|
2877
2885
|
_c = [{}];
|
|
2878
|
-
return [4
|
|
2886
|
+
return [4, deserializeAws_restJson1BadRequestResponse(parsedOutput, context)];
|
|
2879
2887
|
case 3:
|
|
2880
2888
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2881
|
-
return [3
|
|
2889
|
+
return [3, 13];
|
|
2882
2890
|
case 4:
|
|
2883
2891
|
_d = [{}];
|
|
2884
|
-
return [4
|
|
2892
|
+
return [4, deserializeAws_restJson1FileSystemNotFoundResponse(parsedOutput, context)];
|
|
2885
2893
|
case 5:
|
|
2886
2894
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2887
|
-
return [3
|
|
2895
|
+
return [3, 13];
|
|
2888
2896
|
case 6:
|
|
2889
2897
|
_e = [{}];
|
|
2890
|
-
return [4
|
|
2898
|
+
return [4, deserializeAws_restJson1IncorrectFileSystemLifeCycleStateResponse(parsedOutput, context)];
|
|
2891
2899
|
case 7:
|
|
2892
2900
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2893
|
-
return [3
|
|
2901
|
+
return [3, 13];
|
|
2894
2902
|
case 8:
|
|
2895
2903
|
_f = [{}];
|
|
2896
|
-
return [4
|
|
2904
|
+
return [4, deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)];
|
|
2897
2905
|
case 9:
|
|
2898
2906
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2899
|
-
return [3
|
|
2907
|
+
return [3, 13];
|
|
2900
2908
|
case 10:
|
|
2901
2909
|
_g = [{}];
|
|
2902
|
-
return [4
|
|
2910
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2903
2911
|
case 11:
|
|
2904
2912
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2905
|
-
return [3
|
|
2913
|
+
return [3, 13];
|
|
2906
2914
|
case 12:
|
|
2907
2915
|
parsedBody = parsedOutput.body;
|
|
2908
2916
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2912,7 +2920,7 @@ var deserializeAws_restJson1PutBackupPolicyCommandError = function (output, cont
|
|
|
2912
2920
|
message = response.message || response.Message || errorCode;
|
|
2913
2921
|
response.message = message;
|
|
2914
2922
|
delete response.Message;
|
|
2915
|
-
return [2
|
|
2923
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2916
2924
|
}
|
|
2917
2925
|
});
|
|
2918
2926
|
}); };
|
|
@@ -2922,7 +2930,7 @@ export var deserializeAws_restJson1PutFileSystemPolicyCommand = function (output
|
|
|
2922
2930
|
switch (_c.label) {
|
|
2923
2931
|
case 0:
|
|
2924
2932
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2925
|
-
return [2
|
|
2933
|
+
return [2, deserializeAws_restJson1PutFileSystemPolicyCommandError(output, context)];
|
|
2926
2934
|
}
|
|
2927
2935
|
contents = {
|
|
2928
2936
|
$metadata: deserializeMetadata(output),
|
|
@@ -2931,7 +2939,7 @@ export var deserializeAws_restJson1PutFileSystemPolicyCommand = function (output
|
|
|
2931
2939
|
};
|
|
2932
2940
|
_a = __expectNonNull;
|
|
2933
2941
|
_b = __expectObject;
|
|
2934
|
-
return [4
|
|
2942
|
+
return [4, parseBody(output.body, context)];
|
|
2935
2943
|
case 1:
|
|
2936
2944
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2937
2945
|
if (data.FileSystemId !== undefined && data.FileSystemId !== null) {
|
|
@@ -2940,7 +2948,7 @@ export var deserializeAws_restJson1PutFileSystemPolicyCommand = function (output
|
|
|
2940
2948
|
if (data.Policy !== undefined && data.Policy !== null) {
|
|
2941
2949
|
contents.Policy = __expectString(data.Policy);
|
|
2942
2950
|
}
|
|
2943
|
-
return [2
|
|
2951
|
+
return [2, Promise.resolve(contents)];
|
|
2944
2952
|
}
|
|
2945
2953
|
});
|
|
2946
2954
|
}); };
|
|
@@ -2952,47 +2960,47 @@ var deserializeAws_restJson1PutFileSystemPolicyCommandError = function (output,
|
|
|
2952
2960
|
case 0:
|
|
2953
2961
|
_a = [__assign({}, output)];
|
|
2954
2962
|
_g = {};
|
|
2955
|
-
return [4
|
|
2963
|
+
return [4, parseBody(output.body, context)];
|
|
2956
2964
|
case 1:
|
|
2957
2965
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2958
2966
|
errorCode = "UnknownError";
|
|
2959
2967
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2960
2968
|
_b = errorCode;
|
|
2961
2969
|
switch (_b) {
|
|
2962
|
-
case "FileSystemNotFound": return [3
|
|
2963
|
-
case "com.amazonaws.efs#FileSystemNotFound": return [3
|
|
2964
|
-
case "IncorrectFileSystemLifeCycleState": return [3
|
|
2965
|
-
case "com.amazonaws.efs#IncorrectFileSystemLifeCycleState": return [3
|
|
2966
|
-
case "InternalServerError": return [3
|
|
2967
|
-
case "com.amazonaws.efs#InternalServerError": return [3
|
|
2968
|
-
case "InvalidPolicyException": return [3
|
|
2969
|
-
case "com.amazonaws.efs#InvalidPolicyException": return [3
|
|
2970
|
-
}
|
|
2971
|
-
return [3
|
|
2970
|
+
case "FileSystemNotFound": return [3, 2];
|
|
2971
|
+
case "com.amazonaws.efs#FileSystemNotFound": return [3, 2];
|
|
2972
|
+
case "IncorrectFileSystemLifeCycleState": return [3, 4];
|
|
2973
|
+
case "com.amazonaws.efs#IncorrectFileSystemLifeCycleState": return [3, 4];
|
|
2974
|
+
case "InternalServerError": return [3, 6];
|
|
2975
|
+
case "com.amazonaws.efs#InternalServerError": return [3, 6];
|
|
2976
|
+
case "InvalidPolicyException": return [3, 8];
|
|
2977
|
+
case "com.amazonaws.efs#InvalidPolicyException": return [3, 8];
|
|
2978
|
+
}
|
|
2979
|
+
return [3, 10];
|
|
2972
2980
|
case 2:
|
|
2973
2981
|
_c = [{}];
|
|
2974
|
-
return [4
|
|
2982
|
+
return [4, deserializeAws_restJson1FileSystemNotFoundResponse(parsedOutput, context)];
|
|
2975
2983
|
case 3:
|
|
2976
2984
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2977
|
-
return [3
|
|
2985
|
+
return [3, 11];
|
|
2978
2986
|
case 4:
|
|
2979
2987
|
_d = [{}];
|
|
2980
|
-
return [4
|
|
2988
|
+
return [4, deserializeAws_restJson1IncorrectFileSystemLifeCycleStateResponse(parsedOutput, context)];
|
|
2981
2989
|
case 5:
|
|
2982
2990
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2983
|
-
return [3
|
|
2991
|
+
return [3, 11];
|
|
2984
2992
|
case 6:
|
|
2985
2993
|
_e = [{}];
|
|
2986
|
-
return [4
|
|
2994
|
+
return [4, deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)];
|
|
2987
2995
|
case 7:
|
|
2988
2996
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2989
|
-
return [3
|
|
2997
|
+
return [3, 11];
|
|
2990
2998
|
case 8:
|
|
2991
2999
|
_f = [{}];
|
|
2992
|
-
return [4
|
|
3000
|
+
return [4, deserializeAws_restJson1InvalidPolicyExceptionResponse(parsedOutput, context)];
|
|
2993
3001
|
case 9:
|
|
2994
3002
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2995
|
-
return [3
|
|
3003
|
+
return [3, 11];
|
|
2996
3004
|
case 10:
|
|
2997
3005
|
parsedBody = parsedOutput.body;
|
|
2998
3006
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3002,7 +3010,7 @@ var deserializeAws_restJson1PutFileSystemPolicyCommandError = function (output,
|
|
|
3002
3010
|
message = response.message || response.Message || errorCode;
|
|
3003
3011
|
response.message = message;
|
|
3004
3012
|
delete response.Message;
|
|
3005
|
-
return [2
|
|
3013
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3006
3014
|
}
|
|
3007
3015
|
});
|
|
3008
3016
|
}); };
|
|
@@ -3012,7 +3020,7 @@ export var deserializeAws_restJson1PutLifecycleConfigurationCommand = function (
|
|
|
3012
3020
|
switch (_c.label) {
|
|
3013
3021
|
case 0:
|
|
3014
3022
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3015
|
-
return [2
|
|
3023
|
+
return [2, deserializeAws_restJson1PutLifecycleConfigurationCommandError(output, context)];
|
|
3016
3024
|
}
|
|
3017
3025
|
contents = {
|
|
3018
3026
|
$metadata: deserializeMetadata(output),
|
|
@@ -3020,13 +3028,13 @@ export var deserializeAws_restJson1PutLifecycleConfigurationCommand = function (
|
|
|
3020
3028
|
};
|
|
3021
3029
|
_a = __expectNonNull;
|
|
3022
3030
|
_b = __expectObject;
|
|
3023
|
-
return [4
|
|
3031
|
+
return [4, parseBody(output.body, context)];
|
|
3024
3032
|
case 1:
|
|
3025
3033
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3026
3034
|
if (data.LifecyclePolicies !== undefined && data.LifecyclePolicies !== null) {
|
|
3027
3035
|
contents.LifecyclePolicies = deserializeAws_restJson1LifecyclePolicies(data.LifecyclePolicies, context);
|
|
3028
3036
|
}
|
|
3029
|
-
return [2
|
|
3037
|
+
return [2, Promise.resolve(contents)];
|
|
3030
3038
|
}
|
|
3031
3039
|
});
|
|
3032
3040
|
}); };
|
|
@@ -3038,47 +3046,47 @@ var deserializeAws_restJson1PutLifecycleConfigurationCommandError = function (ou
|
|
|
3038
3046
|
case 0:
|
|
3039
3047
|
_a = [__assign({}, output)];
|
|
3040
3048
|
_g = {};
|
|
3041
|
-
return [4
|
|
3049
|
+
return [4, parseBody(output.body, context)];
|
|
3042
3050
|
case 1:
|
|
3043
3051
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
3044
3052
|
errorCode = "UnknownError";
|
|
3045
3053
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3046
3054
|
_b = errorCode;
|
|
3047
3055
|
switch (_b) {
|
|
3048
|
-
case "BadRequest": return [3
|
|
3049
|
-
case "com.amazonaws.efs#BadRequest": return [3
|
|
3050
|
-
case "FileSystemNotFound": return [3
|
|
3051
|
-
case "com.amazonaws.efs#FileSystemNotFound": return [3
|
|
3052
|
-
case "IncorrectFileSystemLifeCycleState": return [3
|
|
3053
|
-
case "com.amazonaws.efs#IncorrectFileSystemLifeCycleState": return [3
|
|
3054
|
-
case "InternalServerError": return [3
|
|
3055
|
-
case "com.amazonaws.efs#InternalServerError": return [3
|
|
3056
|
-
}
|
|
3057
|
-
return [3
|
|
3056
|
+
case "BadRequest": return [3, 2];
|
|
3057
|
+
case "com.amazonaws.efs#BadRequest": return [3, 2];
|
|
3058
|
+
case "FileSystemNotFound": return [3, 4];
|
|
3059
|
+
case "com.amazonaws.efs#FileSystemNotFound": return [3, 4];
|
|
3060
|
+
case "IncorrectFileSystemLifeCycleState": return [3, 6];
|
|
3061
|
+
case "com.amazonaws.efs#IncorrectFileSystemLifeCycleState": return [3, 6];
|
|
3062
|
+
case "InternalServerError": return [3, 8];
|
|
3063
|
+
case "com.amazonaws.efs#InternalServerError": return [3, 8];
|
|
3064
|
+
}
|
|
3065
|
+
return [3, 10];
|
|
3058
3066
|
case 2:
|
|
3059
3067
|
_c = [{}];
|
|
3060
|
-
return [4
|
|
3068
|
+
return [4, deserializeAws_restJson1BadRequestResponse(parsedOutput, context)];
|
|
3061
3069
|
case 3:
|
|
3062
3070
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3063
|
-
return [3
|
|
3071
|
+
return [3, 11];
|
|
3064
3072
|
case 4:
|
|
3065
3073
|
_d = [{}];
|
|
3066
|
-
return [4
|
|
3074
|
+
return [4, deserializeAws_restJson1FileSystemNotFoundResponse(parsedOutput, context)];
|
|
3067
3075
|
case 5:
|
|
3068
3076
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3069
|
-
return [3
|
|
3077
|
+
return [3, 11];
|
|
3070
3078
|
case 6:
|
|
3071
3079
|
_e = [{}];
|
|
3072
|
-
return [4
|
|
3080
|
+
return [4, deserializeAws_restJson1IncorrectFileSystemLifeCycleStateResponse(parsedOutput, context)];
|
|
3073
3081
|
case 7:
|
|
3074
3082
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3075
|
-
return [3
|
|
3083
|
+
return [3, 11];
|
|
3076
3084
|
case 8:
|
|
3077
3085
|
_f = [{}];
|
|
3078
|
-
return [4
|
|
3086
|
+
return [4, deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)];
|
|
3079
3087
|
case 9:
|
|
3080
3088
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3081
|
-
return [3
|
|
3089
|
+
return [3, 11];
|
|
3082
3090
|
case 10:
|
|
3083
3091
|
parsedBody = parsedOutput.body;
|
|
3084
3092
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3088,7 +3096,7 @@ var deserializeAws_restJson1PutLifecycleConfigurationCommandError = function (ou
|
|
|
3088
3096
|
message = response.message || response.Message || errorCode;
|
|
3089
3097
|
response.message = message;
|
|
3090
3098
|
delete response.Message;
|
|
3091
|
-
return [2
|
|
3099
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3092
3100
|
}
|
|
3093
3101
|
});
|
|
3094
3102
|
}); };
|
|
@@ -3098,15 +3106,15 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
3098
3106
|
switch (_a.label) {
|
|
3099
3107
|
case 0:
|
|
3100
3108
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3101
|
-
return [2
|
|
3109
|
+
return [2, deserializeAws_restJson1TagResourceCommandError(output, context)];
|
|
3102
3110
|
}
|
|
3103
3111
|
contents = {
|
|
3104
3112
|
$metadata: deserializeMetadata(output),
|
|
3105
3113
|
};
|
|
3106
|
-
return [4
|
|
3114
|
+
return [4, collectBody(output.body, context)];
|
|
3107
3115
|
case 1:
|
|
3108
3116
|
_a.sent();
|
|
3109
|
-
return [2
|
|
3117
|
+
return [2, Promise.resolve(contents)];
|
|
3110
3118
|
}
|
|
3111
3119
|
});
|
|
3112
3120
|
}); };
|
|
@@ -3118,47 +3126,47 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
3118
3126
|
case 0:
|
|
3119
3127
|
_a = [__assign({}, output)];
|
|
3120
3128
|
_g = {};
|
|
3121
|
-
return [4
|
|
3129
|
+
return [4, parseBody(output.body, context)];
|
|
3122
3130
|
case 1:
|
|
3123
3131
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
3124
3132
|
errorCode = "UnknownError";
|
|
3125
3133
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3126
3134
|
_b = errorCode;
|
|
3127
3135
|
switch (_b) {
|
|
3128
|
-
case "AccessPointNotFound": return [3
|
|
3129
|
-
case "com.amazonaws.efs#AccessPointNotFound": return [3
|
|
3130
|
-
case "BadRequest": return [3
|
|
3131
|
-
case "com.amazonaws.efs#BadRequest": return [3
|
|
3132
|
-
case "FileSystemNotFound": return [3
|
|
3133
|
-
case "com.amazonaws.efs#FileSystemNotFound": return [3
|
|
3134
|
-
case "InternalServerError": return [3
|
|
3135
|
-
case "com.amazonaws.efs#InternalServerError": return [3
|
|
3136
|
-
}
|
|
3137
|
-
return [3
|
|
3136
|
+
case "AccessPointNotFound": return [3, 2];
|
|
3137
|
+
case "com.amazonaws.efs#AccessPointNotFound": return [3, 2];
|
|
3138
|
+
case "BadRequest": return [3, 4];
|
|
3139
|
+
case "com.amazonaws.efs#BadRequest": return [3, 4];
|
|
3140
|
+
case "FileSystemNotFound": return [3, 6];
|
|
3141
|
+
case "com.amazonaws.efs#FileSystemNotFound": return [3, 6];
|
|
3142
|
+
case "InternalServerError": return [3, 8];
|
|
3143
|
+
case "com.amazonaws.efs#InternalServerError": return [3, 8];
|
|
3144
|
+
}
|
|
3145
|
+
return [3, 10];
|
|
3138
3146
|
case 2:
|
|
3139
3147
|
_c = [{}];
|
|
3140
|
-
return [4
|
|
3148
|
+
return [4, deserializeAws_restJson1AccessPointNotFoundResponse(parsedOutput, context)];
|
|
3141
3149
|
case 3:
|
|
3142
3150
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3143
|
-
return [3
|
|
3151
|
+
return [3, 11];
|
|
3144
3152
|
case 4:
|
|
3145
3153
|
_d = [{}];
|
|
3146
|
-
return [4
|
|
3154
|
+
return [4, deserializeAws_restJson1BadRequestResponse(parsedOutput, context)];
|
|
3147
3155
|
case 5:
|
|
3148
3156
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3149
|
-
return [3
|
|
3157
|
+
return [3, 11];
|
|
3150
3158
|
case 6:
|
|
3151
3159
|
_e = [{}];
|
|
3152
|
-
return [4
|
|
3160
|
+
return [4, deserializeAws_restJson1FileSystemNotFoundResponse(parsedOutput, context)];
|
|
3153
3161
|
case 7:
|
|
3154
3162
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3155
|
-
return [3
|
|
3163
|
+
return [3, 11];
|
|
3156
3164
|
case 8:
|
|
3157
3165
|
_f = [{}];
|
|
3158
|
-
return [4
|
|
3166
|
+
return [4, deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)];
|
|
3159
3167
|
case 9:
|
|
3160
3168
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3161
|
-
return [3
|
|
3169
|
+
return [3, 11];
|
|
3162
3170
|
case 10:
|
|
3163
3171
|
parsedBody = parsedOutput.body;
|
|
3164
3172
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3168,7 +3176,7 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
3168
3176
|
message = response.message || response.Message || errorCode;
|
|
3169
3177
|
response.message = message;
|
|
3170
3178
|
delete response.Message;
|
|
3171
|
-
return [2
|
|
3179
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3172
3180
|
}
|
|
3173
3181
|
});
|
|
3174
3182
|
}); };
|
|
@@ -3178,15 +3186,15 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
3178
3186
|
switch (_a.label) {
|
|
3179
3187
|
case 0:
|
|
3180
3188
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3181
|
-
return [2
|
|
3189
|
+
return [2, deserializeAws_restJson1UntagResourceCommandError(output, context)];
|
|
3182
3190
|
}
|
|
3183
3191
|
contents = {
|
|
3184
3192
|
$metadata: deserializeMetadata(output),
|
|
3185
3193
|
};
|
|
3186
|
-
return [4
|
|
3194
|
+
return [4, collectBody(output.body, context)];
|
|
3187
3195
|
case 1:
|
|
3188
3196
|
_a.sent();
|
|
3189
|
-
return [2
|
|
3197
|
+
return [2, Promise.resolve(contents)];
|
|
3190
3198
|
}
|
|
3191
3199
|
});
|
|
3192
3200
|
}); };
|
|
@@ -3198,47 +3206,47 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
3198
3206
|
case 0:
|
|
3199
3207
|
_a = [__assign({}, output)];
|
|
3200
3208
|
_g = {};
|
|
3201
|
-
return [4
|
|
3209
|
+
return [4, parseBody(output.body, context)];
|
|
3202
3210
|
case 1:
|
|
3203
3211
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
3204
3212
|
errorCode = "UnknownError";
|
|
3205
3213
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3206
3214
|
_b = errorCode;
|
|
3207
3215
|
switch (_b) {
|
|
3208
|
-
case "AccessPointNotFound": return [3
|
|
3209
|
-
case "com.amazonaws.efs#AccessPointNotFound": return [3
|
|
3210
|
-
case "BadRequest": return [3
|
|
3211
|
-
case "com.amazonaws.efs#BadRequest": return [3
|
|
3212
|
-
case "FileSystemNotFound": return [3
|
|
3213
|
-
case "com.amazonaws.efs#FileSystemNotFound": return [3
|
|
3214
|
-
case "InternalServerError": return [3
|
|
3215
|
-
case "com.amazonaws.efs#InternalServerError": return [3
|
|
3216
|
-
}
|
|
3217
|
-
return [3
|
|
3216
|
+
case "AccessPointNotFound": return [3, 2];
|
|
3217
|
+
case "com.amazonaws.efs#AccessPointNotFound": return [3, 2];
|
|
3218
|
+
case "BadRequest": return [3, 4];
|
|
3219
|
+
case "com.amazonaws.efs#BadRequest": return [3, 4];
|
|
3220
|
+
case "FileSystemNotFound": return [3, 6];
|
|
3221
|
+
case "com.amazonaws.efs#FileSystemNotFound": return [3, 6];
|
|
3222
|
+
case "InternalServerError": return [3, 8];
|
|
3223
|
+
case "com.amazonaws.efs#InternalServerError": return [3, 8];
|
|
3224
|
+
}
|
|
3225
|
+
return [3, 10];
|
|
3218
3226
|
case 2:
|
|
3219
3227
|
_c = [{}];
|
|
3220
|
-
return [4
|
|
3228
|
+
return [4, deserializeAws_restJson1AccessPointNotFoundResponse(parsedOutput, context)];
|
|
3221
3229
|
case 3:
|
|
3222
3230
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3223
|
-
return [3
|
|
3231
|
+
return [3, 11];
|
|
3224
3232
|
case 4:
|
|
3225
3233
|
_d = [{}];
|
|
3226
|
-
return [4
|
|
3234
|
+
return [4, deserializeAws_restJson1BadRequestResponse(parsedOutput, context)];
|
|
3227
3235
|
case 5:
|
|
3228
3236
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3229
|
-
return [3
|
|
3237
|
+
return [3, 11];
|
|
3230
3238
|
case 6:
|
|
3231
3239
|
_e = [{}];
|
|
3232
|
-
return [4
|
|
3240
|
+
return [4, deserializeAws_restJson1FileSystemNotFoundResponse(parsedOutput, context)];
|
|
3233
3241
|
case 7:
|
|
3234
3242
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3235
|
-
return [3
|
|
3243
|
+
return [3, 11];
|
|
3236
3244
|
case 8:
|
|
3237
3245
|
_f = [{}];
|
|
3238
|
-
return [4
|
|
3246
|
+
return [4, deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)];
|
|
3239
3247
|
case 9:
|
|
3240
3248
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3241
|
-
return [3
|
|
3249
|
+
return [3, 11];
|
|
3242
3250
|
case 10:
|
|
3243
3251
|
parsedBody = parsedOutput.body;
|
|
3244
3252
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3248,7 +3256,7 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
3248
3256
|
message = response.message || response.Message || errorCode;
|
|
3249
3257
|
response.message = message;
|
|
3250
3258
|
delete response.Message;
|
|
3251
|
-
return [2
|
|
3259
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3252
3260
|
}
|
|
3253
3261
|
});
|
|
3254
3262
|
}); };
|
|
@@ -3258,7 +3266,7 @@ export var deserializeAws_restJson1UpdateFileSystemCommand = function (output, c
|
|
|
3258
3266
|
switch (_c.label) {
|
|
3259
3267
|
case 0:
|
|
3260
3268
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
3261
|
-
return [2
|
|
3269
|
+
return [2, deserializeAws_restJson1UpdateFileSystemCommandError(output, context)];
|
|
3262
3270
|
}
|
|
3263
3271
|
contents = {
|
|
3264
3272
|
$metadata: deserializeMetadata(output),
|
|
@@ -3282,7 +3290,7 @@ export var deserializeAws_restJson1UpdateFileSystemCommand = function (output, c
|
|
|
3282
3290
|
};
|
|
3283
3291
|
_a = __expectNonNull;
|
|
3284
3292
|
_b = __expectObject;
|
|
3285
|
-
return [4
|
|
3293
|
+
return [4, parseBody(output.body, context)];
|
|
3286
3294
|
case 1:
|
|
3287
3295
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3288
3296
|
if (data.AvailabilityZoneId !== undefined && data.AvailabilityZoneId !== null) {
|
|
@@ -3336,7 +3344,7 @@ export var deserializeAws_restJson1UpdateFileSystemCommand = function (output, c
|
|
|
3336
3344
|
if (data.ThroughputMode !== undefined && data.ThroughputMode !== null) {
|
|
3337
3345
|
contents.ThroughputMode = __expectString(data.ThroughputMode);
|
|
3338
3346
|
}
|
|
3339
|
-
return [2
|
|
3347
|
+
return [2, Promise.resolve(contents)];
|
|
3340
3348
|
}
|
|
3341
3349
|
});
|
|
3342
3350
|
}); };
|
|
@@ -3348,71 +3356,71 @@ var deserializeAws_restJson1UpdateFileSystemCommandError = function (output, con
|
|
|
3348
3356
|
case 0:
|
|
3349
3357
|
_a = [__assign({}, output)];
|
|
3350
3358
|
_k = {};
|
|
3351
|
-
return [4
|
|
3359
|
+
return [4, parseBody(output.body, context)];
|
|
3352
3360
|
case 1:
|
|
3353
3361
|
parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
|
|
3354
3362
|
errorCode = "UnknownError";
|
|
3355
3363
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3356
3364
|
_b = errorCode;
|
|
3357
3365
|
switch (_b) {
|
|
3358
|
-
case "BadRequest": return [3
|
|
3359
|
-
case "com.amazonaws.efs#BadRequest": return [3
|
|
3360
|
-
case "FileSystemNotFound": return [3
|
|
3361
|
-
case "com.amazonaws.efs#FileSystemNotFound": return [3
|
|
3362
|
-
case "IncorrectFileSystemLifeCycleState": return [3
|
|
3363
|
-
case "com.amazonaws.efs#IncorrectFileSystemLifeCycleState": return [3
|
|
3364
|
-
case "InsufficientThroughputCapacity": return [3
|
|
3365
|
-
case "com.amazonaws.efs#InsufficientThroughputCapacity": return [3
|
|
3366
|
-
case "InternalServerError": return [3
|
|
3367
|
-
case "com.amazonaws.efs#InternalServerError": return [3
|
|
3368
|
-
case "ThroughputLimitExceeded": return [3
|
|
3369
|
-
case "com.amazonaws.efs#ThroughputLimitExceeded": return [3
|
|
3370
|
-
case "TooManyRequests": return [3
|
|
3371
|
-
case "com.amazonaws.efs#TooManyRequests": return [3
|
|
3372
|
-
}
|
|
3373
|
-
return [3
|
|
3366
|
+
case "BadRequest": return [3, 2];
|
|
3367
|
+
case "com.amazonaws.efs#BadRequest": return [3, 2];
|
|
3368
|
+
case "FileSystemNotFound": return [3, 4];
|
|
3369
|
+
case "com.amazonaws.efs#FileSystemNotFound": return [3, 4];
|
|
3370
|
+
case "IncorrectFileSystemLifeCycleState": return [3, 6];
|
|
3371
|
+
case "com.amazonaws.efs#IncorrectFileSystemLifeCycleState": return [3, 6];
|
|
3372
|
+
case "InsufficientThroughputCapacity": return [3, 8];
|
|
3373
|
+
case "com.amazonaws.efs#InsufficientThroughputCapacity": return [3, 8];
|
|
3374
|
+
case "InternalServerError": return [3, 10];
|
|
3375
|
+
case "com.amazonaws.efs#InternalServerError": return [3, 10];
|
|
3376
|
+
case "ThroughputLimitExceeded": return [3, 12];
|
|
3377
|
+
case "com.amazonaws.efs#ThroughputLimitExceeded": return [3, 12];
|
|
3378
|
+
case "TooManyRequests": return [3, 14];
|
|
3379
|
+
case "com.amazonaws.efs#TooManyRequests": return [3, 14];
|
|
3380
|
+
}
|
|
3381
|
+
return [3, 16];
|
|
3374
3382
|
case 2:
|
|
3375
3383
|
_c = [{}];
|
|
3376
|
-
return [4
|
|
3384
|
+
return [4, deserializeAws_restJson1BadRequestResponse(parsedOutput, context)];
|
|
3377
3385
|
case 3:
|
|
3378
3386
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3379
|
-
return [3
|
|
3387
|
+
return [3, 17];
|
|
3380
3388
|
case 4:
|
|
3381
3389
|
_d = [{}];
|
|
3382
|
-
return [4
|
|
3390
|
+
return [4, deserializeAws_restJson1FileSystemNotFoundResponse(parsedOutput, context)];
|
|
3383
3391
|
case 5:
|
|
3384
3392
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3385
|
-
return [3
|
|
3393
|
+
return [3, 17];
|
|
3386
3394
|
case 6:
|
|
3387
3395
|
_e = [{}];
|
|
3388
|
-
return [4
|
|
3396
|
+
return [4, deserializeAws_restJson1IncorrectFileSystemLifeCycleStateResponse(parsedOutput, context)];
|
|
3389
3397
|
case 7:
|
|
3390
3398
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3391
|
-
return [3
|
|
3399
|
+
return [3, 17];
|
|
3392
3400
|
case 8:
|
|
3393
3401
|
_f = [{}];
|
|
3394
|
-
return [4
|
|
3402
|
+
return [4, deserializeAws_restJson1InsufficientThroughputCapacityResponse(parsedOutput, context)];
|
|
3395
3403
|
case 9:
|
|
3396
3404
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3397
|
-
return [3
|
|
3405
|
+
return [3, 17];
|
|
3398
3406
|
case 10:
|
|
3399
3407
|
_g = [{}];
|
|
3400
|
-
return [4
|
|
3408
|
+
return [4, deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)];
|
|
3401
3409
|
case 11:
|
|
3402
3410
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3403
|
-
return [3
|
|
3411
|
+
return [3, 17];
|
|
3404
3412
|
case 12:
|
|
3405
3413
|
_h = [{}];
|
|
3406
|
-
return [4
|
|
3414
|
+
return [4, deserializeAws_restJson1ThroughputLimitExceededResponse(parsedOutput, context)];
|
|
3407
3415
|
case 13:
|
|
3408
3416
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3409
|
-
return [3
|
|
3417
|
+
return [3, 17];
|
|
3410
3418
|
case 14:
|
|
3411
3419
|
_j = [{}];
|
|
3412
|
-
return [4
|
|
3420
|
+
return [4, deserializeAws_restJson1TooManyRequestsResponse(parsedOutput, context)];
|
|
3413
3421
|
case 15:
|
|
3414
3422
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3415
|
-
return [3
|
|
3423
|
+
return [3, 17];
|
|
3416
3424
|
case 16:
|
|
3417
3425
|
parsedBody = parsedOutput.body;
|
|
3418
3426
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3422,7 +3430,7 @@ var deserializeAws_restJson1UpdateFileSystemCommandError = function (output, con
|
|
|
3422
3430
|
message = response.message || response.Message || errorCode;
|
|
3423
3431
|
response.message = message;
|
|
3424
3432
|
delete response.Message;
|
|
3425
|
-
return [2
|
|
3433
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3426
3434
|
}
|
|
3427
3435
|
});
|
|
3428
3436
|
}); };
|
|
@@ -3447,7 +3455,7 @@ var deserializeAws_restJson1AccessPointAlreadyExistsResponse = function (parsedO
|
|
|
3447
3455
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3448
3456
|
contents.Message = __expectString(data.Message);
|
|
3449
3457
|
}
|
|
3450
|
-
return [2
|
|
3458
|
+
return [2, contents];
|
|
3451
3459
|
});
|
|
3452
3460
|
}); };
|
|
3453
3461
|
var deserializeAws_restJson1AccessPointLimitExceededResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3467,7 +3475,7 @@ var deserializeAws_restJson1AccessPointLimitExceededResponse = function (parsedO
|
|
|
3467
3475
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3468
3476
|
contents.Message = __expectString(data.Message);
|
|
3469
3477
|
}
|
|
3470
|
-
return [2
|
|
3478
|
+
return [2, contents];
|
|
3471
3479
|
});
|
|
3472
3480
|
}); };
|
|
3473
3481
|
var deserializeAws_restJson1AccessPointNotFoundResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3487,7 +3495,7 @@ var deserializeAws_restJson1AccessPointNotFoundResponse = function (parsedOutput
|
|
|
3487
3495
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3488
3496
|
contents.Message = __expectString(data.Message);
|
|
3489
3497
|
}
|
|
3490
|
-
return [2
|
|
3498
|
+
return [2, contents];
|
|
3491
3499
|
});
|
|
3492
3500
|
}); };
|
|
3493
3501
|
var deserializeAws_restJson1AvailabilityZonesMismatchResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3507,7 +3515,7 @@ var deserializeAws_restJson1AvailabilityZonesMismatchResponse = function (parsed
|
|
|
3507
3515
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3508
3516
|
contents.Message = __expectString(data.Message);
|
|
3509
3517
|
}
|
|
3510
|
-
return [2
|
|
3518
|
+
return [2, contents];
|
|
3511
3519
|
});
|
|
3512
3520
|
}); };
|
|
3513
3521
|
var deserializeAws_restJson1BadRequestResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3527,7 +3535,7 @@ var deserializeAws_restJson1BadRequestResponse = function (parsedOutput, context
|
|
|
3527
3535
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3528
3536
|
contents.Message = __expectString(data.Message);
|
|
3529
3537
|
}
|
|
3530
|
-
return [2
|
|
3538
|
+
return [2, contents];
|
|
3531
3539
|
});
|
|
3532
3540
|
}); };
|
|
3533
3541
|
var deserializeAws_restJson1DependencyTimeoutResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3547,7 +3555,7 @@ var deserializeAws_restJson1DependencyTimeoutResponse = function (parsedOutput,
|
|
|
3547
3555
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3548
3556
|
contents.Message = __expectString(data.Message);
|
|
3549
3557
|
}
|
|
3550
|
-
return [2
|
|
3558
|
+
return [2, contents];
|
|
3551
3559
|
});
|
|
3552
3560
|
}); };
|
|
3553
3561
|
var deserializeAws_restJson1FileSystemAlreadyExistsResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3571,7 +3579,7 @@ var deserializeAws_restJson1FileSystemAlreadyExistsResponse = function (parsedOu
|
|
|
3571
3579
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3572
3580
|
contents.Message = __expectString(data.Message);
|
|
3573
3581
|
}
|
|
3574
|
-
return [2
|
|
3582
|
+
return [2, contents];
|
|
3575
3583
|
});
|
|
3576
3584
|
}); };
|
|
3577
3585
|
var deserializeAws_restJson1FileSystemInUseResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3591,7 +3599,7 @@ var deserializeAws_restJson1FileSystemInUseResponse = function (parsedOutput, co
|
|
|
3591
3599
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3592
3600
|
contents.Message = __expectString(data.Message);
|
|
3593
3601
|
}
|
|
3594
|
-
return [2
|
|
3602
|
+
return [2, contents];
|
|
3595
3603
|
});
|
|
3596
3604
|
}); };
|
|
3597
3605
|
var deserializeAws_restJson1FileSystemLimitExceededResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3611,7 +3619,7 @@ var deserializeAws_restJson1FileSystemLimitExceededResponse = function (parsedOu
|
|
|
3611
3619
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3612
3620
|
contents.Message = __expectString(data.Message);
|
|
3613
3621
|
}
|
|
3614
|
-
return [2
|
|
3622
|
+
return [2, contents];
|
|
3615
3623
|
});
|
|
3616
3624
|
}); };
|
|
3617
3625
|
var deserializeAws_restJson1FileSystemNotFoundResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3631,7 +3639,7 @@ var deserializeAws_restJson1FileSystemNotFoundResponse = function (parsedOutput,
|
|
|
3631
3639
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3632
3640
|
contents.Message = __expectString(data.Message);
|
|
3633
3641
|
}
|
|
3634
|
-
return [2
|
|
3642
|
+
return [2, contents];
|
|
3635
3643
|
});
|
|
3636
3644
|
}); };
|
|
3637
3645
|
var deserializeAws_restJson1IncorrectFileSystemLifeCycleStateResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3651,7 +3659,7 @@ var deserializeAws_restJson1IncorrectFileSystemLifeCycleStateResponse = function
|
|
|
3651
3659
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3652
3660
|
contents.Message = __expectString(data.Message);
|
|
3653
3661
|
}
|
|
3654
|
-
return [2
|
|
3662
|
+
return [2, contents];
|
|
3655
3663
|
});
|
|
3656
3664
|
}); };
|
|
3657
3665
|
var deserializeAws_restJson1IncorrectMountTargetStateResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3671,7 +3679,7 @@ var deserializeAws_restJson1IncorrectMountTargetStateResponse = function (parsed
|
|
|
3671
3679
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3672
3680
|
contents.Message = __expectString(data.Message);
|
|
3673
3681
|
}
|
|
3674
|
-
return [2
|
|
3682
|
+
return [2, contents];
|
|
3675
3683
|
});
|
|
3676
3684
|
}); };
|
|
3677
3685
|
var deserializeAws_restJson1InsufficientThroughputCapacityResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3691,7 +3699,7 @@ var deserializeAws_restJson1InsufficientThroughputCapacityResponse = function (p
|
|
|
3691
3699
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3692
3700
|
contents.Message = __expectString(data.Message);
|
|
3693
3701
|
}
|
|
3694
|
-
return [2
|
|
3702
|
+
return [2, contents];
|
|
3695
3703
|
});
|
|
3696
3704
|
}); };
|
|
3697
3705
|
var deserializeAws_restJson1InternalServerErrorResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3711,7 +3719,7 @@ var deserializeAws_restJson1InternalServerErrorResponse = function (parsedOutput
|
|
|
3711
3719
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3712
3720
|
contents.Message = __expectString(data.Message);
|
|
3713
3721
|
}
|
|
3714
|
-
return [2
|
|
3722
|
+
return [2, contents];
|
|
3715
3723
|
});
|
|
3716
3724
|
}); };
|
|
3717
3725
|
var deserializeAws_restJson1InvalidPolicyExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3731,7 +3739,7 @@ var deserializeAws_restJson1InvalidPolicyExceptionResponse = function (parsedOut
|
|
|
3731
3739
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3732
3740
|
contents.Message = __expectString(data.Message);
|
|
3733
3741
|
}
|
|
3734
|
-
return [2
|
|
3742
|
+
return [2, contents];
|
|
3735
3743
|
});
|
|
3736
3744
|
}); };
|
|
3737
3745
|
var deserializeAws_restJson1IpAddressInUseResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3751,7 +3759,7 @@ var deserializeAws_restJson1IpAddressInUseResponse = function (parsedOutput, con
|
|
|
3751
3759
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3752
3760
|
contents.Message = __expectString(data.Message);
|
|
3753
3761
|
}
|
|
3754
|
-
return [2
|
|
3762
|
+
return [2, contents];
|
|
3755
3763
|
});
|
|
3756
3764
|
}); };
|
|
3757
3765
|
var deserializeAws_restJson1MountTargetConflictResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3771,7 +3779,7 @@ var deserializeAws_restJson1MountTargetConflictResponse = function (parsedOutput
|
|
|
3771
3779
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3772
3780
|
contents.Message = __expectString(data.Message);
|
|
3773
3781
|
}
|
|
3774
|
-
return [2
|
|
3782
|
+
return [2, contents];
|
|
3775
3783
|
});
|
|
3776
3784
|
}); };
|
|
3777
3785
|
var deserializeAws_restJson1MountTargetNotFoundResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3791,7 +3799,7 @@ var deserializeAws_restJson1MountTargetNotFoundResponse = function (parsedOutput
|
|
|
3791
3799
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3792
3800
|
contents.Message = __expectString(data.Message);
|
|
3793
3801
|
}
|
|
3794
|
-
return [2
|
|
3802
|
+
return [2, contents];
|
|
3795
3803
|
});
|
|
3796
3804
|
}); };
|
|
3797
3805
|
var deserializeAws_restJson1NetworkInterfaceLimitExceededResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3811,7 +3819,7 @@ var deserializeAws_restJson1NetworkInterfaceLimitExceededResponse = function (pa
|
|
|
3811
3819
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3812
3820
|
contents.Message = __expectString(data.Message);
|
|
3813
3821
|
}
|
|
3814
|
-
return [2
|
|
3822
|
+
return [2, contents];
|
|
3815
3823
|
});
|
|
3816
3824
|
}); };
|
|
3817
3825
|
var deserializeAws_restJson1NoFreeAddressesInSubnetResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3831,7 +3839,7 @@ var deserializeAws_restJson1NoFreeAddressesInSubnetResponse = function (parsedOu
|
|
|
3831
3839
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3832
3840
|
contents.Message = __expectString(data.Message);
|
|
3833
3841
|
}
|
|
3834
|
-
return [2
|
|
3842
|
+
return [2, contents];
|
|
3835
3843
|
});
|
|
3836
3844
|
}); };
|
|
3837
3845
|
var deserializeAws_restJson1PolicyNotFoundResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3851,7 +3859,7 @@ var deserializeAws_restJson1PolicyNotFoundResponse = function (parsedOutput, con
|
|
|
3851
3859
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3852
3860
|
contents.Message = __expectString(data.Message);
|
|
3853
3861
|
}
|
|
3854
|
-
return [2
|
|
3862
|
+
return [2, contents];
|
|
3855
3863
|
});
|
|
3856
3864
|
}); };
|
|
3857
3865
|
var deserializeAws_restJson1SecurityGroupLimitExceededResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3871,7 +3879,7 @@ var deserializeAws_restJson1SecurityGroupLimitExceededResponse = function (parse
|
|
|
3871
3879
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3872
3880
|
contents.Message = __expectString(data.Message);
|
|
3873
3881
|
}
|
|
3874
|
-
return [2
|
|
3882
|
+
return [2, contents];
|
|
3875
3883
|
});
|
|
3876
3884
|
}); };
|
|
3877
3885
|
var deserializeAws_restJson1SecurityGroupNotFoundResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3891,7 +3899,7 @@ var deserializeAws_restJson1SecurityGroupNotFoundResponse = function (parsedOutp
|
|
|
3891
3899
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3892
3900
|
contents.Message = __expectString(data.Message);
|
|
3893
3901
|
}
|
|
3894
|
-
return [2
|
|
3902
|
+
return [2, contents];
|
|
3895
3903
|
});
|
|
3896
3904
|
}); };
|
|
3897
3905
|
var deserializeAws_restJson1SubnetNotFoundResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3911,7 +3919,7 @@ var deserializeAws_restJson1SubnetNotFoundResponse = function (parsedOutput, con
|
|
|
3911
3919
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3912
3920
|
contents.Message = __expectString(data.Message);
|
|
3913
3921
|
}
|
|
3914
|
-
return [2
|
|
3922
|
+
return [2, contents];
|
|
3915
3923
|
});
|
|
3916
3924
|
}); };
|
|
3917
3925
|
var deserializeAws_restJson1ThroughputLimitExceededResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3931,7 +3939,7 @@ var deserializeAws_restJson1ThroughputLimitExceededResponse = function (parsedOu
|
|
|
3931
3939
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3932
3940
|
contents.Message = __expectString(data.Message);
|
|
3933
3941
|
}
|
|
3934
|
-
return [2
|
|
3942
|
+
return [2, contents];
|
|
3935
3943
|
});
|
|
3936
3944
|
}); };
|
|
3937
3945
|
var deserializeAws_restJson1TooManyRequestsResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3951,7 +3959,7 @@ var deserializeAws_restJson1TooManyRequestsResponse = function (parsedOutput, co
|
|
|
3951
3959
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3952
3960
|
contents.Message = __expectString(data.Message);
|
|
3953
3961
|
}
|
|
3954
|
-
return [2
|
|
3962
|
+
return [2, contents];
|
|
3955
3963
|
});
|
|
3956
3964
|
}); };
|
|
3957
3965
|
var deserializeAws_restJson1UnsupportedAvailabilityZoneResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3971,7 +3979,7 @@ var deserializeAws_restJson1UnsupportedAvailabilityZoneResponse = function (pars
|
|
|
3971
3979
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3972
3980
|
contents.Message = __expectString(data.Message);
|
|
3973
3981
|
}
|
|
3974
|
-
return [2
|
|
3982
|
+
return [2, contents];
|
|
3975
3983
|
});
|
|
3976
3984
|
}); };
|
|
3977
3985
|
var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3991,7 +3999,7 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
|
|
|
3991
3999
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3992
4000
|
contents.Message = __expectString(data.Message);
|
|
3993
4001
|
}
|
|
3994
|
-
return [2
|
|
4002
|
+
return [2, contents];
|
|
3995
4003
|
});
|
|
3996
4004
|
}); };
|
|
3997
4005
|
var serializeAws_restJson1BackupPolicy = function (input, context) {
|
|
@@ -4279,7 +4287,6 @@ var deserializeMetadata = function (output) {
|
|
|
4279
4287
|
cfId: output.headers["x-amz-cf-id"],
|
|
4280
4288
|
});
|
|
4281
4289
|
};
|
|
4282
|
-
// Collect low-level response body stream to Uint8Array.
|
|
4283
4290
|
var collectBody = function (streamBody, context) {
|
|
4284
4291
|
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
4285
4292
|
if (streamBody instanceof Uint8Array) {
|
|
@@ -4287,7 +4294,6 @@ var collectBody = function (streamBody, context) {
|
|
|
4287
4294
|
}
|
|
4288
4295
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
4289
4296
|
};
|
|
4290
|
-
// Encode Uint8Array data into string with utf-8.
|
|
4291
4297
|
var collectBodyString = function (streamBody, context) {
|
|
4292
4298
|
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
|
|
4293
4299
|
};
|
|
@@ -4306,9 +4312,6 @@ var parseBody = function (streamBody, context) {
|
|
|
4306
4312
|
return {};
|
|
4307
4313
|
});
|
|
4308
4314
|
};
|
|
4309
|
-
/**
|
|
4310
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
4311
|
-
*/
|
|
4312
4315
|
var loadRestJsonErrorCode = function (output, data) {
|
|
4313
4316
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
4314
4317
|
var sanitizeErrorCode = function (rawValue) {
|
|
@@ -4333,4 +4336,3 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
4333
4336
|
}
|
|
4334
4337
|
return "";
|
|
4335
4338
|
};
|
|
4336
|
-
//# sourceMappingURL=Aws_restJson1.js.map
|