-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15232 from ewbankkit/f-aws_apigatewayv2_authorize…
…r-lambda-iam-authorizers r/aws_apigatewayv2_authorizer: Support Lambda authorization options for HTTP APIs
- Loading branch information
Showing
4 changed files
with
333 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package finder | ||
|
||
import ( | ||
"github.com/aws/aws-sdk-go/aws" | ||
"github.com/aws/aws-sdk-go/service/apigatewayv2" | ||
) | ||
|
||
// ApiByID returns the API corresponding to the specified ID. | ||
func ApiByID(conn *apigatewayv2.ApiGatewayV2, apiID string) (*apigatewayv2.GetApiOutput, error) { | ||
input := &apigatewayv2.GetApiInput{ | ||
ApiId: aws.String(apiID), | ||
} | ||
|
||
output, err := conn.GetApi(input) | ||
if err != nil { | ||
return nil, err | ||
} | ||
|
||
return output, nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.