-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing value field in update_api_key() #3764
Comments
Hi @lunarmint thanks for reaching out. I would also expect to see the If you're still seeing an issue after updating that we would request the following for further investigation:
|
@tim-finnigan Thank you for your response. For more information, I'm currently on Minimal reproducible code: import json
import boto3
gateway_client = boto3.client("apigateway")
def lambda_handler(event, context):
body = json.loads(event.get("body"))
enabled = body.get("enabled")
operations = []
if enabled is not None:
operations.append(
{
"op": "replace",
"path": "/enabled",
"value": enabled,
}
)
api_key = gateway_client.update_api_key(
apiKey="[REDACTED]",
patchOperations=operations,
)
return json.dumps({"apiKey": api_key}, default=str)
if __name__ == "__main__":
event = {
"body": json.dumps(
{
"description": "Updated description",
"enabled": "true",
}
)
}
print(lambda_handler(event, None)) Debug log:
|
Thanks for following up here and sharing your logs — upon revisiting this I also did not see I escalated this to the API Gateway team for more info and will update that issue when we know more. Thanks again for reporting this and please refer to that issue for updates going forward. |
Describe the issue
According to the documentation for update_api_key(), in response syntax, this method should return the
value
field that contains the API key. In reality, I did not see such field in the response. I'm not entirely sure if this is a documentation issue or a bug.Links
https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/apigateway/client/update_api_key.html#APIGateway.Client.update_api_key
https://docs.aws.amazon.com/apigateway/latest/api/API_UpdateApiKey.html#API_UpdateApiKey_ResponseSyntax
The text was updated successfully, but these errors were encountered: