
templates.common.auth-policy-action-class.ftl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws-java-sdk-code-generator Show documentation
Show all versions of aws-java-sdk-code-generator Show documentation
The AWS SDK for Java - Code Generator module holds the classes and templates required to generate the AWS Java SDK clients for AWS services.
${fileHeader}
package com.amazonaws.auth.policy.actions;
import com.amazonaws.auth.policy.Action;
<#assign serviceAbbreviation = (metadata.serviceAbbreviation)!metadata.serviceFullName/>
/**
* The available AWS access control policy actions for ${serviceAbbreviation}.
*/
public enum ${serviceName}Actions implements Action {
/** Represents any action executed on ${serviceAbbreviation}. */
All${serviceName}Actions("${actionPrefix}:*"),
<#list operations as operation>
/** Action for the ${operation} operation. */
${operation}("${actionPrefix}:${operation}"),
#list>
;
private final String action;
private ${serviceName}Actions(String action) {
this.action = action;
}
public String getActionName() {
return this.action;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy