generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 267
Closed
Labels
bugThis issue is a bug.This issue is a bug.service-apiThis issue is due to a problem in a service API, not the SDK implementation.This issue is due to a problem in a service API, not the SDK implementation.
Description
Describe the bug
The ReceiveMessageFluentBuilder.attribute_names() takes the wrong enum i.e. QueueAttibuteName as it contains the wrong set of values.
Expected Behavior
let receive_builder: ReceiveMessageFluentBuilder = client
.receive_message()
.queue_url(&queue_url)l
.attribute_names(QueueAttributeName::ApproximateReceiveCount); <-------- should compile
Current Behavior
compiler error when trying to set the value as per the aws docs.
Reproduction Steps
let sdk_config = config.get_aws_config().await;
let client = Client::new(&sdk_config);
let queue_url = config.msg_queue.url.clone();
let attribute_builder = client.get_queue_attributes().queue_url(&queue_url);
let receive_builder: ReceiveMessageFluentBuilder = client
.receive_message()
.queue_url(&queue_url)l
.attribute_names(QueueAttributeName::ApproximateReceiveCount); <--------
Possible Solution
Need to define a new enum:
enum ReceiveAttributeName {
ApproximateReceiveCount,
SentTimestamp,
SenderId,
ApproximateFirstReceiveTimestamp,
SequenceNumber,
MessageDeduplicationId,
MessageGroupId,
AWSTraceHeader,
}
and change ReceiveMessageFluentBuilder.attribute_names(input: ReceiveAttributeName)
Additional Information/Context
No response
Version
aws-config v1.1.4
│ ├── aws-credential-types v1.1.4
│ │ ├── aws-smithy-async v1.1.4
│ │ ├── aws-smithy-runtime-api v1.1.4
│ │ │ ├── aws-smithy-async v1.1.4 (*)
│ │ │ ├── aws-smithy-types v1.1.4
│ │ ├── aws-smithy-types v1.1.4 (*)
│ ├── aws-runtime v1.1.4
│ │ ├── aws-credential-types v1.1.4 (*)
│ │ ├── aws-sigv4 v1.1.4
│ │ │ ├── aws-credential-types v1.1.4 (*)
│ │ │ ├── aws-smithy-http v0.60.4
│ │ │ │ ├── aws-smithy-runtime-api v1.1.4 (*)
│ │ │ │ ├── aws-smithy-types v1.1.4 (*)
│ │ │ ├── aws-smithy-runtime-api v1.1.4 (*)
│ │ │ ├── aws-smithy-types v1.1.4 (*)
│ │ ├── aws-smithy-async v1.1.4 (*)
│ │ ├── aws-smithy-http v0.60.4 (*)
│ │ ├── aws-smithy-runtime-api v1.1.4 (*)
│ │ ├── aws-smithy-types v1.1.4 (*)
│ │ ├── aws-types v1.1.4
│ │ │ ├── aws-credential-types v1.1.4 (*)
│ │ │ ├── aws-smithy-async v1.1.4 (*)
│ │ │ ├── aws-smithy-runtime-api v1.1.4 (*)
│ │ │ ├── aws-smithy-types v1.1.4 (*)
│ ├── aws-sdk-sso v1.12.0
│ │ ├── aws-credential-types v1.1.4 (*)
│ │ ├── aws-runtime v1.1.4 (*)
│ │ ├── aws-smithy-async v1.1.4 (*)
│ │ ├── aws-smithy-http v0.60.4 (*)
│ │ ├── aws-smithy-json v0.60.4
│ │ │ └── aws-smithy-types v1.1.4 (*)
│ │ ├── aws-smithy-runtime v1.1.4
│ │ │ ├── aws-smithy-async v1.1.4 (*)
│ │ │ ├── aws-smithy-http v0.60.4 (*)
│ │ │ ├── aws-smithy-runtime-api v1.1.4 (*)
│ │ │ ├── aws-smithy-types v1.1.4 (*)
│ │ ├── aws-smithy-runtime-api v1.1.4 (*)
│ │ ├── aws-smithy-types v1.1.4 (*)
│ │ ├── aws-types v1.1.4 (*)
│ ├── aws-sdk-ssooidc v1.12.0
│ │ ├── aws-credential-types v1.1.4 (*)
│ │ ├── aws-runtime v1.1.4 (*)
│ │ ├── aws-smithy-async v1.1.4 (*)
│ │ ├── aws-smithy-http v0.60.4 (*)
│ │ ├── aws-smithy-json v0.60.4 (*)
│ │ ├── aws-smithy-runtime v1.1.4 (*)
│ │ ├── aws-smithy-runtime-api v1.1.4 (*)
│ │ ├── aws-smithy-types v1.1.4 (*)
│ │ ├── aws-types v1.1.4 (*)
│ ├── aws-sdk-sts v1.12.0
│ │ ├── aws-credential-types v1.1.4 (*)
│ │ ├── aws-runtime v1.1.4 (*)
│ │ ├── aws-smithy-async v1.1.4 (*)
│ │ ├── aws-smithy-http v0.60.4 (*)
│ │ ├── aws-smithy-json v0.60.4 (*)
│ │ ├── aws-smithy-query v0.60.4
│ │ │ ├── aws-smithy-types v1.1.4 (*)
│ │ ├── aws-smithy-runtime v1.1.4 (*)
│ │ ├── aws-smithy-runtime-api v1.1.4 (*)
│ │ ├── aws-smithy-types v1.1.4 (*)
│ │ ├── aws-smithy-xml v0.60.4
│ │ ├── aws-types v1.1.4 (*)
│ ├── aws-smithy-async v1.1.4 (*)
│ ├── aws-smithy-http v0.60.4 (*)
│ ├── aws-smithy-json v0.60.4 (*)
│ ├── aws-smithy-runtime v1.1.4 (*)
│ ├── aws-smithy-runtime-api v1.1.4 (*)
│ ├── aws-smithy-types v1.1.4 (*)
│ ├── aws-types v1.1.4 (*)
├── aws-credential-types v1.1.4 (*)
├── aws-sdk-sqs v1.12.0
│ ├── aws-credential-types v1.1.4 (*)
│ ├── aws-runtime v1.1.4 (*)
│ ├── aws-smithy-async v1.1.4 (*)
│ ├── aws-smithy-http v0.60.4 (*)
│ ├── aws-smithy-json v0.60.4 (*)
│ ├── aws-smithy-runtime v1.1.4 (*)
│ ├── aws-smithy-runtime-api v1.1.4 (*)
│ ├── aws-smithy-types v1.1.4 (*)
│ ├── aws-types v1.1.4 (*)
Environment details (OS name and version, etc.)
mac sonoma 14.3
Logs
No response
Metadata
Metadata
Assignees
Labels
bugThis issue is a bug.This issue is a bug.service-apiThis issue is due to a problem in a service API, not the SDK implementation.This issue is due to a problem in a service API, not the SDK implementation.