File tree 3 files changed +11
-16
lines changed
3 files changed +11
-16
lines changed Original file line number Diff line number Diff line change @@ -242,14 +242,8 @@ type APIGatewayCustomAuthorizerRequestTypeRequest struct {
242
242
243
243
// APIGatewayCustomAuthorizerResponse represents the expected format of an API Gateway authorization response.
244
244
type APIGatewayCustomAuthorizerResponse struct {
245
- PrincipalID string `json:"principalId"`
246
- PolicyDocument APIGatewayCustomAuthorizerPolicy `json:"policyDocument"`
247
- Context map [string ]interface {} `json:"context,omitempty"`
248
- UsageIdentifierKey string `json:"usageIdentifierKey,omitempty"`
249
- }
250
-
251
- // APIGatewayCustomAuthorizerPolicy represents an IAM policy
252
- type APIGatewayCustomAuthorizerPolicy struct {
253
- Version string
254
- Statement []IAMPolicyStatement
245
+ PrincipalID string `json:"principalId"`
246
+ PolicyDocument CustomAuthorizerPolicy `json:"policyDocument"`
247
+ Context map [string ]interface {} `json:"context,omitempty"`
248
+ UsageIdentifierKey string `json:"usageIdentifierKey,omitempty"`
255
249
}
Original file line number Diff line number Diff line change @@ -32,9 +32,3 @@ type IoTCustomAuthorizerResponse struct {
32
32
RefreshAfterInSeconds int32 `json:"refreshAfterInSeconds"`
33
33
PolicyDocuments []string `json:"policyDocuments"`
34
34
}
35
-
36
- // IoTCustomAuthorizerPolicy represents an IAM policy. PolicyDocuments is an array of IoTCustomAuthorizerPolicy JSON strings
37
- type IoTCustomAuthorizerPolicy struct {
38
- Version string
39
- Statement []IAMPolicyStatement
40
- }
Original file line number Diff line number Diff line change
1
+ package events
2
+
3
+ // CustomAuthorizerPolicy represents an IAM policy
4
+ type CustomAuthorizerPolicy struct {
5
+ Version string
6
+ Statement []IAMPolicyStatement
7
+ }
You can’t perform that action at this time.
0 commit comments