[][src]Constant aws_iam::constants::AWS_SOURCE_ACCOUNT

pub const AWS_SOURCE_ACCOUNT: &str

Use this key to compare the source of the request with the account ID that you specify in the policy.

For example, assume that you have an Amazon S3 bucket in your account that is configured to deliver object creation events to an Amazon SNS topic. In that case, you could use this condition key to check that Amazon S3 is not being used as a confused deputy. Amazon S3 tells Amazon SNS the account that the bucket belongs to.