@aws-sdk/client-rolesanywhere 3.774.0 → 3.777.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 (37) hide show
  1. package/dist-cjs/auth/httpAuthSchemeProvider.js +1 -3
  2. package/dist-cjs/index.js +17 -18
  3. package/dist-es/RolesAnywhereClient.js +2 -1
  4. package/dist-es/auth/httpAuthSchemeProvider.js +1 -3
  5. package/dist-es/endpoint/EndpointParameters.js +2 -3
  6. package/dist-es/runtimeExtensions.js +2 -14
  7. package/dist-types/commands/CreateProfileCommand.d.ts +1 -0
  8. package/dist-types/commands/CreateTrustAnchorCommand.d.ts +1 -0
  9. package/dist-types/commands/DeleteAttributeMappingCommand.d.ts +46 -0
  10. package/dist-types/commands/DeleteCrlCommand.d.ts +1 -0
  11. package/dist-types/commands/DeleteProfileCommand.d.ts +1 -0
  12. package/dist-types/commands/DeleteTrustAnchorCommand.d.ts +1 -0
  13. package/dist-types/commands/DisableCrlCommand.d.ts +1 -0
  14. package/dist-types/commands/DisableProfileCommand.d.ts +1 -0
  15. package/dist-types/commands/DisableTrustAnchorCommand.d.ts +1 -0
  16. package/dist-types/commands/EnableCrlCommand.d.ts +1 -0
  17. package/dist-types/commands/EnableProfileCommand.d.ts +1 -0
  18. package/dist-types/commands/EnableTrustAnchorCommand.d.ts +1 -0
  19. package/dist-types/commands/GetCrlCommand.d.ts +1 -0
  20. package/dist-types/commands/GetProfileCommand.d.ts +1 -0
  21. package/dist-types/commands/GetSubjectCommand.d.ts +1 -0
  22. package/dist-types/commands/GetTrustAnchorCommand.d.ts +1 -0
  23. package/dist-types/commands/ImportCrlCommand.d.ts +1 -0
  24. package/dist-types/commands/ListCrlsCommand.d.ts +1 -0
  25. package/dist-types/commands/ListProfilesCommand.d.ts +1 -0
  26. package/dist-types/commands/ListSubjectsCommand.d.ts +1 -0
  27. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -0
  28. package/dist-types/commands/ListTrustAnchorsCommand.d.ts +1 -0
  29. package/dist-types/commands/PutAttributeMappingCommand.d.ts +48 -0
  30. package/dist-types/commands/PutNotificationSettingsCommand.d.ts +52 -0
  31. package/dist-types/commands/ResetNotificationSettingsCommand.d.ts +50 -0
  32. package/dist-types/commands/TagResourceCommand.d.ts +1 -0
  33. package/dist-types/commands/UntagResourceCommand.d.ts +1 -0
  34. package/dist-types/commands/UpdateCrlCommand.d.ts +1 -0
  35. package/dist-types/commands/UpdateProfileCommand.d.ts +1 -0
  36. package/dist-types/commands/UpdateTrustAnchorCommand.d.ts +1 -0
  37. package/package.json +33 -33
@@ -40,8 +40,6 @@ const defaultRolesAnywhereHttpAuthSchemeProvider = (authParameters) => {
40
40
  exports.defaultRolesAnywhereHttpAuthSchemeProvider = defaultRolesAnywhereHttpAuthSchemeProvider;
41
41
  const resolveHttpAuthSchemeConfig = (config) => {
42
42
  const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
43
- return {
44
- ...config_0,
45
- };
43
+ return Object.assign(config_0, {});
46
44
  };
47
45
  exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
package/dist-cjs/index.js CHANGED
@@ -93,12 +93,11 @@ var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
93
93
 
94
94
  // src/endpoint/EndpointParameters.ts
95
95
  var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
96
- return {
97
- ...options,
96
+ return Object.assign(options, {
98
97
  useDualstackEndpoint: options.useDualstackEndpoint ?? false,
99
98
  useFipsEndpoint: options.useFipsEndpoint ?? false,
100
99
  defaultSigningName: "rolesanywhere"
101
- };
100
+ });
102
101
  }, "resolveClientEndpointParameters");
103
102
  var commonParams = {
104
103
  UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
@@ -155,22 +154,21 @@ var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
155
154
  }, "resolveHttpAuthRuntimeConfig");
156
155
 
157
156
  // src/runtimeExtensions.ts
158
- var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
159
157
  var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
160
- const extensionConfiguration = {
161
- ...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
162
- ...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
163
- ...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig)),
164
- ...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig))
165
- };
158
+ const extensionConfiguration = Object.assign(
159
+ (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
160
+ (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
161
+ (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
162
+ getHttpAuthExtensionConfiguration(runtimeConfig)
163
+ );
166
164
  extensions.forEach((extension) => extension.configure(extensionConfiguration));
167
- return {
168
- ...runtimeConfig,
169
- ...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
170
- ...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
171
- ...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
172
- ...resolveHttpAuthRuntimeConfig(extensionConfiguration)
173
- };
165
+ return Object.assign(
166
+ runtimeConfig,
167
+ (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
168
+ (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
169
+ (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
170
+ resolveHttpAuthRuntimeConfig(extensionConfiguration)
171
+ );
174
172
  }, "resolveRuntimeExtensions");
175
173
 
176
174
  // src/RolesAnywhereClient.ts
@@ -184,6 +182,8 @@ var RolesAnywhereClient = class extends import_smithy_client.Client {
184
182
  config;
185
183
  constructor(...[configuration]) {
186
184
  const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
185
+ super(_config_0);
186
+ this.initConfig = _config_0;
187
187
  const _config_1 = resolveClientEndpointParameters(_config_0);
188
188
  const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
189
189
  const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
@@ -192,7 +192,6 @@ var RolesAnywhereClient = class extends import_smithy_client.Client {
192
192
  const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
193
193
  const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
194
194
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
195
- super(_config_8);
196
195
  this.config = _config_8;
197
196
  this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
198
197
  this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
@@ -17,6 +17,8 @@ export class RolesAnywhereClient extends __Client {
17
17
  config;
18
18
  constructor(...[configuration]) {
19
19
  const _config_0 = __getRuntimeConfig(configuration || {});
20
+ super(_config_0);
21
+ this.initConfig = _config_0;
20
22
  const _config_1 = resolveClientEndpointParameters(_config_0);
21
23
  const _config_2 = resolveUserAgentConfig(_config_1);
22
24
  const _config_3 = resolveRetryConfig(_config_2);
@@ -25,7 +27,6 @@ export class RolesAnywhereClient extends __Client {
25
27
  const _config_6 = resolveEndpointConfig(_config_5);
26
28
  const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
27
29
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
28
- super(_config_8);
29
30
  this.config = _config_8;
30
31
  this.middlewareStack.use(getUserAgentPlugin(this.config));
31
32
  this.middlewareStack.use(getRetryPlugin(this.config));
@@ -35,7 +35,5 @@ export const defaultRolesAnywhereHttpAuthSchemeProvider = (authParameters) => {
35
35
  };
36
36
  export const resolveHttpAuthSchemeConfig = (config) => {
37
37
  const config_0 = resolveAwsSdkSigV4Config(config);
38
- return {
39
- ...config_0,
40
- };
38
+ return Object.assign(config_0, {});
41
39
  };
@@ -1,10 +1,9 @@
1
1
  export const resolveClientEndpointParameters = (options) => {
2
- return {
3
- ...options,
2
+ return Object.assign(options, {
4
3
  useDualstackEndpoint: options.useDualstackEndpoint ?? false,
5
4
  useFipsEndpoint: options.useFipsEndpoint ?? false,
6
5
  defaultSigningName: "rolesanywhere",
7
- };
6
+ });
8
7
  };
9
8
  export const commonParams = {
10
9
  UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
@@ -2,20 +2,8 @@ import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfigurat
2
2
  import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http";
3
3
  import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client";
4
4
  import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from "./auth/httpAuthExtensionConfiguration";
5
- const asPartial = (t) => t;
6
5
  export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
7
- const extensionConfiguration = {
8
- ...asPartial(getAwsRegionExtensionConfiguration(runtimeConfig)),
9
- ...asPartial(getDefaultExtensionConfiguration(runtimeConfig)),
10
- ...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)),
11
- ...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig)),
12
- };
6
+ const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
13
7
  extensions.forEach((extension) => extension.configure(extensionConfiguration));
14
- return {
15
- ...runtimeConfig,
16
- ...resolveAwsRegionExtensionConfiguration(extensionConfiguration),
17
- ...resolveDefaultRuntimeConfig(extensionConfiguration),
18
- ...resolveHttpHandlerRuntimeConfig(extensionConfiguration),
19
- ...resolveHttpAuthRuntimeConfig(extensionConfiguration),
20
- };
8
+ return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
21
9
  };
@@ -109,6 +109,7 @@ declare const CreateProfileCommand_base: {
109
109
  * @throws {@link RolesAnywhereServiceException}
110
110
  * <p>Base exception class for all service exceptions from RolesAnywhere service.</p>
111
111
  *
112
+ *
112
113
  * @public
113
114
  */
114
115
  export declare class CreateProfileCommand extends CreateProfileCommand_base {
@@ -111,6 +111,7 @@ declare const CreateTrustAnchorCommand_base: {
111
111
  * @throws {@link RolesAnywhereServiceException}
112
112
  * <p>Base exception class for all service exceptions from RolesAnywhere service.</p>
113
113
  *
114
+ *
114
115
  * @public
115
116
  */
116
117
  export declare class CreateTrustAnchorCommand extends CreateTrustAnchorCommand_base {
@@ -95,6 +95,52 @@ declare const DeleteAttributeMappingCommand_base: {
95
95
  * @throws {@link RolesAnywhereServiceException}
96
96
  * <p>Base exception class for all service exceptions from RolesAnywhere service.</p>
97
97
  *
98
+ *
99
+ * @example DeleteAttributeMapping - Deletes a custom attribute mapping rule
100
+ * ```javascript
101
+ * //
102
+ * const input = {
103
+ * certificateField: "x509Subject",
104
+ * profileId: "00000000-0000-0000-0000-000000000000",
105
+ * specifiers: [
106
+ * "OU"
107
+ * ]
108
+ * };
109
+ * const command = new DeleteAttributeMappingCommand(input);
110
+ * const response = await client.send(command);
111
+ * /* response is
112
+ * {
113
+ * profile: {
114
+ * acceptRoleSessionName: false,
115
+ * attributeMappings: [
116
+ * {
117
+ * certificateField: "x509Subject",
118
+ * mappingRules: [
119
+ * {
120
+ * specifier: "CN"
121
+ * }
122
+ * ]
123
+ * }
124
+ * ],
125
+ * createdAt: "2021-07-19T15:55:25.986591Z",
126
+ * createdBy: "arn:aws:sts::123456789012:assumed-role/Admin/DummyRole",
127
+ * durationSeconds: 3600,
128
+ * enabled: true,
129
+ * managedPolicyArns: [],
130
+ * name: "Dummy Profile",
131
+ * profileArn: "arn:aws:rolesanywhere:us-east-1:123456789012:profile/00000000-0000-0000-0000-000000000000",
132
+ * profileId: "00000000-0000-0000-0000-000000000000",
133
+ * requireInstanceProperties: false,
134
+ * roleArns: [
135
+ * "arn:aws:iam::123456789012:role/DummyRole"
136
+ * ],
137
+ * sessionPolicy: "",
138
+ * updatedAt: "2021-07-19T15:55:25.986591Z"
139
+ * }
140
+ * }
141
+ * *\/
142
+ * ```
143
+ *
98
144
  * @public
99
145
  */
100
146
  export declare class DeleteAttributeMappingCommand extends DeleteAttributeMappingCommand_base {
@@ -73,6 +73,7 @@ declare const DeleteCrlCommand_base: {
73
73
  * @throws {@link RolesAnywhereServiceException}
74
74
  * <p>Base exception class for all service exceptions from RolesAnywhere service.</p>
75
75
  *
76
+ *
76
77
  * @public
77
78
  */
78
79
  export declare class DeleteCrlCommand extends DeleteCrlCommand_base {
@@ -92,6 +92,7 @@ declare const DeleteProfileCommand_base: {
92
92
  * @throws {@link RolesAnywhereServiceException}
93
93
  * <p>Base exception class for all service exceptions from RolesAnywhere service.</p>
94
94
  *
95
+ *
95
96
  * @public
96
97
  */
97
98
  export declare class DeleteProfileCommand extends DeleteProfileCommand_base {
@@ -87,6 +87,7 @@ declare const DeleteTrustAnchorCommand_base: {
87
87
  * @throws {@link RolesAnywhereServiceException}
88
88
  * <p>Base exception class for all service exceptions from RolesAnywhere service.</p>
89
89
  *
90
+ *
90
91
  * @public
91
92
  */
92
93
  export declare class DeleteTrustAnchorCommand extends DeleteTrustAnchorCommand_base {
@@ -73,6 +73,7 @@ declare const DisableCrlCommand_base: {
73
73
  * @throws {@link RolesAnywhereServiceException}
74
74
  * <p>Base exception class for all service exceptions from RolesAnywhere service.</p>
75
75
  *
76
+ *
76
77
  * @public
77
78
  */
78
79
  export declare class DisableCrlCommand extends DisableCrlCommand_base {
@@ -92,6 +92,7 @@ declare const DisableProfileCommand_base: {
92
92
  * @throws {@link RolesAnywhereServiceException}
93
93
  * <p>Base exception class for all service exceptions from RolesAnywhere service.</p>
94
94
  *
95
+ *
95
96
  * @public
96
97
  */
97
98
  export declare class DisableProfileCommand extends DisableProfileCommand_base {
@@ -87,6 +87,7 @@ declare const DisableTrustAnchorCommand_base: {
87
87
  * @throws {@link RolesAnywhereServiceException}
88
88
  * <p>Base exception class for all service exceptions from RolesAnywhere service.</p>
89
89
  *
90
+ *
90
91
  * @public
91
92
  */
92
93
  export declare class DisableTrustAnchorCommand extends DisableTrustAnchorCommand_base {
@@ -73,6 +73,7 @@ declare const EnableCrlCommand_base: {
73
73
  * @throws {@link RolesAnywhereServiceException}
74
74
  * <p>Base exception class for all service exceptions from RolesAnywhere service.</p>
75
75
  *
76
+ *
76
77
  * @public
77
78
  */
78
79
  export declare class EnableCrlCommand extends EnableCrlCommand_base {
@@ -92,6 +92,7 @@ declare const EnableProfileCommand_base: {
92
92
  * @throws {@link RolesAnywhereServiceException}
93
93
  * <p>Base exception class for all service exceptions from RolesAnywhere service.</p>
94
94
  *
95
+ *
95
96
  * @public
96
97
  */
97
98
  export declare class EnableProfileCommand extends EnableProfileCommand_base {
@@ -87,6 +87,7 @@ declare const EnableTrustAnchorCommand_base: {
87
87
  * @throws {@link RolesAnywhereServiceException}
88
88
  * <p>Base exception class for all service exceptions from RolesAnywhere service.</p>
89
89
  *
90
+ *
90
91
  * @public
91
92
  */
92
93
  export declare class EnableTrustAnchorCommand extends EnableTrustAnchorCommand_base {
@@ -70,6 +70,7 @@ declare const GetCrlCommand_base: {
70
70
  * @throws {@link RolesAnywhereServiceException}
71
71
  * <p>Base exception class for all service exceptions from RolesAnywhere service.</p>
72
72
  *
73
+ *
73
74
  * @public
74
75
  */
75
76
  export declare class GetCrlCommand extends GetCrlCommand_base {
@@ -92,6 +92,7 @@ declare const GetProfileCommand_base: {
92
92
  * @throws {@link RolesAnywhereServiceException}
93
93
  * <p>Base exception class for all service exceptions from RolesAnywhere service.</p>
94
94
  *
95
+ *
95
96
  * @public
96
97
  */
97
98
  export declare class GetProfileCommand extends GetProfileCommand_base {
@@ -94,6 +94,7 @@ declare const GetSubjectCommand_base: {
94
94
  * @throws {@link RolesAnywhereServiceException}
95
95
  * <p>Base exception class for all service exceptions from RolesAnywhere service.</p>
96
96
  *
97
+ *
97
98
  * @public
98
99
  */
99
100
  export declare class GetSubjectCommand extends GetSubjectCommand_base {
@@ -90,6 +90,7 @@ declare const GetTrustAnchorCommand_base: {
90
90
  * @throws {@link RolesAnywhereServiceException}
91
91
  * <p>Base exception class for all service exceptions from RolesAnywhere service.</p>
92
92
  *
93
+ *
93
94
  * @public
94
95
  */
95
96
  export declare class GetTrustAnchorCommand extends GetTrustAnchorCommand_base {
@@ -85,6 +85,7 @@ declare const ImportCrlCommand_base: {
85
85
  * @throws {@link RolesAnywhereServiceException}
86
86
  * <p>Base exception class for all service exceptions from RolesAnywhere service.</p>
87
87
  *
88
+ *
88
89
  * @public
89
90
  */
90
91
  export declare class ImportCrlCommand extends ImportCrlCommand_base {
@@ -77,6 +77,7 @@ declare const ListCrlsCommand_base: {
77
77
  * @throws {@link RolesAnywhereServiceException}
78
78
  * <p>Base exception class for all service exceptions from RolesAnywhere service.</p>
79
79
  *
80
+ *
80
81
  * @public
81
82
  */
82
83
  export declare class ListCrlsCommand extends ListCrlsCommand_base {
@@ -96,6 +96,7 @@ declare const ListProfilesCommand_base: {
96
96
  * @throws {@link RolesAnywhereServiceException}
97
97
  * <p>Base exception class for all service exceptions from RolesAnywhere service.</p>
98
98
  *
99
+ *
99
100
  * @public
100
101
  */
101
102
  export declare class ListProfilesCommand extends ListProfilesCommand_base {
@@ -76,6 +76,7 @@ declare const ListSubjectsCommand_base: {
76
76
  * @throws {@link RolesAnywhereServiceException}
77
77
  * <p>Base exception class for all service exceptions from RolesAnywhere service.</p>
78
78
  *
79
+ *
79
80
  * @public
80
81
  */
81
82
  export declare class ListSubjectsCommand extends ListSubjectsCommand_base {
@@ -72,6 +72,7 @@ declare const ListTagsForResourceCommand_base: {
72
72
  * @throws {@link RolesAnywhereServiceException}
73
73
  * <p>Base exception class for all service exceptions from RolesAnywhere service.</p>
74
74
  *
75
+ *
75
76
  * @public
76
77
  */
77
78
  export declare class ListTagsForResourceCommand extends ListTagsForResourceCommand_base {
@@ -91,6 +91,7 @@ declare const ListTrustAnchorsCommand_base: {
91
91
  * @throws {@link RolesAnywhereServiceException}
92
92
  * <p>Base exception class for all service exceptions from RolesAnywhere service.</p>
93
93
  *
94
+ *
94
95
  * @public
95
96
  */
96
97
  export declare class ListTrustAnchorsCommand extends ListTrustAnchorsCommand_base {
@@ -98,6 +98,54 @@ declare const PutAttributeMappingCommand_base: {
98
98
  * @throws {@link RolesAnywhereServiceException}
99
99
  * <p>Base exception class for all service exceptions from RolesAnywhere service.</p>
100
100
  *
101
+ *
102
+ * @example PutAttributeMapping - Adds a custom attribute mapping rule
103
+ * ```javascript
104
+ * //
105
+ * const input = {
106
+ * certificateField: "x509Subject",
107
+ * mappingRules: [
108
+ * {
109
+ * specifier: "CN"
110
+ * }
111
+ * ],
112
+ * profileId: "00000000-0000-0000-0000-000000000000"
113
+ * };
114
+ * const command = new PutAttributeMappingCommand(input);
115
+ * const response = await client.send(command);
116
+ * /* response is
117
+ * {
118
+ * profile: {
119
+ * acceptRoleSessionName: false,
120
+ * attributeMappings: [
121
+ * {
122
+ * certificateField: "x509Subject",
123
+ * mappingRules: [
124
+ * {
125
+ * specifier: "CN"
126
+ * }
127
+ * ]
128
+ * }
129
+ * ],
130
+ * createdAt: "2021-07-19T15:55:25.986591Z",
131
+ * createdBy: "arn:aws:sts::123456789012:assumed-role/Admin/DummyRole",
132
+ * durationSeconds: 3600,
133
+ * enabled: true,
134
+ * managedPolicyArns: [],
135
+ * name: "Dummy Profile",
136
+ * profileArn: "arn:aws:rolesanywhere:us-east-1:123456789012:profile/00000000-0000-0000-0000-000000000000",
137
+ * profileId: "00000000-0000-0000-0000-000000000000",
138
+ * requireInstanceProperties: false,
139
+ * roleArns: [
140
+ * "arn:aws:iam::123456789012:role/DummyRole"
141
+ * ],
142
+ * sessionPolicy: "",
143
+ * updatedAt: "2021-07-19T15:55:25.986591Z"
144
+ * }
145
+ * }
146
+ * *\/
147
+ * ```
148
+ *
101
149
  * @public
102
150
  */
103
151
  export declare class PutAttributeMappingCommand extends PutAttributeMappingCommand_base {
@@ -100,6 +100,58 @@ declare const PutNotificationSettingsCommand_base: {
100
100
  * @throws {@link RolesAnywhereServiceException}
101
101
  * <p>Base exception class for all service exceptions from RolesAnywhere service.</p>
102
102
  *
103
+ *
104
+ * @example PutNotificationSettings - Adds custom notification settings
105
+ * ```javascript
106
+ * //
107
+ * const input = {
108
+ * notificationSettings: [
109
+ * {
110
+ * enabled: true,
111
+ * event: "END_ENTITY_CERTIFICATE_EXPIRY",
112
+ * threshold: 10
113
+ * }
114
+ * ],
115
+ * trustAnchorId: "c2505e61-2fc1-4a18-9fcf-94e18a22928b"
116
+ * };
117
+ * const command = new PutNotificationSettingsCommand(input);
118
+ * const response = await client.send(command);
119
+ * /* response is
120
+ * {
121
+ * trustAnchor: {
122
+ * createdAt: "2021-07-19T15:55:25.986591Z",
123
+ * enabled: true,
124
+ * name: "PutNotificationSettings - TA with PCA - example",
125
+ * notificationSettings: [
126
+ * {
127
+ * channel: "ALL",
128
+ * configuredBy: "rolesanywhere.amazonaws.com",
129
+ * enabled: true,
130
+ * event: "CA_CERTIFICATE_EXPIRY",
131
+ * threshold: 45
132
+ * },
133
+ * {
134
+ * channel: "ALL",
135
+ * configuredBy: "123456789012",
136
+ * enabled: true,
137
+ * event: "END_ENTITY_CERTIFICATE_EXPIRY",
138
+ * threshold: 10
139
+ * }
140
+ * ],
141
+ * source: {
142
+ * sourceData: {
143
+ * acmPcaArn: "arn:aws:acm-pca:us-west-2:123456789012:certificate-authority/123abc00-1233-12b3-1a33-54cb9c1ce2f3"
144
+ * },
145
+ * sourceType: "AWS_ACM_PCA"
146
+ * },
147
+ * trustAnchorArn: "arn:aws:rolesanywhere:us-west-2:123456789012:trust-anchor/c2505e61-2fc1-4a18-9fcf-94e18a22928b",
148
+ * trustAnchorId: "c2505e61-2fc1-4a18-9fcf-94e18a22928b",
149
+ * updatedAt: "2021-07-19T15:55:25.986591Z"
150
+ * }
151
+ * }
152
+ * *\/
153
+ * ```
154
+ *
103
155
  * @public
104
156
  */
105
157
  export declare class PutNotificationSettingsCommand extends PutNotificationSettingsCommand_base {
@@ -97,6 +97,56 @@ declare const ResetNotificationSettingsCommand_base: {
97
97
  * @throws {@link RolesAnywhereServiceException}
98
98
  * <p>Base exception class for all service exceptions from RolesAnywhere service.</p>
99
99
  *
100
+ *
101
+ * @example ResetNotificationSettings - Resets to IAM Roles Anywhere defined default notification settings
102
+ * ```javascript
103
+ * //
104
+ * const input = {
105
+ * notificationSettingKeys: [
106
+ * {
107
+ * event: "END_ENTITY_CERTIFICATE_EXPIRY"
108
+ * }
109
+ * ],
110
+ * trustAnchorId: "c2505e61-2fc1-4a18-9fcf-94e18a22928b"
111
+ * };
112
+ * const command = new ResetNotificationSettingsCommand(input);
113
+ * const response = await client.send(command);
114
+ * /* response is
115
+ * {
116
+ * trustAnchor: {
117
+ * createdAt: "2021-07-19T15:55:25.986591Z",
118
+ * enabled: true,
119
+ * name: "ResetNotificationSettings - TA with PCA - example",
120
+ * notificationSettings: [
121
+ * {
122
+ * channel: "ALL",
123
+ * configuredBy: "rolesanywhere.amazonaws.com",
124
+ * enabled: true,
125
+ * event: "CA_CERTIFICATE_EXPIRY",
126
+ * threshold: 45
127
+ * },
128
+ * {
129
+ * channel: "ALL",
130
+ * configuredBy: "123456789012",
131
+ * enabled: true,
132
+ * event: "END_ENTITY_CERTIFICATE_EXPIRY",
133
+ * threshold: 45
134
+ * }
135
+ * ],
136
+ * source: {
137
+ * sourceData: {
138
+ * acmPcaArn: "arn:aws:acm-pca:us-west-2:123456789012:certificate-authority/123abc00-1233-12b3-1a33-54cb9c1ce2f3"
139
+ * },
140
+ * sourceType: "AWS_ACM_PCA"
141
+ * },
142
+ * trustAnchorArn: "arn:aws:rolesanywhere:us-west-2:123456789012:trust-anchor/c2505e61-2fc1-4a18-9fcf-94e18a22928b",
143
+ * trustAnchorId: "c2505e61-2fc1-4a18-9fcf-94e18a22928b",
144
+ * updatedAt: "2021-07-19T15:55:25.986591Z"
145
+ * }
146
+ * }
147
+ * *\/
148
+ * ```
149
+ *
100
150
  * @public
101
151
  */
102
152
  export declare class ResetNotificationSettingsCommand extends ResetNotificationSettingsCommand_base {
@@ -74,6 +74,7 @@ declare const TagResourceCommand_base: {
74
74
  * @throws {@link RolesAnywhereServiceException}
75
75
  * <p>Base exception class for all service exceptions from RolesAnywhere service.</p>
76
76
  *
77
+ *
77
78
  * @public
78
79
  */
79
80
  export declare class TagResourceCommand extends TagResourceCommand_base {
@@ -68,6 +68,7 @@ declare const UntagResourceCommand_base: {
68
68
  * @throws {@link RolesAnywhereServiceException}
69
69
  * <p>Base exception class for all service exceptions from RolesAnywhere service.</p>
70
70
  *
71
+ *
71
72
  * @public
72
73
  */
73
74
  export declare class UntagResourceCommand extends UntagResourceCommand_base {
@@ -80,6 +80,7 @@ declare const UpdateCrlCommand_base: {
80
80
  * @throws {@link RolesAnywhereServiceException}
81
81
  * <p>Base exception class for all service exceptions from RolesAnywhere service.</p>
82
82
  *
83
+ *
83
84
  * @public
84
85
  */
85
86
  export declare class UpdateCrlCommand extends UpdateCrlCommand_base {
@@ -107,6 +107,7 @@ declare const UpdateProfileCommand_base: {
107
107
  * @throws {@link RolesAnywhereServiceException}
108
108
  * <p>Base exception class for all service exceptions from RolesAnywhere service.</p>
109
109
  *
110
+ *
110
111
  * @public
111
112
  */
112
113
  export declare class UpdateProfileCommand extends UpdateProfileCommand_base {
@@ -103,6 +103,7 @@ declare const UpdateTrustAnchorCommand_base: {
103
103
  * @throws {@link RolesAnywhereServiceException}
104
104
  * <p>Base exception class for all service exceptions from RolesAnywhere service.</p>
105
105
  *
106
+ *
106
107
  * @public
107
108
  */
108
109
  export declare class UpdateTrustAnchorCommand extends UpdateTrustAnchorCommand_base {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-rolesanywhere",
3
3
  "description": "AWS SDK for JavaScript Rolesanywhere Client for Node.js, Browser and React Native",
4
- "version": "3.774.0",
4
+ "version": "3.777.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-rolesanywhere",
@@ -20,41 +20,41 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.774.0",
24
- "@aws-sdk/credential-provider-node": "3.774.0",
25
- "@aws-sdk/middleware-host-header": "3.774.0",
26
- "@aws-sdk/middleware-logger": "3.734.0",
27
- "@aws-sdk/middleware-recursion-detection": "3.772.0",
28
- "@aws-sdk/middleware-user-agent": "3.774.0",
29
- "@aws-sdk/region-config-resolver": "3.734.0",
30
- "@aws-sdk/types": "3.734.0",
31
- "@aws-sdk/util-endpoints": "3.743.0",
32
- "@aws-sdk/util-user-agent-browser": "3.734.0",
33
- "@aws-sdk/util-user-agent-node": "3.774.0",
34
- "@smithy/config-resolver": "^4.0.1",
35
- "@smithy/core": "^3.1.5",
36
- "@smithy/fetch-http-handler": "^5.0.1",
37
- "@smithy/hash-node": "^4.0.1",
38
- "@smithy/invalid-dependency": "^4.0.1",
39
- "@smithy/middleware-content-length": "^4.0.1",
40
- "@smithy/middleware-endpoint": "^4.0.6",
41
- "@smithy/middleware-retry": "^4.0.7",
42
- "@smithy/middleware-serde": "^4.0.2",
43
- "@smithy/middleware-stack": "^4.0.1",
44
- "@smithy/node-config-provider": "^4.0.1",
45
- "@smithy/node-http-handler": "^4.0.3",
46
- "@smithy/protocol-http": "^5.0.1",
47
- "@smithy/smithy-client": "^4.1.6",
48
- "@smithy/types": "^4.1.0",
49
- "@smithy/url-parser": "^4.0.1",
23
+ "@aws-sdk/core": "3.775.0",
24
+ "@aws-sdk/credential-provider-node": "3.777.0",
25
+ "@aws-sdk/middleware-host-header": "3.775.0",
26
+ "@aws-sdk/middleware-logger": "3.775.0",
27
+ "@aws-sdk/middleware-recursion-detection": "3.775.0",
28
+ "@aws-sdk/middleware-user-agent": "3.775.0",
29
+ "@aws-sdk/region-config-resolver": "3.775.0",
30
+ "@aws-sdk/types": "3.775.0",
31
+ "@aws-sdk/util-endpoints": "3.775.0",
32
+ "@aws-sdk/util-user-agent-browser": "3.775.0",
33
+ "@aws-sdk/util-user-agent-node": "3.775.0",
34
+ "@smithy/config-resolver": "^4.1.0",
35
+ "@smithy/core": "^3.2.0",
36
+ "@smithy/fetch-http-handler": "^5.0.2",
37
+ "@smithy/hash-node": "^4.0.2",
38
+ "@smithy/invalid-dependency": "^4.0.2",
39
+ "@smithy/middleware-content-length": "^4.0.2",
40
+ "@smithy/middleware-endpoint": "^4.1.0",
41
+ "@smithy/middleware-retry": "^4.1.0",
42
+ "@smithy/middleware-serde": "^4.0.3",
43
+ "@smithy/middleware-stack": "^4.0.2",
44
+ "@smithy/node-config-provider": "^4.0.2",
45
+ "@smithy/node-http-handler": "^4.0.4",
46
+ "@smithy/protocol-http": "^5.1.0",
47
+ "@smithy/smithy-client": "^4.2.0",
48
+ "@smithy/types": "^4.2.0",
49
+ "@smithy/url-parser": "^4.0.2",
50
50
  "@smithy/util-base64": "^4.0.0",
51
51
  "@smithy/util-body-length-browser": "^4.0.0",
52
52
  "@smithy/util-body-length-node": "^4.0.0",
53
- "@smithy/util-defaults-mode-browser": "^4.0.7",
54
- "@smithy/util-defaults-mode-node": "^4.0.7",
55
- "@smithy/util-endpoints": "^3.0.1",
56
- "@smithy/util-middleware": "^4.0.1",
57
- "@smithy/util-retry": "^4.0.1",
53
+ "@smithy/util-defaults-mode-browser": "^4.0.8",
54
+ "@smithy/util-defaults-mode-node": "^4.0.8",
55
+ "@smithy/util-endpoints": "^3.0.2",
56
+ "@smithy/util-middleware": "^4.0.2",
57
+ "@smithy/util-retry": "^4.0.2",
58
58
  "@smithy/util-utf8": "^4.0.0",
59
59
  "tslib": "^2.6.2"
60
60
  },