本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
範例: AppStream 2.0 服務角色跨服務混淆代理預防
AppStream 2.0 使用各種資源 擔任服務角色ARNs,這會導致複雜的條件式陳述式。建議使用萬用字元資源類型,以防止任何非預期的 AppStream 2.0 資源失敗。
範例 aws:SourceAccount
條件式:
{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Principal": { "Service": [ "appstream.amazonaws.com" ] }, "Action": "sts:AssumeRole", "Condition": { "StringEquals": { "aws:SourceAccount": "
your AWS 帳戶 ID
" } } } ] }
範例 aws:SourceArn
條件式:
{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Principal": { "Service": [ "appstream.amazonaws.com" ] }, "Action": "sts:AssumeRole", "Condition": { "ArnLike": { "aws:SourceArn": "arn:{aws partition}:appstream:{
your region name
}:{your AWS 帳戶 ID
}:*" } } } ] }