@aws-sdk/client-abuse-signal 0.0.0-stage → 3.1172.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 (91) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +201 -2
  3. package/dist-cjs/index.js +785 -0
  4. package/dist-es/AbuseSignal.js +21 -0
  5. package/dist-es/AbuseSignalClient.js +48 -0
  6. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  7. package/dist-es/auth/httpAuthSchemeProvider.js +122 -0
  8. package/dist-es/commandBuilder.js +6 -0
  9. package/dist-es/commands/CreateAbuseReportCommand.js +4 -0
  10. package/dist-es/commands/GetAbuseReportStatusCommand.js +4 -0
  11. package/dist-es/commands/ListAbuseReportStatusesCommand.js +4 -0
  12. package/dist-es/commands/index.js +3 -0
  13. package/dist-es/endpoint/EndpointParameters.js +13 -0
  14. package/dist-es/endpoint/bdd.js +46 -0
  15. package/dist-es/endpoint/endpointResolver.js +14 -0
  16. package/dist-es/extensionConfiguration.js +1 -0
  17. package/dist-es/index.js +11 -0
  18. package/dist-es/models/AbuseSignalServiceException.js +9 -0
  19. package/dist-es/models/enums.js +12 -0
  20. package/dist-es/models/errors.js +110 -0
  21. package/dist-es/models/models_0.js +1 -0
  22. package/dist-es/pagination/Interfaces.js +1 -0
  23. package/dist-es/pagination/ListAbuseReportStatusesPaginator.js +4 -0
  24. package/dist-es/pagination/index.js +2 -0
  25. package/dist-es/runtimeConfig.browser.js +29 -0
  26. package/dist-es/runtimeConfig.js +45 -0
  27. package/dist-es/runtimeConfig.native.js +9 -0
  28. package/dist-es/runtimeConfig.shared.js +47 -0
  29. package/dist-es/runtimeExtensions.js +9 -0
  30. package/dist-es/schemas/schemas_0.js +176 -0
  31. package/dist-es/waiters/index.js +1 -0
  32. package/dist-es/waiters/waitForReportProcessing.js +43 -0
  33. package/dist-types/AbuseSignal.d.ts +52 -0
  34. package/dist-types/AbuseSignalClient.d.ts +190 -0
  35. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  36. package/dist-types/auth/httpAuthSchemeProvider.d.ts +83 -0
  37. package/dist-types/commandBuilder.d.ts +18 -0
  38. package/dist-types/commands/CreateAbuseReportCommand.d.ts +112 -0
  39. package/dist-types/commands/GetAbuseReportStatusCommand.d.ts +110 -0
  40. package/dist-types/commands/ListAbuseReportStatusesCommand.d.ts +113 -0
  41. package/dist-types/commands/index.d.ts +3 -0
  42. package/dist-types/endpoint/EndpointParameters.d.ts +50 -0
  43. package/dist-types/endpoint/bdd.d.ts +2 -0
  44. package/dist-types/endpoint/endpointResolver.d.ts +8 -0
  45. package/dist-types/extensionConfiguration.d.ts +9 -0
  46. package/dist-types/index.d.ts +19 -0
  47. package/dist-types/models/AbuseSignalServiceException.d.ts +15 -0
  48. package/dist-types/models/enums.d.ts +28 -0
  49. package/dist-types/models/errors.d.ts +133 -0
  50. package/dist-types/models/models_0.d.ts +229 -0
  51. package/dist-types/pagination/Interfaces.d.ts +8 -0
  52. package/dist-types/pagination/ListAbuseReportStatusesPaginator.d.ts +7 -0
  53. package/dist-types/pagination/index.d.ts +2 -0
  54. package/dist-types/runtimeConfig.browser.d.ts +58 -0
  55. package/dist-types/runtimeConfig.d.ts +59 -0
  56. package/dist-types/runtimeConfig.native.d.ts +57 -0
  57. package/dist-types/runtimeConfig.shared.d.ts +30 -0
  58. package/dist-types/runtimeExtensions.d.ts +17 -0
  59. package/dist-types/schemas/schemas_0.d.ts +29 -0
  60. package/dist-types/ts3.4/AbuseSignal.d.ts +83 -0
  61. package/dist-types/ts3.4/AbuseSignalClient.d.ts +119 -0
  62. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +25 -0
  63. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +53 -0
  64. package/dist-types/ts3.4/commandBuilder.d.ts +40 -0
  65. package/dist-types/ts3.4/commands/CreateAbuseReportCommand.d.ts +39 -0
  66. package/dist-types/ts3.4/commands/GetAbuseReportStatusCommand.d.ts +39 -0
  67. package/dist-types/ts3.4/commands/ListAbuseReportStatusesCommand.d.ts +42 -0
  68. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  69. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
  70. package/dist-types/ts3.4/endpoint/bdd.d.ts +2 -0
  71. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  72. package/dist-types/ts3.4/extensionConfiguration.d.ts +10 -0
  73. package/dist-types/ts3.4/index.d.ts +14 -0
  74. package/dist-types/ts3.4/models/AbuseSignalServiceException.d.ts +10 -0
  75. package/dist-types/ts3.4/models/enums.d.ts +15 -0
  76. package/dist-types/ts3.4/models/errors.d.ts +56 -0
  77. package/dist-types/ts3.4/models/models_0.d.ts +63 -0
  78. package/dist-types/ts3.4/pagination/Interfaces.d.ts +5 -0
  79. package/dist-types/ts3.4/pagination/ListAbuseReportStatusesPaginator.d.ts +11 -0
  80. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  81. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +99 -0
  82. package/dist-types/ts3.4/runtimeConfig.d.ts +99 -0
  83. package/dist-types/ts3.4/runtimeConfig.native.d.ts +103 -0
  84. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +38 -0
  85. package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  86. package/dist-types/ts3.4/schemas/schemas_0.d.ts +29 -0
  87. package/dist-types/ts3.4/waiters/index.d.ts +1 -0
  88. package/dist-types/ts3.4/waiters/waitForReportProcessing.d.ts +15 -0
  89. package/dist-types/waiters/index.d.ts +1 -0
  90. package/dist-types/waiters/waitForReportProcessing.d.ts +29 -0
  91. package/package.json +68 -4
@@ -0,0 +1,112 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { CreateAbuseReportRequest, CreateAbuseReportResponse } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link CreateAbuseReportCommand}.
11
+ */
12
+ export interface CreateAbuseReportCommandInput extends CreateAbuseReportRequest {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link CreateAbuseReportCommand}.
18
+ */
19
+ export interface CreateAbuseReportCommandOutput extends CreateAbuseReportResponse, __MetadataBearer {
20
+ }
21
+ declare const CreateAbuseReportCommand_base: {
22
+ new (input: CreateAbuseReportCommandInput): import("@smithy/core/client").CommandImpl<CreateAbuseReportCommandInput, CreateAbuseReportCommandOutput, import("..").AbuseSignalClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: CreateAbuseReportCommandInput): import("@smithy/core/client").CommandImpl<CreateAbuseReportCommandInput, CreateAbuseReportCommandOutput, import("..").AbuseSignalClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Submits a structured report. Amazon Web Services validates it and returns a report ID. A successful response confirms that Amazon Web Services received your report. It doesn't mean that Amazon Web Services has reached an outcome. Use <a>GetAbuseReportStatus</a> with the report ID to check the report's status and outcome.</p> <p>This operation is idempotent within a time window. If you provide a <code>clientToken</code>, duplicate requests within 24 hours return the existing report ID. If you omit it, the service generates a token scoped to 5 minutes.</p> <important> <p> <b>Cross-Region data residency:</b> By submitting a report, you instruct Amazon Web Services to store it in all supported Regions (<code>us-east-1</code>, <code>us-west-2</code>, and <code>eu-west-2</code>), including across the United States and Europe. If data must remain in a single Region, do not include it in the report.</p> </important>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { AbuseSignalClient, CreateAbuseReportCommand } from "@aws-sdk/client-abuse-signal"; // ES Modules import
32
+ * // const { AbuseSignalClient, CreateAbuseReportCommand } = require("@aws-sdk/client-abuse-signal"); // CommonJS import
33
+ * // import type { AbuseSignalClientConfig } from "@aws-sdk/client-abuse-signal";
34
+ * const config = {}; // type is AbuseSignalClientConfig
35
+ * const client = new AbuseSignalClient(config);
36
+ * const input = { // CreateAbuseReportRequest
37
+ * report: { // ReportData Union: only one key present
38
+ * xarf: "DOCUMENT_VALUE",
39
+ * },
40
+ * correlationId: "STRING_VALUE",
41
+ * clientToken: "STRING_VALUE",
42
+ * };
43
+ * const command = new CreateAbuseReportCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // CreateAbuseReportResponse
46
+ * // reportId: "STRING_VALUE", // required
47
+ * // correlationId: "STRING_VALUE",
48
+ * // };
49
+ *
50
+ * ```
51
+ *
52
+ * @param CreateAbuseReportCommandInput - {@link CreateAbuseReportCommandInput}
53
+ * @returns {@link CreateAbuseReportCommandOutput}
54
+ * @see {@link CreateAbuseReportCommandInput} for command's `input` shape.
55
+ * @see {@link CreateAbuseReportCommandOutput} for command's `response` shape.
56
+ * @see {@link AbuseSignalClientResolvedConfig | config} for AbuseSignalClient's `config` shape.
57
+ *
58
+ * @throws {@link ConflictException} (client fault)
59
+ * <p>The request conflicts with the current state of the resource. For example, an idempotency token was reused with a different payload.</p>
60
+ *
61
+ * @throws {@link SubmissionRequirementException} (client fault)
62
+ * <p>The report is well-formed and satisfies the XARF schema, but it does not meet one or more submission requirements (for example, the submission lookback window or <code>source_identifier</code> restrictions). This error is distinct from <code>ValidationException</code> (HTTP 400), which indicates that the report is not well-formed. Retrying the same report will not succeed; the report content must change.</p>
63
+ *
64
+ * @throws {@link AccessDeniedException} (client fault)
65
+ * <p>The caller does not have sufficient access to perform this operation. Verify that the caller has the specific IAM permission for the operation it is calling (for example, <code>abuse:CreateAbuseReport</code>, <code>abuse:GetAbuseReportStatus</code>, or <code>abuse:ListAbuseReportStatuses</code>). Grant only the actions each caller requires.</p>
66
+ *
67
+ * @throws {@link InternalServerException} (server fault)
68
+ * <p>An unexpected error occurred during the processing of the request. This error is retryable; check the <code>Retry-After</code> header before you retry.</p>
69
+ *
70
+ * @throws {@link ThrottlingException} (client fault)
71
+ * <p>The request was denied due to request throttling. This error is retryable; retry with exponential backoff.</p>
72
+ *
73
+ * @throws {@link ValidationException} (client fault)
74
+ * <p>The input fails to satisfy the constraints specified by the service, which indicates that the request is not well-formed. Check <code>fieldList</code> for the specific members that failed validation.</p>
75
+ *
76
+ * @throws {@link AbuseSignalServiceException}
77
+ * <p>Base exception class for all service exceptions from AbuseSignal service.</p>
78
+ *
79
+ *
80
+ * @example Submit an abuse report in X-ARF format
81
+ * ```javascript
82
+ * //
83
+ * const input = {
84
+ * report: {
85
+ * xarf: { /* empty *\/ }
86
+ * }
87
+ * };
88
+ * const command = new CreateAbuseReportCommand(input);
89
+ * const response = await client.send(command);
90
+ * /* response is
91
+ * {
92
+ * correlationId: "my-tracking-id-123",
93
+ * reportId: "rpt5a8b3c2d1e4f6g7h8i9j0"
94
+ * }
95
+ * *\/
96
+ * ```
97
+ *
98
+ * @public
99
+ */
100
+ export declare class CreateAbuseReportCommand extends CreateAbuseReportCommand_base {
101
+ /** @internal type navigation helper, not in runtime. */
102
+ protected static __types: {
103
+ api: {
104
+ input: CreateAbuseReportRequest;
105
+ output: CreateAbuseReportResponse;
106
+ };
107
+ sdk: {
108
+ input: CreateAbuseReportCommandInput;
109
+ output: CreateAbuseReportCommandOutput;
110
+ };
111
+ };
112
+ }
@@ -0,0 +1,110 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { GetAbuseReportStatusRequest, GetAbuseReportStatusResponse } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link GetAbuseReportStatusCommand}.
11
+ */
12
+ export interface GetAbuseReportStatusCommandInput extends GetAbuseReportStatusRequest {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link GetAbuseReportStatusCommand}.
18
+ */
19
+ export interface GetAbuseReportStatusCommandOutput extends GetAbuseReportStatusResponse, __MetadataBearer {
20
+ }
21
+ declare const GetAbuseReportStatusCommand_base: {
22
+ new (input: GetAbuseReportStatusCommandInput): import("@smithy/core/client").CommandImpl<GetAbuseReportStatusCommandInput, GetAbuseReportStatusCommandOutput, import("..").AbuseSignalClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: GetAbuseReportStatusCommandInput): import("@smithy/core/client").CommandImpl<GetAbuseReportStatusCommandInput, GetAbuseReportStatusCommandOutput, import("..").AbuseSignalClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Retrieves the current processing status of a previously submitted abuse report, including the status, submission timestamp, and last-update time.</p> <p>You can poll this operation to track the report's status. <code>PROCESSING</code> confirms that Amazon Web Services received your report and is processing it. <code>COMPLETED</code> means Amazon Web Services finished resolving the report, and the response includes a <code>reasonCode</code>. The time to reach <code>COMPLETED</code> may vary and can take up to several days depending on the scope and complexity of the suspected abuse.</p> <note> <p> <code>COMPLETED</code> is the only terminal status. To wait for a report, use the <code>ReportProcessing</code> waiter, which succeeds when the report reaches <code>PROCESSING</code> or <code>COMPLETED</code>. If you poll this operation yourself, wait 1–5 seconds between calls.</p> </note>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { AbuseSignalClient, GetAbuseReportStatusCommand } from "@aws-sdk/client-abuse-signal"; // ES Modules import
32
+ * // const { AbuseSignalClient, GetAbuseReportStatusCommand } = require("@aws-sdk/client-abuse-signal"); // CommonJS import
33
+ * // import type { AbuseSignalClientConfig } from "@aws-sdk/client-abuse-signal";
34
+ * const config = {}; // type is AbuseSignalClientConfig
35
+ * const client = new AbuseSignalClient(config);
36
+ * const input = { // GetAbuseReportStatusRequest
37
+ * reportId: "STRING_VALUE", // required
38
+ * };
39
+ * const command = new GetAbuseReportStatusCommand(input);
40
+ * const response = await client.send(command);
41
+ * // { // GetAbuseReportStatusResponse
42
+ * // reportId: "STRING_VALUE", // required
43
+ * // correlationId: "STRING_VALUE",
44
+ * // status: "QUEUED" || "PROCESSING" || "COMPLETED", // required
45
+ * // description: "STRING_VALUE", // required
46
+ * // reasonCode: "ACTIONED" || "NOT_RESOLVABLE_TO_AWS" || "REVIEWED_NO_AWS_ACTION" || "CONTENT_DOWN_OR_INACCESSIBLE" || "NEED_MORE_INFORMATION",
47
+ * // submittedAt: new Date("TIMESTAMP"), // required
48
+ * // lastUpdatedAt: new Date("TIMESTAMP"),
49
+ * // };
50
+ *
51
+ * ```
52
+ *
53
+ * @param GetAbuseReportStatusCommandInput - {@link GetAbuseReportStatusCommandInput}
54
+ * @returns {@link GetAbuseReportStatusCommandOutput}
55
+ * @see {@link GetAbuseReportStatusCommandInput} for command's `input` shape.
56
+ * @see {@link GetAbuseReportStatusCommandOutput} for command's `response` shape.
57
+ * @see {@link AbuseSignalClientResolvedConfig | config} for AbuseSignalClient's `config` shape.
58
+ *
59
+ * @throws {@link ResourceNotFoundException} (client fault)
60
+ * <p>The specified resource was not found. Verify that the <code>reportId</code> is correct.</p>
61
+ *
62
+ * @throws {@link AccessDeniedException} (client fault)
63
+ * <p>The caller does not have sufficient access to perform this operation. Verify that the caller has the specific IAM permission for the operation it is calling (for example, <code>abuse:CreateAbuseReport</code>, <code>abuse:GetAbuseReportStatus</code>, or <code>abuse:ListAbuseReportStatuses</code>). Grant only the actions each caller requires.</p>
64
+ *
65
+ * @throws {@link InternalServerException} (server fault)
66
+ * <p>An unexpected error occurred during the processing of the request. This error is retryable; check the <code>Retry-After</code> header before you retry.</p>
67
+ *
68
+ * @throws {@link ThrottlingException} (client fault)
69
+ * <p>The request was denied due to request throttling. This error is retryable; retry with exponential backoff.</p>
70
+ *
71
+ * @throws {@link ValidationException} (client fault)
72
+ * <p>The input fails to satisfy the constraints specified by the service, which indicates that the request is not well-formed. Check <code>fieldList</code> for the specific members that failed validation.</p>
73
+ *
74
+ * @throws {@link AbuseSignalServiceException}
75
+ * <p>Base exception class for all service exceptions from AbuseSignal service.</p>
76
+ *
77
+ *
78
+ * @example Get the status of a submitted report
79
+ * ```javascript
80
+ * //
81
+ * const input = {
82
+ * reportId: "rpt5a8b3c2d1e4f6g7h8i9j0"
83
+ * };
84
+ * const command = new GetAbuseReportStatusCommand(input);
85
+ * const response = await client.send(command);
86
+ * /* response is
87
+ * {
88
+ * description: "Report has been successfully submitted to Trust & Safety",
89
+ * reportId: "rpt5a8b3c2d1e4f6g7h8i9j0",
90
+ * status: "PROCESSING",
91
+ * submittedAt: "2024-01-01T00:00:00Z"
92
+ * }
93
+ * *\/
94
+ * ```
95
+ *
96
+ * @public
97
+ */
98
+ export declare class GetAbuseReportStatusCommand extends GetAbuseReportStatusCommand_base {
99
+ /** @internal type navigation helper, not in runtime. */
100
+ protected static __types: {
101
+ api: {
102
+ input: GetAbuseReportStatusRequest;
103
+ output: GetAbuseReportStatusResponse;
104
+ };
105
+ sdk: {
106
+ input: GetAbuseReportStatusCommandInput;
107
+ output: GetAbuseReportStatusCommandOutput;
108
+ };
109
+ };
110
+ }
@@ -0,0 +1,113 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { ListAbuseReportStatusesRequest, ListAbuseReportStatusesResponse } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link ListAbuseReportStatusesCommand}.
11
+ */
12
+ export interface ListAbuseReportStatusesCommandInput extends ListAbuseReportStatusesRequest {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link ListAbuseReportStatusesCommand}.
18
+ */
19
+ export interface ListAbuseReportStatusesCommandOutput extends ListAbuseReportStatusesResponse, __MetadataBearer {
20
+ }
21
+ declare const ListAbuseReportStatusesCommand_base: {
22
+ new (input: ListAbuseReportStatusesCommandInput): import("@smithy/core/client").CommandImpl<ListAbuseReportStatusesCommandInput, ListAbuseReportStatusesCommandOutput, import("..").AbuseSignalClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (...[input]: [] | [ListAbuseReportStatusesCommandInput]): import("@smithy/core/client").CommandImpl<ListAbuseReportStatusesCommandInput, ListAbuseReportStatusesCommandOutput, import("..").AbuseSignalClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Lists abuse report statuses for the calling account, ordered by submission time, with optional filtering and pagination.</p> <p>Use the <code>correlationId</code> parameter to filter results by the reporter-provided correlation ID that was specified during report submission.</p> <p>Results are paginated. Use <code>nextToken</code> to retrieve additional results.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { AbuseSignalClient, ListAbuseReportStatusesCommand } from "@aws-sdk/client-abuse-signal"; // ES Modules import
32
+ * // const { AbuseSignalClient, ListAbuseReportStatusesCommand } = require("@aws-sdk/client-abuse-signal"); // CommonJS import
33
+ * // import type { AbuseSignalClientConfig } from "@aws-sdk/client-abuse-signal";
34
+ * const config = {}; // type is AbuseSignalClientConfig
35
+ * const client = new AbuseSignalClient(config);
36
+ * const input = { // ListAbuseReportStatusesRequest
37
+ * correlationId: "STRING_VALUE",
38
+ * nextToken: "STRING_VALUE",
39
+ * maxResults: Number("int"),
40
+ * };
41
+ * const command = new ListAbuseReportStatusesCommand(input);
42
+ * const response = await client.send(command);
43
+ * // { // ListAbuseReportStatusesResponse
44
+ * // reports: [ // ReportStatusList // required
45
+ * // { // ReportStatusListItem
46
+ * // reportId: "STRING_VALUE", // required
47
+ * // correlationId: "STRING_VALUE",
48
+ * // status: "QUEUED" || "PROCESSING" || "COMPLETED", // required
49
+ * // description: "STRING_VALUE", // required
50
+ * // reasonCode: "ACTIONED" || "NOT_RESOLVABLE_TO_AWS" || "REVIEWED_NO_AWS_ACTION" || "CONTENT_DOWN_OR_INACCESSIBLE" || "NEED_MORE_INFORMATION",
51
+ * // },
52
+ * // ],
53
+ * // nextToken: "STRING_VALUE",
54
+ * // };
55
+ *
56
+ * ```
57
+ *
58
+ * @param ListAbuseReportStatusesCommandInput - {@link ListAbuseReportStatusesCommandInput}
59
+ * @returns {@link ListAbuseReportStatusesCommandOutput}
60
+ * @see {@link ListAbuseReportStatusesCommandInput} for command's `input` shape.
61
+ * @see {@link ListAbuseReportStatusesCommandOutput} for command's `response` shape.
62
+ * @see {@link AbuseSignalClientResolvedConfig | config} for AbuseSignalClient's `config` shape.
63
+ *
64
+ * @throws {@link AccessDeniedException} (client fault)
65
+ * <p>The caller does not have sufficient access to perform this operation. Verify that the caller has the specific IAM permission for the operation it is calling (for example, <code>abuse:CreateAbuseReport</code>, <code>abuse:GetAbuseReportStatus</code>, or <code>abuse:ListAbuseReportStatuses</code>). Grant only the actions each caller requires.</p>
66
+ *
67
+ * @throws {@link InternalServerException} (server fault)
68
+ * <p>An unexpected error occurred during the processing of the request. This error is retryable; check the <code>Retry-After</code> header before you retry.</p>
69
+ *
70
+ * @throws {@link ThrottlingException} (client fault)
71
+ * <p>The request was denied due to request throttling. This error is retryable; retry with exponential backoff.</p>
72
+ *
73
+ * @throws {@link ValidationException} (client fault)
74
+ * <p>The input fails to satisfy the constraints specified by the service, which indicates that the request is not well-formed. Check <code>fieldList</code> for the specific members that failed validation.</p>
75
+ *
76
+ * @throws {@link AbuseSignalServiceException}
77
+ * <p>Base exception class for all service exceptions from AbuseSignal service.</p>
78
+ *
79
+ *
80
+ * @example List abuse report statuses
81
+ * ```javascript
82
+ * //
83
+ * const input = { /* empty *\/ };
84
+ * const command = new ListAbuseReportStatusesCommand(input);
85
+ * const response = await client.send(command);
86
+ * /* response is
87
+ * {
88
+ * reports: [
89
+ * {
90
+ * description: "Submitted",
91
+ * reportId: "rpt5a8b3c2d1e4f6g7h8i9j0",
92
+ * status: "PROCESSING"
93
+ * }
94
+ * ]
95
+ * }
96
+ * *\/
97
+ * ```
98
+ *
99
+ * @public
100
+ */
101
+ export declare class ListAbuseReportStatusesCommand extends ListAbuseReportStatusesCommand_base {
102
+ /** @internal type navigation helper, not in runtime. */
103
+ protected static __types: {
104
+ api: {
105
+ input: ListAbuseReportStatusesRequest;
106
+ output: ListAbuseReportStatusesResponse;
107
+ };
108
+ sdk: {
109
+ input: ListAbuseReportStatusesCommandInput;
110
+ output: ListAbuseReportStatusesCommandOutput;
111
+ };
112
+ };
113
+ }
@@ -0,0 +1,3 @@
1
+ export * from "./CreateAbuseReportCommand";
2
+ export * from "./GetAbuseReportStatusCommand";
3
+ export * from "./ListAbuseReportStatusesCommand";
@@ -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
+ useDualstackEndpoint?: boolean | undefined | Provider<boolean | undefined>;
7
+ useFipsEndpoint?: boolean | undefined | Provider<boolean | undefined>;
8
+ endpoint?: string | Provider<string> | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;
9
+ region?: string | undefined | Provider<string | undefined>;
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
+ UseDualStack?: boolean | undefined;
47
+ UseFIPS?: boolean | undefined;
48
+ Endpoint?: string | undefined;
49
+ Region?: string | undefined;
50
+ }
@@ -0,0 +1,2 @@
1
+ import { BinaryDecisionDiagram } from "@smithy/core/endpoints";
2
+ export declare const bdd: BinaryDecisionDiagram;
@@ -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,9 @@
1
+ import type { AwsRegionExtensionConfiguration } from "@aws-sdk/types";
2
+ import type { HttpHandlerExtensionConfiguration } from "@smithy/core/protocols";
3
+ import type { DefaultExtensionConfiguration } from "@smithy/types";
4
+ import type { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration";
5
+ /**
6
+ * @internal
7
+ */
8
+ export interface AbuseSignalExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration, AwsRegionExtensionConfiguration, HttpAuthExtensionConfiguration {
9
+ }
@@ -0,0 +1,19 @@
1
+ /**
2
+ * <fullname>Amazon Web Services Abuse Signal</fullname> <p>Amazon Web Services Abuse Signal API provides programmatic means to report suspected abuse of Amazon Web Services resources. You can use the API to submit abuse reports about Amazon Web Services resources and to track the status of your reports. Amazon Web Services Trust &amp; Safety uses the information that you provide to investigate and try to resolve the incident that you reported.</p> <p>You submit reports in the eXtended Abuse Reporting Format (XARF), an open standard for structured abuse reporting. For more information, see <a href="https://xarf.org/docs/introduction/">XARF on the XARF website</a>. Reports can cover a wide range of abuse categories, including spam, phishing, distributed denial of service (DDoS), malware distribution, and copyright infringement.</p> <p>With the Amazon Web Services Abuse Signal API, you can:</p> <ul> <li> <p> <b>Submit abuse reports</b> – Create structured abuse reports by using the XARF format, with full support for all XARF v4 report types.</p> </li> <li> <p> <b>Track report status</b> – Monitor the processing status of submitted reports, from submission through resolution.</p> </li> <li> <p> <b>List and filter reports</b> – Retrieve the status of all reports, with optional filtering by correlation ID.</p> </li> <li> <p> <b>Retry submissions safely</b> – Safely retry report submissions without creating duplicates by using client tokens.</p> </li> </ul> <important> <p> <b>Cross-Region data residency:</b> By submitting a report, you instruct Amazon Web Services to store it in all supported Regions (<code>us-east-1</code>, <code>us-west-2</code>, and <code>eu-west-2</code>), including across the United States and Europe. If data must remain in a single Region, do not include it in the report.</p> </important>
3
+ *
4
+ * @packageDocumentation
5
+ */
6
+ export * from "./AbuseSignalClient";
7
+ export * from "./AbuseSignal";
8
+ export type { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
9
+ export type { RuntimeExtension } from "./runtimeExtensions";
10
+ export type { AbuseSignalExtensionConfiguration } from "./extensionConfiguration";
11
+ export * from "./commands";
12
+ export { Command as $Command } from "@smithy/core/client";
13
+ export * from "./pagination";
14
+ export * from "./waiters";
15
+ export * from "./schemas/schemas_0";
16
+ export * from "./models/enums";
17
+ export * from "./models/errors";
18
+ export * from "./models/models_0";
19
+ export { AbuseSignalServiceException } from "./models/AbuseSignalServiceException";
@@ -0,0 +1,15 @@
1
+ import { type ServiceExceptionOptions as __ServiceExceptionOptions, ServiceException as __ServiceException } from "@smithy/core/client";
2
+ export type { __ServiceExceptionOptions };
3
+ export { __ServiceException };
4
+ /**
5
+ * @public
6
+ *
7
+ * Base exception class for all service exceptions from AbuseSignal service.
8
+ */
9
+ export declare class AbuseSignalServiceException extends __ServiceException {
10
+ static readonly shapeId: string;
11
+ /**
12
+ * @internal
13
+ */
14
+ constructor(options: __ServiceExceptionOptions);
15
+ }
@@ -0,0 +1,28 @@
1
+ /**
2
+ * @public
3
+ * @enum
4
+ */
5
+ export declare const ReasonCode: {
6
+ readonly ACTIONED: "ACTIONED";
7
+ readonly CONTENT_DOWN_OR_INACCESSIBLE: "CONTENT_DOWN_OR_INACCESSIBLE";
8
+ readonly NEED_MORE_INFORMATION: "NEED_MORE_INFORMATION";
9
+ readonly NOT_RESOLVABLE_TO_AWS: "NOT_RESOLVABLE_TO_AWS";
10
+ readonly REVIEWED_NO_AWS_ACTION: "REVIEWED_NO_AWS_ACTION";
11
+ };
12
+ /**
13
+ * @public
14
+ */
15
+ export type ReasonCode = (typeof ReasonCode)[keyof typeof ReasonCode];
16
+ /**
17
+ * @public
18
+ * @enum
19
+ */
20
+ export declare const ReportSubmissionStatus: {
21
+ readonly COMPLETED: "COMPLETED";
22
+ readonly PROCESSING: "PROCESSING";
23
+ readonly QUEUED: "QUEUED";
24
+ };
25
+ /**
26
+ * @public
27
+ */
28
+ export type ReportSubmissionStatus = (typeof ReportSubmissionStatus)[keyof typeof ReportSubmissionStatus];
@@ -0,0 +1,133 @@
1
+ import type { ExceptionOptionType as __ExceptionOptionType } from "@smithy/core/client";
2
+ import { AbuseSignalServiceException as __BaseException } from "./AbuseSignalServiceException";
3
+ import type { SubmissionRequirement, ValidationExceptionField } from "./models_0";
4
+ /**
5
+ * <p>The caller does not have sufficient access to perform this operation. Verify that the caller has the specific IAM permission for the operation it is calling (for example, <code>abuse:CreateAbuseReport</code>, <code>abuse:GetAbuseReportStatus</code>, or <code>abuse:ListAbuseReportStatuses</code>). Grant only the actions each caller requires.</p>
6
+ * @public
7
+ */
8
+ export declare class AccessDeniedException extends __BaseException {
9
+ static readonly shapeId: string;
10
+ readonly name: "AccessDeniedException";
11
+ readonly $fault: "client";
12
+ /**
13
+ * @internal
14
+ */
15
+ constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
16
+ }
17
+ /**
18
+ * <p>The request conflicts with the current state of the resource. For example, an idempotency token was reused with a different payload.</p>
19
+ * @public
20
+ */
21
+ export declare class ConflictException extends __BaseException {
22
+ static readonly shapeId: string;
23
+ readonly name: "ConflictException";
24
+ readonly $fault: "client";
25
+ /**
26
+ * @internal
27
+ */
28
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
29
+ }
30
+ /**
31
+ * <p>An unexpected error occurred during the processing of the request. This error is retryable; check the <code>Retry-After</code> header before you retry.</p>
32
+ * @public
33
+ */
34
+ export declare class InternalServerException extends __BaseException {
35
+ static readonly shapeId: string;
36
+ readonly name: "InternalServerException";
37
+ readonly $fault: "server";
38
+ $retryable: {};
39
+ /**
40
+ * <p>The number of seconds to wait before you retry the request. The service also returns this value in the <code>Retry-After</code> HTTP header.</p>
41
+ * @public
42
+ */
43
+ retryAfterSeconds?: number | undefined;
44
+ /**
45
+ * @internal
46
+ */
47
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
48
+ }
49
+ /**
50
+ * <p>The report is well-formed and satisfies the XARF schema, but it does not meet one or more submission requirements (for example, the submission lookback window or <code>source_identifier</code> restrictions). This error is distinct from <code>ValidationException</code> (HTTP 400), which indicates that the report is not well-formed. Retrying the same report will not succeed; the report content must change.</p>
51
+ * @public
52
+ */
53
+ export declare class SubmissionRequirementException extends __BaseException {
54
+ static readonly shapeId: string;
55
+ readonly name: "SubmissionRequirementException";
56
+ readonly $fault: "client";
57
+ /**
58
+ * <p>A list of the specific submission requirements that the report did not meet.</p>
59
+ * @public
60
+ */
61
+ unmetRequirements?: SubmissionRequirement[] | undefined;
62
+ /**
63
+ * @internal
64
+ */
65
+ constructor(opts: __ExceptionOptionType<SubmissionRequirementException, __BaseException>);
66
+ }
67
+ /**
68
+ * <p>The request was denied due to request throttling. This error is retryable; retry with exponential backoff.</p>
69
+ * @public
70
+ */
71
+ export declare class ThrottlingException extends __BaseException {
72
+ static readonly shapeId: string;
73
+ readonly name: "ThrottlingException";
74
+ readonly $fault: "client";
75
+ $retryable: {
76
+ throttling: boolean;
77
+ };
78
+ /**
79
+ * <p>The code for the Amazon Web Services service that is associated with the quota that was exceeded.</p>
80
+ * @public
81
+ */
82
+ serviceCode?: string | undefined;
83
+ /**
84
+ * <p>The code for the service quota that was exceeded.</p>
85
+ * @public
86
+ */
87
+ quotaCode?: string | undefined;
88
+ /**
89
+ * <p>The number of seconds to wait before you retry the request. The service also returns this value in the <code>Retry-After</code> HTTP header.</p>
90
+ * @public
91
+ */
92
+ retryAfterSeconds?: number | undefined;
93
+ /**
94
+ * @internal
95
+ */
96
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
97
+ }
98
+ /**
99
+ * <p>The input fails to satisfy the constraints specified by the service, which indicates that the request is not well-formed. Check <code>fieldList</code> for the specific members that failed validation.</p>
100
+ * @public
101
+ */
102
+ export declare class ValidationException extends __BaseException {
103
+ static readonly shapeId: string;
104
+ readonly name: "ValidationException";
105
+ readonly $fault: "client";
106
+ /**
107
+ * <p>A list of the specific input fields that failed validation.</p>
108
+ * @public
109
+ */
110
+ fieldList?: ValidationExceptionField[] | undefined;
111
+ /**
112
+ * @internal
113
+ */
114
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
115
+ }
116
+ /**
117
+ * <p>The specified resource was not found. Verify that the <code>reportId</code> is correct.</p>
118
+ * @public
119
+ */
120
+ export declare class ResourceNotFoundException extends __BaseException {
121
+ static readonly shapeId: string;
122
+ readonly name: "ResourceNotFoundException";
123
+ readonly $fault: "client";
124
+ /**
125
+ * <p>The identifier of the resource that was not found.</p>
126
+ * @public
127
+ */
128
+ resourceId: string | undefined;
129
+ /**
130
+ * @internal
131
+ */
132
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
133
+ }