public class Resource
extends java.lang.Object
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."
| Constructor and Description | 
|---|
| Resource(java.lang.String resource)Constructs a new AWS access control policy resource. | 
| Modifier and Type | Method and Description | 
|---|---|
| java.lang.String | getId()Returns the resource ID, typically an Amazon Resource Name (ARN),
 identifying this resource. | 
public Resource(java.lang.String resource)
You specify the resource using the following Amazon Resource Name (ARN) format: arn:aws:<vendor>:<region>:<namespace>:<relative-id>
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/*
resource - The Amazon Resource Name (ARN) uniquely identifying the
            desired AWS resource.Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.