@aws-sdk/client-ram 3.1163.0 → 3.1165.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/README.md +7 -0
- package/dist-cjs/index.js +126 -35
- package/dist-es/RAM.js +2 -0
- package/dist-es/commands/UpdatePermissionCommand.js +4 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/enums.js +13 -4
- package/dist-es/schemas/schemas_0.js +98 -30
- package/dist-types/RAM.d.ts +7 -0
- package/dist-types/RAMClient.d.ts +3 -2
- package/dist-types/commands/AssociateResourceSharePermissionCommand.d.ts +8 -0
- package/dist-types/commands/CreatePermissionCommand.d.ts +18 -0
- package/dist-types/commands/CreatePermissionVersionCommand.d.ts +19 -1
- package/dist-types/commands/CreateResourceShareCommand.d.ts +13 -0
- package/dist-types/commands/DeletePermissionCommand.d.ts +1 -1
- package/dist-types/commands/DeletePermissionVersionCommand.d.ts +1 -1
- package/dist-types/commands/GetPermissionCommand.d.ts +23 -1
- package/dist-types/commands/ListPermissionAssociationsCommand.d.ts +12 -0
- package/dist-types/commands/ListPermissionVersionsCommand.d.ts +11 -0
- package/dist-types/commands/ListPermissionsCommand.d.ts +13 -0
- package/dist-types/commands/ListReplacePermissionAssociationsWorkCommand.d.ts +10 -0
- package/dist-types/commands/ListResourceSharePermissionsCommand.d.ts +11 -0
- package/dist-types/commands/PromotePermissionCreatedFromPolicyCommand.d.ts +11 -0
- package/dist-types/commands/ReplacePermissionAssociationsCommand.d.ts +18 -0
- package/dist-types/commands/UpdatePermissionCommand.d.ts +124 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/enums.d.ts +37 -12
- package/dist-types/models/models_0.d.ts +347 -3
- package/dist-types/schemas/schemas_0.d.ts +7 -0
- package/dist-types/ts3.4/RAM.d.ts +17 -0
- package/dist-types/ts3.4/RAMClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/UpdatePermissionCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/enums.d.ts +18 -5
- package/dist-types/ts3.4/models/models_0.d.ts +46 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +7 -0
- package/package.json +8 -8
|
@@ -61,12 +61,23 @@ declare const ListResourceSharePermissionsCommand_base: {
|
|
|
61
61
|
* // isResourceTypeDefault: true || false,
|
|
62
62
|
* // permissionType: "CUSTOMER_MANAGED" || "AWS_MANAGED",
|
|
63
63
|
* // featureSet: "CREATED_FROM_POLICY" || "PROMOTING_TO_STANDARD" || "STANDARD",
|
|
64
|
+
* // permissionTemplateParameters: [ // PermissionTemplateParameterList
|
|
65
|
+
* // { // PermissionTemplateParameter
|
|
66
|
+
* // name: "STRING_VALUE",
|
|
67
|
+
* // type: "STRING" || "STRING_LIST",
|
|
68
|
+
* // description: "STRING_VALUE",
|
|
69
|
+
* // values: [ // PermissionTemplateParameterValueList
|
|
70
|
+
* // "STRING_VALUE",
|
|
71
|
+
* // ],
|
|
72
|
+
* // },
|
|
73
|
+
* // ],
|
|
64
74
|
* // tags: [ // TagList
|
|
65
75
|
* // { // Tag
|
|
66
76
|
* // key: "STRING_VALUE",
|
|
67
77
|
* // value: "STRING_VALUE",
|
|
68
78
|
* // },
|
|
69
79
|
* // ],
|
|
80
|
+
* // resourceOwner: "SELF" || "OTHER-ACCOUNTS",
|
|
70
81
|
* // },
|
|
71
82
|
* // ],
|
|
72
83
|
* // nextToken: "STRING_VALUE",
|
|
@@ -84,12 +84,23 @@ declare const PromotePermissionCreatedFromPolicyCommand_base: {
|
|
|
84
84
|
* // isResourceTypeDefault: true || false,
|
|
85
85
|
* // permissionType: "CUSTOMER_MANAGED" || "AWS_MANAGED",
|
|
86
86
|
* // featureSet: "CREATED_FROM_POLICY" || "PROMOTING_TO_STANDARD" || "STANDARD",
|
|
87
|
+
* // permissionTemplateParameters: [ // PermissionTemplateParameterList
|
|
88
|
+
* // { // PermissionTemplateParameter
|
|
89
|
+
* // name: "STRING_VALUE",
|
|
90
|
+
* // type: "STRING" || "STRING_LIST",
|
|
91
|
+
* // description: "STRING_VALUE",
|
|
92
|
+
* // values: [ // PermissionTemplateParameterValueList
|
|
93
|
+
* // "STRING_VALUE",
|
|
94
|
+
* // ],
|
|
95
|
+
* // },
|
|
96
|
+
* // ],
|
|
87
97
|
* // tags: [ // TagList
|
|
88
98
|
* // { // Tag
|
|
89
99
|
* // key: "STRING_VALUE",
|
|
90
100
|
* // value: "STRING_VALUE",
|
|
91
101
|
* // },
|
|
92
102
|
* // ],
|
|
103
|
+
* // resourceOwner: "SELF" || "OTHER-ACCOUNTS",
|
|
93
104
|
* // },
|
|
94
105
|
* // clientToken: "STRING_VALUE",
|
|
95
106
|
* // };
|
|
@@ -51,6 +51,14 @@ declare const ReplacePermissionAssociationsCommand_base: {
|
|
|
51
51
|
* fromPermissionArn: "STRING_VALUE", // required
|
|
52
52
|
* fromPermissionVersion: Number("int"),
|
|
53
53
|
* toPermissionArn: "STRING_VALUE", // required
|
|
54
|
+
* permissionTemplateParameters: [ // PermissionTemplateParameterInputList
|
|
55
|
+
* { // PermissionTemplateParameterInput
|
|
56
|
+
* name: "STRING_VALUE",
|
|
57
|
+
* values: [ // PermissionTemplateParameterValueList
|
|
58
|
+
* "STRING_VALUE",
|
|
59
|
+
* ],
|
|
60
|
+
* },
|
|
61
|
+
* ],
|
|
54
62
|
* clientToken: "STRING_VALUE",
|
|
55
63
|
* };
|
|
56
64
|
* const command = new ReplacePermissionAssociationsCommand(input);
|
|
@@ -62,6 +70,16 @@ declare const ReplacePermissionAssociationsCommand_base: {
|
|
|
62
70
|
* // fromPermissionVersion: "STRING_VALUE",
|
|
63
71
|
* // toPermissionArn: "STRING_VALUE",
|
|
64
72
|
* // toPermissionVersion: "STRING_VALUE",
|
|
73
|
+
* // permissionTemplateParameters: [ // PermissionTemplateParameterList
|
|
74
|
+
* // { // PermissionTemplateParameter
|
|
75
|
+
* // name: "STRING_VALUE",
|
|
76
|
+
* // type: "STRING" || "STRING_LIST",
|
|
77
|
+
* // description: "STRING_VALUE",
|
|
78
|
+
* // values: [ // PermissionTemplateParameterValueList
|
|
79
|
+
* // "STRING_VALUE",
|
|
80
|
+
* // ],
|
|
81
|
+
* // },
|
|
82
|
+
* // ],
|
|
65
83
|
* // status: "IN_PROGRESS" || "COMPLETED" || "FAILED",
|
|
66
84
|
* // statusMessage: "STRING_VALUE",
|
|
67
85
|
* // creationTime: new Date("TIMESTAMP"),
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { UpdatePermissionRequest, UpdatePermissionResponse } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link UpdatePermissionCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface UpdatePermissionCommandInput extends UpdatePermissionRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link UpdatePermissionCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface UpdatePermissionCommandOutput extends UpdatePermissionResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const UpdatePermissionCommand_base: {
|
|
22
|
+
new (input: UpdatePermissionCommandInput): import("@smithy/core/client").CommandImpl<UpdatePermissionCommandInput, UpdatePermissionCommandOutput, import("..").RAMClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: UpdatePermissionCommandInput): import("@smithy/core/client").CommandImpl<UpdatePermissionCommandInput, UpdatePermissionCommandOutput, import("..").RAMClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Updates the status of the specified customer managed permission.</p>
|
|
28
|
+
* <p>Setting the status to <code>DEPRECATED</code> prevents new resource share associations. Setting it to <code>ATTACHABLE</code> restores a previously deprecated permission. Existing resource shares that use the permission continue to function.</p>
|
|
29
|
+
* @example
|
|
30
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
31
|
+
* ```javascript
|
|
32
|
+
* import { RAMClient, UpdatePermissionCommand } from "@aws-sdk/client-ram"; // ES Modules import
|
|
33
|
+
* // const { RAMClient, UpdatePermissionCommand } = require("@aws-sdk/client-ram"); // CommonJS import
|
|
34
|
+
* // import type { RAMClientConfig } from "@aws-sdk/client-ram";
|
|
35
|
+
* const config = {}; // type is RAMClientConfig
|
|
36
|
+
* const client = new RAMClient(config);
|
|
37
|
+
* const input = { // UpdatePermissionRequest
|
|
38
|
+
* permissionArn: "STRING_VALUE", // required
|
|
39
|
+
* status: "ATTACHABLE" || "DEPRECATED", // required
|
|
40
|
+
* clientToken: "STRING_VALUE",
|
|
41
|
+
* };
|
|
42
|
+
* const command = new UpdatePermissionCommand(input);
|
|
43
|
+
* const response = await client.send(command);
|
|
44
|
+
* // { // UpdatePermissionResponse
|
|
45
|
+
* // clientToken: "STRING_VALUE",
|
|
46
|
+
* // permissionStatus: "ATTACHABLE" || "DEPRECATED",
|
|
47
|
+
* // };
|
|
48
|
+
*
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
51
|
+
* @param UpdatePermissionCommandInput - {@link UpdatePermissionCommandInput}
|
|
52
|
+
* @returns {@link UpdatePermissionCommandOutput}
|
|
53
|
+
* @see {@link UpdatePermissionCommandInput} for command's `input` shape.
|
|
54
|
+
* @see {@link UpdatePermissionCommandOutput} for command's `response` shape.
|
|
55
|
+
* @see {@link RAMClientResolvedConfig | config} for RAMClient's `config` shape.
|
|
56
|
+
*
|
|
57
|
+
* @throws {@link IdempotentParameterMismatchException} (client fault)
|
|
58
|
+
* <p>The operation failed because the client token input parameter matched one that was
|
|
59
|
+
* used with a previous call to the operation, but at least one of the other input
|
|
60
|
+
* parameters is different from the previous call.</p>
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link InvalidClientTokenException} (client fault)
|
|
63
|
+
* <p>The operation failed because the specified client token isn't valid.</p>
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link InvalidParameterException} (client fault)
|
|
66
|
+
* <p>The operation failed because a parameter you specified isn't valid.</p>
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link MalformedArnException} (client fault)
|
|
69
|
+
* <p>The operation failed because the specified <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Name (ARN)</a> has a format that isn't
|
|
70
|
+
* valid.</p>
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link OperationNotPermittedException} (client fault)
|
|
73
|
+
* <p>The operation failed because the requested operation isn't permitted.</p>
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link PermissionLimitExceededException} (client fault)
|
|
76
|
+
* <p>The operation failed because it would exceed the maximum number of permissions you can
|
|
77
|
+
* create in each Amazon Web Services Region. To view the limits for your Amazon Web Services account, see the <a href="https://console.aws.amazon.com/servicequotas/home/services/ram/quotas">RAM page in the
|
|
78
|
+
* Service Quotas console</a>.</p>
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link ServerInternalException} (server fault)
|
|
81
|
+
* <p>The operation failed because the service could not respond to the request due to an
|
|
82
|
+
* internal problem. Try again later.</p>
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link ServiceUnavailableException} (server fault)
|
|
85
|
+
* <p>The operation failed because the service isn't available. Try again later.</p>
|
|
86
|
+
*
|
|
87
|
+
* @throws {@link UnknownResourceException} (client fault)
|
|
88
|
+
* <p>The operation failed because a specified resource couldn't be found.</p>
|
|
89
|
+
*
|
|
90
|
+
* @throws {@link RAMServiceException}
|
|
91
|
+
* <p>Base exception class for all service exceptions from RAM service.</p>
|
|
92
|
+
*
|
|
93
|
+
*
|
|
94
|
+
* @example Deprecate a managed permission
|
|
95
|
+
* ```javascript
|
|
96
|
+
* // Deprecates a customer managed permission so it can no longer be associated with new resource shares.
|
|
97
|
+
* const input = {
|
|
98
|
+
* permissionArn: "arn:aws:ram:us-east-1:123456789012:permission/AnyCompanyImageBuilderPermission",
|
|
99
|
+
* status: "DEPRECATED"
|
|
100
|
+
* };
|
|
101
|
+
* const command = new UpdatePermissionCommand(input);
|
|
102
|
+
* const response = await client.send(command);
|
|
103
|
+
* /* response is
|
|
104
|
+
* {
|
|
105
|
+
* permissionStatus: "DEPRECATED"
|
|
106
|
+
* }
|
|
107
|
+
* *\/
|
|
108
|
+
* ```
|
|
109
|
+
*
|
|
110
|
+
* @public
|
|
111
|
+
*/
|
|
112
|
+
export declare class UpdatePermissionCommand extends UpdatePermissionCommand_base {
|
|
113
|
+
/** @internal type navigation helper, not in runtime. */
|
|
114
|
+
protected static __types: {
|
|
115
|
+
api: {
|
|
116
|
+
input: UpdatePermissionRequest;
|
|
117
|
+
output: UpdatePermissionResponse;
|
|
118
|
+
};
|
|
119
|
+
sdk: {
|
|
120
|
+
input: UpdatePermissionCommandInput;
|
|
121
|
+
output: UpdatePermissionCommandOutput;
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
}
|
|
@@ -32,4 +32,5 @@ export * from "./ReplacePermissionAssociationsCommand";
|
|
|
32
32
|
export * from "./SetDefaultPermissionVersionCommand";
|
|
33
33
|
export * from "./TagResourceCommand";
|
|
34
34
|
export * from "./UntagResourceCommand";
|
|
35
|
+
export * from "./UpdatePermissionCommand";
|
|
35
36
|
export * from "./UpdateResourceShareCommand";
|
|
@@ -43,6 +43,18 @@ export declare const ResourceShareInvitationStatus: {
|
|
|
43
43
|
* @public
|
|
44
44
|
*/
|
|
45
45
|
export type ResourceShareInvitationStatus = (typeof ResourceShareInvitationStatus)[keyof typeof ResourceShareInvitationStatus];
|
|
46
|
+
/**
|
|
47
|
+
* @public
|
|
48
|
+
* @enum
|
|
49
|
+
*/
|
|
50
|
+
export declare const PermissionTemplateParameterType: {
|
|
51
|
+
readonly STRING: "STRING";
|
|
52
|
+
readonly STRING_LIST: "STRING_LIST";
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* @public
|
|
56
|
+
*/
|
|
57
|
+
export type PermissionTemplateParameterType = (typeof PermissionTemplateParameterType)[keyof typeof PermissionTemplateParameterType];
|
|
46
58
|
/**
|
|
47
59
|
* @public
|
|
48
60
|
* @enum
|
|
@@ -68,6 +80,18 @@ export declare const PermissionType: {
|
|
|
68
80
|
* @public
|
|
69
81
|
*/
|
|
70
82
|
export type PermissionType = (typeof PermissionType)[keyof typeof PermissionType];
|
|
83
|
+
/**
|
|
84
|
+
* @public
|
|
85
|
+
* @enum
|
|
86
|
+
*/
|
|
87
|
+
export declare const ResourceOwner: {
|
|
88
|
+
readonly OTHER_ACCOUNTS: "OTHER-ACCOUNTS";
|
|
89
|
+
readonly SELF: "SELF";
|
|
90
|
+
};
|
|
91
|
+
/**
|
|
92
|
+
* @public
|
|
93
|
+
*/
|
|
94
|
+
export type ResourceOwner = (typeof ResourceOwner)[keyof typeof ResourceOwner];
|
|
71
95
|
/**
|
|
72
96
|
* @public
|
|
73
97
|
* @enum
|
|
@@ -76,6 +100,7 @@ export declare const PermissionStatus: {
|
|
|
76
100
|
readonly ATTACHABLE: "ATTACHABLE";
|
|
77
101
|
readonly DELETED: "DELETED";
|
|
78
102
|
readonly DELETING: "DELETING";
|
|
103
|
+
readonly DEPRECATED: "DEPRECATED";
|
|
79
104
|
readonly UNATTACHABLE: "UNATTACHABLE";
|
|
80
105
|
};
|
|
81
106
|
/**
|
|
@@ -110,18 +135,6 @@ export declare const ResourceShareStatus: {
|
|
|
110
135
|
* @public
|
|
111
136
|
*/
|
|
112
137
|
export type ResourceShareStatus = (typeof ResourceShareStatus)[keyof typeof ResourceShareStatus];
|
|
113
|
-
/**
|
|
114
|
-
* @public
|
|
115
|
-
* @enum
|
|
116
|
-
*/
|
|
117
|
-
export declare const ResourceOwner: {
|
|
118
|
-
readonly OTHER_ACCOUNTS: "OTHER-ACCOUNTS";
|
|
119
|
-
readonly SELF: "SELF";
|
|
120
|
-
};
|
|
121
|
-
/**
|
|
122
|
-
* @public
|
|
123
|
-
*/
|
|
124
|
-
export type ResourceOwner = (typeof ResourceOwner)[keyof typeof ResourceOwner];
|
|
125
138
|
/**
|
|
126
139
|
* @public
|
|
127
140
|
* @enum
|
|
@@ -188,3 +201,15 @@ export declare const ReplacePermissionAssociationsWorkStatus: {
|
|
|
188
201
|
* @public
|
|
189
202
|
*/
|
|
190
203
|
export type ReplacePermissionAssociationsWorkStatus = (typeof ReplacePermissionAssociationsWorkStatus)[keyof typeof ReplacePermissionAssociationsWorkStatus];
|
|
204
|
+
/**
|
|
205
|
+
* @public
|
|
206
|
+
* @enum
|
|
207
|
+
*/
|
|
208
|
+
export declare const UpdatePermissionStatus: {
|
|
209
|
+
readonly ATTACHABLE: "ATTACHABLE";
|
|
210
|
+
readonly DEPRECATED: "DEPRECATED";
|
|
211
|
+
};
|
|
212
|
+
/**
|
|
213
|
+
* @public
|
|
214
|
+
*/
|
|
215
|
+
export type UpdatePermissionStatus = (typeof UpdatePermissionStatus)[keyof typeof UpdatePermissionStatus];
|