-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
route53resolver endpoints have incorrect required argument: CreatorRequestId #3094
Comments
Have noticed this isn't the only such endpoint: AssociateFirewallRuleGroup
CreateFirewallDomainList
CreateFirewallRuleGroup
CreateFirewallRule
The other endpoints which are documented as requiring CreatorRequestId appear to behave as documented: CreateResolverRule and CreateResolverEndpoint |
Hi @ed-dot-miller, thanks for reaching out. The model file and documentation correctly mark this field as required, as requests cannot succeed without this parameter. The CLI and Boto3 automatically populate this field for you, but because we cannot assume all consumers of the API will have this done for them, it still needs to marked as required in the model file. AWS CLI and the SDKs generate their documentation from those model files, so the documentation still must say it is required. |
Greetings! It looks like this issue hasn’t been active in longer than five days. We encourage you to check if this is still an issue in the latest release. In the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please feel free to provide a comment or upvote with a reaction on the initial post to prevent automatic closure. If the issue is already closed, please feel free to open a new one. |
Hi @RyanFitzSimmonsAK, I would have thought these model files only constitute the boto3 spec, not the spec of the REST API itself? But thanks for the response! |
Boto3 (and other AWS SDKs) basically map one-to-one with the operations of a service. In order to maintain cross-SDK consistency and for scale reasons, service changes come from service teams changing the shared model file they're providing the SDKs. |
This issue is now closed. Comments on closed issues are hard for our team to see. |
Describe the bug
For the
CreateResolverQueryLogConfig
API method: the service model in data/route53resolver/service-2,json and the API reference both incorrectly sayCreatorRequestId
is a required argument.This creates a bug in the type-stubs library for this service: https://pypi.org/project/mypy-boto3-route53resolver/ (that's how I noticed it).
Note: the boto3 documentation also marks it as "required" but points out the field is auto-populated if not provided
Expected Behavior
The documentation and service definition in botocore should match the following error message from the AWS CLI (version 2.7.9, on Ubuntu):
Note the absence of
--creator-request-id
SDK version used
latest
Environment details (OS name and version, etc.)
N/A
The text was updated successfully, but these errors were encountered: