@aws-sdk/client-abuse-signal 0.0.0-stage → 3.1173.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,9 @@
1
+ import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration } from "@aws-sdk/core/client";
2
+ import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/core/client";
3
+ import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/core/protocols";
4
+ import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from "./auth/httpAuthExtensionConfiguration";
5
+ export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
6
+ const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
7
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
8
+ return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
9
+ };
@@ -0,0 +1,176 @@
1
+ const _ADE = "AccessDeniedException";
2
+ const _CAR = "CreateAbuseReport";
3
+ const _CARR = "CreateAbuseReportRequest";
4
+ const _CARRr = "CreateAbuseReportResponse";
5
+ const _CE = "ConflictException";
6
+ const _GARS = "GetAbuseReportStatus";
7
+ const _GARSR = "GetAbuseReportStatusRequest";
8
+ const _GARSRe = "GetAbuseReportStatusResponse";
9
+ const _ISE = "InternalServerException";
10
+ const _LARS = "ListAbuseReportStatuses";
11
+ const _LARSR = "ListAbuseReportStatusesRequest";
12
+ const _LARSRi = "ListAbuseReportStatusesResponse";
13
+ const _RA = "Retry-After";
14
+ const _RD = "ReportData";
15
+ const _RNFE = "ResourceNotFoundException";
16
+ const _RSL = "ReportStatusList";
17
+ const _RSLI = "ReportStatusListItem";
18
+ const _SR = "SubmissionRequirement";
19
+ const _SRE = "SubmissionRequirementException";
20
+ const _SRL = "SubmissionRequirementList";
21
+ const _TE = "ThrottlingException";
22
+ const _VE = "ValidationException";
23
+ const _VEF = "ValidationExceptionField";
24
+ const _VEFL = "ValidationExceptionFieldList";
25
+ const _c = "client";
26
+ const _cI = "correlationId";
27
+ const _cT = "clientToken";
28
+ const _co = "code";
29
+ const _d = "description";
30
+ const _e = "error";
31
+ const _fL = "fieldList";
32
+ const _h = "http";
33
+ const _hE = "httpError";
34
+ const _hH = "httpHeader";
35
+ const _hQ = "httpQuery";
36
+ const _lUA = "lastUpdatedAt";
37
+ const _m = "message";
38
+ const _mR = "maxResults";
39
+ const _nT = "nextToken";
40
+ const _p = "path";
41
+ const _qC = "quotaCode";
42
+ const _r = "report";
43
+ const _rAS = "retryAfterSeconds";
44
+ const _rC = "reasonCode";
45
+ const _rI = "resourceId";
46
+ const _rIe = "reportId";
47
+ const _re = "reports";
48
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.abusesignal";
49
+ const _sA = "submittedAt";
50
+ const _sC = "serviceCode";
51
+ const _se = "server";
52
+ const _st = "status";
53
+ const _uR = "unmetRequirements";
54
+ const _x = "xarf";
55
+ const n0 = "com.amazonaws.abusesignal";
56
+ import { TypeRegistry } from "@smithy/core/schema";
57
+ import { AbuseSignalServiceException } from "../models/AbuseSignalServiceException";
58
+ import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, SubmissionRequirementException, ThrottlingException, ValidationException, } from "../models/errors";
59
+ const _s_registry = new TypeRegistry(_s);
60
+ export var AbuseSignalServiceException$ = [-3, _s, "AbuseSignalServiceException", 0, [], []];
61
+ _s_registry.registerError(AbuseSignalServiceException$, AbuseSignalServiceException);
62
+ const n0_registry = new TypeRegistry(n0);
63
+ export var AccessDeniedException$ = [-3, n0, _ADE,
64
+ { [_e]: _c, [_hE]: 403 },
65
+ [_m],
66
+ [0], 1
67
+ ];
68
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
69
+ export var ConflictException$ = [-3, n0, _CE,
70
+ { [_e]: _c, [_hE]: 409 },
71
+ [_m],
72
+ [0], 1
73
+ ];
74
+ n0_registry.registerError(ConflictException$, ConflictException);
75
+ export var InternalServerException$ = [-3, n0, _ISE,
76
+ { [_e]: _se, [_hE]: 500 },
77
+ [_m, _rAS],
78
+ [0, [1, { [_hH]: _RA }]], 1
79
+ ];
80
+ n0_registry.registerError(InternalServerException$, InternalServerException);
81
+ export var ResourceNotFoundException$ = [-3, n0, _RNFE,
82
+ { [_e]: _c, [_hE]: 404 },
83
+ [_m, _rI],
84
+ [0, 0], 2
85
+ ];
86
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
87
+ export var SubmissionRequirementException$ = [-3, n0, _SRE,
88
+ { [_e]: _c, [_hE]: 422 },
89
+ [_m, _uR],
90
+ [0, () => SubmissionRequirementList], 1
91
+ ];
92
+ n0_registry.registerError(SubmissionRequirementException$, SubmissionRequirementException);
93
+ export var ThrottlingException$ = [-3, n0, _TE,
94
+ { [_e]: _c, [_hE]: 429 },
95
+ [_m, _sC, _qC, _rAS],
96
+ [0, 0, 0, [1, { [_hH]: _RA }]], 1
97
+ ];
98
+ n0_registry.registerError(ThrottlingException$, ThrottlingException);
99
+ export var ValidationException$ = [-3, n0, _VE,
100
+ { [_e]: _c, [_hE]: 400 },
101
+ [_m, _fL],
102
+ [0, () => ValidationExceptionFieldList], 1
103
+ ];
104
+ n0_registry.registerError(ValidationException$, ValidationException);
105
+ export const errorTypeRegistries = [
106
+ _s_registry,
107
+ n0_registry,
108
+ ];
109
+ export var CreateAbuseReportRequest$ = [3, n0, _CARR,
110
+ 0,
111
+ [_r, _cI, _cT],
112
+ [[() => ReportData$, 0], 0, 0], 1
113
+ ];
114
+ export var CreateAbuseReportResponse$ = [3, n0, _CARRr,
115
+ 0,
116
+ [_rIe, _cI],
117
+ [0, 0], 1
118
+ ];
119
+ export var GetAbuseReportStatusRequest$ = [3, n0, _GARSR,
120
+ 0,
121
+ [_rIe],
122
+ [[0, 1]], 1
123
+ ];
124
+ export var GetAbuseReportStatusResponse$ = [3, n0, _GARSRe,
125
+ 0,
126
+ [_rIe, _st, _d, _sA, _cI, _rC, _lUA],
127
+ [0, 0, 0, 4, 0, 0, 4], 4
128
+ ];
129
+ export var ListAbuseReportStatusesRequest$ = [3, n0, _LARSR,
130
+ 0,
131
+ [_cI, _nT, _mR],
132
+ [[0, { [_hQ]: _cI }], [0, { [_hQ]: _nT }], [1, { [_hQ]: _mR }]]
133
+ ];
134
+ export var ListAbuseReportStatusesResponse$ = [3, n0, _LARSRi,
135
+ 0,
136
+ [_re, _nT],
137
+ [() => ReportStatusList, 0], 1
138
+ ];
139
+ export var ReportStatusListItem$ = [3, n0, _RSLI,
140
+ 0,
141
+ [_rIe, _st, _d, _cI, _rC],
142
+ [0, 0, 0, 0, 0], 3
143
+ ];
144
+ export var SubmissionRequirement$ = [3, n0, _SR,
145
+ 0,
146
+ [_p, _m, _co],
147
+ [0, 0, 0], 2
148
+ ];
149
+ export var ValidationExceptionField$ = [3, n0, _VEF,
150
+ 0,
151
+ [_p, _m],
152
+ [0, 0], 2
153
+ ];
154
+ var ReportStatusList = [1, n0, _RSL,
155
+ 0, () => ReportStatusListItem$
156
+ ];
157
+ var SubmissionRequirementList = [1, n0, _SRL,
158
+ 0, () => SubmissionRequirement$
159
+ ];
160
+ var ValidationExceptionFieldList = [1, n0, _VEFL,
161
+ 0, () => ValidationExceptionField$
162
+ ];
163
+ export var ReportData$ = [4, n0, _RD,
164
+ 8,
165
+ [_x],
166
+ [15]
167
+ ];
168
+ export var CreateAbuseReport$ = [9, n0, _CAR,
169
+ { [_h]: ["POST", "/v1/abuse", 202] }, () => CreateAbuseReportRequest$, () => CreateAbuseReportResponse$
170
+ ];
171
+ export var GetAbuseReportStatus$ = [9, n0, _GARS,
172
+ { [_h]: ["GET", "/v1/abuse/{reportId}", 200] }, () => GetAbuseReportStatusRequest$, () => GetAbuseReportStatusResponse$
173
+ ];
174
+ export var ListAbuseReportStatuses$ = [9, n0, _LARS,
175
+ { [_h]: ["GET", "/v1/abusestatuses", 200] }, () => ListAbuseReportStatusesRequest$, () => ListAbuseReportStatusesResponse$
176
+ ];
@@ -0,0 +1 @@
1
+ export * from "./waitForReportProcessing";
@@ -0,0 +1,43 @@
1
+ import { checkExceptions, createWaiter, WaiterState, } from "@smithy/core/client";
2
+ import { GetAbuseReportStatusCommand, } from "../commands/GetAbuseReportStatusCommand";
3
+ const checkState = async (client, input) => {
4
+ let reason;
5
+ try {
6
+ let result = await client.send(new GetAbuseReportStatusCommand(input));
7
+ reason = result;
8
+ try {
9
+ const returnComparator = () => {
10
+ return result.status;
11
+ };
12
+ if (returnComparator() === "PROCESSING") {
13
+ return { state: WaiterState.SUCCESS, reason };
14
+ }
15
+ }
16
+ catch (e) { }
17
+ try {
18
+ const returnComparator = () => {
19
+ return result.status;
20
+ };
21
+ if (returnComparator() === "COMPLETED") {
22
+ return { state: WaiterState.SUCCESS, reason };
23
+ }
24
+ }
25
+ catch (e) { }
26
+ }
27
+ catch (exception) {
28
+ reason = exception;
29
+ if (exception.name === "ResourceNotFoundException") {
30
+ return { state: WaiterState.RETRY, reason };
31
+ }
32
+ }
33
+ return { state: WaiterState.RETRY, reason };
34
+ };
35
+ export const waitForReportProcessing = async (params, input) => {
36
+ const serviceDefaults = { minDelay: 1, maxDelay: 5 };
37
+ return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
38
+ };
39
+ export const waitUntilReportProcessing = async (params, input) => {
40
+ const serviceDefaults = { minDelay: 1, maxDelay: 5 };
41
+ const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
42
+ return checkExceptions(result);
43
+ };
@@ -0,0 +1,52 @@
1
+ import { type WaiterResult } from "@smithy/core/client";
2
+ import type { HttpHandlerOptions as __HttpHandlerOptions, MetricsRecorder as __MetricsRecorder, PaginationConfiguration, Paginator, WaiterConfiguration } from "@smithy/types";
3
+ import { AbuseSignalClient } from "./AbuseSignalClient";
4
+ import { type CreateAbuseReportCommandInput, type CreateAbuseReportCommandOutput } from "./commands/CreateAbuseReportCommand";
5
+ import { type GetAbuseReportStatusCommandInput, type GetAbuseReportStatusCommandOutput } from "./commands/GetAbuseReportStatusCommand";
6
+ import { type ListAbuseReportStatusesCommandInput, type ListAbuseReportStatusesCommandOutput } from "./commands/ListAbuseReportStatusesCommand";
7
+ /**
8
+ * @public
9
+ */
10
+ export interface AbuseSignalRequestOptions extends __HttpHandlerOptions {
11
+ metricsRecorder?: __MetricsRecorder<unknown>;
12
+ }
13
+ export interface AbuseSignal {
14
+ /**
15
+ * @see {@link CreateAbuseReportCommand}
16
+ */
17
+ createAbuseReport(args: CreateAbuseReportCommandInput, options?: AbuseSignalRequestOptions): Promise<CreateAbuseReportCommandOutput>;
18
+ createAbuseReport(args: CreateAbuseReportCommandInput, cb: (err: any, data?: CreateAbuseReportCommandOutput) => void): void;
19
+ createAbuseReport(args: CreateAbuseReportCommandInput, options: AbuseSignalRequestOptions, cb: (err: any, data?: CreateAbuseReportCommandOutput) => void): void;
20
+ /**
21
+ * @see {@link GetAbuseReportStatusCommand}
22
+ */
23
+ getAbuseReportStatus(args: GetAbuseReportStatusCommandInput, options?: AbuseSignalRequestOptions): Promise<GetAbuseReportStatusCommandOutput>;
24
+ getAbuseReportStatus(args: GetAbuseReportStatusCommandInput, cb: (err: any, data?: GetAbuseReportStatusCommandOutput) => void): void;
25
+ getAbuseReportStatus(args: GetAbuseReportStatusCommandInput, options: AbuseSignalRequestOptions, cb: (err: any, data?: GetAbuseReportStatusCommandOutput) => void): void;
26
+ /**
27
+ * @see {@link ListAbuseReportStatusesCommand}
28
+ */
29
+ listAbuseReportStatuses(): Promise<ListAbuseReportStatusesCommandOutput>;
30
+ listAbuseReportStatuses(args: ListAbuseReportStatusesCommandInput, options?: AbuseSignalRequestOptions): Promise<ListAbuseReportStatusesCommandOutput>;
31
+ listAbuseReportStatuses(args: ListAbuseReportStatusesCommandInput, cb: (err: any, data?: ListAbuseReportStatusesCommandOutput) => void): void;
32
+ listAbuseReportStatuses(args: ListAbuseReportStatusesCommandInput, options: AbuseSignalRequestOptions, cb: (err: any, data?: ListAbuseReportStatusesCommandOutput) => void): void;
33
+ /**
34
+ * @see {@link ListAbuseReportStatusesCommand}
35
+ * @param args - command input.
36
+ * @param paginationConfig - optional pagination config.
37
+ * @returns AsyncIterable of {@link ListAbuseReportStatusesCommandOutput}.
38
+ */
39
+ paginateListAbuseReportStatuses(args?: ListAbuseReportStatusesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListAbuseReportStatusesCommandOutput>;
40
+ /**
41
+ * @see {@link GetAbuseReportStatusCommand}
42
+ * @param args - command input.
43
+ * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
44
+ */
45
+ waitUntilReportProcessing(args: GetAbuseReportStatusCommandInput, waiterConfig: number | Omit<WaiterConfiguration<AbuseSignal>, "client">): Promise<WaiterResult<GetAbuseReportStatusCommandOutput>>;
46
+ }
47
+ /**
48
+ * <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>
49
+ * @public
50
+ */
51
+ export declare class AbuseSignal extends AbuseSignalClient implements AbuseSignal {
52
+ }
@@ -0,0 +1,190 @@
1
+ import { type HostHeaderInputConfig, type HostHeaderResolvedConfig, type UserAgentInputConfig, type UserAgentResolvedConfig } from "@aws-sdk/core/client";
2
+ import { type DefaultsMode as __DefaultsMode, type SmithyConfiguration as __SmithyConfiguration, type SmithyResolvedConfiguration as __SmithyResolvedConfiguration, Client as __Client } from "@smithy/core/client";
3
+ import { type RegionInputConfig, type RegionResolvedConfig } from "@smithy/core/config";
4
+ import { type EndpointInputConfig, type EndpointResolvedConfig } from "@smithy/core/endpoints";
5
+ import { type HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/core/protocols";
6
+ import { type RetryInputConfig, type RetryResolvedConfig } from "@smithy/core/retry";
7
+ import type { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
8
+ import { type HttpAuthSchemeInputConfig, type HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
9
+ import type { CreateAbuseReportCommandInput, CreateAbuseReportCommandOutput } from "./commands/CreateAbuseReportCommand";
10
+ import type { GetAbuseReportStatusCommandInput, GetAbuseReportStatusCommandOutput } from "./commands/GetAbuseReportStatusCommand";
11
+ import type { ListAbuseReportStatusesCommandInput, ListAbuseReportStatusesCommandOutput } from "./commands/ListAbuseReportStatusesCommand";
12
+ import { type ClientInputEndpointParameters, type ClientResolvedEndpointParameters, type EndpointParameters } from "./endpoint/EndpointParameters";
13
+ import { type RuntimeExtension, type RuntimeExtensionsConfig } from "./runtimeExtensions";
14
+ export { __Client };
15
+ /**
16
+ * @public
17
+ */
18
+ export type ServiceInputTypes = CreateAbuseReportCommandInput | GetAbuseReportStatusCommandInput | ListAbuseReportStatusesCommandInput;
19
+ /**
20
+ * @public
21
+ */
22
+ export type ServiceOutputTypes = CreateAbuseReportCommandOutput | GetAbuseReportStatusCommandOutput | ListAbuseReportStatusesCommandOutput;
23
+ /**
24
+ * @public
25
+ */
26
+ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
27
+ /**
28
+ * The HTTP handler to use or its constructor options. Fetch in browser and Https in Nodejs.
29
+ */
30
+ requestHandler?: __HttpHandlerUserInput;
31
+ /**
32
+ * A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface
33
+ * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
34
+ * @internal
35
+ */
36
+ sha256?: __ChecksumConstructor | __HashConstructor;
37
+ /**
38
+ * The function that will be used to convert strings into HTTP endpoints.
39
+ * @internal
40
+ */
41
+ urlParser?: __UrlParser;
42
+ /**
43
+ * A function that can calculate the length of a request body.
44
+ * @internal
45
+ */
46
+ bodyLengthChecker?: __BodyLengthCalculator;
47
+ /**
48
+ * A function that converts a stream into an array of bytes.
49
+ * @internal
50
+ */
51
+ streamCollector?: __StreamCollector;
52
+ /**
53
+ * The function that will be used to convert a base64-encoded string to a byte array.
54
+ * @internal
55
+ */
56
+ base64Decoder?: __Decoder;
57
+ /**
58
+ * The function that will be used to convert binary data to a base64-encoded string.
59
+ * @internal
60
+ */
61
+ base64Encoder?: __Encoder;
62
+ /**
63
+ * The function that will be used to convert a UTF8-encoded string to a byte array.
64
+ * @internal
65
+ */
66
+ utf8Decoder?: __Decoder;
67
+ /**
68
+ * The function that will be used to convert binary data to a UTF-8 encoded string.
69
+ * @internal
70
+ */
71
+ utf8Encoder?: __Encoder;
72
+ /**
73
+ * The runtime environment.
74
+ * @internal
75
+ */
76
+ runtime?: string;
77
+ /**
78
+ * Disable dynamically changing the endpoint of the client based on the hostPrefix
79
+ * trait of an operation.
80
+ */
81
+ disableHostPrefix?: boolean;
82
+ /**
83
+ * Unique service identifier.
84
+ * @internal
85
+ */
86
+ serviceId?: string;
87
+ /**
88
+ * Enables IPv6/IPv4 dualstack endpoint.
89
+ */
90
+ useDualstackEndpoint?: boolean | __Provider<boolean>;
91
+ /**
92
+ * Enables FIPS compatible endpoints.
93
+ */
94
+ useFipsEndpoint?: boolean | __Provider<boolean>;
95
+ /**
96
+ * The AWS region to which this client will send requests
97
+ */
98
+ region?: string | __Provider<string>;
99
+ /**
100
+ * Setting a client profile is similar to setting a value for the
101
+ * AWS_PROFILE environment variable. Setting a profile on a client
102
+ * in code only affects the single client instance, unlike AWS_PROFILE.
103
+ *
104
+ * When set, and only for environments where an AWS configuration
105
+ * file exists, fields configurable by this file will be retrieved
106
+ * from the specified profile within that file.
107
+ * Conflicting code configuration and environment variables will
108
+ * still have higher priority.
109
+ *
110
+ * For client credential resolution that involves checking the AWS
111
+ * configuration file, the client's profile (this value) will be
112
+ * used unless a different profile is set in the credential
113
+ * provider options.
114
+ *
115
+ */
116
+ profile?: string;
117
+ /**
118
+ * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
119
+ * @internal
120
+ */
121
+ defaultUserAgentProvider?: __Provider<__UserAgent>;
122
+ /**
123
+ * Default credentials provider; Not available in browser runtime.
124
+ * @deprecated
125
+ * @internal
126
+ */
127
+ credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
128
+ /**
129
+ * Value for how many times a request will be made at most in case of retry.
130
+ */
131
+ maxAttempts?: number | __Provider<number>;
132
+ /**
133
+ * Specifies which retry algorithm to use.
134
+ * Accepted values are "standard" and "adaptive".
135
+ * @see https://docs.aws.amazon.com/sdkref/latest/guide/feature-retry-behavior.html
136
+ *
137
+ */
138
+ retryMode?: string | __Provider<string>;
139
+ /**
140
+ * Optional logger for logging debug/info/warn/error.
141
+ */
142
+ logger?: __Logger;
143
+ /**
144
+ * Optional extensions
145
+ */
146
+ extensions?: RuntimeExtension[];
147
+ /**
148
+ * The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
149
+ */
150
+ defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
151
+ }
152
+ /**
153
+ * @public
154
+ */
155
+ export type AbuseSignalClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & UserAgentInputConfig & RetryInputConfig & RegionInputConfig & HostHeaderInputConfig & EndpointInputConfig<EndpointParameters> & HttpAuthSchemeInputConfig & ClientInputEndpointParameters;
156
+ /**
157
+ * @public
158
+ *
159
+ * The configuration interface of AbuseSignalClient class constructor that set the region, credentials and other options.
160
+ */
161
+ export interface AbuseSignalClientConfig extends AbuseSignalClientConfigType {
162
+ }
163
+ /**
164
+ * @public
165
+ */
166
+ export type AbuseSignalClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & UserAgentResolvedConfig & RetryResolvedConfig & RegionResolvedConfig & HostHeaderResolvedConfig & EndpointResolvedConfig<EndpointParameters> & HttpAuthSchemeResolvedConfig & ClientResolvedEndpointParameters;
167
+ /**
168
+ * @public
169
+ *
170
+ * The resolved configuration interface of AbuseSignalClient class. This is resolved and normalized from the {@link AbuseSignalClientConfig | constructor configuration interface}.
171
+ */
172
+ export interface AbuseSignalClientResolvedConfig extends AbuseSignalClientResolvedConfigType {
173
+ }
174
+ /**
175
+ * <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>
176
+ * @public
177
+ */
178
+ export declare class AbuseSignalClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, AbuseSignalClientResolvedConfig> {
179
+ /**
180
+ * The resolved configuration of AbuseSignalClient class. This is resolved and normalized from the {@link AbuseSignalClientConfig | constructor configuration interface}.
181
+ */
182
+ readonly config: AbuseSignalClientResolvedConfig;
183
+ constructor(...[configuration]: __CheckOptionalClientConfig<AbuseSignalClientConfig>);
184
+ /**
185
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
186
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
187
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
188
+ */
189
+ destroy(): void;
190
+ }
@@ -0,0 +1,29 @@
1
+ import type { AwsCredentialIdentity, AwsCredentialIdentityProvider, HttpAuthScheme } from "@smithy/types";
2
+ import type { AbuseSignalHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
3
+ /**
4
+ * @internal
5
+ */
6
+ export interface HttpAuthExtensionConfiguration {
7
+ setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
8
+ httpAuthSchemes(): HttpAuthScheme[];
9
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider: AbuseSignalHttpAuthSchemeProvider): void;
10
+ httpAuthSchemeProvider(): AbuseSignalHttpAuthSchemeProvider;
11
+ setCredentials(credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider): void;
12
+ credentials(): AwsCredentialIdentity | AwsCredentialIdentityProvider | undefined;
13
+ }
14
+ /**
15
+ * @internal
16
+ */
17
+ export type HttpAuthRuntimeConfig = Partial<{
18
+ httpAuthSchemes: HttpAuthScheme[];
19
+ httpAuthSchemeProvider: AbuseSignalHttpAuthSchemeProvider;
20
+ credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider;
21
+ }>;
22
+ /**
23
+ * @internal
24
+ */
25
+ export declare const getHttpAuthExtensionConfiguration: (runtimeConfig: HttpAuthRuntimeConfig) => HttpAuthExtensionConfiguration;
26
+ /**
27
+ * @internal
28
+ */
29
+ export declare const resolveHttpAuthRuntimeConfig: (config: HttpAuthExtensionConfiguration) => HttpAuthRuntimeConfig;
@@ -0,0 +1,83 @@
1
+ import { AwsSdkSigV4AAuthInputConfig, AwsSdkSigV4AAuthResolvedConfig, AwsSdkSigV4APreviouslyResolved, AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4PreviouslyResolved } from "@aws-sdk/core/httpAuthSchemes";
2
+ import type { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, Provider } from "@smithy/types";
3
+ import { AbuseSignalClientResolvedConfig } from "../AbuseSignalClient";
4
+ import { EndpointParameters } from "../endpoint/EndpointParameters";
5
+ /**
6
+ * @internal
7
+ */
8
+ interface _AbuseSignalHttpAuthSchemeParameters extends HttpAuthSchemeParameters {
9
+ region?: string;
10
+ }
11
+ /**
12
+ * @internal
13
+ */
14
+ export interface AbuseSignalHttpAuthSchemeParameters extends _AbuseSignalHttpAuthSchemeParameters, EndpointParameters {
15
+ region?: string;
16
+ }
17
+ /**
18
+ * @internal
19
+ */
20
+ export interface AbuseSignalHttpAuthSchemeParametersProvider extends HttpAuthSchemeParametersProvider<AbuseSignalClientResolvedConfig, HandlerExecutionContext, AbuseSignalHttpAuthSchemeParameters, object> {
21
+ }
22
+ /**
23
+ * @internal
24
+ */
25
+ export declare const defaultAbuseSignalHttpAuthSchemeParametersProvider: AbuseSignalHttpAuthSchemeParametersProvider;
26
+ /**
27
+ * @internal
28
+ */
29
+ export interface AbuseSignalHttpAuthSchemeProvider extends HttpAuthSchemeProvider<AbuseSignalHttpAuthSchemeParameters> {
30
+ }
31
+ /**
32
+ * @internal
33
+ */
34
+ export declare const defaultAbuseSignalHttpAuthSchemeProvider: AbuseSignalHttpAuthSchemeProvider;
35
+ /**
36
+ * @public
37
+ */
38
+ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AAuthInputConfig {
39
+ /**
40
+ * A comma-separated list of case-sensitive auth scheme names.
41
+ * An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed.
42
+ * For example, the auth scheme with ID aws.auth#sigv4 is named sigv4.
43
+ * @public
44
+ */
45
+ authSchemePreference?: string[] | Provider<string[]>;
46
+ /**
47
+ * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
48
+ * @internal
49
+ */
50
+ httpAuthSchemes?: HttpAuthScheme[];
51
+ /**
52
+ * Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
53
+ * @internal
54
+ */
55
+ httpAuthSchemeProvider?: AbuseSignalHttpAuthSchemeProvider;
56
+ }
57
+ /**
58
+ * @internal
59
+ */
60
+ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4AAuthResolvedConfig {
61
+ /**
62
+ * A comma-separated list of case-sensitive auth scheme names.
63
+ * An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed.
64
+ * For example, the auth scheme with ID aws.auth#sigv4 is named sigv4.
65
+ * @public
66
+ */
67
+ readonly authSchemePreference: Provider<string[]>;
68
+ /**
69
+ * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
70
+ * @internal
71
+ */
72
+ readonly httpAuthSchemes: HttpAuthScheme[];
73
+ /**
74
+ * Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
75
+ * @internal
76
+ */
77
+ readonly httpAuthSchemeProvider: AbuseSignalHttpAuthSchemeProvider;
78
+ }
79
+ /**
80
+ * @internal
81
+ */
82
+ export declare const resolveHttpAuthSchemeConfig: <T>(config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved & AwsSdkSigV4APreviouslyResolved) => T & HttpAuthSchemeResolvedConfig;
83
+ export {};
@@ -0,0 +1,18 @@
1
+ import type { EndpointParameterInstructions } from "@smithy/types";
2
+ import type { AbuseSignalClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "./AbuseSignalClient";
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare const command: <I extends ServiceInputTypes, O extends ServiceOutputTypes>(added: EndpointParameterInstructions, plugins: (CommandCtor: any, clientStack: any, config: any, options: any) => import("@smithy/types").Pluggable<any, any>[], op: string, $: import("@smithy/types").StaticOperationSchema, smithyContext?: Record<string, unknown>) => {
7
+ new (input: I): import("@smithy/core/client").CommandImpl<I, O, AbuseSignalClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
8
+ new (...[input]: import("@smithy/types").OptionalParameter<I>): import("@smithy/core/client").CommandImpl<I, O, AbuseSignalClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
9
+ getEndpointParameterInstructions(): EndpointParameterInstructions;
10
+ };
11
+ /**
12
+ * @internal
13
+ */
14
+ export declare const _ep0: EndpointParameterInstructions;
15
+ /**
16
+ * @internal
17
+ */
18
+ export declare const _mw0: (Command: any, cs: any, config: any, o: any) => never[];