Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data ScanRange = ScanRange' {}
- newScanRange :: ScanRange
- scanRange_end :: Lens' ScanRange (Maybe Integer)
- scanRange_start :: Lens' ScanRange (Maybe Integer)
Documentation
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.
See: newScanRange
smart constructor.
ScanRange' | |
|
Instances
ToXML ScanRange Source # | |
Defined in Amazonka.S3.Types.ScanRange | |
Generic ScanRange Source # | |
Read ScanRange Source # | |
Show ScanRange Source # | |
NFData ScanRange Source # | |
Defined in Amazonka.S3.Types.ScanRange | |
Eq ScanRange Source # | |
Hashable ScanRange Source # | |
Defined in Amazonka.S3.Types.ScanRange | |
type Rep ScanRange Source # | |
Defined in Amazonka.S3.Types.ScanRange type Rep ScanRange = D1 ('MetaData "ScanRange" "Amazonka.S3.Types.ScanRange" "amazonka-s3-2.0-CNZtv1UmVzj28JXsFvwNoj" 'False) (C1 ('MetaCons "ScanRange'" 'PrefixI 'True) (S1 ('MetaSel ('Just "end") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)) :*: S1 ('MetaSel ('Just "start") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)))) |
newScanRange :: ScanRange Source #
Create a value of ScanRange
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:end:ScanRange'
, scanRange_end
- Specifies the end of the byte range. This parameter is optional. Valid
values: non-negative integers. The default value is one less than the
size of the object being queried. If only the End parameter is supplied,
it is interpreted to mean scan the last N bytes of the file. For
example, <scanrange><end>50</end></scanrange>
means scan the
last 50 bytes.
$sel:start:ScanRange'
, scanRange_start
- Specifies the start of the byte range. This parameter is optional. Valid
values: non-negative integers. The default value is 0. If only start
is supplied, it means scan from that point to the end of the file. For
example, <scanrange><start>50</start></scanrange>
means scan
from byte 50 until the end of the file.
scanRange_end :: Lens' ScanRange (Maybe Integer) Source #
Specifies the end of the byte range. This parameter is optional. Valid
values: non-negative integers. The default value is one less than the
size of the object being queried. If only the End parameter is supplied,
it is interpreted to mean scan the last N bytes of the file. For
example, <scanrange><end>50</end></scanrange>
means scan the
last 50 bytes.
scanRange_start :: Lens' ScanRange (Maybe Integer) Source #
Specifies the start of the byte range. This parameter is optional. Valid
values: non-negative integers. The default value is 0. If only start
is supplied, it means scan from that point to the end of the file. For
example, <scanrange><start>50</start></scanrange>
means scan
from byte 50 until the end of the file.