#[non_exhaustive]pub struct SelectObjectContentInput {
pub bucket: Option<String>,
pub key: Option<String>,
pub sse_customer_algorithm: Option<String>,
pub sse_customer_key: Option<String>,
pub sse_customer_key_md5: Option<String>,
pub expression: Option<String>,
pub expression_type: Option<ExpressionType>,
pub request_progress: Option<RequestProgress>,
pub input_serialization: Option<InputSerialization>,
pub output_serialization: Option<OutputSerialization>,
pub scan_range: Option<ScanRange>,
pub expected_bucket_owner: Option<String>,
}
Expand description
Request to filter the contents of an Amazon S3 object based on a simple Structured Query Language (SQL) statement. In the request, along with the SQL expression, you must specify a data serialization format (JSON or CSV) of the object. Amazon S3 uses this to parse object data into records. It returns only records that match the specified SQL expression. You must also specify the data serialization format for the response. For more information, see S3Select API Documentation.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.bucket: Option<String>
The S3 bucket.
key: Option<String>
The object key.
sse_customer_algorithm: Option<String>
The server-side encryption (SSE) algorithm used to encrypt the object. This parameter is needed only when the object was created using a checksum algorithm. For more information, see Protecting data using SSE-C keys in the Amazon S3 User Guide.
sse_customer_key: Option<String>
The server-side encryption (SSE) customer managed key. This parameter is needed only when the object was created using a checksum algorithm. For more information, see Protecting data using SSE-C keys in the Amazon S3 User Guide.
sse_customer_key_md5: Option<String>
The MD5 server-side encryption (SSE) customer managed key. This parameter is needed only when the object was created using a checksum algorithm. For more information, see Protecting data using SSE-C keys in the Amazon S3 User Guide.
expression: Option<String>
The expression that is used to query the object.
expression_type: Option<ExpressionType>
The type of the provided expression (for example, SQL).
request_progress: Option<RequestProgress>
Specifies if periodic request progress information should be enabled.
input_serialization: Option<InputSerialization>
Describes the format of the data in the object that is being queried.
output_serialization: Option<OutputSerialization>
Describes the format of the data that you want Amazon S3 to return in response.
scan_range: Option<ScanRange>
Specifies the byte range of the object to get the records from. A record is processed when its first byte is contained by the range. This parameter is optional, but when specified, it must not be empty. See RFC 2616, Section 14.35.1 about how to specify the start and end of the range.
ScanRange
may be used in the following ways:
-
- process only the records starting between the bytes 50 and 100 (inclusive, counting from zero)50 100 -
- process only the records starting after the byte 5050 -
- process only the records within the last 50 bytes of the file.50
expected_bucket_owner: Option<String>
The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden
(access denied).
Implementations§
source§impl SelectObjectContentInput
impl SelectObjectContentInput
sourcepub fn sse_customer_algorithm(&self) -> Option<&str>
pub fn sse_customer_algorithm(&self) -> Option<&str>
The server-side encryption (SSE) algorithm used to encrypt the object. This parameter is needed only when the object was created using a checksum algorithm. For more information, see Protecting data using SSE-C keys in the Amazon S3 User Guide.
sourcepub fn sse_customer_key(&self) -> Option<&str>
pub fn sse_customer_key(&self) -> Option<&str>
The server-side encryption (SSE) customer managed key. This parameter is needed only when the object was created using a checksum algorithm. For more information, see Protecting data using SSE-C keys in the Amazon S3 User Guide.
sourcepub fn sse_customer_key_md5(&self) -> Option<&str>
pub fn sse_customer_key_md5(&self) -> Option<&str>
The MD5 server-side encryption (SSE) customer managed key. This parameter is needed only when the object was created using a checksum algorithm. For more information, see Protecting data using SSE-C keys in the Amazon S3 User Guide.
sourcepub fn expression(&self) -> Option<&str>
pub fn expression(&self) -> Option<&str>
The expression that is used to query the object.
sourcepub fn expression_type(&self) -> Option<&ExpressionType>
pub fn expression_type(&self) -> Option<&ExpressionType>
The type of the provided expression (for example, SQL).
sourcepub fn request_progress(&self) -> Option<&RequestProgress>
pub fn request_progress(&self) -> Option<&RequestProgress>
Specifies if periodic request progress information should be enabled.
sourcepub fn input_serialization(&self) -> Option<&InputSerialization>
pub fn input_serialization(&self) -> Option<&InputSerialization>
Describes the format of the data in the object that is being queried.
sourcepub fn output_serialization(&self) -> Option<&OutputSerialization>
pub fn output_serialization(&self) -> Option<&OutputSerialization>
Describes the format of the data that you want Amazon S3 to return in response.
sourcepub fn scan_range(&self) -> Option<&ScanRange>
pub fn scan_range(&self) -> Option<&ScanRange>
Specifies the byte range of the object to get the records from. A record is processed when its first byte is contained by the range. This parameter is optional, but when specified, it must not be empty. See RFC 2616, Section 14.35.1 about how to specify the start and end of the range.
ScanRange
may be used in the following ways:
-
- process only the records starting between the bytes 50 and 100 (inclusive, counting from zero)50 100 -
- process only the records starting after the byte 5050 -
- process only the records within the last 50 bytes of the file.50
sourcepub fn expected_bucket_owner(&self) -> Option<&str>
pub fn expected_bucket_owner(&self) -> Option<&str>
The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden
(access denied).
source§impl SelectObjectContentInput
impl SelectObjectContentInput
sourcepub fn builder() -> SelectObjectContentInputBuilder
pub fn builder() -> SelectObjectContentInputBuilder
Creates a new builder-style object to manufacture SelectObjectContentInput
.
Trait Implementations§
source§impl Clone for SelectObjectContentInput
impl Clone for SelectObjectContentInput
source§fn clone(&self) -> SelectObjectContentInput
fn clone(&self) -> SelectObjectContentInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SelectObjectContentInput
impl Debug for SelectObjectContentInput
source§impl PartialEq for SelectObjectContentInput
impl PartialEq for SelectObjectContentInput
impl StructuralPartialEq for SelectObjectContentInput
Auto Trait Implementations§
impl Freeze for SelectObjectContentInput
impl RefUnwindSafe for SelectObjectContentInput
impl Send for SelectObjectContentInput
impl Sync for SelectObjectContentInput
impl Unpin for SelectObjectContentInput
impl UnwindSafe for SelectObjectContentInput
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)