

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# ASFF 中的 AwsEcr 资源
<a name="asff-resourcedetails-awsecr"></a>

以下是`AwsEcr`资源 Amazon 的安全调查结果格式 (ASFF) 语法的示例。

Amazon Security Hub CSPM 将各种来源的发现标准化为 ASFF。有关 ASFF 的背景信息，请参阅 [Amazon 安全调查结果格式 (ASFF)](securityhub-findings-format.md)。

## AwsEcrContainerImage
<a name="asff-resourcedetails-awsecrcontainerimage"></a>

`AwsEcrContainerImage` 对象提供 Amazon ECR 镜像的信息。

以下示例显示了`AwsEcrContainerImage`对象 Amazon 的安全调查结果格式 (ASFF)。要查看 `AwsEcrContainerImage` 属性的描述，请参阅 *Amazon Security Hub API 参考*中的 [AwsEcrContainerImageDetails](https://docs.amazonaws.cn/securityhub/1.0/APIReference/API_AwsEcrContainerImageDetails.html)。

**示例**

```
"AwsEcrContainerImage": {
    "RegistryId": "123456789012",
    "RepositoryName": "repository-name",
    "Architecture": "amd64"
    "ImageDigest": "sha256:a568e5c7a953fbeaa2904ac83401f93e4a076972dc1bae527832f5349cd2fb10",
    "ImageTags": ["00000000-0000-0000-0000-000000000000"],
    "ImagePublishedAt": "2019-10-01T20:06:12Z"
}
```

## AwsEcrRepository
<a name="asff-resourcedetails-awsecrrepository"></a>

`AwsEcrRepository` 对象提供有关 Amazon Elastic Container Registry 存储库的信息。

以下示例显示了`AwsEcrRepository`对象 Amazon 的安全调查结果格式 (ASFF)。要查看 `AwsEcrRepository` 属性的描述，请参阅 *Amazon Security Hub API 参考*中的 [AwsEcrRepositoryDetails](https://docs.amazonaws.cn/securityhub/1.0/APIReference/API_AwsEcrRepositoryDetails.html)。

**示例**

```
"AwsEcrRepository": {
    "LifecyclePolicy": {
        "RegistryId": "123456789012",
    },  
    "RepositoryName": "sample-repo",
    "Arn": "arn:aws:ecr:us-west-2:111122223333:repository/sample-repo",
    "ImageScanningConfiguration": {
        "ScanOnPush": true
    },
    "ImageTagMutability": "IMMUTABLE"
}
```