diff --git a/clients/client-frauddetector/src/FraudDetector.ts b/clients/client-frauddetector/src/FraudDetector.ts index a208c03d1e15..409ec38364fe 100644 --- a/clients/client-frauddetector/src/FraudDetector.ts +++ b/clients/client-frauddetector/src/FraudDetector.ts @@ -36,6 +36,7 @@ import { CreateDetectorVersionCommandInput, CreateDetectorVersionCommandOutput, } from "./commands/CreateDetectorVersionCommand"; +import { CreateListCommand, CreateListCommandInput, CreateListCommandOutput } from "./commands/CreateListCommand"; import { CreateModelCommand, CreateModelCommandInput, CreateModelCommandOutput } from "./commands/CreateModelCommand"; import { CreateModelVersionCommand, @@ -90,6 +91,7 @@ import { DeleteExternalModelCommandOutput, } from "./commands/DeleteExternalModelCommand"; import { DeleteLabelCommand, DeleteLabelCommandInput, DeleteLabelCommandOutput } from "./commands/DeleteLabelCommand"; +import { DeleteListCommand, DeleteListCommandInput, DeleteListCommandOutput } from "./commands/DeleteListCommand"; import { DeleteModelCommand, DeleteModelCommandInput, DeleteModelCommandOutput } from "./commands/DeleteModelCommand"; import { DeleteModelVersionCommand, @@ -174,6 +176,16 @@ import { GetKMSEncryptionKeyCommandOutput, } from "./commands/GetKMSEncryptionKeyCommand"; import { GetLabelsCommand, GetLabelsCommandInput, GetLabelsCommandOutput } from "./commands/GetLabelsCommand"; +import { + GetListElementsCommand, + GetListElementsCommandInput, + GetListElementsCommandOutput, +} from "./commands/GetListElementsCommand"; +import { + GetListsMetadataCommand, + GetListsMetadataCommandInput, + GetListsMetadataCommandOutput, +} from "./commands/GetListsMetadataCommand"; import { GetModelsCommand, GetModelsCommandInput, GetModelsCommandOutput } from "./commands/GetModelsCommand"; import { GetModelVersionCommand, @@ -247,6 +259,7 @@ import { UpdateEventLabelCommandInput, UpdateEventLabelCommandOutput, } from "./commands/UpdateEventLabelCommand"; +import { UpdateListCommand, UpdateListCommandInput, UpdateListCommandOutput } from "./commands/UpdateListCommand"; import { UpdateModelCommand, UpdateModelCommandInput, UpdateModelCommandOutput } from "./commands/UpdateModelCommand"; import { UpdateModelVersionCommand, @@ -511,6 +524,36 @@ export class FraudDetector extends FraudDetectorClient { } } + /** + *
+ * Creates a list. + *
+ *List is a set of input data for a variable in your event dataset. You use the input data in a rule that's associated with your detector. + * For more information, see Lists.
+ */ + public createList(args: CreateListCommandInput, options?: __HttpHandlerOptions): PromiseCreates a model using the specified model type.
*/ @@ -947,6 +990,35 @@ export class FraudDetector extends FraudDetectorClient { } } + /** + *+ * Deletes the list, provided it is not used in a rule. + *
+ *When you delete a list, Amazon Fraud Detector permanently deletes that list and the elements in the list.
+ */ + public deleteList(args: DeleteListCommandInput, options?: __HttpHandlerOptions): PromiseDeletes a model.
*You can delete models and model versions in Amazon Fraud Detector, provided that they are not associated with a detector version.
@@ -1600,6 +1672,74 @@ export class FraudDetector extends FraudDetectorClient { } } + /** + *+ * Gets all the elements in the specified list. + *
+ */ + public getListElements( + args: GetListElementsCommandInput, + options?: __HttpHandlerOptions + ): Promise+ * Gets the metadata of either all the lists under the account or the specified list. + *
+ */ + public getListsMetadata( + args: GetListsMetadataCommandInput, + options?: __HttpHandlerOptions + ): PromiseGets one or more models. Gets all models for the Amazon Web Services account if no model type and no model id provided. Gets all models for the Amazon Web Services account and model type, if the model type is specified but model id is not provided. Gets a specific model if (model type, model id) tuple is specified.
*This is a paginated API. If you @@ -2250,6 +2390,34 @@ export class FraudDetector extends FraudDetectorClient { } } + /** + *
+ * Updates a list. + *
+ */ + public updateList(args: UpdateListCommandInput, options?: __HttpHandlerOptions): PromiseUpdates model description.
*/ diff --git a/clients/client-frauddetector/src/FraudDetectorClient.ts b/clients/client-frauddetector/src/FraudDetectorClient.ts index 53e0776ab7e4..e7e5b52ee1a1 100644 --- a/clients/client-frauddetector/src/FraudDetectorClient.ts +++ b/clients/client-frauddetector/src/FraudDetectorClient.ts @@ -74,6 +74,7 @@ import { CreateDetectorVersionCommandInput, CreateDetectorVersionCommandOutput, } from "./commands/CreateDetectorVersionCommand"; +import { CreateListCommandInput, CreateListCommandOutput } from "./commands/CreateListCommand"; import { CreateModelCommandInput, CreateModelCommandOutput } from "./commands/CreateModelCommand"; import { CreateModelVersionCommandInput, CreateModelVersionCommandOutput } from "./commands/CreateModelVersionCommand"; import { CreateRuleCommandInput, CreateRuleCommandOutput } from "./commands/CreateRuleCommand"; @@ -103,6 +104,7 @@ import { DeleteExternalModelCommandOutput, } from "./commands/DeleteExternalModelCommand"; import { DeleteLabelCommandInput, DeleteLabelCommandOutput } from "./commands/DeleteLabelCommand"; +import { DeleteListCommandInput, DeleteListCommandOutput } from "./commands/DeleteListCommand"; import { DeleteModelCommandInput, DeleteModelCommandOutput } from "./commands/DeleteModelCommand"; import { DeleteModelVersionCommandInput, DeleteModelVersionCommandOutput } from "./commands/DeleteModelVersionCommand"; import { DeleteOutcomeCommandInput, DeleteOutcomeCommandOutput } from "./commands/DeleteOutcomeCommand"; @@ -138,6 +140,8 @@ import { GetKMSEncryptionKeyCommandOutput, } from "./commands/GetKMSEncryptionKeyCommand"; import { GetLabelsCommandInput, GetLabelsCommandOutput } from "./commands/GetLabelsCommand"; +import { GetListElementsCommandInput, GetListElementsCommandOutput } from "./commands/GetListElementsCommand"; +import { GetListsMetadataCommandInput, GetListsMetadataCommandOutput } from "./commands/GetListsMetadataCommand"; import { GetModelsCommandInput, GetModelsCommandOutput } from "./commands/GetModelsCommand"; import { GetModelVersionCommandInput, GetModelVersionCommandOutput } from "./commands/GetModelVersionCommand"; import { GetOutcomesCommandInput, GetOutcomesCommandOutput } from "./commands/GetOutcomesCommand"; @@ -177,6 +181,7 @@ import { UpdateDetectorVersionStatusCommandOutput, } from "./commands/UpdateDetectorVersionStatusCommand"; import { UpdateEventLabelCommandInput, UpdateEventLabelCommandOutput } from "./commands/UpdateEventLabelCommand"; +import { UpdateListCommandInput, UpdateListCommandOutput } from "./commands/UpdateListCommand"; import { UpdateModelCommandInput, UpdateModelCommandOutput } from "./commands/UpdateModelCommand"; import { UpdateModelVersionCommandInput, UpdateModelVersionCommandOutput } from "./commands/UpdateModelVersionCommand"; import { @@ -202,6 +207,7 @@ export type ServiceInputTypes = | CreateBatchImportJobCommandInput | CreateBatchPredictionJobCommandInput | CreateDetectorVersionCommandInput + | CreateListCommandInput | CreateModelCommandInput | CreateModelVersionCommandInput | CreateRuleCommandInput @@ -216,6 +222,7 @@ export type ServiceInputTypes = | DeleteEventsByEventTypeCommandInput | DeleteExternalModelCommandInput | DeleteLabelCommandInput + | DeleteListCommandInput | DeleteModelCommandInput | DeleteModelVersionCommandInput | DeleteOutcomeCommandInput @@ -236,6 +243,8 @@ export type ServiceInputTypes = | GetExternalModelsCommandInput | GetKMSEncryptionKeyCommandInput | GetLabelsCommandInput + | GetListElementsCommandInput + | GetListsMetadataCommandInput | GetModelVersionCommandInput | GetModelsCommandInput | GetOutcomesCommandInput @@ -257,6 +266,7 @@ export type ServiceInputTypes = | UpdateDetectorVersionMetadataCommandInput | UpdateDetectorVersionStatusCommandInput | UpdateEventLabelCommandInput + | UpdateListCommandInput | UpdateModelCommandInput | UpdateModelVersionCommandInput | UpdateModelVersionStatusCommandInput @@ -272,6 +282,7 @@ export type ServiceOutputTypes = | CreateBatchImportJobCommandOutput | CreateBatchPredictionJobCommandOutput | CreateDetectorVersionCommandOutput + | CreateListCommandOutput | CreateModelCommandOutput | CreateModelVersionCommandOutput | CreateRuleCommandOutput @@ -286,6 +297,7 @@ export type ServiceOutputTypes = | DeleteEventsByEventTypeCommandOutput | DeleteExternalModelCommandOutput | DeleteLabelCommandOutput + | DeleteListCommandOutput | DeleteModelCommandOutput | DeleteModelVersionCommandOutput | DeleteOutcomeCommandOutput @@ -306,6 +318,8 @@ export type ServiceOutputTypes = | GetExternalModelsCommandOutput | GetKMSEncryptionKeyCommandOutput | GetLabelsCommandOutput + | GetListElementsCommandOutput + | GetListsMetadataCommandOutput | GetModelVersionCommandOutput | GetModelsCommandOutput | GetOutcomesCommandOutput @@ -327,6 +341,7 @@ export type ServiceOutputTypes = | UpdateDetectorVersionMetadataCommandOutput | UpdateDetectorVersionStatusCommandOutput | UpdateEventLabelCommandOutput + | UpdateListCommandOutput | UpdateModelCommandOutput | UpdateModelVersionCommandOutput | UpdateModelVersionStatusCommandOutput diff --git a/clients/client-frauddetector/src/commands/CreateListCommand.ts b/clients/client-frauddetector/src/commands/CreateListCommand.ts new file mode 100644 index 000000000000..d621e8f23788 --- /dev/null +++ b/clients/client-frauddetector/src/commands/CreateListCommand.ts @@ -0,0 +1,116 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint"; +import { getSerdePlugin } from "@aws-sdk/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; +import { Command as $Command } from "@aws-sdk/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@aws-sdk/types"; + +import { FraudDetectorClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../FraudDetectorClient"; +import { + CreateListRequest, + CreateListRequestFilterSensitiveLog, + CreateListResult, + CreateListResultFilterSensitiveLog, +} from "../models/models_0"; +import { + deserializeAws_json1_1CreateListCommand, + serializeAws_json1_1CreateListCommand, +} from "../protocols/Aws_json1_1"; + +export interface CreateListCommandInput extends CreateListRequest {} +export interface CreateListCommandOutput extends CreateListResult, __MetadataBearer {} + +/** + *+ * Creates a list. + *
+ *List is a set of input data for a variable in your event dataset. You use the input data in a rule that's associated with your detector. + * For more information, see Lists.
+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { FraudDetectorClient, CreateListCommand } from "@aws-sdk/client-frauddetector"; // ES Modules import + * // const { FraudDetectorClient, CreateListCommand } = require("@aws-sdk/client-frauddetector"); // CommonJS import + * const client = new FraudDetectorClient(config); + * const command = new CreateListCommand(input); + * const response = await client.send(command); + * ``` + * + * @see {@link CreateListCommandInput} for command's `input` shape. + * @see {@link CreateListCommandOutput} for command's `response` shape. + * @see {@link FraudDetectorClientResolvedConfig | config} for FraudDetectorClient's `config` shape. + * + */ +export class CreateListCommand extends $Command< + CreateListCommandInput, + CreateListCommandOutput, + FraudDetectorClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + constructor(readonly input: CreateListCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack+ * Deletes the list, provided it is not used in a rule. + *
+ *When you delete a list, Amazon Fraud Detector permanently deletes that list and the elements in the list.
+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { FraudDetectorClient, DeleteListCommand } from "@aws-sdk/client-frauddetector"; // ES Modules import + * // const { FraudDetectorClient, DeleteListCommand } = require("@aws-sdk/client-frauddetector"); // CommonJS import + * const client = new FraudDetectorClient(config); + * const command = new DeleteListCommand(input); + * const response = await client.send(command); + * ``` + * + * @see {@link DeleteListCommandInput} for command's `input` shape. + * @see {@link DeleteListCommandOutput} for command's `response` shape. + * @see {@link FraudDetectorClientResolvedConfig | config} for FraudDetectorClient's `config` shape. + * + */ +export class DeleteListCommand extends $Command< + DeleteListCommandInput, + DeleteListCommandOutput, + FraudDetectorClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + constructor(readonly input: DeleteListCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack+ * Gets all the elements in the specified list. + *
+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { FraudDetectorClient, GetListElementsCommand } from "@aws-sdk/client-frauddetector"; // ES Modules import + * // const { FraudDetectorClient, GetListElementsCommand } = require("@aws-sdk/client-frauddetector"); // CommonJS import + * const client = new FraudDetectorClient(config); + * const command = new GetListElementsCommand(input); + * const response = await client.send(command); + * ``` + * + * @see {@link GetListElementsCommandInput} for command's `input` shape. + * @see {@link GetListElementsCommandOutput} for command's `response` shape. + * @see {@link FraudDetectorClientResolvedConfig | config} for FraudDetectorClient's `config` shape. + * + */ +export class GetListElementsCommand extends $Command< + GetListElementsCommandInput, + GetListElementsCommandOutput, + FraudDetectorClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + constructor(readonly input: GetListElementsCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack+ * Gets the metadata of either all the lists under the account or the specified list. + *
+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { FraudDetectorClient, GetListsMetadataCommand } from "@aws-sdk/client-frauddetector"; // ES Modules import + * // const { FraudDetectorClient, GetListsMetadataCommand } = require("@aws-sdk/client-frauddetector"); // CommonJS import + * const client = new FraudDetectorClient(config); + * const command = new GetListsMetadataCommand(input); + * const response = await client.send(command); + * ``` + * + * @see {@link GetListsMetadataCommandInput} for command's `input` shape. + * @see {@link GetListsMetadataCommandOutput} for command's `response` shape. + * @see {@link FraudDetectorClientResolvedConfig | config} for FraudDetectorClient's `config` shape. + * + */ +export class GetListsMetadataCommand extends $Command< + GetListsMetadataCommandInput, + GetListsMetadataCommandOutput, + FraudDetectorClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + constructor(readonly input: GetListsMetadataCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack+ * Updates a list. + *
+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { FraudDetectorClient, UpdateListCommand } from "@aws-sdk/client-frauddetector"; // ES Modules import + * // const { FraudDetectorClient, UpdateListCommand } = require("@aws-sdk/client-frauddetector"); // CommonJS import + * const client = new FraudDetectorClient(config); + * const command = new UpdateListCommand(input); + * const response = await client.send(command); + * ``` + * + * @see {@link UpdateListCommandInput} for command's `input` shape. + * @see {@link UpdateListCommandOutput} for command's `response` shape. + * @see {@link FraudDetectorClientResolvedConfig | config} for FraudDetectorClient's `config` shape. + * + */ +export class UpdateListCommand extends $Command< + UpdateListCommandInput, + UpdateListCommandOutput, + FraudDetectorClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + constructor(readonly input: UpdateListCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack+ * The metadata of a list. + *
+ */ +export interface AllowDenyList { + /** + *+ * The name of the list. + *
+ */ + name: string | undefined; + + /** + *+ * The description of the list. + *
+ */ + description?: string; + + /** + *+ * The variable type of the list. + *
+ */ + variableType?: string; + + /** + *+ * The time the list was created. + *
+ */ + createdTime?: string; + + /** + *+ * The time the list was last updated. + *
+ */ + updatedTime?: string; + + /** + *+ * The ARN of the list. + *
+ */ + arn?: string; +} + export enum AsyncJobStatus { CANCELED = "CANCELED", CANCEL_IN_PROGRESS = "CANCEL_IN_PROGRESS", @@ -676,6 +725,46 @@ export interface CreateDetectorVersionResult { status?: DetectorVersionStatus | string; } +export interface CreateListRequest { + /** + *+ * The name of the list. + *
+ */ + name: string | undefined; + + /** + *+ * The names of the elements, if providing. You can also create an empty list and add elements later using the UpdateList API. + *
+ */ + elements?: string[]; + + /** + *+ * The variable type of the list. You can only assign the variable type with String data type. For more information, see + * Variable types. + *
+ */ + variableType?: string; + + /** + *+ * The description of the list. + *
+ */ + description?: string; + + /** + *+ * A collection of the key and value pairs. + *
+ */ + tags?: Tag[]; +} + +export interface CreateListResult {} + export interface CreateModelRequest { /** *The model ID.
@@ -1086,6 +1175,17 @@ export interface DeleteLabelRequest { export interface DeleteLabelResult {} +export interface DeleteListRequest { + /** + *+ * The name of the list to delete. + *
+ */ + name: string | undefined; +} + +export interface DeleteListResult {} + export interface DeleteModelRequest { /** *The model ID of the model to delete.
@@ -3113,6 +3213,84 @@ export interface GetLabelsResult { nextToken?: string; } +export interface GetListElementsRequest { + /** + *+ * The name of the list. + *
+ */ + name: string | undefined; + + /** + *+ * The next token for the subsequent request. + *
+ */ + nextToken?: string; + + /** + *+ * The maximum number of objects to return for the request. + *
+ */ + maxResults?: number; +} + +export interface GetListElementsResult { + /** + *+ * The list elements. + *
+ */ + elements?: string[]; + + /** + *+ * The next page token. + *
+ */ + nextToken?: string; +} + +export interface GetListsMetadataRequest { + /** + *+ * The name of the list. + *
+ */ + name?: string; + + /** + *+ * The next token for the subsequent request. + *
+ */ + nextToken?: string; + + /** + *+ * The maximum number of objects to return for the request. + *
+ */ + maxResults?: number; +} + +export interface GetListsMetadataResult { + /** + *+ * The metadata of the specified list or all lists under the account. + *
+ */ + lists?: AllowDenyList[]; + + /** + *+ * The next page token. + *
+ */ + nextToken?: string; +} + export interface GetModelsRequest { /** *The model ID.
@@ -4006,6 +4184,66 @@ export interface UpdateEventLabelRequest { export interface UpdateEventLabelResult {} +export enum ListUpdateMode { + APPEND = "APPEND", + REMOVE = "REMOVE", + REPLACE = "REPLACE", +} + +export interface UpdateListRequest { + /** + *+ * The name of the list to update. + *
+ */ + name: string | undefined; + + /** + *
+ * One or more list elements to add or replace. If you are providing the elements, make sure to specify the updateMode
to use.
+ *
If you are deleting all elements from the list, use REPLACE
for the updateMode
and provide an empty list (0 elements).
+ * The new description. + *
+ */ + description?: string; + + /** + *+ * The update mode (type). + *
+ *Use APPEND
if you are adding elements to the list.
Use REPLACE
if you replacing existing elements in the list.
Use REMOVE
if you are removing elements from the list.
+ * The variable type you want to assign to the list. + *
+ *You cannot update a variable type of a list that already has a variable type assigned to it. You can assign a variable type to a list only if the list does not already have a variable type.
+ *The model ID.
@@ -4211,6 +4449,13 @@ export const AggregatedVariablesImportanceMetricsFilterSensitiveLog = ( ...obj, }); +/** + * @internal + */ +export const AllowDenyListFilterSensitiveLog = (obj: AllowDenyList): any => ({ + ...obj, +}); + /** * @internal */ @@ -4379,6 +4624,21 @@ export const CreateDetectorVersionResultFilterSensitiveLog = (obj: CreateDetecto ...obj, }); +/** + * @internal + */ +export const CreateListRequestFilterSensitiveLog = (obj: CreateListRequest): any => ({ + ...obj, + ...(obj.elements && { elements: SENSITIVE_STRING }), +}); + +/** + * @internal + */ +export const CreateListResultFilterSensitiveLog = (obj: CreateListResult): any => ({ + ...obj, +}); + /** * @internal */ @@ -4611,6 +4871,20 @@ export const DeleteLabelResultFilterSensitiveLog = (obj: DeleteLabelResult): any ...obj, }); +/** + * @internal + */ +export const DeleteListRequestFilterSensitiveLog = (obj: DeleteListRequest): any => ({ + ...obj, +}); + +/** + * @internal + */ +export const DeleteListResultFilterSensitiveLog = (obj: DeleteListResult): any => ({ + ...obj, +}); + /** * @internal */ @@ -5217,6 +5491,35 @@ export const GetLabelsResultFilterSensitiveLog = (obj: GetLabelsResult): any => ...obj, }); +/** + * @internal + */ +export const GetListElementsRequestFilterSensitiveLog = (obj: GetListElementsRequest): any => ({ + ...obj, +}); + +/** + * @internal + */ +export const GetListElementsResultFilterSensitiveLog = (obj: GetListElementsResult): any => ({ + ...obj, + ...(obj.elements && { elements: SENSITIVE_STRING }), +}); + +/** + * @internal + */ +export const GetListsMetadataRequestFilterSensitiveLog = (obj: GetListsMetadataRequest): any => ({ + ...obj, +}); + +/** + * @internal + */ +export const GetListsMetadataResultFilterSensitiveLog = (obj: GetListsMetadataResult): any => ({ + ...obj, +}); + /** * @internal */ @@ -5561,6 +5864,21 @@ export const UpdateEventLabelResultFilterSensitiveLog = (obj: UpdateEventLabelRe ...obj, }); +/** + * @internal + */ +export const UpdateListRequestFilterSensitiveLog = (obj: UpdateListRequest): any => ({ + ...obj, + ...(obj.elements && { elements: SENSITIVE_STRING }), +}); + +/** + * @internal + */ +export const UpdateListResultFilterSensitiveLog = (obj: UpdateListResult): any => ({ + ...obj, +}); + /** * @internal */ diff --git a/clients/client-frauddetector/src/pagination/GetListElementsPaginator.ts b/clients/client-frauddetector/src/pagination/GetListElementsPaginator.ts new file mode 100644 index 000000000000..66f30dd3fd68 --- /dev/null +++ b/clients/client-frauddetector/src/pagination/GetListElementsPaginator.ts @@ -0,0 +1,61 @@ +// smithy-typescript generated code +import { Paginator } from "@aws-sdk/types"; + +import { + GetListElementsCommand, + GetListElementsCommandInput, + GetListElementsCommandOutput, +} from "../commands/GetListElementsCommand"; +import { FraudDetector } from "../FraudDetector"; +import { FraudDetectorClient } from "../FraudDetectorClient"; +import { FraudDetectorPaginationConfiguration } from "./Interfaces"; + +/** + * @private + */ +const makePagedClientRequest = async ( + client: FraudDetectorClient, + input: GetListElementsCommandInput, + ...args: any +): PromiseThe details of the relative importance of the aggregated variables.
\nAccount Takeover Insights (ATI) model uses event variables from the login data you \n provide to continuously calculate a set of variables (aggregated variables) based on historical events. For example, your ATI model might calculate the number of times an user has logged in using the same IP address. \n In this case, event variables used to derive the aggregated variables are IP address
and user
.
\n The name of the list.\n
", + "smithy.api#required": {} + } + }, + "description": { + "target": "com.amazonaws.frauddetector#description", + "traits": { + "smithy.api#documentation": "\n The description of the list.\n
" + } + }, + "variableType": { + "target": "com.amazonaws.frauddetector#variableType", + "traits": { + "smithy.api#documentation": "\n The variable type of the list.\n
" + } + }, + "createdTime": { + "target": "com.amazonaws.frauddetector#time", + "traits": { + "smithy.api#documentation": "\n The time the list was created.\n
" + } + }, + "updatedTime": { + "target": "com.amazonaws.frauddetector#time", + "traits": { + "smithy.api#documentation": "\n The time the list was last updated.\n
" + } + }, + "arn": { + "target": "com.amazonaws.frauddetector#fraudDetectorArn", + "traits": { + "smithy.api#documentation": "\n The ARN of the list.\n
" + } + } + }, + "traits": { + "smithy.api#documentation": "\n The metadata of a list.\n
" + } + }, + "com.amazonaws.frauddetector#AllowDenyLists": { + "type": "list", + "member": { + "target": "com.amazonaws.frauddetector#AllowDenyList" + } + }, "com.amazonaws.frauddetector#AsyncJobStatus": { "type": "enum", "members": { @@ -1163,6 +1268,9 @@ "smithy.api#documentation": "A collection of key and value pairs.
" } } + }, + "traits": { + "smithy.api#input": {} } }, "com.amazonaws.frauddetector#BatchCreateVariableResult": { @@ -1245,6 +1353,9 @@ "smithy.api#required": {} } } + }, + "traits": { + "smithy.api#input": {} } }, "com.amazonaws.frauddetector#BatchGetVariableResult": { @@ -1502,6 +1613,9 @@ "smithy.api#required": {} } } + }, + "traits": { + "smithy.api#input": {} } }, "com.amazonaws.frauddetector#CancelBatchImportJobResult": { @@ -1547,6 +1661,9 @@ "smithy.api#required": {} } } + }, + "traits": { + "smithy.api#input": {} } }, "com.amazonaws.frauddetector#CancelBatchPredictionJobResult": { @@ -1642,6 +1759,9 @@ "smithy.api#documentation": "A collection of key-value pairs associated with this request.
" } } + }, + "traits": { + "smithy.api#input": {} } }, "com.amazonaws.frauddetector#CreateBatchImportJobResult": { @@ -1734,6 +1854,9 @@ "smithy.api#documentation": "A collection of key and value pairs.
" } } + }, + "traits": { + "smithy.api#input": {} } }, "com.amazonaws.frauddetector#CreateBatchPredictionJobResult": { @@ -1816,6 +1939,9 @@ "smithy.api#documentation": "A collection of key and value pairs.
" } } + }, + "traits": { + "smithy.api#input": {} } }, "com.amazonaws.frauddetector#CreateDetectorVersionResult": { @@ -1824,23 +1950,92 @@ "detectorId": { "target": "com.amazonaws.frauddetector#identifier", "traits": { - "smithy.api#documentation": "The ID for the created version's parent detector.
" + "smithy.api#documentation": "The ID for the created version's parent detector.
" + } + }, + "detectorVersionId": { + "target": "com.amazonaws.frauddetector#wholeNumberVersionString", + "traits": { + "smithy.api#documentation": "The ID for the created detector.
" + } + }, + "status": { + "target": "com.amazonaws.frauddetector#DetectorVersionStatus", + "traits": { + "smithy.api#documentation": "The status of the detector version.
" + } + } + } + }, + "com.amazonaws.frauddetector#CreateList": { + "type": "operation", + "input": { + "target": "com.amazonaws.frauddetector#CreateListRequest" + }, + "output": { + "target": "com.amazonaws.frauddetector#CreateListResult" + }, + "errors": [ + { + "target": "com.amazonaws.frauddetector#AccessDeniedException" + }, + { + "target": "com.amazonaws.frauddetector#InternalServerException" + }, + { + "target": "com.amazonaws.frauddetector#ThrottlingException" + }, + { + "target": "com.amazonaws.frauddetector#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "\n Creates a list. \n
\nList is a set of input data for a variable in your event dataset. You use the input data in a rule that's associated with your detector. \n For more information, see Lists.
" + } + }, + "com.amazonaws.frauddetector#CreateListRequest": { + "type": "structure", + "members": { + "name": { + "target": "com.amazonaws.frauddetector#noDashIdentifier", + "traits": { + "smithy.api#documentation": "\n The name of the list.\n
", + "smithy.api#required": {} } }, - "detectorVersionId": { - "target": "com.amazonaws.frauddetector#wholeNumberVersionString", + "elements": { + "target": "com.amazonaws.frauddetector#ElementsList", "traits": { - "smithy.api#documentation": "The ID for the created detector.
" + "smithy.api#documentation": "\n The names of the elements, if providing. You can also create an empty list and add elements later using the UpdateList API.\n
" } }, - "status": { - "target": "com.amazonaws.frauddetector#DetectorVersionStatus", + "variableType": { + "target": "com.amazonaws.frauddetector#variableType", "traits": { - "smithy.api#documentation": "The status of the detector version.
" + "smithy.api#documentation": "\n The variable type of the list. You can only assign the variable type with String data type. For more information, see \n Variable types.\n
" + } + }, + "description": { + "target": "com.amazonaws.frauddetector#description", + "traits": { + "smithy.api#documentation": "\n The description of the list.\n
" + } + }, + "tags": { + "target": "com.amazonaws.frauddetector#tagList", + "traits": { + "smithy.api#documentation": "\n A collection of the key and value pairs.\n
" } } + }, + "traits": { + "smithy.api#input": {} } }, + "com.amazonaws.frauddetector#CreateListResult": { + "type": "structure", + "members": {} + }, "com.amazonaws.frauddetector#CreateModel": { "type": "operation", "input": { @@ -1903,6 +2098,9 @@ "smithy.api#documentation": "A collection of key and value pairs.
" } } + }, + "traits": { + "smithy.api#input": {} } }, "com.amazonaws.frauddetector#CreateModelResult": { @@ -1987,6 +2185,9 @@ "smithy.api#documentation": "A collection of key and value pairs.
" } } + }, + "traits": { + "smithy.api#input": {} } }, "com.amazonaws.frauddetector#CreateModelVersionResult": { @@ -2094,6 +2295,9 @@ "smithy.api#documentation": "A collection of key and value pairs.
" } } + }, + "traits": { + "smithy.api#input": {} } }, "com.amazonaws.frauddetector#CreateRuleResult": { @@ -2182,6 +2386,9 @@ "smithy.api#documentation": "A collection of key and value pairs.
" } } + }, + "traits": { + "smithy.api#input": {} } }, "com.amazonaws.frauddetector#CreateVariableResult": { @@ -2308,6 +2515,9 @@ "smithy.api#required": {} } } + }, + "traits": { + "smithy.api#input": {} } }, "com.amazonaws.frauddetector#DeleteBatchImportJobResult": { @@ -2350,6 +2560,9 @@ "smithy.api#required": {} } } + }, + "traits": { + "smithy.api#input": {} } }, "com.amazonaws.frauddetector#DeleteBatchPredictionJobResult": { @@ -2395,6 +2608,9 @@ "smithy.api#required": {} } } + }, + "traits": { + "smithy.api#input": {} } }, "com.amazonaws.frauddetector#DeleteDetectorResult": { @@ -2450,6 +2666,9 @@ "smithy.api#required": {} } } + }, + "traits": { + "smithy.api#input": {} } }, "com.amazonaws.frauddetector#DeleteDetectorVersionResult": { @@ -2495,6 +2714,9 @@ "smithy.api#required": {} } } + }, + "traits": { + "smithy.api#input": {} } }, "com.amazonaws.frauddetector#DeleteEntityTypeResult": { @@ -2550,6 +2772,9 @@ "smithy.api#documentation": "Specifies whether or not to delete any predictions associated with the event.
" } } + }, + "traits": { + "smithy.api#input": {} } }, "com.amazonaws.frauddetector#DeleteEventResult": { @@ -2595,6 +2820,9 @@ "smithy.api#required": {} } } + }, + "traits": { + "smithy.api#input": {} } }, "com.amazonaws.frauddetector#DeleteEventTypeResult": { @@ -2643,6 +2871,9 @@ "smithy.api#required": {} } } + }, + "traits": { + "smithy.api#input": {} } }, "com.amazonaws.frauddetector#DeleteEventsByEventTypeResult": { @@ -2701,6 +2932,9 @@ "smithy.api#required": {} } } + }, + "traits": { + "smithy.api#input": {} } }, "com.amazonaws.frauddetector#DeleteExternalModelResult": { @@ -2743,12 +2977,63 @@ "smithy.api#required": {} } } + }, + "traits": { + "smithy.api#input": {} } }, "com.amazonaws.frauddetector#DeleteLabelResult": { "type": "structure", "members": {} }, + "com.amazonaws.frauddetector#DeleteList": { + "type": "operation", + "input": { + "target": "com.amazonaws.frauddetector#DeleteListRequest" + }, + "output": { + "target": "com.amazonaws.frauddetector#DeleteListResult" + }, + "errors": [ + { + "target": "com.amazonaws.frauddetector#AccessDeniedException" + }, + { + "target": "com.amazonaws.frauddetector#ConflictException" + }, + { + "target": "com.amazonaws.frauddetector#InternalServerException" + }, + { + "target": "com.amazonaws.frauddetector#ThrottlingException" + }, + { + "target": "com.amazonaws.frauddetector#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "\n Deletes the list, provided it is not used in a rule.\n
\nWhen you delete a list, Amazon Fraud Detector permanently deletes that list and the elements in the list.
" + } + }, + "com.amazonaws.frauddetector#DeleteListRequest": { + "type": "structure", + "members": { + "name": { + "target": "com.amazonaws.frauddetector#noDashIdentifier", + "traits": { + "smithy.api#documentation": "\n The name of the list to delete.\n
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.frauddetector#DeleteListResult": { + "type": "structure", + "members": {} + }, "com.amazonaws.frauddetector#DeleteModel": { "type": "operation", "input": { @@ -2795,6 +3080,9 @@ "smithy.api#required": {} } } + }, + "traits": { + "smithy.api#input": {} } }, "com.amazonaws.frauddetector#DeleteModelResult": { @@ -2854,6 +3142,9 @@ "smithy.api#required": {} } } + }, + "traits": { + "smithy.api#input": {} } }, "com.amazonaws.frauddetector#DeleteModelVersionResult": { @@ -2899,6 +3190,9 @@ "smithy.api#required": {} } } + }, + "traits": { + "smithy.api#input": {} } }, "com.amazonaws.frauddetector#DeleteOutcomeResult": { @@ -2943,6 +3237,9 @@ "smithy.api#required": {} } } + }, + "traits": { + "smithy.api#input": {} } }, "com.amazonaws.frauddetector#DeleteRuleResult": { @@ -2988,6 +3285,9 @@ "smithy.api#required": {} } } + }, + "traits": { + "smithy.api#input": {} } }, "com.amazonaws.frauddetector#DeleteVariableResult": { @@ -3045,6 +3345,9 @@ "smithy.api#documentation": "The maximum number of results to return for the request.
" } } + }, + "traits": { + "smithy.api#input": {} } }, "com.amazonaws.frauddetector#DescribeDetectorResult": { @@ -3143,6 +3446,9 @@ "smithy.api#documentation": "The maximum number of results to return.
" } } + }, + "traits": { + "smithy.api#input": {} } }, "com.amazonaws.frauddetector#DescribeModelVersionsResult": { @@ -3291,6 +3597,29 @@ } } }, + "com.amazonaws.frauddetector#Elements": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 320 + }, + "smithy.api#pattern": "^\\S+( +\\S+)*$", + "smithy.api#sensitive": {} + } + }, + "com.amazonaws.frauddetector#ElementsList": { + "type": "list", + "member": { + "target": "com.amazonaws.frauddetector#Elements" + }, + "traits": { + "smithy.api#length": { + "min": 0, + "max": 100000 + } + } + }, "com.amazonaws.frauddetector#Entity": { "type": "structure", "members": { @@ -4003,6 +4332,9 @@ "smithy.api#documentation": "The next token from the previous request.
" } } + }, + "traits": { + "smithy.api#input": {} } }, "com.amazonaws.frauddetector#GetBatchImportJobsResult": { @@ -4077,6 +4409,9 @@ "smithy.api#documentation": "The next token from the previous request.
" } } + }, + "traits": { + "smithy.api#input": {} } }, "com.amazonaws.frauddetector#GetBatchPredictionJobsResult": { @@ -4135,6 +4470,9 @@ "smithy.api#required": {} } } + }, + "traits": { + "smithy.api#input": {} } }, "com.amazonaws.frauddetector#GetDeleteEventsByEventTypeStatusResult": { @@ -4200,6 +4538,9 @@ "smithy.api#required": {} } } + }, + "traits": { + "smithy.api#input": {} } }, "com.amazonaws.frauddetector#GetDetectorVersionResult": { @@ -4328,6 +4669,9 @@ "smithy.api#documentation": "The maximum number of objects to return for the request.
" } } + }, + "traits": { + "smithy.api#input": {} } }, "com.amazonaws.frauddetector#GetDetectorsResult": { @@ -4402,6 +4746,9 @@ "smithy.api#documentation": "The maximum number of objects to return for the request.
" } } + }, + "traits": { + "smithy.api#input": {} } }, "com.amazonaws.frauddetector#GetEntityTypesResult": { @@ -4552,6 +4899,9 @@ "smithy.api#required": {} } } + }, + "traits": { + "smithy.api#input": {} } }, "com.amazonaws.frauddetector#GetEventPredictionMetadataResult": { @@ -4706,6 +5056,9 @@ "smithy.api#documentation": "The Amazon SageMaker model endpoint input data blobs.
" } } + }, + "traits": { + "smithy.api#input": {} } }, "com.amazonaws.frauddetector#GetEventPredictionResult": { @@ -4748,6 +5101,9 @@ "smithy.api#required": {} } } + }, + "traits": { + "smithy.api#input": {} } }, "com.amazonaws.frauddetector#GetEventResult": { @@ -4816,6 +5172,9 @@ "smithy.api#documentation": "The maximum number of objects to return for the request.
" } } + }, + "traits": { + "smithy.api#input": {} } }, "com.amazonaws.frauddetector#GetEventTypesResult": { @@ -4835,13 +5194,127 @@ } } }, - "com.amazonaws.frauddetector#GetExternalModels": { + "com.amazonaws.frauddetector#GetExternalModels": { + "type": "operation", + "input": { + "target": "com.amazonaws.frauddetector#GetExternalModelsRequest" + }, + "output": { + "target": "com.amazonaws.frauddetector#GetExternalModelsResult" + }, + "errors": [ + { + "target": "com.amazonaws.frauddetector#AccessDeniedException" + }, + { + "target": "com.amazonaws.frauddetector#InternalServerException" + }, + { + "target": "com.amazonaws.frauddetector#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.frauddetector#ThrottlingException" + }, + { + "target": "com.amazonaws.frauddetector#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Gets the details for one or more Amazon SageMaker models that have been imported into the\n service. This is a paginated API. If you provide a null maxResults
, this\n actions retrieves a maximum of 10 records per page. If you provide a\n maxResults
, the value must be between 5 and 10. To get the next page\n results, provide the pagination token from the GetExternalModelsResult
as part\n of your request. A null pagination token fetches the records from the beginning.
The Amazon SageMaker model endpoint.
" + } + }, + "nextToken": { + "target": "com.amazonaws.frauddetector#string", + "traits": { + "smithy.api#documentation": "The next page token for the request.
" + } + }, + "maxResults": { + "target": "com.amazonaws.frauddetector#ExternalModelsMaxResults", + "traits": { + "smithy.api#documentation": "The maximum number of objects to return for the request.
" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.frauddetector#GetExternalModelsResult": { + "type": "structure", + "members": { + "externalModels": { + "target": "com.amazonaws.frauddetector#ExternalModelList", + "traits": { + "smithy.api#documentation": "Gets the Amazon SageMaker models.
" + } + }, + "nextToken": { + "target": "com.amazonaws.frauddetector#string", + "traits": { + "smithy.api#documentation": "The next page token to be used in subsequent requests.
" + } + } + } + }, + "com.amazonaws.frauddetector#GetKMSEncryptionKey": { + "type": "operation", + "input": { + "target": "smithy.api#Unit" + }, + "output": { + "target": "com.amazonaws.frauddetector#GetKMSEncryptionKeyResult" + }, + "errors": [ + { + "target": "com.amazonaws.frauddetector#AccessDeniedException" + }, + { + "target": "com.amazonaws.frauddetector#InternalServerException" + }, + { + "target": "com.amazonaws.frauddetector#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.frauddetector#ThrottlingException" + } + ], + "traits": { + "smithy.api#documentation": "Gets the encryption key if a KMS key has been specified to be used to encrypt content in Amazon Fraud Detector.
" + } + }, + "com.amazonaws.frauddetector#GetKMSEncryptionKeyResult": { + "type": "structure", + "members": { + "kmsKey": { + "target": "com.amazonaws.frauddetector#KMSKey", + "traits": { + "smithy.api#documentation": "The KMS encryption key.
" + } + } + } + }, + "com.amazonaws.frauddetector#GetLabels": { "type": "operation", "input": { - "target": "com.amazonaws.frauddetector#GetExternalModelsRequest" + "target": "com.amazonaws.frauddetector#GetLabelsRequest" }, "output": { - "target": "com.amazonaws.frauddetector#GetExternalModelsResult" + "target": "com.amazonaws.frauddetector#GetLabelsResult" }, "errors": [ { @@ -4861,7 +5334,7 @@ } ], "traits": { - "smithy.api#documentation": "Gets the details for one or more Amazon SageMaker models that have been imported into the\n service. This is a paginated API. If you provide a null maxResults
, this\n actions retrieves a maximum of 10 records per page. If you provide a\n maxResults
, the value must be between 5 and 10. To get the next page\n results, provide the pagination token from the GetExternalModelsResult
as part\n of your request. A null pagination token fetches the records from the beginning.
Gets all labels or a specific label if name is provided. This is a paginated API. If you\n provide a null maxResults
, this action retrieves a maximum of 50 records\n per page. If you provide a maxResults
, the value must be between 10 and 50.\n To get the next page results, provide the pagination token from the\n GetGetLabelsResponse
as part of your request. A null pagination token\n fetches the records from the beginning.
The Amazon SageMaker model endpoint.
" + "smithy.api#documentation": "The name of the label or labels to get.
" } }, "nextToken": { "target": "com.amazonaws.frauddetector#string", "traits": { - "smithy.api#documentation": "The next page token for the request.
" + "smithy.api#documentation": "The next token for the subsequent request.
" } }, "maxResults": { - "target": "com.amazonaws.frauddetector#ExternalModelsMaxResults", + "target": "com.amazonaws.frauddetector#labelsMaxResults", "traits": { "smithy.api#documentation": "The maximum number of objects to return for the request.
" } } + }, + "traits": { + "smithy.api#input": {} } }, - "com.amazonaws.frauddetector#GetExternalModelsResult": { + "com.amazonaws.frauddetector#GetLabelsResult": { "type": "structure", "members": { - "externalModels": { - "target": "com.amazonaws.frauddetector#ExternalModelList", + "labels": { + "target": "com.amazonaws.frauddetector#labelList", "traits": { - "smithy.api#documentation": "Gets the Amazon SageMaker models.
" + "smithy.api#documentation": "An array of labels.
" } }, "nextToken": { "target": "com.amazonaws.frauddetector#string", "traits": { - "smithy.api#documentation": "The next page token to be used in subsequent requests.
" + "smithy.api#documentation": "The next page token.
" } } } }, - "com.amazonaws.frauddetector#GetKMSEncryptionKey": { + "com.amazonaws.frauddetector#GetListElements": { "type": "operation", "input": { - "target": "smithy.api#Unit" + "target": "com.amazonaws.frauddetector#GetListElementsRequest" }, "output": { - "target": "com.amazonaws.frauddetector#GetKMSEncryptionKeyResult" + "target": "com.amazonaws.frauddetector#GetListElementsResult" }, "errors": [ { @@ -4929,30 +5405,71 @@ }, { "target": "com.amazonaws.frauddetector#ThrottlingException" + }, + { + "target": "com.amazonaws.frauddetector#ValidationException" } ], "traits": { - "smithy.api#documentation": "Gets the encryption key if a KMS key has been specified to be used to encrypt content in Amazon Fraud Detector.
" + "smithy.api#documentation": "\n Gets all the elements in the specified list.\n
", + "smithy.api#paginated": { + "inputToken": "nextToken", + "outputToken": "nextToken", + "pageSize": "maxResults" + } } }, - "com.amazonaws.frauddetector#GetKMSEncryptionKeyResult": { + "com.amazonaws.frauddetector#GetListElementsRequest": { "type": "structure", "members": { - "kmsKey": { - "target": "com.amazonaws.frauddetector#KMSKey", + "name": { + "target": "com.amazonaws.frauddetector#noDashIdentifier", "traits": { - "smithy.api#documentation": "The KMS encryption key.
" + "smithy.api#documentation": "\n The name of the list.\n
", + "smithy.api#required": {} + } + }, + "nextToken": { + "target": "com.amazonaws.frauddetector#nextToken", + "traits": { + "smithy.api#documentation": "\n The next token for the subsequent request.\n
" + } + }, + "maxResults": { + "target": "com.amazonaws.frauddetector#ListsElementsMaxResults", + "traits": { + "smithy.api#documentation": "\n The maximum number of objects to return for the request.\n
" } } + }, + "traits": { + "smithy.api#input": {} } }, - "com.amazonaws.frauddetector#GetLabels": { + "com.amazonaws.frauddetector#GetListElementsResult": { + "type": "structure", + "members": { + "elements": { + "target": "com.amazonaws.frauddetector#ElementsList", + "traits": { + "smithy.api#documentation": "\n The list elements.\n
" + } + }, + "nextToken": { + "target": "com.amazonaws.frauddetector#nextToken", + "traits": { + "smithy.api#documentation": "\n The next page token.\n
" + } + } + } + }, + "com.amazonaws.frauddetector#GetListsMetadata": { "type": "operation", "input": { - "target": "com.amazonaws.frauddetector#GetLabelsRequest" + "target": "com.amazonaws.frauddetector#GetListsMetadataRequest" }, "output": { - "target": "com.amazonaws.frauddetector#GetLabelsResult" + "target": "com.amazonaws.frauddetector#GetListsMetadataResult" }, "errors": [ { @@ -4972,7 +5489,7 @@ } ], "traits": { - "smithy.api#documentation": "Gets all labels or a specific label if name is provided. This is a paginated API. If you\n provide a null maxResults
, this action retrieves a maximum of 50 records\n per page. If you provide a maxResults
, the value must be between 10 and 50.\n To get the next page results, provide the pagination token from the\n GetGetLabelsResponse
as part of your request. A null pagination token\n fetches the records from the beginning.
\n Gets the metadata of either all the lists under the account or the specified list. \n
", "smithy.api#paginated": { "inputToken": "nextToken", "outputToken": "nextToken", @@ -4980,42 +5497,45 @@ } } }, - "com.amazonaws.frauddetector#GetLabelsRequest": { + "com.amazonaws.frauddetector#GetListsMetadataRequest": { "type": "structure", "members": { "name": { - "target": "com.amazonaws.frauddetector#identifier", + "target": "com.amazonaws.frauddetector#noDashIdentifier", "traits": { - "smithy.api#documentation": "The name of the label or labels to get.
" + "smithy.api#documentation": "\n The name of the list.\n
" } }, "nextToken": { - "target": "com.amazonaws.frauddetector#string", + "target": "com.amazonaws.frauddetector#nextToken", "traits": { - "smithy.api#documentation": "The next token for the subsequent request.
" + "smithy.api#documentation": "\n The next token for the subsequent request.\n
" } }, "maxResults": { - "target": "com.amazonaws.frauddetector#labelsMaxResults", + "target": "com.amazonaws.frauddetector#ListsMetadataMaxResults", "traits": { - "smithy.api#documentation": "The maximum number of objects to return for the request.
" + "smithy.api#documentation": "\n The maximum number of objects to return for the request.\n
" } } + }, + "traits": { + "smithy.api#input": {} } }, - "com.amazonaws.frauddetector#GetLabelsResult": { + "com.amazonaws.frauddetector#GetListsMetadataResult": { "type": "structure", "members": { - "labels": { - "target": "com.amazonaws.frauddetector#labelList", + "lists": { + "target": "com.amazonaws.frauddetector#AllowDenyLists", "traits": { - "smithy.api#documentation": "An array of labels.
" + "smithy.api#documentation": "\n The metadata of the specified list or all lists under the account.\n
" } }, "nextToken": { - "target": "com.amazonaws.frauddetector#string", + "target": "com.amazonaws.frauddetector#nextToken", "traits": { - "smithy.api#documentation": "The next page token.
" + "smithy.api#documentation": "\n The next page token.\n
" } } } @@ -5073,6 +5593,9 @@ "smithy.api#required": {} } } + }, + "traits": { + "smithy.api#input": {} } }, "com.amazonaws.frauddetector#GetModelVersionResult": { @@ -5195,6 +5718,9 @@ "smithy.api#documentation": "The maximum number of objects to return for the request.
" } } + }, + "traits": { + "smithy.api#input": {} } }, "com.amazonaws.frauddetector#GetModelsResult": { @@ -5269,6 +5795,9 @@ "smithy.api#documentation": "The maximum number of objects to return for the request.
" } } + }, + "traits": { + "smithy.api#input": {} } }, "com.amazonaws.frauddetector#GetOutcomesResult": { @@ -5356,6 +5885,9 @@ "smithy.api#documentation": "The maximum number of rules to return for the request.
" } } + }, + "traits": { + "smithy.api#input": {} } }, "com.amazonaws.frauddetector#GetRulesResult": { @@ -5430,6 +5962,9 @@ "smithy.api#documentation": "The max size per page determined for the get variable request.
" } } + }, + "traits": { + "smithy.api#input": {} } }, "com.amazonaws.frauddetector#GetVariablesResult": { @@ -5727,6 +6262,9 @@ "smithy.api#documentation": "\nThe maximum number of predictions to return for the request.\n
" } } + }, + "traits": { + "smithy.api#input": {} } }, "com.amazonaws.frauddetector#ListEventPredictionsResult": { @@ -5877,6 +6415,9 @@ "smithy.api#documentation": "The maximum number of objects to return for the request.
" } } + }, + "traits": { + "smithy.api#input": {} } }, "com.amazonaws.frauddetector#ListTagsForResourceResult": { @@ -5896,6 +6437,47 @@ } } }, + "com.amazonaws.frauddetector#ListUpdateMode": { + "type": "enum", + "members": { + "REPLACE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "REPLACE" + } + }, + "APPEND": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "APPEND" + } + }, + "REMOVE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "REMOVE" + } + } + } + }, + "com.amazonaws.frauddetector#ListsElementsMaxResults": { + "type": "integer", + "traits": { + "smithy.api#range": { + "min": 500, + "max": 5000 + } + } + }, + "com.amazonaws.frauddetector#ListsMetadataMaxResults": { + "type": "integer", + "traits": { + "smithy.api#range": { + "min": 5, + "max": 50 + } + } + }, "com.amazonaws.frauddetector#LogOddsMetric": { "type": "structure", "members": { @@ -6646,6 +7228,9 @@ "smithy.api#documentation": "A collection of key and value pairs.
" } } + }, + "traits": { + "smithy.api#input": {} } }, "com.amazonaws.frauddetector#PutDetectorResult": { @@ -6703,6 +7288,9 @@ "smithy.api#documentation": "A collection of key and value pairs.
" } } + }, + "traits": { + "smithy.api#input": {} } }, "com.amazonaws.frauddetector#PutEntityTypeResult": { @@ -6786,6 +7374,9 @@ "smithy.api#documentation": "A collection of key and value pairs.
" } } + }, + "traits": { + "smithy.api#input": {} } }, "com.amazonaws.frauddetector#PutEventTypeResult": { @@ -6872,6 +7463,9 @@ "smithy.api#documentation": "A collection of key and value pairs.
" } } + }, + "traits": { + "smithy.api#input": {} } }, "com.amazonaws.frauddetector#PutExternalModelResult": { @@ -6920,6 +7514,9 @@ "smithy.api#required": {} } } + }, + "traits": { + "smithy.api#input": {} } }, "com.amazonaws.frauddetector#PutKMSEncryptionKeyResult": { @@ -6977,6 +7574,9 @@ "smithy.api#documentation": "" } } + }, + "traits": { + "smithy.api#input": {} } }, "com.amazonaws.frauddetector#PutLabelResult": { @@ -7034,6 +7634,9 @@ "smithy.api#documentation": "A collection of key and value pairs.
" } } + }, + "traits": { + "smithy.api#input": {} } }, "com.amazonaws.frauddetector#PutOutcomeResult": { @@ -7306,6 +7909,9 @@ "smithy.api#required": {} } } + }, + "traits": { + "smithy.api#input": {} } }, "com.amazonaws.frauddetector#SendEventResult": { @@ -7455,6 +8061,9 @@ "smithy.api#required": {} } } + }, + "traits": { + "smithy.api#input": {} } }, "com.amazonaws.frauddetector#TagResourceResult": { @@ -7713,6 +8322,9 @@ "smithy.api#required": {} } } + }, + "traits": { + "smithy.api#input": {} } }, "com.amazonaws.frauddetector#UntagResourceResult": { @@ -7804,6 +8416,9 @@ "smithy.api#required": {} } } + }, + "traits": { + "smithy.api#input": {} } }, "com.amazonaws.frauddetector#UpdateDetectorVersionMetadataResult": { @@ -7859,6 +8474,9 @@ "smithy.api#documentation": "The rule execution mode to add to the detector.
\nIf you specify FIRST_MATCHED
, Amazon Fraud Detector evaluates rules sequentially, first to last, stopping at the first matched rule. Amazon Fraud dectector then provides the outcomes for that single rule.
If you specifiy ALL_MATCHED
, Amazon Fraud Detector evaluates all rules and returns the outcomes for all matched rules. You can define and edit the rule mode at the detector version level, when it is in draft status.
The default behavior is FIRST_MATCHED
.
\n Updates a list.\n
" + } + }, + "com.amazonaws.frauddetector#UpdateListRequest": { + "type": "structure", + "members": { + "name": { + "target": "com.amazonaws.frauddetector#noDashIdentifier", + "traits": { + "smithy.api#documentation": "\n The name of the list to update.\n
", + "smithy.api#required": {} + } + }, + "elements": { + "target": "com.amazonaws.frauddetector#ElementsList", + "traits": { + "smithy.api#documentation": "\n One or more list elements to add or replace. If you are providing the elements, make sure to specify the updateMode
to use.\n
If you are deleting all elements from the list, use REPLACE
for the updateMode
and provide an empty list (0 elements).
\n The new description.\n
" + } + }, + "updateMode": { + "target": "com.amazonaws.frauddetector#ListUpdateMode", + "traits": { + "smithy.api#documentation": "\n The update mode (type).\n
\nUse APPEND
if you are adding elements to the list.
Use REPLACE
if you replacing existing elements in the list.
Use REMOVE
if you are removing elements from the list.
\n The variable type you want to assign to the list.\n
\nYou cannot update a variable type of a list that already has a variable type assigned to it. You can assign a variable type to a list only if the list does not already have a variable type.
\nThe new model description.
" } } + }, + "traits": { + "smithy.api#input": {} } }, "com.amazonaws.frauddetector#UpdateModelResult": { @@ -8131,6 +8833,9 @@ "smithy.api#documentation": "A collection of key and value pairs.
" } } + }, + "traits": { + "smithy.api#input": {} } }, "com.amazonaws.frauddetector#UpdateModelVersionResult": { @@ -8225,6 +8930,9 @@ "smithy.api#required": {} } } + }, + "traits": { + "smithy.api#input": {} } }, "com.amazonaws.frauddetector#UpdateModelVersionStatusResult": { @@ -8280,6 +8988,9 @@ "smithy.api#required": {} } } + }, + "traits": { + "smithy.api#input": {} } }, "com.amazonaws.frauddetector#UpdateRuleMetadataResult": { @@ -8361,6 +9072,9 @@ "smithy.api#documentation": "The tags to assign to the rule version.
" } } + }, + "traits": { + "smithy.api#input": {} } }, "com.amazonaws.frauddetector#UpdateRuleVersionResult": { @@ -8434,6 +9148,9 @@ "smithy.api#documentation": "The variable type. For more information see Variable types.
" } } + }, + "traits": { + "smithy.api#input": {} } }, "com.amazonaws.frauddetector#UpdateVariableResult": { @@ -8877,6 +9594,26 @@ } } }, + "com.amazonaws.frauddetector#nextToken": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 8192 + }, + "smithy.api#pattern": ".*" + } + }, + "com.amazonaws.frauddetector#noDashIdentifier": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 64 + }, + "smithy.api#pattern": "^[0-9a-z_]+$" + } + }, "com.amazonaws.frauddetector#ruleExpression": { "type": "string", "traits": { @@ -8986,6 +9723,16 @@ } } }, + "com.amazonaws.frauddetector#variableType": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 64 + }, + "smithy.api#pattern": "^[A-Z_]{1,64}$" + } + }, "com.amazonaws.frauddetector#variableValue": { "type": "string", "traits": {