AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Represents a resource involved in an AWS access control policy statement. Resources are the service specific AWS entities owned by your account. Amazon SQS queues, Amazon S3 buckets and objects, and Amazon SNS topics are all examples of AWS resources.

The standard way of specifying an AWS resource is with an Amazon Resource Name (ARN).

The resource is C in the statement "A has permission to do B to C where D applies."

Inheritance Hierarchy


Namespace: Amazon.Auth.AccessControlPolicy
Assembly: AWSSDK.Core.dll
Version: 3.x.y.z


public class Resource

The Resource type exposes the following members


Public Method Resource(string)

Constructs a new AWS access control policy resource. Resources are typically specified as Amazon Resource Names (ARNs).

You specify the resource using the following Amazon Resource Name (ARN) format: arn:aws:::: >vendor identifies the AWS product (e.g., sns) region is the AWS Region the resource resides in (e.g., us-east-1), if any namespace is the AWS account ID with no hyphens (e.g., 123456789012) relative-id is the service specific portion that identifies the specific resource

For example, an Amazon SQS queue might be addressed with the following ARN: arn:aws:sqs:us-east-1:987654321000:MyQueue

Some resources may not use every field in an ARN. For example, resources in Amazon S3 are global, so they omit the region field: arn:aws:s3:::bucket/*


Public Property Id System.String

Gets the resource ID, typically an Amazon Resource Name (ARN), identifying this resource.

Version Information

.NET Standard:
Supported in: 1.3

.NET Framework:
Supported in: 4.5, 4.0, 3.5

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms

Supported Versions: 4.6 and above
Supported Platforms: Android, iOS, Standalone