# S3 버킷

## 리소스 유형

`AWS.S3.Bucket`

## 리소스 ID 형식

S3 버킷의 경우, 리소스 ID는 ARN입니다.

`arn:aws:s3:::example-bucket`

## 배경

S3는 AWS가 데이터 관리를 위해 제공하는 객체 스토리지 서비스입니다.

## 필드

| 필드                               | 유형    | 설명                                                                                                                                  |             |
| -------------------------------- | ----- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------- |
| `권한 부여`                          | `목록`  | 이 S3 버킷에 어떤 사용자, 그룹 또는 역할이 액세스 권한을 부여받았는지와 어떤 액세스 권한을 부여받았는지.                                                                       |             |
| `IsPublic`                       | `불리언` | 버킷이 AWS에서 공개로 간주되는지 여부를 나타냅니다                                                                                                       |             |
| `LifecycleRules`                 | `목록`  | [룰](https://docs.aws.amazon.com/AmazonS3/latest/API/API_LifecycleRule.html) 데이터의 만료 및 보관 관리를 위해.                                    |             |
| `EncryptionRules`                | `목록`  | [룰](https://docs.aws.amazon.com/AmazonS3/latest/API/API_ServerSideEncryptionRule.html) S3 버킷을 암호화하기 위해.                             |             |
| `LoggingPolicy`                  | `맵`   | [설명합니다](https://docs.aws.amazon.com/AmazonS3/latest/API/API_LoggingEnabled.html) 액세스 로그가 저장되는 위치를.                                  |             |
| `MFADelete`                      | `문자열` | 버킷에서 MFA 삭제가 사용(Enabled) 중인지 여부를 나타냅니다. 사용 중이 아니면 이 값은 비어 있습니다.                                                                     |             |
| `ObjectLockConfiguration`        | `맵`   | 이 [구성 옵션은](https://docs.aws.amazon.com/AmazonS3/latest/API/API_ObjectLockConfiguration.html) 지정된 시간 동안 객체가 삭제되거나 덮어써지는 것을 방지합니다.    |             |
| `소유자`                            | `맵`   | [버킷 소유자에 대한](https://docs.aws.amazon.com/AmazonS3/latest/API/API_Owner.html) 정보.                                                    |             |
| `Policy`                         | `문자열` | 버킷에 연결된 IAM 정책.                                                                                                                     |             |
| `버전 관리`                          | `문자열` | \`ENABLED                                                                                                                           | SUSPENDED\` |
| `PublicAccessBlockConfiguration` | `맵`   | S3 버킷의 [공개 액세스 차단](https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html) 설정이 어떻게 구성되어 있는지 나타냅니다. |             |

## 예시

```javascript
{
    "AccountId": "123456789012",
    "Arn": "arn:aws:s3:::example-bucket",
    "EncryptionRules": [
        {
            "ApplyServerSideEncryptionByDefault": {
                "KMSMasterKeyID": "1",
                "SSEAlgorithm": "aws:kms"
            }
        }
    ],
    "Grants": [
        {
            "Grantee": {
                "DisplayName": "example.user",
                "EmailAddress": null,
                "ID": "1",
                "Type": "CanonicalUser",
                "URI": null
            },
            "Permission": "FULL_CONTROL"
        }
    ],
    "IsPublic": false,
    "LifecycleRules": [
        {
            "AbortIncompleteMultipartUpload": null,
            "Expiration": null,
            "Filter": {
                "And": null,
                "Prefix": null,
                "Tag": null
            },
            "ID": "1",
            "NoncurrentVersionExpiration": {
                "NoncurrentDays": 365
            },
            "NoncurrentVersionTransitions": null,
            "Prefix": null,
            "Status": "Enabled",
            "Transitions": null
        }
    ],
    "LoggingPolicy": {
        "TargetBucket": "example-bucket-2",
        "TargetGrants": null,
        "TargetPrefix": "/"
    },
    "MFADelete": null,
    "Name": "example-bucket",
    "ObjectLockConfiguration": null,
    "Owner": {
        "DisplayName": "example.user",
        "ID": "1"
    },
    "Policy": null,
    "PublicAccessBlockConfiguration": {
        "BlockPublicAcls": true,
        "BlockPublicPolicy": true,
        "IgnorePublicAcls": true,
        "RestrictPublicBuckets": true
    },
    "Region": "us-west-2",
    "ResourceId": "arn:aws:s3:::example-bucket",
    "ResourceType": "AWS.S3.Bucket",
    "Tags": {
        "Key1": "Value1",
        "Key2": "Value2"
    },
    "TimeCreated": "2019-01-01T00:00:00.000Z",
    "Versioning": "Enabled"
}
```
