

Amazon Fraud Detector는 2025년 11월 7일부터 신규 고객에게 더 이상 공개되지 않습니다. Amazon Fraud Detector와 유사한 기능을 알아보려면 Amazon SageMaker, AutoGluon 및를 살펴보세요 AWS WAF.

기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.

# 를 사용하여 Amazon Fraud Detector 리소스 관리 AWS CloudFormation
<a name="managing-resources-using-cloudformation"></a>

Amazon Fraud Detector는 Amazon Fraud Detector 리소스를 모델링하고 설정하는 데 도움이 되는 AWS CloudFormation서비스와 통합되어 리소스와 인프라를 생성하고 관리하는 데 소요되는 시간을 줄일 수 있습니다. 원하는 모든 Amazon Fraud Detector 리소스(예: Detector, Variables, EntityType, EventType, Outcome 및 Label)를 설명하는 템플릿을 생성하고 해당 리소스를 CloudFormation 프로비저닝하고 구성합니다. 템플릿을 재사용하여 여러 AWS 계정 및 리전에서 리소스를 일관되고 반복적으로 프로비저닝하고 구성할 수 있습니다.

AWS CloudFormation 사용에 대한 추가 요금은 없습니다.

## Amazon Fraud Detector 템플릿 생성
<a name="working-with-templates"></a>

Amazon Fraud Detector 및 관련 서비스에 대한 리소스를 프로비저닝하고 구성하려면 [CloudFormation 템플릿을](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-guide.html) 이해해야 합니다. 템플릿은 JSON 또는 YAML로 서식 지정된 텍스트 파일입니다. 이러한 템플릿은 CloudFormation 스택에서 프로비저닝하려는 리소스를 설명합니다. JSON 또는 YAML에 익숙하지 않은 경우 CloudFormation Designer를 사용하여 CloudFormation 템플릿을 시작할 수 있습니다. 자세한 내용은 *AWS CloudFormation 사용 설명서*의 [CloudFormation Designer란 무엇입니까?](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/working-with-templates-cfn-designer.html)를 참조하세요.

 CloudFormation 템플릿을 사용하여 Amazon Fraud Detector 리소스를 생성, 업데이트 및 삭제할 수도 있습니다. 리소스에 대한 JSON 및 YAML 템플릿의 예를 포함하여 자세한 내용은 *AWS CloudFormation 사용 설명서*의 [Amazon Fraud Detector 리소스 유형 참조](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_FraudDetector.html)를 참조하세요.

이미 CloudFormation을 사용하고 있는 경우 추가 IAM 정책 또는 CloudTrail 로깅을 관리할 필요가 없습니다.

## Amazon Fraud Detector 스택 관리
<a name="working-with-stacks"></a>

CloudFormation 콘솔 또는 AWS CLI를 통해 Amazon Fraud Detector 스택을 생성, 업데이트 및 삭제할 수 있습니다.

스택을 생성하려면 AWS CloudFormation이 스택에 포함할 리소스를 설명하는 템플릿이 있어야 합니다. 이미 생성한 Amazon Fraud Detector 리소스를 새 스택 또는 기존 스택으로 가져와 CloudFormation 관리로 가져올 수도 있습니다. [https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/resource-import.html](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/resource-import.html) 

스택 관리에 대한 자세한 지침은 *AWS CloudFormation 사용 설명서를* 참조하여 스택을 [생성](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-console-create-stack.html), [업데이트](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-get-template.html) 및 [삭제](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-console-delete-stack.html)하는 방법을 알아보세요.

### Amazon Fraud Detector 스택 구성
<a name="organize-your-stacks"></a>

 AWS CloudFormation 스택을 구성하는 방법은 전적으로 사용자에게 달려 있습니다. 일반적으로 수명 주기 및 소유권별로 스택을 구성하는 것이 가장 좋습니다. 즉, 리소스가 변경되는 빈도 또는 업데이트를 담당하는 팀별로 리소스를 그룹화합니다.

각 감지기 및 감지 로직(예: 규칙, 변수 등)에 대한 스택을 생성하여 스택을 구성하도록 선택할 수 있습니다. 다른 서비스를 사용하는 경우 Amazon Fraud Detector 리소스를 다른 서비스의 리소스와 함께 스택할지 여부를 고려해야 합니다. 예를 들어 데이터를 수집하는 데 도움이 되는 Kinesis 리소스와 데이터를 처리하는 Amazon Fraud Detector 리소스가 포함된 스택을 생성할 수 있습니다. 이는 사기 팀의 모든 제품이 함께 작동하도록 하는 효과적인 방법일 수 있습니다.

## Amazon Fraud Detector CloudFormation 파라미터 이해
<a name="understanding-afd-cfn-parameters"></a>

Amazon Fraud Detector는 모든 CloudFormation 템플릿에서 사용할 수 있는 표준 파라미터 외에도 배포 동작을 관리하는 데 도움이 되는 두 가지 추가 파라미터를 도입합니다. 이러한 파라미터 중 하나 또는 둘 다를 포함하지 않으면 CloudFormation은 아래 표시된 기본값을 사용합니다.


| 파라미터 | 값 | 기본 값 | 
| --- | --- | --- | 
| DetectorVersionStatus | **활성:** 새/업데이트된 감지기 버전을 활성 상태로 설정 **초안:** 새/업데이트된 감지기 버전을 초안 상태로 설정 | 초안 | 
| 인라인 | **TRUE:** 스택을 create/update/delete할 때 CloudFormation이 리소스를 creating/updating/deleting 허용합니다. **FALSE:** CloudFormation이 객체가 존재하는지 검증할 수 있지만 객체를 변경하지는 않습니다. | TRUE | 

## Amazon Fraud Detector 리소스용 샘플 CloudFormation 템플릿
<a name="sample-afd-cfn-template"></a>

다음은 감지기 및 관련 감지기 버전을 관리하기 위한 샘플 CloudFormation YAML 템플릿입니다.

```
# Simple Detector resource containing inline Rule, EventType, Variable, EntityType and Label resource definitions
Resources:
  TestDetectorLogicalId:
    Type: AWS::FraudDetector::Detector
    Properties:
      DetectorId: "sample_cfn_created_detector"
      DetectorVersionStatus: "DRAFT"
      Description: "A detector defined and created in a CloudFormation stack!"

      Rules:
        - RuleId: "over_threshold_investigate"
          Description: "Automatically sends transactions of $10000 or more to an investigation queue"
          DetectorId: "sample_cfn_created_detector"
          Expression: "$amount >= 10000"
          Language: "DETECTORPL"
          Outcomes:
            - Name: "investigate"
              Inline: true
        - RuleId: "under_threshold_approve"
          Description: "Automatically approves transactions of less than $10000"
          DetectorId: "sample_cfn_created_detector"
          Expression: "$amount <10000"
          Language: "DETECTORPL"
          Outcomes:
            - Name: "approve"
              Inline: true
      EventType:
        Inline: "true"
        Name: "online_transaction"
        EventVariables:
          - Name: "amount"
            DataSource: 'EVENT'
            DataType: 'FLOAT'
            DefaultValue: '0'
            VariableType: "PRICE"
            Inline: 'true'
        EntityTypes:
          - Name: "customer"
            Inline: 'true'
        Labels:
          - Name: "legitimate"
            Inline: 'true'
          - Name: "fraudulent"
            Inline: 'true'
```

## 에 대해 자세히 알아보기 CloudFormation
<a name="learn-more-cloudformation"></a>

에 대해 자세히 알아보려면 다음 리소스를 CloudFormation참조하세요.
+ [AWS CloudFormation](https://aws.amazon.com/cloudformation/)
+ [AWS CloudFormation 사용 설명서](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/Welcome.html)
+ [CloudFormation API Reference](https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/Welcome.html)
+ [AWS CloudFormation 명령줄 인터페이스 사용 설명서](https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html)