@opentelemetry/instrumentation-aws-sdk
Version:
OpenTelemetry instrumentation for `aws-sdk` and `@aws-sdk/client-*` clients for various AWS services
89 lines • 3.9 kB
TypeScript
/// <reference types="node" />
interface Blob {
}
type Binary = Buffer | Uint8Array | Blob | string;
export declare namespace SNS {
interface MessageAttributeValue {
/**
* Amazon SNS supports the following logical data types: String, String.Array, Number, and Binary. For more information, see Message Attribute Data Types.
*/
DataType: string;
/**
* Strings are Unicode with UTF8 binary encoding. For a list of code values, see ASCII Printable Characters.
*/
StringValue?: string;
/**
* Binary type attributes can store any binary data, for example, compressed data, encrypted data, or images.
*/
BinaryValue?: Binary;
}
export type MessageAttributeMap = {
[]: MessageAttributeValue;
};
export {};
}
export declare namespace SQS {
type StringList = string[];
type BinaryList = Binary[];
interface MessageAttributeValue {
/**
* Strings are Unicode with UTF-8 binary encoding. For a list of code values, see ASCII Printable Characters.
*/
StringValue?: string;
/**
* Binary type attributes can store any binary data, such as compressed data, encrypted data, or images.
*/
BinaryValue?: Binary;
/**
* Not implemented. Reserved for future use.
*/
StringListValues?: StringList;
/**
* Not implemented. Reserved for future use.
*/
BinaryListValues?: BinaryList;
/**
* Amazon SQS supports the following logical data types: String, Number, and Binary. For the Number data type, you must use StringValue. You can also append custom labels. For more information, see Amazon SQS Message Attributes in the Amazon SQS Developer Guide.
*/
DataType: string;
}
export type MessageBodyAttributeMap = {
[]: MessageAttributeValue;
};
type MessageSystemAttributeMap = {
[]: string;
};
export interface Message {
/**
* A unique identifier for the message. A MessageId is considered unique across all accounts for an extended period of time.
*/
MessageId?: string;
/**
* An identifier associated with the act of receiving the message. A new receipt handle is returned every time you receive a message. When deleting a message, you provide the last received receipt handle to delete the message.
*/
ReceiptHandle?: string;
/**
* An MD5 digest of the non-URL-encoded message body string.
*/
MD5OfBody?: string;
/**
* The message's contents (not URL-encoded).
*/
Body?: string;
/**
* A map of the attributes requested in ReceiveMessage to their respective values. Supported attributes: ApproximateReceiveCount ApproximateFirstReceiveTimestamp MessageDeduplicationId MessageGroupId SenderId SentTimestamp SequenceNumber ApproximateFirstReceiveTimestamp and SentTimestamp are each returned as an integer representing the epoch time in milliseconds.
*/
Attributes?: MessageSystemAttributeMap;
/**
* An MD5 digest of the non-URL-encoded message attribute string. You can use this attribute to verify that Amazon SQS received the message correctly. Amazon SQS URL-decodes the message before creating the MD5 digest. For information about MD5, see RFC1321.
*/
MD5OfMessageAttributes?: string;
/**
* Each message attribute consists of a Name, Type, and Value. For more information, see Amazon SQS message attributes in the Amazon SQS Developer Guide.
*/
MessageAttributes?: MessageBodyAttributeMap;
}
export {};
}
export {};
//# sourceMappingURL=aws-sdk.types.d.ts.map