All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.auth.policy.actions.SNSActions Maven / Gradle / Ivy

/*
 * Copyright 2010-2011 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.actions;

import com.amazonaws.auth.policy.Action;
import com.amazonaws.auth.policy.Statement;
import com.amazonaws.services.sns.AmazonSNS;

/**
 * The available AWS access control policy actions for Amazon Simple
 * Notification Service.
 *
 * @see Statement#setActions(java.util.Collection)
 */
public enum SNSActions implements Action {

    /**
     * Action for the AddPermission operation on Amazon SNS.
     *
     * @see AmazonSNS#addPermission(com.amazonaws.services.sns.model.AddPermissionRequest)
     */
    AddPermission("sns:AddPermission"),

    /**
     * Action for the DeleteTopic operation on Amazon SNS.
     *
     * @see AmazonSNS#deleteTopic(com.amazonaws.services.sns.model.DeleteTopicRequest)
     */
    DeleteTopic("sns:DeleteTopic"),

    /**
     * Action for the GetTopicAttributes operation on Amazon SNS.
     *
     * @see AmazonSNS#getTopicAttributes(com.amazonaws.services.sns.model.GetTopicAttributesRequest)
     */
    GetTopicAttributes("sns:GetTopicAttributes"),

    /**
     * Action for the ListSubscriptionsByTopic operation on Amazon SNS.
     *
     * @see AmazonSNS#listSubscriptionsByTopic(com.amazonaws.services.sns.model.ListSubscriptionsByTopicRequest)
     */
    ListSubscriptionsByTopic("sns:ListSubscriptionsByTopic"),

    /**
     * Action for the Publish operation on Amazon SNS.
     *
     * @see AmazonSNS#publish(com.amazonaws.services.sns.model.PublishRequest)
     */
    Publish("sns:Publish"),

    /**
     * Action for the RemovePermission operation on Amazon SNS.
     *
     * @see AmazonSNS#removePermission(com.amazonaws.services.sns.model.RemovePermissionRequest)
     */
    RemovePermission("sns:RemovePermission"),

    /**
     * Action for the SetTopicAttributes operation on Amazon SNS.
     *
     * @see AmazonSNS#setTopicAttributes(com.amazonaws.services.sns.model.SetTopicAttributesRequest)
     */
    SetTopicAttributes("sns:SetTopicAttributes"),

    /**
     * Action for the Subscribe operation on Amazon SNS.
     *
     * @see AmazonSNS#subscribe(com.amazonaws.services.sns.model.SubscribeRequest)
     */
    Subscribe("sns:Subscribe");

    private final String action;

    private SNSActions(String action) {
        this.action = action;
    }

    /* (non-Javadoc)
     * @see com.amazonaws.auth.policy.Action#getId()
     */
    public String getActionName() {
        return this.action;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy