forked from aws/aws-sdk-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAction.java
More file actions
47 lines (45 loc) · 1.76 KB
/
Action.java
File metadata and controls
47 lines (45 loc) · 1.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
* Copyright 2010-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
package com.amazonaws.auth.policy;
/**
* An access control policy action identifies a specific action in a service
* that can be performed on a resource. For example, sending a message to a
* queue.
* <p>
* Actions allow you to limit what your access control policy statement affects.
* For example, you could create a policy statement that enables a certain group
* of users to send messages to your queue, but not allow them to perform any
* other actions on your queue.
* <p>
* The action is B in the statement
* "A has permission to do B to C where D applies."
* <p>
* Free form access control policy actions may include a wildcard (*) to match
* multiple actions.
* <p>
* This class is not intended to be directly implemented, instead developers
* should see the classes available in com.amazonaws.auth.policy.actions for
* more information on the available actions for each service.
*/
public interface Action {
/**
* Returns the name of this action. For example, 'sqs:SendMessage' is the
* name corresponding to the SQS action that enables users to send a message
* to an SQS queue.
*
* @return The name of this action.
*/
public String getActionName();
}