

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

# 例: WorkSpaces Applications Elastic フリートセッションスクリプト Amazon S3 バケットポリシーのサービス間の混乱した代理の防止
<a name="example-elastic-fleets"></a>

**Example `aws:SourceAccount` 条件付き:**    
****  

```
{
    "Version":"2012-10-17",		 	 	 
    "Statement": [
        {
            "Effect": "Allow",
            "Principal": {
                "Service": [
                    "appstream.amazonaws.com"
                ]
            },
            "Action": "s3:GetObject",
            "Resource": "arn:aws:s3:::{{your-bucket-name}}/{{your-session-script-path}}",
            "Condition": {
                "StringEquals": {
                    "aws:SourceAccount": "{{your AWS アカウント ID}}"
                } 
            }
        }
    ]
}
```

**Example `aws:SourceArn` 条件付き:**    
****  

```
{
    "Version":"2012-10-17",		 	 	 
    "Statement": [
        {
            "Effect": "Allow",
            "Principal": {
                "Service": [
                    "appstream.amazonaws.com"
                ]
            },
            "Action": "s3:GetObject",
            "Resource": "arn:aws:s3:::{{bucket}}/{{AppStream2}}/*",
            "Condition": {
                "ArnLike": {
                "aws:SourceArn": "arn:aws:appstream:us-east-1:111122223333:fleet/{{yourFleetName}}"
                }
            }
        }
    ]
}
```