Skip to content

Documentation for the fallback mechanism on launch_instances is incorrect #4724

@beardedsamwise

Description

@beardedsamwise

Describe the issue

The documentation below specifies the values should be NONE (default, no async retry) or RETRY_WITH_GROUP_CONFIGURATION however the boto3 stubs indicate these are invalid values.

The actual API docs indicate the valid values are: retry-with-group-configuration | none

Argument of type "Literal['RETRY_WITH_GROUP_CONFIGURATION']" cannot be assigned to parameter "RetryStrategy" of type "RetryStrategyType" in function "launch_instances"
  Type "Literal['RETRY_WITH_GROUP_CONFIGURATION']" is not assignable to type "RetryStrategyType"
    "Literal['RETRY_WITH_GROUP_CONFIGURATION']" is not assignable to type "Literal['none']"
    "Literal['RETRY_WITH_GROUP_CONFIGURATION']" is not assignable to type "Literal['retry-with-group-configuration']"Pylance[reportArgumentType](https://github.com/microsoft/pylance-release/blob/main/docs/diagnostics/reportArgumentType.md)

Links

https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/autoscaling/client/launch_instances.html
https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_LaunchInstances.html

Metadata

Metadata

Assignees

Labels

autoscalingAmazon EC2 Auto Scaling is designed to automatically launch and terminate EC2 instances based on usedocumentationThis is a problem with documentation.p3This is a minor priority issueservice-apiThis issue is caused by the service API, not the SDK implementation.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions