Table of Contents

Class ResourceFactory

Namespace
Amazon.Auth.AccessControlPolicy
Assembly
AWSSDK.Core.dll

A factory for creating resources to be used in the policy.

public static class ResourceFactory
Inheritance
ResourceFactory
Inherited Members

Methods

NewS3BucketResource(string)

Constructs a new bucket resource that represents the the specified bucket but not any of the contained objects.

public static Resource NewS3BucketResource(string bucketName)

Parameters

bucketName string

The name of the bucket represented by this AWS access control policy resource.

Returns

Resource

NewS3ObjectResource(string, string)

Constructs a new object resource that represents the specified objects. The keyPattern argument may contain the '' wildcard to match multiple objects. For example, an object resource created for bucket 'mybucket' and key pattern 'foo' will match any object stored in 'mybucket' with a key that starts with 'foo'.

public static Resource NewS3ObjectResource(string bucketName, string keyPattern)

Parameters

bucketName string

The name of the bucket containing the object or objects represented by this resource.

keyPattern string

The key or key pattern, which can optionally contain the '*' wildcard to include multiple objects in the resource.

Returns

Resource

NewSQSQueueResource(string, string)

Constructs a new SQS queue resource for an access control policy. A policy statement using this resource will allow or deny actions on the specified queue.

public static Resource NewSQSQueueResource(string accountId, string queueName)

Parameters

accountId string

The AWS account ID of the queue owner.

queueName string

The name of the Amazon SQS queue.

Returns

Resource