@depup/aws-sdk__client-secrets-manager 3.1010.0-depup.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 (159) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +39 -0
  3. package/changes.json +42 -0
  4. package/dist-cjs/auth/httpAuthSchemeProvider.js +46 -0
  5. package/dist-cjs/endpoint/endpointResolver.js +18 -0
  6. package/dist-cjs/endpoint/ruleset.js +7 -0
  7. package/dist-cjs/index.js +511 -0
  8. package/dist-cjs/models/SecretsManagerServiceException.js +12 -0
  9. package/dist-cjs/models/errors.js +184 -0
  10. package/dist-cjs/runtimeConfig.browser.js +38 -0
  11. package/dist-cjs/runtimeConfig.js +53 -0
  12. package/dist-cjs/runtimeConfig.native.js +15 -0
  13. package/dist-cjs/runtimeConfig.shared.js +43 -0
  14. package/dist-cjs/schemas/schemas_0.js +665 -0
  15. package/dist-es/SecretsManager.js +61 -0
  16. package/dist-es/SecretsManagerClient.js +50 -0
  17. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  18. package/dist-es/auth/httpAuthSchemeProvider.js +40 -0
  19. package/dist-es/commands/BatchGetSecretValueCommand.js +16 -0
  20. package/dist-es/commands/CancelRotateSecretCommand.js +16 -0
  21. package/dist-es/commands/CreateSecretCommand.js +16 -0
  22. package/dist-es/commands/DeleteResourcePolicyCommand.js +16 -0
  23. package/dist-es/commands/DeleteSecretCommand.js +16 -0
  24. package/dist-es/commands/DescribeSecretCommand.js +16 -0
  25. package/dist-es/commands/GetRandomPasswordCommand.js +16 -0
  26. package/dist-es/commands/GetResourcePolicyCommand.js +16 -0
  27. package/dist-es/commands/GetSecretValueCommand.js +16 -0
  28. package/dist-es/commands/ListSecretVersionIdsCommand.js +16 -0
  29. package/dist-es/commands/ListSecretsCommand.js +16 -0
  30. package/dist-es/commands/PutResourcePolicyCommand.js +16 -0
  31. package/dist-es/commands/PutSecretValueCommand.js +16 -0
  32. package/dist-es/commands/RemoveRegionsFromReplicationCommand.js +16 -0
  33. package/dist-es/commands/ReplicateSecretToRegionsCommand.js +16 -0
  34. package/dist-es/commands/RestoreSecretCommand.js +16 -0
  35. package/dist-es/commands/RotateSecretCommand.js +16 -0
  36. package/dist-es/commands/StopReplicationToReplicaCommand.js +16 -0
  37. package/dist-es/commands/TagResourceCommand.js +16 -0
  38. package/dist-es/commands/UntagResourceCommand.js +16 -0
  39. package/dist-es/commands/UpdateSecretCommand.js +16 -0
  40. package/dist-es/commands/UpdateSecretVersionStageCommand.js +16 -0
  41. package/dist-es/commands/ValidateResourcePolicyCommand.js +16 -0
  42. package/dist-es/commands/index.js +23 -0
  43. package/dist-es/endpoint/EndpointParameters.js +13 -0
  44. package/dist-es/endpoint/endpointResolver.js +14 -0
  45. package/dist-es/endpoint/ruleset.js +4 -0
  46. package/dist-es/extensionConfiguration.js +1 -0
  47. package/dist-es/index.js +9 -0
  48. package/dist-es/models/SecretsManagerServiceException.js +8 -0
  49. package/dist-es/models/enums.js +24 -0
  50. package/dist-es/models/errors.js +169 -0
  51. package/dist-es/models/models_0.js +1 -0
  52. package/dist-es/pagination/BatchGetSecretValuePaginator.js +4 -0
  53. package/dist-es/pagination/Interfaces.js +1 -0
  54. package/dist-es/pagination/ListSecretVersionIdsPaginator.js +4 -0
  55. package/dist-es/pagination/ListSecretsPaginator.js +4 -0
  56. package/dist-es/pagination/index.js +4 -0
  57. package/dist-es/runtimeConfig.browser.js +33 -0
  58. package/dist-es/runtimeConfig.js +48 -0
  59. package/dist-es/runtimeConfig.native.js +11 -0
  60. package/dist-es/runtimeConfig.shared.js +39 -0
  61. package/dist-es/runtimeExtensions.js +9 -0
  62. package/dist-es/schemas/schemas_0.js +661 -0
  63. package/dist-types/SecretsManager.d.ts +220 -0
  64. package/dist-types/SecretsManagerClient.d.ts +235 -0
  65. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  66. package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
  67. package/dist-types/commands/BatchGetSecretValueCommand.d.ts +210 -0
  68. package/dist-types/commands/CancelRotateSecretCommand.d.ts +135 -0
  69. package/dist-types/commands/CreateSecretCommand.d.ts +218 -0
  70. package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +126 -0
  71. package/dist-types/commands/DeleteSecretCommand.d.ts +135 -0
  72. package/dist-types/commands/DescribeSecretCommand.d.ts +137 -0
  73. package/dist-types/commands/GetRandomPasswordCommand.d.ts +135 -0
  74. package/dist-types/commands/GetResourcePolicyCommand.d.ts +138 -0
  75. package/dist-types/commands/GetSecretValueCommand.d.ts +157 -0
  76. package/dist-types/commands/ListSecretVersionIdsCommand.d.ts +151 -0
  77. package/dist-types/commands/ListSecretsCommand.d.ts +208 -0
  78. package/dist-types/commands/PutResourcePolicyCommand.d.ts +147 -0
  79. package/dist-types/commands/PutSecretValueCommand.d.ts +183 -0
  80. package/dist-types/commands/RemoveRegionsFromReplicationCommand.d.ts +122 -0
  81. package/dist-types/commands/ReplicateSecretToRegionsCommand.d.ts +157 -0
  82. package/dist-types/commands/RestoreSecretCommand.d.ts +126 -0
  83. package/dist-types/commands/RotateSecretCommand.d.ts +180 -0
  84. package/dist-types/commands/StopReplicationToReplicaCommand.d.ts +111 -0
  85. package/dist-types/commands/TagResourceCommand.d.ts +145 -0
  86. package/dist-types/commands/UntagResourceCommand.d.ts +134 -0
  87. package/dist-types/commands/UpdateSecretCommand.d.ts +221 -0
  88. package/dist-types/commands/UpdateSecretVersionStageCommand.d.ts +187 -0
  89. package/dist-types/commands/ValidateResourcePolicyCommand.d.ts +161 -0
  90. package/dist-types/commands/index.d.ts +23 -0
  91. package/dist-types/endpoint/EndpointParameters.d.ts +50 -0
  92. package/dist-types/endpoint/endpointResolver.d.ts +8 -0
  93. package/dist-types/endpoint/ruleset.d.ts +2 -0
  94. package/dist-types/extensionConfiguration.d.ts +9 -0
  95. package/dist-types/index.d.ts +42 -0
  96. package/dist-types/models/SecretsManagerServiceException.d.ts +14 -0
  97. package/dist-types/models/enums.d.ts +56 -0
  98. package/dist-types/models/errors.d.ts +175 -0
  99. package/dist-types/models/models_0.d.ts +1957 -0
  100. package/dist-types/pagination/BatchGetSecretValuePaginator.d.ts +7 -0
  101. package/dist-types/pagination/Interfaces.d.ts +8 -0
  102. package/dist-types/pagination/ListSecretVersionIdsPaginator.d.ts +7 -0
  103. package/dist-types/pagination/ListSecretsPaginator.d.ts +7 -0
  104. package/dist-types/pagination/index.d.ts +4 -0
  105. package/dist-types/runtimeConfig.browser.d.ts +55 -0
  106. package/dist-types/runtimeConfig.d.ts +55 -0
  107. package/dist-types/runtimeConfig.native.d.ts +54 -0
  108. package/dist-types/runtimeConfig.shared.d.ts +27 -0
  109. package/dist-types/runtimeExtensions.d.ts +17 -0
  110. package/dist-types/schemas/schemas_0.d.ts +99 -0
  111. package/dist-types/ts3.4/SecretsManager.d.ts +426 -0
  112. package/dist-types/ts3.4/SecretsManagerClient.d.ts +258 -0
  113. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  114. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +47 -0
  115. package/dist-types/ts3.4/commands/BatchGetSecretValueCommand.d.ts +51 -0
  116. package/dist-types/ts3.4/commands/CancelRotateSecretCommand.d.ts +51 -0
  117. package/dist-types/ts3.4/commands/CreateSecretCommand.d.ts +47 -0
  118. package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +51 -0
  119. package/dist-types/ts3.4/commands/DeleteSecretCommand.d.ts +47 -0
  120. package/dist-types/ts3.4/commands/DescribeSecretCommand.d.ts +50 -0
  121. package/dist-types/ts3.4/commands/GetRandomPasswordCommand.d.ts +51 -0
  122. package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +51 -0
  123. package/dist-types/ts3.4/commands/GetSecretValueCommand.d.ts +50 -0
  124. package/dist-types/ts3.4/commands/ListSecretVersionIdsCommand.d.ts +51 -0
  125. package/dist-types/ts3.4/commands/ListSecretsCommand.d.ts +47 -0
  126. package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +51 -0
  127. package/dist-types/ts3.4/commands/PutSecretValueCommand.d.ts +50 -0
  128. package/dist-types/ts3.4/commands/RemoveRegionsFromReplicationCommand.d.ts +51 -0
  129. package/dist-types/ts3.4/commands/ReplicateSecretToRegionsCommand.d.ts +51 -0
  130. package/dist-types/ts3.4/commands/RestoreSecretCommand.d.ts +50 -0
  131. package/dist-types/ts3.4/commands/RotateSecretCommand.d.ts +47 -0
  132. package/dist-types/ts3.4/commands/StopReplicationToReplicaCommand.d.ts +51 -0
  133. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +45 -0
  134. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +45 -0
  135. package/dist-types/ts3.4/commands/UpdateSecretCommand.d.ts +47 -0
  136. package/dist-types/ts3.4/commands/UpdateSecretVersionStageCommand.d.ts +51 -0
  137. package/dist-types/ts3.4/commands/ValidateResourcePolicyCommand.d.ts +51 -0
  138. package/dist-types/ts3.4/commands/index.d.ts +23 -0
  139. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
  140. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  141. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  142. package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
  143. package/dist-types/ts3.4/index.d.ts +12 -0
  144. package/dist-types/ts3.4/models/SecretsManagerServiceException.d.ts +9 -0
  145. package/dist-types/ts3.4/models/enums.d.ts +29 -0
  146. package/dist-types/ts3.4/models/errors.d.ts +97 -0
  147. package/dist-types/ts3.4/models/models_0.d.ts +333 -0
  148. package/dist-types/ts3.4/pagination/BatchGetSecretValuePaginator.d.ts +11 -0
  149. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  150. package/dist-types/ts3.4/pagination/ListSecretVersionIdsPaginator.d.ts +11 -0
  151. package/dist-types/ts3.4/pagination/ListSecretsPaginator.d.ts +11 -0
  152. package/dist-types/ts3.4/pagination/index.d.ts +4 -0
  153. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +100 -0
  154. package/dist-types/ts3.4/runtimeConfig.d.ts +95 -0
  155. package/dist-types/ts3.4/runtimeConfig.native.d.ts +104 -0
  156. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +30 -0
  157. package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  158. package/dist-types/ts3.4/schemas/schemas_0.d.ts +98 -0
  159. package/package.json +159 -0
@@ -0,0 +1,161 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { ValidateResourcePolicyRequest, ValidateResourcePolicyResponse } from "../models/models_0";
4
+ import type { SecretsManagerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecretsManagerClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ValidateResourcePolicyCommand}.
14
+ */
15
+ export interface ValidateResourcePolicyCommandInput extends ValidateResourcePolicyRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ValidateResourcePolicyCommand}.
21
+ */
22
+ export interface ValidateResourcePolicyCommandOutput extends ValidateResourcePolicyResponse, __MetadataBearer {
23
+ }
24
+ declare const ValidateResourcePolicyCommand_base: {
25
+ new (input: ValidateResourcePolicyCommandInput): import("@smithy/smithy-client").CommandImpl<ValidateResourcePolicyCommandInput, ValidateResourcePolicyCommandOutput, SecretsManagerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: ValidateResourcePolicyCommandInput): import("@smithy/smithy-client").CommandImpl<ValidateResourcePolicyCommandInput, ValidateResourcePolicyCommandOutput, SecretsManagerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Validates that a resource policy does not grant a wide range of principals access to
31
+ * your secret. A resource-based policy is optional for secrets.</p>
32
+ * <p>The API performs three checks when validating the policy:</p>
33
+ * <ul>
34
+ * <li>
35
+ * <p>Sends a call to <a href="https://aws.amazon.com/blogs/security/protect-sensitive-data-in-the-cloud-with-automated-reasoning-zelkova/">Zelkova</a>, an automated reasoning engine, to ensure your resource
36
+ * policy does not allow broad access to your secret, for example policies that use
37
+ * a wildcard for the principal.</p>
38
+ * </li>
39
+ * <li>
40
+ * <p>Checks for correct syntax in a policy.</p>
41
+ * </li>
42
+ * <li>
43
+ * <p>Verifies the policy does not lock out a caller.</p>
44
+ * </li>
45
+ * </ul>
46
+ * <p>Secrets Manager generates a CloudTrail log entry when you call this action. Do not include sensitive information in request parameters because it might be logged. For more information, see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/retrieve-ct-entries.html">Logging Secrets Manager events with CloudTrail</a>.</p>
47
+ * <p>
48
+ * <b>Required permissions:
49
+ * </b>
50
+ * <code>secretsmanager:ValidateResourcePolicy</code> and
51
+ * <code>secretsmanager:PutResourcePolicy</code>. For more information, see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_iam-permissions.html#reference_iam-permissions_actions">
52
+ * IAM policy actions for Secrets Manager</a> and <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access.html">Authentication
53
+ * and access control in Secrets Manager</a>. </p>
54
+ * @example
55
+ * Use a bare-bones client and the command you need to make an API call.
56
+ * ```javascript
57
+ * import { SecretsManagerClient, ValidateResourcePolicyCommand } from "@aws-sdk/client-secrets-manager"; // ES Modules import
58
+ * // const { SecretsManagerClient, ValidateResourcePolicyCommand } = require("@aws-sdk/client-secrets-manager"); // CommonJS import
59
+ * // import type { SecretsManagerClientConfig } from "@aws-sdk/client-secrets-manager";
60
+ * const config = {}; // type is SecretsManagerClientConfig
61
+ * const client = new SecretsManagerClient(config);
62
+ * const input = { // ValidateResourcePolicyRequest
63
+ * SecretId: "STRING_VALUE",
64
+ * ResourcePolicy: "STRING_VALUE", // required
65
+ * };
66
+ * const command = new ValidateResourcePolicyCommand(input);
67
+ * const response = await client.send(command);
68
+ * // { // ValidateResourcePolicyResponse
69
+ * // PolicyValidationPassed: true || false,
70
+ * // ValidationErrors: [ // ValidationErrorsType
71
+ * // { // ValidationErrorsEntry
72
+ * // CheckName: "STRING_VALUE",
73
+ * // ErrorMessage: "STRING_VALUE",
74
+ * // },
75
+ * // ],
76
+ * // };
77
+ *
78
+ * ```
79
+ *
80
+ * @param ValidateResourcePolicyCommandInput - {@link ValidateResourcePolicyCommandInput}
81
+ * @returns {@link ValidateResourcePolicyCommandOutput}
82
+ * @see {@link ValidateResourcePolicyCommandInput} for command's `input` shape.
83
+ * @see {@link ValidateResourcePolicyCommandOutput} for command's `response` shape.
84
+ * @see {@link SecretsManagerClientResolvedConfig | config} for SecretsManagerClient's `config` shape.
85
+ *
86
+ * @throws {@link InternalServiceError} (server fault)
87
+ * <p>An error occurred on the server side.</p>
88
+ *
89
+ * @throws {@link InvalidParameterException} (client fault)
90
+ * <p>The parameter name or value is invalid.</p>
91
+ *
92
+ * @throws {@link InvalidRequestException} (client fault)
93
+ * <p>A parameter value is not valid for the current state of the
94
+ * resource.</p>
95
+ * <p>Possible causes:</p>
96
+ * <ul>
97
+ * <li>
98
+ * <p>The secret is scheduled for deletion.</p>
99
+ * </li>
100
+ * <li>
101
+ * <p>You tried to enable rotation on a secret that doesn't already have a Lambda function
102
+ * ARN configured and you didn't include such an ARN as a parameter in this call. </p>
103
+ * </li>
104
+ * <li>
105
+ * <p>The secret is managed by another service, and you must use that service to update it.
106
+ * For more information, see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/service-linked-secrets.html">Secrets managed by other Amazon Web Services services</a>.</p>
107
+ * </li>
108
+ * </ul>
109
+ *
110
+ * @throws {@link MalformedPolicyDocumentException} (client fault)
111
+ * <p>The resource policy has syntax errors.</p>
112
+ *
113
+ * @throws {@link ResourceNotFoundException} (client fault)
114
+ * <p>Secrets Manager can't find the resource that you asked for.</p>
115
+ *
116
+ * @throws {@link SecretsManagerServiceException}
117
+ * <p>Base exception class for all service exceptions from SecretsManager service.</p>
118
+ *
119
+ *
120
+ * @example To validate a resource-based policy to a secret
121
+ * ```javascript
122
+ * // The following example shows how to validate a resource-based policy to a secret.
123
+ * const input = {
124
+ * ResourcePolicy: `{
125
+ * "Version":"2012-10-17",
126
+ * "Statement":[{
127
+ * "Effect":"Allow",
128
+ * "Principal":{
129
+ * "AWS":"arn:aws:iam::123456789012:root"
130
+ * },
131
+ * "Action":"secretsmanager:GetSecretValue",
132
+ * "Resource":"*"
133
+ * }]
134
+ * }`,
135
+ * SecretId: "MyTestDatabaseSecret"
136
+ * };
137
+ * const command = new ValidateResourcePolicyCommand(input);
138
+ * const response = await client.send(command);
139
+ * /* response is
140
+ * {
141
+ * PolicyValidationPassed: true,
142
+ * ValidationErrors: []
143
+ * }
144
+ * *\/
145
+ * ```
146
+ *
147
+ * @public
148
+ */
149
+ export declare class ValidateResourcePolicyCommand extends ValidateResourcePolicyCommand_base {
150
+ /** @internal type navigation helper, not in runtime. */
151
+ protected static __types: {
152
+ api: {
153
+ input: ValidateResourcePolicyRequest;
154
+ output: ValidateResourcePolicyResponse;
155
+ };
156
+ sdk: {
157
+ input: ValidateResourcePolicyCommandInput;
158
+ output: ValidateResourcePolicyCommandOutput;
159
+ };
160
+ };
161
+ }
@@ -0,0 +1,23 @@
1
+ export * from "./BatchGetSecretValueCommand";
2
+ export * from "./CancelRotateSecretCommand";
3
+ export * from "./CreateSecretCommand";
4
+ export * from "./DeleteResourcePolicyCommand";
5
+ export * from "./DeleteSecretCommand";
6
+ export * from "./DescribeSecretCommand";
7
+ export * from "./GetRandomPasswordCommand";
8
+ export * from "./GetResourcePolicyCommand";
9
+ export * from "./GetSecretValueCommand";
10
+ export * from "./ListSecretVersionIdsCommand";
11
+ export * from "./ListSecretsCommand";
12
+ export * from "./PutResourcePolicyCommand";
13
+ export * from "./PutSecretValueCommand";
14
+ export * from "./RemoveRegionsFromReplicationCommand";
15
+ export * from "./ReplicateSecretToRegionsCommand";
16
+ export * from "./RestoreSecretCommand";
17
+ export * from "./RotateSecretCommand";
18
+ export * from "./StopReplicationToReplicaCommand";
19
+ export * from "./TagResourceCommand";
20
+ export * from "./UntagResourceCommand";
21
+ export * from "./UpdateSecretCommand";
22
+ export * from "./UpdateSecretVersionStageCommand";
23
+ export * from "./ValidateResourcePolicyCommand";
@@ -0,0 +1,50 @@
1
+ import type { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@smithy/types";
2
+ /**
3
+ * @public
4
+ */
5
+ export interface ClientInputEndpointParameters {
6
+ region?: string | undefined | Provider<string | undefined>;
7
+ useDualstackEndpoint?: boolean | undefined | Provider<boolean | undefined>;
8
+ useFipsEndpoint?: boolean | undefined | Provider<boolean | undefined>;
9
+ endpoint?: string | Provider<string> | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;
10
+ }
11
+ /**
12
+ * @public
13
+ */
14
+ export type ClientResolvedEndpointParameters = Omit<ClientInputEndpointParameters, "endpoint"> & {
15
+ defaultSigningName: string;
16
+ };
17
+ /**
18
+ * @internal
19
+ */
20
+ export declare const resolveClientEndpointParameters: <T>(options: T & ClientInputEndpointParameters) => T & ClientResolvedEndpointParameters;
21
+ /**
22
+ * @internal
23
+ */
24
+ export declare const commonParams: {
25
+ readonly UseFIPS: {
26
+ readonly type: "builtInParams";
27
+ readonly name: "useFipsEndpoint";
28
+ };
29
+ readonly Endpoint: {
30
+ readonly type: "builtInParams";
31
+ readonly name: "endpoint";
32
+ };
33
+ readonly Region: {
34
+ readonly type: "builtInParams";
35
+ readonly name: "region";
36
+ };
37
+ readonly UseDualStack: {
38
+ readonly type: "builtInParams";
39
+ readonly name: "useDualstackEndpoint";
40
+ };
41
+ };
42
+ /**
43
+ * @internal
44
+ */
45
+ export interface EndpointParameters extends __EndpointParameters {
46
+ Region?: string | undefined;
47
+ UseDualStack?: boolean | undefined;
48
+ UseFIPS?: boolean | undefined;
49
+ Endpoint?: string | undefined;
50
+ }
@@ -0,0 +1,8 @@
1
+ import type { EndpointV2, Logger } from "@smithy/types";
2
+ import type { EndpointParameters } from "./EndpointParameters";
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare const defaultEndpointResolver: (endpointParams: EndpointParameters, context?: {
7
+ logger?: Logger;
8
+ }) => EndpointV2;
@@ -0,0 +1,2 @@
1
+ import { RuleSetObject } from "@smithy/types";
2
+ export declare const ruleSet: RuleSetObject;
@@ -0,0 +1,9 @@
1
+ import type { AwsRegionExtensionConfiguration } from "@aws-sdk/types";
2
+ import type { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
3
+ import type { DefaultExtensionConfiguration } from "@smithy/types";
4
+ import type { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration";
5
+ /**
6
+ * @internal
7
+ */
8
+ export interface SecretsManagerExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration, AwsRegionExtensionConfiguration, HttpAuthExtensionConfiguration {
9
+ }
@@ -0,0 +1,42 @@
1
+ /**
2
+ * <fullname>Amazon Web Services Secrets Manager</fullname>
3
+ * <p>Amazon Web Services Secrets Manager provides a service to enable you to store, manage, and retrieve, secrets.</p>
4
+ * <p>This guide provides descriptions of the Secrets Manager API. For more information about using this
5
+ * service, see the <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/introduction.html">Amazon Web Services Secrets Manager User Guide</a>.</p>
6
+ * <p>
7
+ * <b>API Version</b>
8
+ * </p>
9
+ * <p>This version of the Secrets Manager API Reference documents the Secrets Manager API version 2017-10-17.</p>
10
+ * <p>For a list of endpoints, see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/asm_access.html#endpoints">Amazon Web Services Secrets Manager
11
+ * endpoints</a>.</p>
12
+ * <p>
13
+ * <b>Support and Feedback for Amazon Web Services Secrets Manager</b>
14
+ * </p>
15
+ * <p>We welcome your feedback. Send your comments to <a href="mailto:awssecretsmanager-feedback@amazon.com">awssecretsmanager-feedback@amazon.com</a>, or post your feedback and questions in the <a href="http://forums.aws.amazon.com/forum.jspa?forumID=296">Amazon Web Services Secrets Manager Discussion Forum</a>. For more
16
+ * information about the Amazon Web Services Discussion Forums, see <a href="http://forums.aws.amazon.com/help.jspa">Forums
17
+ * Help</a>.</p>
18
+ * <p>
19
+ * <b>Logging API Requests</b>
20
+ * </p>
21
+ * <p>Amazon Web Services Secrets Manager supports Amazon Web Services CloudTrail, a service that records Amazon Web Services API calls for your Amazon Web Services
22
+ * account and delivers log files to an Amazon S3 bucket. By using information that's collected
23
+ * by Amazon Web Services CloudTrail, you can determine the requests successfully made to Secrets Manager, who made the
24
+ * request, when it was made, and so on. For more about Amazon Web Services Secrets Manager and support for Amazon Web Services
25
+ * CloudTrail, see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/monitoring.html#monitoring_cloudtrail">Logging
26
+ * Amazon Web Services Secrets Manager Events with Amazon Web Services CloudTrail</a> in the <i>Amazon Web Services Secrets Manager User Guide</i>.
27
+ * To learn more about CloudTrail, including enabling it and find your log files, see the <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/what_is_cloud_trail_top_level.html">Amazon Web Services CloudTrail User Guide</a>.</p>
28
+ *
29
+ * @packageDocumentation
30
+ */
31
+ export * from "./SecretsManagerClient";
32
+ export * from "./SecretsManager";
33
+ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
34
+ export type { RuntimeExtension } from "./runtimeExtensions";
35
+ export type { SecretsManagerExtensionConfiguration } from "./extensionConfiguration";
36
+ export * from "./commands";
37
+ export * from "./schemas/schemas_0";
38
+ export * from "./pagination";
39
+ export * from "./models/enums";
40
+ export * from "./models/errors";
41
+ export * from "./models/models_0";
42
+ export { SecretsManagerServiceException } from "./models/SecretsManagerServiceException";
@@ -0,0 +1,14 @@
1
+ import { type ServiceExceptionOptions as __ServiceExceptionOptions, ServiceException as __ServiceException } from "@smithy/smithy-client";
2
+ export type { __ServiceExceptionOptions };
3
+ export { __ServiceException };
4
+ /**
5
+ * @public
6
+ *
7
+ * Base exception class for all service exceptions from SecretsManager service.
8
+ */
9
+ export declare class SecretsManagerServiceException extends __ServiceException {
10
+ /**
11
+ * @internal
12
+ */
13
+ constructor(options: __ServiceExceptionOptions);
14
+ }
@@ -0,0 +1,56 @@
1
+ /**
2
+ * @public
3
+ * @enum
4
+ */
5
+ export declare const FilterNameStringType: {
6
+ readonly all: "all";
7
+ readonly description: "description";
8
+ readonly name: "name";
9
+ readonly owning_service: "owning-service";
10
+ readonly primary_region: "primary-region";
11
+ readonly tag_key: "tag-key";
12
+ readonly tag_value: "tag-value";
13
+ };
14
+ /**
15
+ * @public
16
+ */
17
+ export type FilterNameStringType = (typeof FilterNameStringType)[keyof typeof FilterNameStringType];
18
+ /**
19
+ * @public
20
+ * @enum
21
+ */
22
+ export declare const StatusType: {
23
+ readonly Failed: "Failed";
24
+ readonly InProgress: "InProgress";
25
+ readonly InSync: "InSync";
26
+ };
27
+ /**
28
+ * @public
29
+ */
30
+ export type StatusType = (typeof StatusType)[keyof typeof StatusType];
31
+ /**
32
+ * @public
33
+ * @enum
34
+ */
35
+ export declare const SortByType: {
36
+ readonly created_date: "created-date";
37
+ readonly last_accessed_date: "last-accessed-date";
38
+ readonly last_changed_date: "last-changed-date";
39
+ readonly name: "name";
40
+ };
41
+ /**
42
+ * @public
43
+ */
44
+ export type SortByType = (typeof SortByType)[keyof typeof SortByType];
45
+ /**
46
+ * @public
47
+ * @enum
48
+ */
49
+ export declare const SortOrderType: {
50
+ readonly asc: "asc";
51
+ readonly desc: "desc";
52
+ };
53
+ /**
54
+ * @public
55
+ */
56
+ export type SortOrderType = (typeof SortOrderType)[keyof typeof SortOrderType];
@@ -0,0 +1,175 @@
1
+ import type { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { SecretsManagerServiceException as __BaseException } from "./SecretsManagerServiceException";
3
+ /**
4
+ * <p>Secrets Manager can't decrypt the protected secret text using the provided KMS key. </p>
5
+ * @public
6
+ */
7
+ export declare class DecryptionFailure extends __BaseException {
8
+ readonly name: "DecryptionFailure";
9
+ readonly $fault: "client";
10
+ Message?: string | undefined;
11
+ /**
12
+ * @internal
13
+ */
14
+ constructor(opts: __ExceptionOptionType<DecryptionFailure, __BaseException>);
15
+ }
16
+ /**
17
+ * <p>An error occurred on the server side.</p>
18
+ * @public
19
+ */
20
+ export declare class InternalServiceError extends __BaseException {
21
+ readonly name: "InternalServiceError";
22
+ readonly $fault: "server";
23
+ Message?: string | undefined;
24
+ /**
25
+ * @internal
26
+ */
27
+ constructor(opts: __ExceptionOptionType<InternalServiceError, __BaseException>);
28
+ }
29
+ /**
30
+ * <p>The <code>NextToken</code> value is invalid.</p>
31
+ * @public
32
+ */
33
+ export declare class InvalidNextTokenException extends __BaseException {
34
+ readonly name: "InvalidNextTokenException";
35
+ readonly $fault: "client";
36
+ Message?: string | undefined;
37
+ /**
38
+ * @internal
39
+ */
40
+ constructor(opts: __ExceptionOptionType<InvalidNextTokenException, __BaseException>);
41
+ }
42
+ /**
43
+ * <p>The parameter name or value is invalid.</p>
44
+ * @public
45
+ */
46
+ export declare class InvalidParameterException extends __BaseException {
47
+ readonly name: "InvalidParameterException";
48
+ readonly $fault: "client";
49
+ Message?: string | undefined;
50
+ /**
51
+ * @internal
52
+ */
53
+ constructor(opts: __ExceptionOptionType<InvalidParameterException, __BaseException>);
54
+ }
55
+ /**
56
+ * <p>A parameter value is not valid for the current state of the
57
+ * resource.</p>
58
+ * <p>Possible causes:</p>
59
+ * <ul>
60
+ * <li>
61
+ * <p>The secret is scheduled for deletion.</p>
62
+ * </li>
63
+ * <li>
64
+ * <p>You tried to enable rotation on a secret that doesn't already have a Lambda function
65
+ * ARN configured and you didn't include such an ARN as a parameter in this call. </p>
66
+ * </li>
67
+ * <li>
68
+ * <p>The secret is managed by another service, and you must use that service to update it.
69
+ * For more information, see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/service-linked-secrets.html">Secrets managed by other Amazon Web Services services</a>.</p>
70
+ * </li>
71
+ * </ul>
72
+ * @public
73
+ */
74
+ export declare class InvalidRequestException extends __BaseException {
75
+ readonly name: "InvalidRequestException";
76
+ readonly $fault: "client";
77
+ Message?: string | undefined;
78
+ /**
79
+ * @internal
80
+ */
81
+ constructor(opts: __ExceptionOptionType<InvalidRequestException, __BaseException>);
82
+ }
83
+ /**
84
+ * <p>Secrets Manager can't find the resource that you asked for.</p>
85
+ * @public
86
+ */
87
+ export declare class ResourceNotFoundException extends __BaseException {
88
+ readonly name: "ResourceNotFoundException";
89
+ readonly $fault: "client";
90
+ Message?: string | undefined;
91
+ /**
92
+ * @internal
93
+ */
94
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
95
+ }
96
+ /**
97
+ * <p>Secrets Manager can't encrypt the protected secret text using the provided KMS key. Check that the
98
+ * KMS key is available, enabled, and not in an invalid state. For more
99
+ * information, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key state: Effect on your KMS key</a>.</p>
100
+ * @public
101
+ */
102
+ export declare class EncryptionFailure extends __BaseException {
103
+ readonly name: "EncryptionFailure";
104
+ readonly $fault: "client";
105
+ Message?: string | undefined;
106
+ /**
107
+ * @internal
108
+ */
109
+ constructor(opts: __ExceptionOptionType<EncryptionFailure, __BaseException>);
110
+ }
111
+ /**
112
+ * <p>The request failed because it would exceed one of the Secrets Manager quotas.</p>
113
+ * @public
114
+ */
115
+ export declare class LimitExceededException extends __BaseException {
116
+ readonly name: "LimitExceededException";
117
+ readonly $fault: "client";
118
+ Message?: string | undefined;
119
+ /**
120
+ * @internal
121
+ */
122
+ constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
123
+ }
124
+ /**
125
+ * <p>The resource policy has syntax errors.</p>
126
+ * @public
127
+ */
128
+ export declare class MalformedPolicyDocumentException extends __BaseException {
129
+ readonly name: "MalformedPolicyDocumentException";
130
+ readonly $fault: "client";
131
+ Message?: string | undefined;
132
+ /**
133
+ * @internal
134
+ */
135
+ constructor(opts: __ExceptionOptionType<MalformedPolicyDocumentException, __BaseException>);
136
+ }
137
+ /**
138
+ * <p>The request failed because you did not complete all the prerequisite steps.</p>
139
+ * @public
140
+ */
141
+ export declare class PreconditionNotMetException extends __BaseException {
142
+ readonly name: "PreconditionNotMetException";
143
+ readonly $fault: "client";
144
+ Message?: string | undefined;
145
+ /**
146
+ * @internal
147
+ */
148
+ constructor(opts: __ExceptionOptionType<PreconditionNotMetException, __BaseException>);
149
+ }
150
+ /**
151
+ * <p>A resource with the ID you requested already exists.</p>
152
+ * @public
153
+ */
154
+ export declare class ResourceExistsException extends __BaseException {
155
+ readonly name: "ResourceExistsException";
156
+ readonly $fault: "client";
157
+ Message?: string | undefined;
158
+ /**
159
+ * @internal
160
+ */
161
+ constructor(opts: __ExceptionOptionType<ResourceExistsException, __BaseException>);
162
+ }
163
+ /**
164
+ * <p>The <code>BlockPublicPolicy</code> parameter is set to true, and the resource policy did not prevent broad access to the secret.</p>
165
+ * @public
166
+ */
167
+ export declare class PublicPolicyException extends __BaseException {
168
+ readonly name: "PublicPolicyException";
169
+ readonly $fault: "client";
170
+ Message?: string | undefined;
171
+ /**
172
+ * @internal
173
+ */
174
+ constructor(opts: __ExceptionOptionType<PublicPolicyException, __BaseException>);
175
+ }