@aws-sdk/client-ram 3.982.0 → 3.984.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.
Files changed (49) hide show
  1. package/README.md +7 -0
  2. package/dist-cjs/index.js +56 -0
  3. package/dist-es/RAM.js +4 -0
  4. package/dist-es/commands/ListSourceAssociationsCommand.js +16 -0
  5. package/dist-es/commands/index.js +1 -0
  6. package/dist-es/models/enums.js +4 -0
  7. package/dist-es/pagination/ListSourceAssociationsPaginator.js +4 -0
  8. package/dist-es/pagination/index.js +1 -0
  9. package/dist-es/schemas/schemas_0.js +30 -0
  10. package/dist-types/RAM.d.ts +15 -0
  11. package/dist-types/RAMClient.d.ts +3 -2
  12. package/dist-types/commands/AcceptResourceShareInvitationCommand.d.ts +2 -2
  13. package/dist-types/commands/AssociateResourceShareCommand.d.ts +7 -6
  14. package/dist-types/commands/CreateResourceShareCommand.d.ts +10 -5
  15. package/dist-types/commands/DeleteResourceShareCommand.d.ts +4 -0
  16. package/dist-types/commands/DisassociateResourceShareCommand.d.ts +11 -6
  17. package/dist-types/commands/GetResourcePoliciesCommand.d.ts +7 -0
  18. package/dist-types/commands/GetResourceShareAssociationsCommand.d.ts +11 -4
  19. package/dist-types/commands/GetResourceShareInvitationsCommand.d.ts +9 -2
  20. package/dist-types/commands/GetResourceSharesCommand.d.ts +7 -0
  21. package/dist-types/commands/ListPendingInvitationResourcesCommand.d.ts +7 -0
  22. package/dist-types/commands/ListPermissionAssociationsCommand.d.ts +8 -1
  23. package/dist-types/commands/ListPermissionVersionsCommand.d.ts +7 -0
  24. package/dist-types/commands/ListPermissionsCommand.d.ts +7 -0
  25. package/dist-types/commands/ListPrincipalsCommand.d.ts +7 -0
  26. package/dist-types/commands/ListReplacePermissionAssociationsWorkCommand.d.ts +7 -0
  27. package/dist-types/commands/ListResourceSharePermissionsCommand.d.ts +7 -0
  28. package/dist-types/commands/ListResourcesCommand.d.ts +7 -0
  29. package/dist-types/commands/ListSourceAssociationsCommand.d.ts +115 -0
  30. package/dist-types/commands/PromotePermissionCreatedFromPolicyCommand.d.ts +3 -0
  31. package/dist-types/commands/PromoteResourceShareCreatedFromPolicyCommand.d.ts +4 -3
  32. package/dist-types/commands/RejectResourceShareInvitationCommand.d.ts +2 -2
  33. package/dist-types/commands/index.d.ts +1 -0
  34. package/dist-types/models/enums.d.ts +4 -0
  35. package/dist-types/models/errors.d.ts +4 -3
  36. package/dist-types/models/models_0.d.ts +117 -9
  37. package/dist-types/pagination/ListSourceAssociationsPaginator.d.ts +7 -0
  38. package/dist-types/pagination/index.d.ts +1 -0
  39. package/dist-types/schemas/schemas_0.d.ts +4 -0
  40. package/dist-types/ts3.4/RAM.d.ts +25 -0
  41. package/dist-types/ts3.4/RAMClient.d.ts +6 -0
  42. package/dist-types/ts3.4/commands/ListSourceAssociationsCommand.d.ts +51 -0
  43. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  44. package/dist-types/ts3.4/models/enums.d.ts +4 -0
  45. package/dist-types/ts3.4/models/models_0.d.ts +21 -0
  46. package/dist-types/ts3.4/pagination/ListSourceAssociationsPaginator.d.ts +11 -0
  47. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  48. package/dist-types/ts3.4/schemas/schemas_0.d.ts +4 -0
  49. package/package.json +2 -2
@@ -0,0 +1,51 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ ListSourceAssociationsRequest,
5
+ ListSourceAssociationsResponse,
6
+ } from "../models/models_0";
7
+ import {
8
+ RAMClientResolvedConfig,
9
+ ServiceInputTypes,
10
+ ServiceOutputTypes,
11
+ } from "../RAMClient";
12
+ export { __MetadataBearer };
13
+ export { $Command };
14
+ export interface ListSourceAssociationsCommandInput
15
+ extends ListSourceAssociationsRequest {}
16
+ export interface ListSourceAssociationsCommandOutput
17
+ extends ListSourceAssociationsResponse,
18
+ __MetadataBearer {}
19
+ declare const ListSourceAssociationsCommand_base: {
20
+ new (
21
+ input: ListSourceAssociationsCommandInput
22
+ ): import("@smithy/smithy-client").CommandImpl<
23
+ ListSourceAssociationsCommandInput,
24
+ ListSourceAssociationsCommandOutput,
25
+ RAMClientResolvedConfig,
26
+ ServiceInputTypes,
27
+ ServiceOutputTypes
28
+ >;
29
+ new (
30
+ ...[input]: [] | [ListSourceAssociationsCommandInput]
31
+ ): import("@smithy/smithy-client").CommandImpl<
32
+ ListSourceAssociationsCommandInput,
33
+ ListSourceAssociationsCommandOutput,
34
+ RAMClientResolvedConfig,
35
+ ServiceInputTypes,
36
+ ServiceOutputTypes
37
+ >;
38
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
39
+ };
40
+ export declare class ListSourceAssociationsCommand extends ListSourceAssociationsCommand_base {
41
+ protected static __types: {
42
+ api: {
43
+ input: ListSourceAssociationsRequest;
44
+ output: ListSourceAssociationsResponse;
45
+ };
46
+ sdk: {
47
+ input: ListSourceAssociationsCommandInput;
48
+ output: ListSourceAssociationsCommandOutput;
49
+ };
50
+ };
51
+ }
@@ -24,6 +24,7 @@ export * from "./ListReplacePermissionAssociationsWorkCommand";
24
24
  export * from "./ListResourceSharePermissionsCommand";
25
25
  export * from "./ListResourceTypesCommand";
26
26
  export * from "./ListResourcesCommand";
27
+ export * from "./ListSourceAssociationsCommand";
27
28
  export * from "./PromotePermissionCreatedFromPolicyCommand";
28
29
  export * from "./PromoteResourceShareCreatedFromPolicyCommand";
29
30
  export * from "./RejectResourceShareInvitationCommand";
@@ -1,6 +1,7 @@
1
1
  export declare const ResourceShareAssociationType: {
2
2
  readonly PRINCIPAL: "PRINCIPAL";
3
3
  readonly RESOURCE: "RESOURCE";
4
+ readonly SOURCE: "SOURCE";
4
5
  };
5
6
  export type ResourceShareAssociationType =
6
7
  (typeof ResourceShareAssociationType)[keyof typeof ResourceShareAssociationType];
@@ -10,6 +11,9 @@ export declare const ResourceShareAssociationStatus: {
10
11
  readonly DISASSOCIATED: "DISASSOCIATED";
11
12
  readonly DISASSOCIATING: "DISASSOCIATING";
12
13
  readonly FAILED: "FAILED";
14
+ readonly RESTORING: "RESTORING";
15
+ readonly SUSPENDED: "SUSPENDED";
16
+ readonly SUSPENDING: "SUSPENDING";
13
17
  };
14
18
  export type ResourceShareAssociationStatus =
15
19
  (typeof ResourceShareAssociationStatus)[keyof typeof ResourceShareAssociationStatus];
@@ -399,6 +399,27 @@ export interface ListResourceTypesResponse {
399
399
  resourceTypes?: ServiceNameAndResourceType[] | undefined;
400
400
  nextToken?: string | undefined;
401
401
  }
402
+ export interface ListSourceAssociationsRequest {
403
+ resourceShareArns?: string[] | undefined;
404
+ sourceId?: string | undefined;
405
+ sourceType?: string | undefined;
406
+ associationStatus?: ResourceShareAssociationStatus | undefined;
407
+ nextToken?: string | undefined;
408
+ maxResults?: number | undefined;
409
+ }
410
+ export interface AssociatedSource {
411
+ resourceShareArn?: string | undefined;
412
+ sourceId?: string | undefined;
413
+ sourceType?: string | undefined;
414
+ status?: string | undefined;
415
+ lastUpdatedTime?: Date | undefined;
416
+ creationTime?: Date | undefined;
417
+ statusMessage?: string | undefined;
418
+ }
419
+ export interface ListSourceAssociationsResponse {
420
+ sourceAssociations?: AssociatedSource[] | undefined;
421
+ nextToken?: string | undefined;
422
+ }
402
423
  export interface PromotePermissionCreatedFromPolicyRequest {
403
424
  permissionArn: string | undefined;
404
425
  name: string | undefined;
@@ -0,0 +1,11 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import {
3
+ ListSourceAssociationsCommandInput,
4
+ ListSourceAssociationsCommandOutput,
5
+ } from "../commands/ListSourceAssociationsCommand";
6
+ import { RAMPaginationConfiguration } from "./Interfaces";
7
+ export declare const paginateListSourceAssociations: (
8
+ config: RAMPaginationConfiguration,
9
+ input: ListSourceAssociationsCommandInput,
10
+ ...rest: any[]
11
+ ) => Paginator<ListSourceAssociationsCommandOutput>;
@@ -12,3 +12,4 @@ export * from "./ListReplacePermissionAssociationsWorkPaginator";
12
12
  export * from "./ListResourcesPaginator";
13
13
  export * from "./ListResourceSharePermissionsPaginator";
14
14
  export * from "./ListResourceTypesPaginator";
15
+ export * from "./ListSourceAssociationsPaginator";
@@ -6,6 +6,7 @@ import {
6
6
  export declare var AcceptResourceShareInvitationRequest$: StaticStructureSchema;
7
7
  export declare var AcceptResourceShareInvitationResponse$: StaticStructureSchema;
8
8
  export declare var AssociatedPermission$: StaticStructureSchema;
9
+ export declare var AssociatedSource$: StaticStructureSchema;
9
10
  export declare var AssociateResourceSharePermissionRequest$: StaticStructureSchema;
10
11
  export declare var AssociateResourceSharePermissionResponse$: StaticStructureSchema;
11
12
  export declare var AssociateResourceShareRequest$: StaticStructureSchema;
@@ -64,6 +65,8 @@ export declare var ListResourcesRequest$: StaticStructureSchema;
64
65
  export declare var ListResourcesResponse$: StaticStructureSchema;
65
66
  export declare var ListResourceTypesRequest$: StaticStructureSchema;
66
67
  export declare var ListResourceTypesResponse$: StaticStructureSchema;
68
+ export declare var ListSourceAssociationsRequest$: StaticStructureSchema;
69
+ export declare var ListSourceAssociationsResponse$: StaticStructureSchema;
67
70
  export declare var MalformedArnException$: StaticErrorSchema;
68
71
  export declare var MalformedPolicyTemplateException$: StaticErrorSchema;
69
72
  export declare var MissingRequiredParameterException$: StaticErrorSchema;
@@ -138,6 +141,7 @@ export declare var ListReplacePermissionAssociationsWork$: StaticOperationSchema
138
141
  export declare var ListResources$: StaticOperationSchema;
139
142
  export declare var ListResourceSharePermissions$: StaticOperationSchema;
140
143
  export declare var ListResourceTypes$: StaticOperationSchema;
144
+ export declare var ListSourceAssociations$: StaticOperationSchema;
141
145
  export declare var PromotePermissionCreatedFromPolicy$: StaticOperationSchema;
142
146
  export declare var PromoteResourceShareCreatedFromPolicy$: StaticOperationSchema;
143
147
  export declare var RejectResourceShareInvitation$: StaticOperationSchema;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-ram",
3
3
  "description": "AWS SDK for JavaScript Ram Client for Node.js, Browser and React Native",
4
- "version": "3.982.0",
4
+ "version": "3.984.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-ram",
@@ -29,7 +29,7 @@
29
29
  "@aws-sdk/middleware-user-agent": "^3.972.6",
30
30
  "@aws-sdk/region-config-resolver": "^3.972.3",
31
31
  "@aws-sdk/types": "^3.973.1",
32
- "@aws-sdk/util-endpoints": "3.982.0",
32
+ "@aws-sdk/util-endpoints": "3.984.0",
33
33
  "@aws-sdk/util-user-agent-browser": "^3.972.3",
34
34
  "@aws-sdk/util-user-agent-node": "^3.972.4",
35
35
  "@smithy/config-resolver": "^4.4.6",