Documentation ¶
Index ¶
- func BulkUpload(request *events.APIGatewayProxyRequest) *events.APIGatewayProxyResponse
- func CreatePolicy(request *events.APIGatewayProxyRequest) *events.APIGatewayProxyResponse
- func CreateRule(request *events.APIGatewayProxyRequest) *events.APIGatewayProxyResponse
- func DeletePolicies(request *events.APIGatewayProxyRequest) *events.APIGatewayProxyResponse
- func GetEnabledPolicies(request *events.APIGatewayProxyRequest) *events.APIGatewayProxyResponse
- func GetPolicy(request *events.APIGatewayProxyRequest) *events.APIGatewayProxyResponse
- func GetRule(request *events.APIGatewayProxyRequest) *events.APIGatewayProxyResponse
- func ListPolicies(request *events.APIGatewayProxyRequest) *events.APIGatewayProxyResponse
- func ListRules(request *events.APIGatewayProxyRequest) *events.APIGatewayProxyResponse
- func ModifyPolicy(request *events.APIGatewayProxyRequest) *events.APIGatewayProxyResponse
- func ModifyRule(request *events.APIGatewayProxyRequest) *events.APIGatewayProxyResponse
- func Setup()
- func Suppress(request *events.APIGatewayProxyRequest) *events.APIGatewayProxyResponse
- func TestPolicy(request *events.APIGatewayProxyRequest) *events.APIGatewayProxyResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BulkUpload ¶
func BulkUpload(request *events.APIGatewayProxyRequest) *events.APIGatewayProxyResponse
BulkUpload uploads multiple policies from a zipfile.
func CreatePolicy ¶
func CreatePolicy(request *events.APIGatewayProxyRequest) *events.APIGatewayProxyResponse
CreatePolicy adds a new policy to the Dynamo table.
func CreateRule ¶
func CreateRule(request *events.APIGatewayProxyRequest) *events.APIGatewayProxyResponse
CreateRule adds a new rule to the Dynamo table.
func DeletePolicies ¶
func DeletePolicies(request *events.APIGatewayProxyRequest) *events.APIGatewayProxyResponse
DeletePolicies marks one or more policies as deleted.
func GetEnabledPolicies ¶
func GetEnabledPolicies(request *events.APIGatewayProxyRequest) *events.APIGatewayProxyResponse
GetEnabledPolicies fetches all enabled policies from an organization for backend processing.
func GetPolicy ¶
func GetPolicy(request *events.APIGatewayProxyRequest) *events.APIGatewayProxyResponse
GetPolicy retrieves a policy from Dynamo or S3.
func GetRule ¶
func GetRule(request *events.APIGatewayProxyRequest) *events.APIGatewayProxyResponse
GetRule retrieves a rule from Dynamo or S3.
func ListPolicies ¶
func ListPolicies(request *events.APIGatewayProxyRequest) *events.APIGatewayProxyResponse
ListPolicies pages through policies from a single organization.
func ListRules ¶
func ListRules(request *events.APIGatewayProxyRequest) *events.APIGatewayProxyResponse
ListRules pages through rules from a single organization.
func ModifyPolicy ¶
func ModifyPolicy(request *events.APIGatewayProxyRequest) *events.APIGatewayProxyResponse
ModifyPolicy updates an existing policy.
func ModifyRule ¶
func ModifyRule(request *events.APIGatewayProxyRequest) *events.APIGatewayProxyResponse
ModifyRule updates an existing rule.
func Setup ¶
func Setup()
Setup parses the environment and constructs AWS and http clients on a cold Lambda start. All required environment variables must be present or this function will panic.
func Suppress ¶
func Suppress(request *events.APIGatewayProxyRequest) *events.APIGatewayProxyResponse
Suppress adds suppressions for one or more policies in the same organization.
func TestPolicy ¶
func TestPolicy(request *events.APIGatewayProxyRequest) *events.APIGatewayProxyResponse
TestPolicy runs a policy against a set of unit tests.
TODO - test policies before enabling them
Types ¶
This section is empty.