@aws-sdk/client-ram 3.34.0 → 3.37.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 +47 -0
- package/{dist/cjs → dist-cjs}/RAM.js +2 -28
- package/dist-cjs/RAMClient.js +35 -0
- package/{dist/cjs → dist-cjs}/commands/AcceptResourceShareInvitationCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/AssociateResourceShareCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/AssociateResourceSharePermissionCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/CreateResourceShareCommand.js +2 -34
- package/{dist/cjs → dist-cjs}/commands/DeleteResourceShareCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/DisassociateResourceShareCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/DisassociateResourceSharePermissionCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/EnableSharingWithAwsOrganizationCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/GetPermissionCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/GetResourcePoliciesCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/GetResourceShareAssociationsCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/GetResourceShareInvitationsCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/GetResourceSharesCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/ListPendingInvitationResourcesCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/ListPermissionsCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/ListPrincipalsCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/ListResourceSharePermissionsCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/ListResourceTypesCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/ListResourcesCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/PromoteResourceShareCreatedFromPolicyCommand.js +2 -39
- package/{dist/cjs → dist-cjs}/commands/RejectResourceShareInvitationCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/TagResourceCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/UntagResourceCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/UpdateResourceShareCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/endpoints.js +1 -2
- 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 -238
- package/{dist/cjs → dist-cjs}/pagination/GetResourcePoliciesPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/pagination/GetResourceShareAssociationsPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/pagination/GetResourceShareInvitationsPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/pagination/GetResourceSharesPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
- package/{dist/cjs → dist-cjs}/pagination/ListPendingInvitationResourcesPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/pagination/ListPermissionsPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/pagination/ListPrincipalsPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/pagination/ListResourceSharePermissionsPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/pagination/ListResourceTypesPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/pagination/ListResourcesPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +24 -30
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
- package/{dist/es → dist-es}/RAM.js +2 -3
- package/{dist/es → dist-es}/RAMClient.js +1 -2
- package/{dist/es → dist-es}/commands/AcceptResourceShareInvitationCommand.js +2 -3
- package/{dist/es → dist-es}/commands/AssociateResourceShareCommand.js +2 -3
- package/{dist/es → dist-es}/commands/AssociateResourceSharePermissionCommand.js +2 -3
- package/{dist/es → dist-es}/commands/CreateResourceShareCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DeleteResourceShareCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DisassociateResourceShareCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DisassociateResourceSharePermissionCommand.js +2 -3
- package/{dist/es → dist-es}/commands/EnableSharingWithAwsOrganizationCommand.js +2 -3
- package/{dist/es → dist-es}/commands/GetPermissionCommand.js +2 -3
- package/{dist/es → dist-es}/commands/GetResourcePoliciesCommand.js +2 -3
- package/{dist/es → dist-es}/commands/GetResourceShareAssociationsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/GetResourceShareInvitationsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/GetResourceSharesCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListPendingInvitationResourcesCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListPermissionsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListPrincipalsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListResourceSharePermissionsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListResourceTypesCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListResourcesCommand.js +2 -3
- package/{dist/es → dist-es}/commands/PromoteResourceShareCreatedFromPolicyCommand.js +2 -3
- package/{dist/es → dist-es}/commands/RejectResourceShareInvitationCommand.js +2 -3
- package/{dist/es → dist-es}/commands/TagResourceCommand.js +2 -3
- package/{dist/es → dist-es}/commands/UntagResourceCommand.js +2 -3
- package/{dist/es → dist-es}/commands/UpdateResourceShareCommand.js +2 -3
- 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 -1
- package/{dist/es → dist-es}/pagination/GetResourcePoliciesPaginator.js +1 -2
- package/{dist/es → dist-es}/pagination/GetResourceShareAssociationsPaginator.js +1 -2
- package/{dist/es → dist-es}/pagination/GetResourceShareInvitationsPaginator.js +1 -2
- package/{dist/es → dist-es}/pagination/GetResourceSharesPaginator.js +1 -2
- package/dist-es/pagination/Interfaces.js +1 -0
- package/{dist/es → dist-es}/pagination/ListPendingInvitationResourcesPaginator.js +1 -2
- package/{dist/es → dist-es}/pagination/ListPermissionsPaginator.js +1 -2
- package/{dist/es → dist-es}/pagination/ListPrincipalsPaginator.js +1 -2
- package/{dist/es → dist-es}/pagination/ListResourceSharePermissionsPaginator.js +1 -2
- package/{dist/es → dist-es}/pagination/ListResourceTypesPaginator.js +1 -2
- package/{dist/es → dist-es}/pagination/ListResourcesPaginator.js +1 -2
- package/{dist/es → dist-es}/protocols/Aws_restJson1.js +0 -1
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -2
- package/{dist/es → dist-es}/runtimeConfig.js +1 -2
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -1
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -2
- package/{dist/types → dist-types}/RAM.d.ts +3 -3
- package/{dist/types → dist-types}/RAMClient.d.ts +9 -9
- package/{dist/types → dist-types}/commands/AcceptResourceShareInvitationCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/AssociateResourceShareCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/AssociateResourceSharePermissionCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/CreateResourceShareCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/DeleteResourceShareCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/DisassociateResourceShareCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/DisassociateResourceSharePermissionCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/EnableSharingWithAwsOrganizationCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/GetPermissionCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/GetResourcePoliciesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/GetResourceShareAssociationsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/GetResourceShareInvitationsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/GetResourceSharesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/ListPendingInvitationResourcesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/ListPermissionsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/ListPrincipalsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/ListResourceSharePermissionsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/ListResourceTypesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/ListResourcesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/PromoteResourceShareCreatedFromPolicyCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/RejectResourceShareInvitationCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/TagResourceCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/UntagResourceCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/UpdateResourceShareCommand.d.ts +3 -3
- 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/GetResourcePoliciesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/GetResourceShareAssociationsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/GetResourceShareInvitationsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/GetResourceSharesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListPendingInvitationResourcesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListPermissionsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListPrincipalsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListResourceSharePermissionsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListResourceTypesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListResourcesPaginator.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 +0 -0
- package/{dist/types → dist-types}/runtimeConfig.d.ts +1 -1
- package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/RAM.d.ts +28 -123
- package/{dist/types → dist-types}/ts3.4/RAMClient.d.ts +33 -120
- package/{dist/types → dist-types}/ts3.4/commands/AcceptResourceShareInvitationCommand.d.ts +5 -23
- package/{dist/types → dist-types}/ts3.4/commands/AssociateResourceShareCommand.d.ts +5 -23
- package/{dist/types → dist-types}/ts3.4/commands/AssociateResourceSharePermissionCommand.d.ts +5 -23
- package/dist-types/ts3.4/commands/CreateResourceShareCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/commands/DeleteResourceShareCommand.d.ts +5 -23
- package/{dist/types → dist-types}/ts3.4/commands/DisassociateResourceShareCommand.d.ts +5 -23
- package/{dist/types → dist-types}/ts3.4/commands/DisassociateResourceSharePermissionCommand.d.ts +5 -23
- package/{dist/types → dist-types}/ts3.4/commands/EnableSharingWithAwsOrganizationCommand.d.ts +5 -24
- package/dist-types/ts3.4/commands/GetPermissionCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/commands/GetResourcePoliciesCommand.d.ts +5 -23
- package/{dist/types → dist-types}/ts3.4/commands/GetResourceShareAssociationsCommand.d.ts +5 -23
- package/{dist/types → dist-types}/ts3.4/commands/GetResourceShareInvitationsCommand.d.ts +5 -23
- package/dist-types/ts3.4/commands/GetResourceSharesCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/commands/ListPendingInvitationResourcesCommand.d.ts +5 -24
- package/{dist/types → dist-types}/ts3.4/commands/ListPermissionsCommand.d.ts +5 -23
- package/dist-types/ts3.4/commands/ListPrincipalsCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/commands/ListResourceSharePermissionsCommand.d.ts +5 -23
- package/{dist/types → dist-types}/ts3.4/commands/ListResourceTypesCommand.d.ts +5 -23
- package/dist-types/ts3.4/commands/ListResourcesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PromoteResourceShareCreatedFromPolicyCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/commands/RejectResourceShareInvitationCommand.d.ts +5 -23
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/commands/UpdateResourceShareCommand.d.ts +5 -23
- 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/ts3.4/models/models_0.d.ts +967 -0
- package/{dist/types → dist-types}/ts3.4/pagination/GetResourcePoliciesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/GetResourceShareAssociationsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/GetResourceShareInvitationsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/GetResourceSharesPaginator.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/ListPendingInvitationResourcesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListPermissionsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListPrincipalsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListResourceSharePermissionsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListResourceTypesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListResourcesPaginator.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 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -4
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +45 -42
- package/RAM.ts +0 -932
- package/RAMClient.ts +0 -377
- package/commands/AcceptResourceShareInvitationCommand.ts +0 -99
- package/commands/AssociateResourceShareCommand.ts +0 -94
- package/commands/AssociateResourceSharePermissionCommand.ts +0 -102
- package/commands/CreateResourceShareCommand.ts +0 -101
- package/commands/DeleteResourceShareCommand.ts +0 -94
- package/commands/DisassociateResourceShareCommand.ts +0 -97
- package/commands/DisassociateResourceSharePermissionCommand.ts +0 -105
- package/commands/EnableSharingWithAwsOrganizationCommand.ts +0 -103
- package/commands/GetPermissionCommand.ts +0 -94
- package/commands/GetResourcePoliciesCommand.ts +0 -94
- package/commands/GetResourceShareAssociationsCommand.ts +0 -99
- package/commands/GetResourceShareInvitationsCommand.ts +0 -99
- package/commands/GetResourceSharesCommand.ts +0 -94
- package/commands/ListPendingInvitationResourcesCommand.ts +0 -103
- package/commands/ListPermissionsCommand.ts +0 -94
- package/commands/ListPrincipalsCommand.ts +0 -95
- package/commands/ListResourceSharePermissionsCommand.ts +0 -99
- package/commands/ListResourceTypesCommand.ts +0 -94
- package/commands/ListResourcesCommand.ts +0 -95
- package/commands/PromoteResourceShareCreatedFromPolicyCommand.ts +0 -118
- package/commands/RejectResourceShareInvitationCommand.ts +0 -99
- package/commands/TagResourceCommand.ts +0 -94
- package/commands/UntagResourceCommand.ts +0 -94
- package/commands/UpdateResourceShareCommand.ts +0 -94
- package/dist/cjs/RAM.js.map +0 -1
- package/dist/cjs/RAMClient.js +0 -66
- package/dist/cjs/RAMClient.js.map +0 -1
- package/dist/cjs/commands/AcceptResourceShareInvitationCommand.js.map +0 -1
- package/dist/cjs/commands/AssociateResourceShareCommand.js.map +0 -1
- package/dist/cjs/commands/AssociateResourceSharePermissionCommand.js.map +0 -1
- package/dist/cjs/commands/CreateResourceShareCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteResourceShareCommand.js.map +0 -1
- package/dist/cjs/commands/DisassociateResourceShareCommand.js.map +0 -1
- package/dist/cjs/commands/DisassociateResourceSharePermissionCommand.js.map +0 -1
- package/dist/cjs/commands/EnableSharingWithAwsOrganizationCommand.js.map +0 -1
- package/dist/cjs/commands/GetPermissionCommand.js.map +0 -1
- package/dist/cjs/commands/GetResourcePoliciesCommand.js.map +0 -1
- package/dist/cjs/commands/GetResourceShareAssociationsCommand.js.map +0 -1
- package/dist/cjs/commands/GetResourceShareInvitationsCommand.js.map +0 -1
- package/dist/cjs/commands/GetResourceSharesCommand.js.map +0 -1
- package/dist/cjs/commands/ListPendingInvitationResourcesCommand.js.map +0 -1
- package/dist/cjs/commands/ListPermissionsCommand.js.map +0 -1
- package/dist/cjs/commands/ListPrincipalsCommand.js.map +0 -1
- package/dist/cjs/commands/ListResourceSharePermissionsCommand.js.map +0 -1
- package/dist/cjs/commands/ListResourceTypesCommand.js.map +0 -1
- package/dist/cjs/commands/ListResourcesCommand.js.map +0 -1
- package/dist/cjs/commands/PromoteResourceShareCreatedFromPolicyCommand.js.map +0 -1
- package/dist/cjs/commands/RejectResourceShareInvitationCommand.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/UpdateResourceShareCommand.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 -91
- package/dist/cjs/pagination/GetResourcePoliciesPaginator.js.map +0 -1
- package/dist/cjs/pagination/GetResourceShareAssociationsPaginator.js.map +0 -1
- package/dist/cjs/pagination/GetResourceShareInvitationsPaginator.js.map +0 -1
- package/dist/cjs/pagination/GetResourceSharesPaginator.js.map +0 -1
- package/dist/cjs/pagination/Interfaces.js.map +0 -1
- package/dist/cjs/pagination/ListPendingInvitationResourcesPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListPermissionsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListPrincipalsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListResourceSharePermissionsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListResourceTypesPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListResourcesPaginator.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/RAM.js.map +0 -1
- package/dist/es/RAMClient.js.map +0 -1
- package/dist/es/commands/AcceptResourceShareInvitationCommand.js.map +0 -1
- package/dist/es/commands/AssociateResourceShareCommand.js.map +0 -1
- package/dist/es/commands/AssociateResourceSharePermissionCommand.js.map +0 -1
- package/dist/es/commands/CreateResourceShareCommand.js.map +0 -1
- package/dist/es/commands/DeleteResourceShareCommand.js.map +0 -1
- package/dist/es/commands/DisassociateResourceShareCommand.js.map +0 -1
- package/dist/es/commands/DisassociateResourceSharePermissionCommand.js.map +0 -1
- package/dist/es/commands/EnableSharingWithAwsOrganizationCommand.js.map +0 -1
- package/dist/es/commands/GetPermissionCommand.js.map +0 -1
- package/dist/es/commands/GetResourcePoliciesCommand.js.map +0 -1
- package/dist/es/commands/GetResourceShareAssociationsCommand.js.map +0 -1
- package/dist/es/commands/GetResourceShareInvitationsCommand.js.map +0 -1
- package/dist/es/commands/GetResourceSharesCommand.js.map +0 -1
- package/dist/es/commands/ListPendingInvitationResourcesCommand.js.map +0 -1
- package/dist/es/commands/ListPermissionsCommand.js.map +0 -1
- package/dist/es/commands/ListPrincipalsCommand.js.map +0 -1
- package/dist/es/commands/ListResourceSharePermissionsCommand.js.map +0 -1
- package/dist/es/commands/ListResourceTypesCommand.js.map +0 -1
- package/dist/es/commands/ListResourcesCommand.js.map +0 -1
- package/dist/es/commands/PromoteResourceShareCreatedFromPolicyCommand.js.map +0 -1
- package/dist/es/commands/RejectResourceShareInvitationCommand.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/UpdateResourceShareCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js +0 -39
- 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 -91
- package/dist/es/pagination/GetResourcePoliciesPaginator.js.map +0 -1
- package/dist/es/pagination/GetResourceShareAssociationsPaginator.js.map +0 -1
- package/dist/es/pagination/GetResourceShareInvitationsPaginator.js.map +0 -1
- package/dist/es/pagination/GetResourceSharesPaginator.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/ListPendingInvitationResourcesPaginator.js.map +0 -1
- package/dist/es/pagination/ListPermissionsPaginator.js.map +0 -1
- package/dist/es/pagination/ListPrincipalsPaginator.js.map +0 -1
- package/dist/es/pagination/ListResourceSharePermissionsPaginator.js.map +0 -1
- package/dist/es/pagination/ListResourceTypesPaginator.js.map +0 -1
- package/dist/es/pagination/ListResourcesPaginator.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/dist/types/ts3.4/commands/CreateResourceShareCommand.d.ts +0 -42
- package/dist/types/ts3.4/commands/GetPermissionCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/GetResourceSharesCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/ListPrincipalsCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/ListResourcesCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/PromoteResourceShareCreatedFromPolicyCommand.d.ts +0 -47
- package/dist/types/ts3.4/commands/TagResourceCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/UntagResourceCommand.d.ts +0 -35
- package/dist/types/ts3.4/models/models_0.d.ts +0 -1701
- package/endpoints.ts +0 -91
- package/jest.config.js +0 -4
- package/models/models_0.ts +0 -2165
- package/pagination/GetResourcePoliciesPaginator.ts +0 -58
- package/pagination/GetResourceShareAssociationsPaginator.ts +0 -58
- package/pagination/GetResourceShareInvitationsPaginator.ts +0 -58
- package/pagination/GetResourceSharesPaginator.ts +0 -58
- package/pagination/Interfaces.ts +0 -7
- package/pagination/ListPendingInvitationResourcesPaginator.ts +0 -58
- package/pagination/ListPermissionsPaginator.ts +0 -58
- package/pagination/ListPrincipalsPaginator.ts +0 -58
- package/pagination/ListResourceSharePermissionsPaginator.ts +0 -58
- package/pagination/ListResourceTypesPaginator.ts +0 -58
- package/pagination/ListResourcesPaginator.ts +0 -58
- package/protocols/Aws_restJson1.ts +0 -4305
- 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 -10
- package/tsconfig.json +0 -31
- package/tsconfig.types.json +0 -8
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { RAM } from "../RAM";
|
|
2
|
-
import { RAMClient } from "../RAMClient";
|
|
3
|
-
import {
|
|
4
|
-
GetResourcePoliciesCommand,
|
|
5
|
-
GetResourcePoliciesCommandInput,
|
|
6
|
-
GetResourcePoliciesCommandOutput,
|
|
7
|
-
} from "../commands/GetResourcePoliciesCommand";
|
|
8
|
-
import { RAMPaginationConfiguration } from "./Interfaces";
|
|
9
|
-
import { Paginator } from "@aws-sdk/types";
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @private
|
|
13
|
-
*/
|
|
14
|
-
const makePagedClientRequest = async (
|
|
15
|
-
client: RAMClient,
|
|
16
|
-
input: GetResourcePoliciesCommandInput,
|
|
17
|
-
...args: any
|
|
18
|
-
): Promise<GetResourcePoliciesCommandOutput> => {
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
return await client.send(new GetResourcePoliciesCommand(input), ...args);
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* @private
|
|
24
|
-
*/
|
|
25
|
-
const makePagedRequest = async (
|
|
26
|
-
client: RAM,
|
|
27
|
-
input: GetResourcePoliciesCommandInput,
|
|
28
|
-
...args: any
|
|
29
|
-
): Promise<GetResourcePoliciesCommandOutput> => {
|
|
30
|
-
// @ts-ignore
|
|
31
|
-
return await client.getResourcePolicies(input, ...args);
|
|
32
|
-
};
|
|
33
|
-
export async function* paginateGetResourcePolicies(
|
|
34
|
-
config: RAMPaginationConfiguration,
|
|
35
|
-
input: GetResourcePoliciesCommandInput,
|
|
36
|
-
...additionalArguments: any
|
|
37
|
-
): Paginator<GetResourcePoliciesCommandOutput> {
|
|
38
|
-
// ToDo: replace with actual type instead of typeof input.nextToken
|
|
39
|
-
let token: typeof input.nextToken | undefined = config.startingToken || undefined;
|
|
40
|
-
let hasNext = true;
|
|
41
|
-
let page: GetResourcePoliciesCommandOutput;
|
|
42
|
-
while (hasNext) {
|
|
43
|
-
input.nextToken = token;
|
|
44
|
-
input["maxResults"] = config.pageSize;
|
|
45
|
-
if (config.client instanceof RAM) {
|
|
46
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
47
|
-
} else if (config.client instanceof RAMClient) {
|
|
48
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
49
|
-
} else {
|
|
50
|
-
throw new Error("Invalid client, expected RAM | RAMClient");
|
|
51
|
-
}
|
|
52
|
-
yield page;
|
|
53
|
-
token = page.nextToken;
|
|
54
|
-
hasNext = !!token;
|
|
55
|
-
}
|
|
56
|
-
// @ts-ignore
|
|
57
|
-
return undefined;
|
|
58
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { RAM } from "../RAM";
|
|
2
|
-
import { RAMClient } from "../RAMClient";
|
|
3
|
-
import {
|
|
4
|
-
GetResourceShareAssociationsCommand,
|
|
5
|
-
GetResourceShareAssociationsCommandInput,
|
|
6
|
-
GetResourceShareAssociationsCommandOutput,
|
|
7
|
-
} from "../commands/GetResourceShareAssociationsCommand";
|
|
8
|
-
import { RAMPaginationConfiguration } from "./Interfaces";
|
|
9
|
-
import { Paginator } from "@aws-sdk/types";
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @private
|
|
13
|
-
*/
|
|
14
|
-
const makePagedClientRequest = async (
|
|
15
|
-
client: RAMClient,
|
|
16
|
-
input: GetResourceShareAssociationsCommandInput,
|
|
17
|
-
...args: any
|
|
18
|
-
): Promise<GetResourceShareAssociationsCommandOutput> => {
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
return await client.send(new GetResourceShareAssociationsCommand(input), ...args);
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* @private
|
|
24
|
-
*/
|
|
25
|
-
const makePagedRequest = async (
|
|
26
|
-
client: RAM,
|
|
27
|
-
input: GetResourceShareAssociationsCommandInput,
|
|
28
|
-
...args: any
|
|
29
|
-
): Promise<GetResourceShareAssociationsCommandOutput> => {
|
|
30
|
-
// @ts-ignore
|
|
31
|
-
return await client.getResourceShareAssociations(input, ...args);
|
|
32
|
-
};
|
|
33
|
-
export async function* paginateGetResourceShareAssociations(
|
|
34
|
-
config: RAMPaginationConfiguration,
|
|
35
|
-
input: GetResourceShareAssociationsCommandInput,
|
|
36
|
-
...additionalArguments: any
|
|
37
|
-
): Paginator<GetResourceShareAssociationsCommandOutput> {
|
|
38
|
-
// ToDo: replace with actual type instead of typeof input.nextToken
|
|
39
|
-
let token: typeof input.nextToken | undefined = config.startingToken || undefined;
|
|
40
|
-
let hasNext = true;
|
|
41
|
-
let page: GetResourceShareAssociationsCommandOutput;
|
|
42
|
-
while (hasNext) {
|
|
43
|
-
input.nextToken = token;
|
|
44
|
-
input["maxResults"] = config.pageSize;
|
|
45
|
-
if (config.client instanceof RAM) {
|
|
46
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
47
|
-
} else if (config.client instanceof RAMClient) {
|
|
48
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
49
|
-
} else {
|
|
50
|
-
throw new Error("Invalid client, expected RAM | RAMClient");
|
|
51
|
-
}
|
|
52
|
-
yield page;
|
|
53
|
-
token = page.nextToken;
|
|
54
|
-
hasNext = !!token;
|
|
55
|
-
}
|
|
56
|
-
// @ts-ignore
|
|
57
|
-
return undefined;
|
|
58
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { RAM } from "../RAM";
|
|
2
|
-
import { RAMClient } from "../RAMClient";
|
|
3
|
-
import {
|
|
4
|
-
GetResourceShareInvitationsCommand,
|
|
5
|
-
GetResourceShareInvitationsCommandInput,
|
|
6
|
-
GetResourceShareInvitationsCommandOutput,
|
|
7
|
-
} from "../commands/GetResourceShareInvitationsCommand";
|
|
8
|
-
import { RAMPaginationConfiguration } from "./Interfaces";
|
|
9
|
-
import { Paginator } from "@aws-sdk/types";
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @private
|
|
13
|
-
*/
|
|
14
|
-
const makePagedClientRequest = async (
|
|
15
|
-
client: RAMClient,
|
|
16
|
-
input: GetResourceShareInvitationsCommandInput,
|
|
17
|
-
...args: any
|
|
18
|
-
): Promise<GetResourceShareInvitationsCommandOutput> => {
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
return await client.send(new GetResourceShareInvitationsCommand(input), ...args);
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* @private
|
|
24
|
-
*/
|
|
25
|
-
const makePagedRequest = async (
|
|
26
|
-
client: RAM,
|
|
27
|
-
input: GetResourceShareInvitationsCommandInput,
|
|
28
|
-
...args: any
|
|
29
|
-
): Promise<GetResourceShareInvitationsCommandOutput> => {
|
|
30
|
-
// @ts-ignore
|
|
31
|
-
return await client.getResourceShareInvitations(input, ...args);
|
|
32
|
-
};
|
|
33
|
-
export async function* paginateGetResourceShareInvitations(
|
|
34
|
-
config: RAMPaginationConfiguration,
|
|
35
|
-
input: GetResourceShareInvitationsCommandInput,
|
|
36
|
-
...additionalArguments: any
|
|
37
|
-
): Paginator<GetResourceShareInvitationsCommandOutput> {
|
|
38
|
-
// ToDo: replace with actual type instead of typeof input.nextToken
|
|
39
|
-
let token: typeof input.nextToken | undefined = config.startingToken || undefined;
|
|
40
|
-
let hasNext = true;
|
|
41
|
-
let page: GetResourceShareInvitationsCommandOutput;
|
|
42
|
-
while (hasNext) {
|
|
43
|
-
input.nextToken = token;
|
|
44
|
-
input["maxResults"] = config.pageSize;
|
|
45
|
-
if (config.client instanceof RAM) {
|
|
46
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
47
|
-
} else if (config.client instanceof RAMClient) {
|
|
48
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
49
|
-
} else {
|
|
50
|
-
throw new Error("Invalid client, expected RAM | RAMClient");
|
|
51
|
-
}
|
|
52
|
-
yield page;
|
|
53
|
-
token = page.nextToken;
|
|
54
|
-
hasNext = !!token;
|
|
55
|
-
}
|
|
56
|
-
// @ts-ignore
|
|
57
|
-
return undefined;
|
|
58
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { RAM } from "../RAM";
|
|
2
|
-
import { RAMClient } from "../RAMClient";
|
|
3
|
-
import {
|
|
4
|
-
GetResourceSharesCommand,
|
|
5
|
-
GetResourceSharesCommandInput,
|
|
6
|
-
GetResourceSharesCommandOutput,
|
|
7
|
-
} from "../commands/GetResourceSharesCommand";
|
|
8
|
-
import { RAMPaginationConfiguration } from "./Interfaces";
|
|
9
|
-
import { Paginator } from "@aws-sdk/types";
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @private
|
|
13
|
-
*/
|
|
14
|
-
const makePagedClientRequest = async (
|
|
15
|
-
client: RAMClient,
|
|
16
|
-
input: GetResourceSharesCommandInput,
|
|
17
|
-
...args: any
|
|
18
|
-
): Promise<GetResourceSharesCommandOutput> => {
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
return await client.send(new GetResourceSharesCommand(input), ...args);
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* @private
|
|
24
|
-
*/
|
|
25
|
-
const makePagedRequest = async (
|
|
26
|
-
client: RAM,
|
|
27
|
-
input: GetResourceSharesCommandInput,
|
|
28
|
-
...args: any
|
|
29
|
-
): Promise<GetResourceSharesCommandOutput> => {
|
|
30
|
-
// @ts-ignore
|
|
31
|
-
return await client.getResourceShares(input, ...args);
|
|
32
|
-
};
|
|
33
|
-
export async function* paginateGetResourceShares(
|
|
34
|
-
config: RAMPaginationConfiguration,
|
|
35
|
-
input: GetResourceSharesCommandInput,
|
|
36
|
-
...additionalArguments: any
|
|
37
|
-
): Paginator<GetResourceSharesCommandOutput> {
|
|
38
|
-
// ToDo: replace with actual type instead of typeof input.nextToken
|
|
39
|
-
let token: typeof input.nextToken | undefined = config.startingToken || undefined;
|
|
40
|
-
let hasNext = true;
|
|
41
|
-
let page: GetResourceSharesCommandOutput;
|
|
42
|
-
while (hasNext) {
|
|
43
|
-
input.nextToken = token;
|
|
44
|
-
input["maxResults"] = config.pageSize;
|
|
45
|
-
if (config.client instanceof RAM) {
|
|
46
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
47
|
-
} else if (config.client instanceof RAMClient) {
|
|
48
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
49
|
-
} else {
|
|
50
|
-
throw new Error("Invalid client, expected RAM | RAMClient");
|
|
51
|
-
}
|
|
52
|
-
yield page;
|
|
53
|
-
token = page.nextToken;
|
|
54
|
-
hasNext = !!token;
|
|
55
|
-
}
|
|
56
|
-
// @ts-ignore
|
|
57
|
-
return undefined;
|
|
58
|
-
}
|
package/pagination/Interfaces.ts
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { RAM } from "../RAM";
|
|
2
|
-
import { RAMClient } from "../RAMClient";
|
|
3
|
-
import {
|
|
4
|
-
ListPendingInvitationResourcesCommand,
|
|
5
|
-
ListPendingInvitationResourcesCommandInput,
|
|
6
|
-
ListPendingInvitationResourcesCommandOutput,
|
|
7
|
-
} from "../commands/ListPendingInvitationResourcesCommand";
|
|
8
|
-
import { RAMPaginationConfiguration } from "./Interfaces";
|
|
9
|
-
import { Paginator } from "@aws-sdk/types";
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @private
|
|
13
|
-
*/
|
|
14
|
-
const makePagedClientRequest = async (
|
|
15
|
-
client: RAMClient,
|
|
16
|
-
input: ListPendingInvitationResourcesCommandInput,
|
|
17
|
-
...args: any
|
|
18
|
-
): Promise<ListPendingInvitationResourcesCommandOutput> => {
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
return await client.send(new ListPendingInvitationResourcesCommand(input), ...args);
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* @private
|
|
24
|
-
*/
|
|
25
|
-
const makePagedRequest = async (
|
|
26
|
-
client: RAM,
|
|
27
|
-
input: ListPendingInvitationResourcesCommandInput,
|
|
28
|
-
...args: any
|
|
29
|
-
): Promise<ListPendingInvitationResourcesCommandOutput> => {
|
|
30
|
-
// @ts-ignore
|
|
31
|
-
return await client.listPendingInvitationResources(input, ...args);
|
|
32
|
-
};
|
|
33
|
-
export async function* paginateListPendingInvitationResources(
|
|
34
|
-
config: RAMPaginationConfiguration,
|
|
35
|
-
input: ListPendingInvitationResourcesCommandInput,
|
|
36
|
-
...additionalArguments: any
|
|
37
|
-
): Paginator<ListPendingInvitationResourcesCommandOutput> {
|
|
38
|
-
// ToDo: replace with actual type instead of typeof input.nextToken
|
|
39
|
-
let token: typeof input.nextToken | undefined = config.startingToken || undefined;
|
|
40
|
-
let hasNext = true;
|
|
41
|
-
let page: ListPendingInvitationResourcesCommandOutput;
|
|
42
|
-
while (hasNext) {
|
|
43
|
-
input.nextToken = token;
|
|
44
|
-
input["maxResults"] = config.pageSize;
|
|
45
|
-
if (config.client instanceof RAM) {
|
|
46
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
47
|
-
} else if (config.client instanceof RAMClient) {
|
|
48
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
49
|
-
} else {
|
|
50
|
-
throw new Error("Invalid client, expected RAM | RAMClient");
|
|
51
|
-
}
|
|
52
|
-
yield page;
|
|
53
|
-
token = page.nextToken;
|
|
54
|
-
hasNext = !!token;
|
|
55
|
-
}
|
|
56
|
-
// @ts-ignore
|
|
57
|
-
return undefined;
|
|
58
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { RAM } from "../RAM";
|
|
2
|
-
import { RAMClient } from "../RAMClient";
|
|
3
|
-
import {
|
|
4
|
-
ListPermissionsCommand,
|
|
5
|
-
ListPermissionsCommandInput,
|
|
6
|
-
ListPermissionsCommandOutput,
|
|
7
|
-
} from "../commands/ListPermissionsCommand";
|
|
8
|
-
import { RAMPaginationConfiguration } from "./Interfaces";
|
|
9
|
-
import { Paginator } from "@aws-sdk/types";
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @private
|
|
13
|
-
*/
|
|
14
|
-
const makePagedClientRequest = async (
|
|
15
|
-
client: RAMClient,
|
|
16
|
-
input: ListPermissionsCommandInput,
|
|
17
|
-
...args: any
|
|
18
|
-
): Promise<ListPermissionsCommandOutput> => {
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
return await client.send(new ListPermissionsCommand(input), ...args);
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* @private
|
|
24
|
-
*/
|
|
25
|
-
const makePagedRequest = async (
|
|
26
|
-
client: RAM,
|
|
27
|
-
input: ListPermissionsCommandInput,
|
|
28
|
-
...args: any
|
|
29
|
-
): Promise<ListPermissionsCommandOutput> => {
|
|
30
|
-
// @ts-ignore
|
|
31
|
-
return await client.listPermissions(input, ...args);
|
|
32
|
-
};
|
|
33
|
-
export async function* paginateListPermissions(
|
|
34
|
-
config: RAMPaginationConfiguration,
|
|
35
|
-
input: ListPermissionsCommandInput,
|
|
36
|
-
...additionalArguments: any
|
|
37
|
-
): Paginator<ListPermissionsCommandOutput> {
|
|
38
|
-
// ToDo: replace with actual type instead of typeof input.nextToken
|
|
39
|
-
let token: typeof input.nextToken | undefined = config.startingToken || undefined;
|
|
40
|
-
let hasNext = true;
|
|
41
|
-
let page: ListPermissionsCommandOutput;
|
|
42
|
-
while (hasNext) {
|
|
43
|
-
input.nextToken = token;
|
|
44
|
-
input["maxResults"] = config.pageSize;
|
|
45
|
-
if (config.client instanceof RAM) {
|
|
46
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
47
|
-
} else if (config.client instanceof RAMClient) {
|
|
48
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
49
|
-
} else {
|
|
50
|
-
throw new Error("Invalid client, expected RAM | RAMClient");
|
|
51
|
-
}
|
|
52
|
-
yield page;
|
|
53
|
-
token = page.nextToken;
|
|
54
|
-
hasNext = !!token;
|
|
55
|
-
}
|
|
56
|
-
// @ts-ignore
|
|
57
|
-
return undefined;
|
|
58
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { RAM } from "../RAM";
|
|
2
|
-
import { RAMClient } from "../RAMClient";
|
|
3
|
-
import {
|
|
4
|
-
ListPrincipalsCommand,
|
|
5
|
-
ListPrincipalsCommandInput,
|
|
6
|
-
ListPrincipalsCommandOutput,
|
|
7
|
-
} from "../commands/ListPrincipalsCommand";
|
|
8
|
-
import { RAMPaginationConfiguration } from "./Interfaces";
|
|
9
|
-
import { Paginator } from "@aws-sdk/types";
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @private
|
|
13
|
-
*/
|
|
14
|
-
const makePagedClientRequest = async (
|
|
15
|
-
client: RAMClient,
|
|
16
|
-
input: ListPrincipalsCommandInput,
|
|
17
|
-
...args: any
|
|
18
|
-
): Promise<ListPrincipalsCommandOutput> => {
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
return await client.send(new ListPrincipalsCommand(input), ...args);
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* @private
|
|
24
|
-
*/
|
|
25
|
-
const makePagedRequest = async (
|
|
26
|
-
client: RAM,
|
|
27
|
-
input: ListPrincipalsCommandInput,
|
|
28
|
-
...args: any
|
|
29
|
-
): Promise<ListPrincipalsCommandOutput> => {
|
|
30
|
-
// @ts-ignore
|
|
31
|
-
return await client.listPrincipals(input, ...args);
|
|
32
|
-
};
|
|
33
|
-
export async function* paginateListPrincipals(
|
|
34
|
-
config: RAMPaginationConfiguration,
|
|
35
|
-
input: ListPrincipalsCommandInput,
|
|
36
|
-
...additionalArguments: any
|
|
37
|
-
): Paginator<ListPrincipalsCommandOutput> {
|
|
38
|
-
// ToDo: replace with actual type instead of typeof input.nextToken
|
|
39
|
-
let token: typeof input.nextToken | undefined = config.startingToken || undefined;
|
|
40
|
-
let hasNext = true;
|
|
41
|
-
let page: ListPrincipalsCommandOutput;
|
|
42
|
-
while (hasNext) {
|
|
43
|
-
input.nextToken = token;
|
|
44
|
-
input["maxResults"] = config.pageSize;
|
|
45
|
-
if (config.client instanceof RAM) {
|
|
46
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
47
|
-
} else if (config.client instanceof RAMClient) {
|
|
48
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
49
|
-
} else {
|
|
50
|
-
throw new Error("Invalid client, expected RAM | RAMClient");
|
|
51
|
-
}
|
|
52
|
-
yield page;
|
|
53
|
-
token = page.nextToken;
|
|
54
|
-
hasNext = !!token;
|
|
55
|
-
}
|
|
56
|
-
// @ts-ignore
|
|
57
|
-
return undefined;
|
|
58
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { RAM } from "../RAM";
|
|
2
|
-
import { RAMClient } from "../RAMClient";
|
|
3
|
-
import {
|
|
4
|
-
ListResourceSharePermissionsCommand,
|
|
5
|
-
ListResourceSharePermissionsCommandInput,
|
|
6
|
-
ListResourceSharePermissionsCommandOutput,
|
|
7
|
-
} from "../commands/ListResourceSharePermissionsCommand";
|
|
8
|
-
import { RAMPaginationConfiguration } from "./Interfaces";
|
|
9
|
-
import { Paginator } from "@aws-sdk/types";
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @private
|
|
13
|
-
*/
|
|
14
|
-
const makePagedClientRequest = async (
|
|
15
|
-
client: RAMClient,
|
|
16
|
-
input: ListResourceSharePermissionsCommandInput,
|
|
17
|
-
...args: any
|
|
18
|
-
): Promise<ListResourceSharePermissionsCommandOutput> => {
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
return await client.send(new ListResourceSharePermissionsCommand(input), ...args);
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* @private
|
|
24
|
-
*/
|
|
25
|
-
const makePagedRequest = async (
|
|
26
|
-
client: RAM,
|
|
27
|
-
input: ListResourceSharePermissionsCommandInput,
|
|
28
|
-
...args: any
|
|
29
|
-
): Promise<ListResourceSharePermissionsCommandOutput> => {
|
|
30
|
-
// @ts-ignore
|
|
31
|
-
return await client.listResourceSharePermissions(input, ...args);
|
|
32
|
-
};
|
|
33
|
-
export async function* paginateListResourceSharePermissions(
|
|
34
|
-
config: RAMPaginationConfiguration,
|
|
35
|
-
input: ListResourceSharePermissionsCommandInput,
|
|
36
|
-
...additionalArguments: any
|
|
37
|
-
): Paginator<ListResourceSharePermissionsCommandOutput> {
|
|
38
|
-
// ToDo: replace with actual type instead of typeof input.nextToken
|
|
39
|
-
let token: typeof input.nextToken | undefined = config.startingToken || undefined;
|
|
40
|
-
let hasNext = true;
|
|
41
|
-
let page: ListResourceSharePermissionsCommandOutput;
|
|
42
|
-
while (hasNext) {
|
|
43
|
-
input.nextToken = token;
|
|
44
|
-
input["maxResults"] = config.pageSize;
|
|
45
|
-
if (config.client instanceof RAM) {
|
|
46
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
47
|
-
} else if (config.client instanceof RAMClient) {
|
|
48
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
49
|
-
} else {
|
|
50
|
-
throw new Error("Invalid client, expected RAM | RAMClient");
|
|
51
|
-
}
|
|
52
|
-
yield page;
|
|
53
|
-
token = page.nextToken;
|
|
54
|
-
hasNext = !!token;
|
|
55
|
-
}
|
|
56
|
-
// @ts-ignore
|
|
57
|
-
return undefined;
|
|
58
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { RAM } from "../RAM";
|
|
2
|
-
import { RAMClient } from "../RAMClient";
|
|
3
|
-
import {
|
|
4
|
-
ListResourceTypesCommand,
|
|
5
|
-
ListResourceTypesCommandInput,
|
|
6
|
-
ListResourceTypesCommandOutput,
|
|
7
|
-
} from "../commands/ListResourceTypesCommand";
|
|
8
|
-
import { RAMPaginationConfiguration } from "./Interfaces";
|
|
9
|
-
import { Paginator } from "@aws-sdk/types";
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @private
|
|
13
|
-
*/
|
|
14
|
-
const makePagedClientRequest = async (
|
|
15
|
-
client: RAMClient,
|
|
16
|
-
input: ListResourceTypesCommandInput,
|
|
17
|
-
...args: any
|
|
18
|
-
): Promise<ListResourceTypesCommandOutput> => {
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
return await client.send(new ListResourceTypesCommand(input), ...args);
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* @private
|
|
24
|
-
*/
|
|
25
|
-
const makePagedRequest = async (
|
|
26
|
-
client: RAM,
|
|
27
|
-
input: ListResourceTypesCommandInput,
|
|
28
|
-
...args: any
|
|
29
|
-
): Promise<ListResourceTypesCommandOutput> => {
|
|
30
|
-
// @ts-ignore
|
|
31
|
-
return await client.listResourceTypes(input, ...args);
|
|
32
|
-
};
|
|
33
|
-
export async function* paginateListResourceTypes(
|
|
34
|
-
config: RAMPaginationConfiguration,
|
|
35
|
-
input: ListResourceTypesCommandInput,
|
|
36
|
-
...additionalArguments: any
|
|
37
|
-
): Paginator<ListResourceTypesCommandOutput> {
|
|
38
|
-
// ToDo: replace with actual type instead of typeof input.nextToken
|
|
39
|
-
let token: typeof input.nextToken | undefined = config.startingToken || undefined;
|
|
40
|
-
let hasNext = true;
|
|
41
|
-
let page: ListResourceTypesCommandOutput;
|
|
42
|
-
while (hasNext) {
|
|
43
|
-
input.nextToken = token;
|
|
44
|
-
input["maxResults"] = config.pageSize;
|
|
45
|
-
if (config.client instanceof RAM) {
|
|
46
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
47
|
-
} else if (config.client instanceof RAMClient) {
|
|
48
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
49
|
-
} else {
|
|
50
|
-
throw new Error("Invalid client, expected RAM | RAMClient");
|
|
51
|
-
}
|
|
52
|
-
yield page;
|
|
53
|
-
token = page.nextToken;
|
|
54
|
-
hasNext = !!token;
|
|
55
|
-
}
|
|
56
|
-
// @ts-ignore
|
|
57
|
-
return undefined;
|
|
58
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { RAM } from "../RAM";
|
|
2
|
-
import { RAMClient } from "../RAMClient";
|
|
3
|
-
import {
|
|
4
|
-
ListResourcesCommand,
|
|
5
|
-
ListResourcesCommandInput,
|
|
6
|
-
ListResourcesCommandOutput,
|
|
7
|
-
} from "../commands/ListResourcesCommand";
|
|
8
|
-
import { RAMPaginationConfiguration } from "./Interfaces";
|
|
9
|
-
import { Paginator } from "@aws-sdk/types";
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @private
|
|
13
|
-
*/
|
|
14
|
-
const makePagedClientRequest = async (
|
|
15
|
-
client: RAMClient,
|
|
16
|
-
input: ListResourcesCommandInput,
|
|
17
|
-
...args: any
|
|
18
|
-
): Promise<ListResourcesCommandOutput> => {
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
return await client.send(new ListResourcesCommand(input), ...args);
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* @private
|
|
24
|
-
*/
|
|
25
|
-
const makePagedRequest = async (
|
|
26
|
-
client: RAM,
|
|
27
|
-
input: ListResourcesCommandInput,
|
|
28
|
-
...args: any
|
|
29
|
-
): Promise<ListResourcesCommandOutput> => {
|
|
30
|
-
// @ts-ignore
|
|
31
|
-
return await client.listResources(input, ...args);
|
|
32
|
-
};
|
|
33
|
-
export async function* paginateListResources(
|
|
34
|
-
config: RAMPaginationConfiguration,
|
|
35
|
-
input: ListResourcesCommandInput,
|
|
36
|
-
...additionalArguments: any
|
|
37
|
-
): Paginator<ListResourcesCommandOutput> {
|
|
38
|
-
// ToDo: replace with actual type instead of typeof input.nextToken
|
|
39
|
-
let token: typeof input.nextToken | undefined = config.startingToken || undefined;
|
|
40
|
-
let hasNext = true;
|
|
41
|
-
let page: ListResourcesCommandOutput;
|
|
42
|
-
while (hasNext) {
|
|
43
|
-
input.nextToken = token;
|
|
44
|
-
input["maxResults"] = config.pageSize;
|
|
45
|
-
if (config.client instanceof RAM) {
|
|
46
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
47
|
-
} else if (config.client instanceof RAMClient) {
|
|
48
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
49
|
-
} else {
|
|
50
|
-
throw new Error("Invalid client, expected RAM | RAMClient");
|
|
51
|
-
}
|
|
52
|
-
yield page;
|
|
53
|
-
token = page.nextToken;
|
|
54
|
-
hasNext = !!token;
|
|
55
|
-
}
|
|
56
|
-
// @ts-ignore
|
|
57
|
-
return undefined;
|
|
58
|
-
}
|