Comments (6)
Thanks @danielgtaylor
I saw your comment with an example but then it just disappeared - not sure what happened there
from boto3.
@owenrumney this is a limitation of the generated documentation at the moment. There are two things I would like to add soon:
- Describe parameter structure for complex types (lists, structures, maps, etc).
- Describe response structure for clients and for low-level responses from resource actions.
As an example, the input documentation of emr.add_job_flow_steps
could look something like this:
- JobFlowId (
string
) – Required - A string that uniquely identifies the job flow. This identifier is returned by RunJobFlow and can also be obtained from ListClusters
- Steps (
list
) – Required -
A list of StepConfig to be executed by the job flow.
StepConfig structure:
{ "Name": "string", "HadoopJarStep": { "Args": ['string'], "Jar": "string", "MainClass": "string", "Properties": [ {'Key': 'string', 'Value': 'string'} ] }, "ActionOnFailure": "string" }
Something along those lines above, but it's still not clear which fields are optional. Any ideas you have would be appreciated.
Sorry, I hit Cmd+Enter too soon and it posted with only half an example before!
from boto3.
@danielgtaylor Excellent - thanks as always for quick response
from boto3.
It's also worth mentioning that there are two other, albeit slightly more painful, methods of determining this data. The easiest is to just look at the service documentation itself, e.g:
http://docs.aws.amazon.com/ElasticMapReduce/latest/API/API_AddJobFlowSteps.html
You can see that it links "Steps.member.N" to a StepConfig description. It's not perfect, but our parameters match up and it takes away some of the guesswork.
The other method is to use the JSON models. For example, here is the definition of StepConfig and HadoopStepConfig. Unfortunately this requires understanding the JSON service description format, but it's what I used to build the example above so it is possible.
Anyway my ultimate goal is to get the Boto 3 documentation updated so that all of the request and response structures are easy to understand.
from boto3.
@owenrumney the structure descriptions for parameters and return values have now been merged. Please have a look at the docs and let me know what you think!
from boto3.
@danielgtaylor had a look, much clearer, thanks for updating me that it was there.
from boto3.
Related Issues (20)
- AWS CLI works but boto3 reports Token has expired and refresh failed HOT 2
- On some platforms, `parse_timestamp` throws RuntimeError: Unable to calculate correct timezone offset for "-62135596800" HOT 3
- AWS_PROFILE environment variable overrides session credentials HOT 2
- Mistake in the ComprehendMedical Documentation HOT 2
- bedrock_agent_runtime APIs are not returning source metadata HOT 2
- Redshift Data Paginator misleading documentation for `NextToken` when setting `MaxItems` HOT 2
- Documentation of put_object is confusing HOT 3
- Document of S3.Client.download_file uses the resource interface HOT 2
- dynamodb client.batch_get_item() fails in case keys contains duplicates HOT 2
- Memory Leak in S3's download_fileobj and upload_fileobj Methods HOT 8
- Request for Addition of API to Adjust Spot Instance Limit HOT 2
- S3 generate_presigned_post does not include success_action_redirect in the policy HOT 3
- An error occurred (403) when calling the HeadObject operation: Forbidden for missing field HOT 2
- Explanation of the freeze of resources development HOT 3
- using boto3.client(xxxxx).get_object donw data,It speed have very difference. HOT 3
- on_done not called when token has expired HOT 9
- Generate presigned URL not working with put_object HOT 2
- upload_fileobj hangs indefinitely without returning error HOT 9
- Add short name for region in describe_regions() or describe_endpoints() HOT 3
- Use exponential backoff algorithm for the next write HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from boto3.