# EC2 보안 그룹

## 리소스 유형

`AWS.EC2.SecurityGroup`

## 리소스 ID 형식

EC2 보안 그룹의 경우 리소스 ID는 ARN입니다.

`arn:aws:ec2:us-west-2:123456789012:security-group/sg-1`

## 배경

이 리소스는 AWS EC2 VPC SecurityGroup의 스냅샷을 나타냅니다.

## 필드

| 을 선택하십시오. 다음 키/값 쌍을 지정하십시오: | 유형    | 설명                                            |
| --------------------------- | ----- | --------------------------------------------- |
| `설명`                        | `문자열` | 보안 그룹의 설명입니다.                                 |
| `IpPermissions`             | `목록`  | 인바운드 IP 권한                                    |
| `IpPermissionsEgress`       | `목록`  | 아웃바운드(이그레스) IP 권한                             |
| `OwnerId`                   | `문자열` | 네트워크 인터페이스 소유자의 Amazon Web Services 계정 ID입니다. |
| `VpcId`                     | `문자열` | VPC의 ID입니다.                                   |

## 예시

```javascript
{
    "AccountId": "123456789012",
    "Arn": "arn:aws:ec2:ap-northeast-2:123456789012:security-group/sg-1",
    "Description": "default VPC security group",
    "Id": "sg-1",
    "IpPermissions": [
        {
            "FromPort": null,
            "IpProtocol": "-1",
            "IpRanges": null,
            "Ipv6Ranges": null,
            "PrefixListIds": null,
            "ToPort": null,
            "UserIdGroupPairs": [
                {
                    "Description": null,
                    "GroupId": "sg-1",
                    "GroupName": null,
                    "PeeringStatus": null,
                    "UserId": "123456789012",
                    "VpcId": null,
                    "VpcPeeringConnectionId": null
                }
            ]
        }
    ],
    "IpPermissionsEgress": [
        {
            "FromPort": null,
            "IpProtocol": "-1",
            "IpRanges": [
                {
                    "CidrIp": "0.0.0.0/0",
                    "Description": null
                }
            ],
            "Ipv6Ranges": null,
            "PrefixListIds": null,
            "ToPort": null,
            "UserIdGroupPairs": null
        }
    ],
    "Name": "default",
    "OwnerId": "123456789012",
    "Region": "ap-northeast-2",
    "ResourceId": "arn:aws:ec2:ap-northeast-2:123456789012:security-group/sg-1",
    "ResourceType": "AWS.EC2.SecurityGroup",
    "Tags": null,
    "TimeCreated": null,
    "VpcId": "vpc-1"
}
```
