Skip to content

Instantly share code, notes, and snippets.

@vranystepan
Created July 21, 2021 14:44
Show Gist options
  • Save vranystepan/b968c82acd460a605e5f575ee72a5831 to your computer and use it in GitHub Desktop.
Save vranystepan/b968c82acd460a605e5f575ee72a5831 to your computer and use it in GitHub Desktop.
package main
type AuthorizerV2ResponsePolicyStatement struct {
Action string `json:"Action"`
Effect string `json:"Effect"`
Resource []string `json:"Resource"`
}
type AuthorizerV2ResponsePolicyDocument struct {
Version string `json:"Version"`
Statement []AuthorizerV2ResponsePolicyStatement `json:"Statement"`
}
type AuthorizerV2Response struct {
PrincipalID string `json:"principalId"`
PolicyDocument AuthorizerV2ResponsePolicyDocument `json:"policyDocument"`
Context map[string]string `json:"context,omitempty"`
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment