| 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 |
Amazonka.XRay.GetSamplingRules
Description
Retrieves all sampling rules.
This operation returns paginated results.
Synopsis
- data GetSamplingRules = GetSamplingRules' {}
- newGetSamplingRules :: GetSamplingRules
- getSamplingRules_nextToken :: Lens' GetSamplingRules (Maybe Text)
- data GetSamplingRulesResponse = GetSamplingRulesResponse' {}
- newGetSamplingRulesResponse :: Int -> GetSamplingRulesResponse
- getSamplingRulesResponse_nextToken :: Lens' GetSamplingRulesResponse (Maybe Text)
- getSamplingRulesResponse_samplingRuleRecords :: Lens' GetSamplingRulesResponse (Maybe [SamplingRuleRecord])
- getSamplingRulesResponse_httpStatus :: Lens' GetSamplingRulesResponse Int
Creating a Request
data GetSamplingRules Source #
See: newGetSamplingRules smart constructor.
Constructors
| GetSamplingRules' | |
Instances
newGetSamplingRules :: GetSamplingRules Source #
Create a value of GetSamplingRules 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:
GetSamplingRules, getSamplingRules_nextToken - Pagination token.
Request Lenses
getSamplingRules_nextToken :: Lens' GetSamplingRules (Maybe Text) Source #
Pagination token.
Destructuring the Response
data GetSamplingRulesResponse Source #
See: newGetSamplingRulesResponse smart constructor.
Constructors
| GetSamplingRulesResponse' | |
Fields
| |
Instances
newGetSamplingRulesResponse Source #
Arguments
| :: Int | |
| -> GetSamplingRulesResponse |
Create a value of GetSamplingRulesResponse 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:
GetSamplingRules, getSamplingRulesResponse_nextToken - Pagination token.
$sel:samplingRuleRecords:GetSamplingRulesResponse', getSamplingRulesResponse_samplingRuleRecords - Rule definitions and metadata.
GetSamplingRulesResponse, getSamplingRulesResponse_httpStatus - The response's http status code.
Response Lenses
getSamplingRulesResponse_nextToken :: Lens' GetSamplingRulesResponse (Maybe Text) Source #
Pagination token.
getSamplingRulesResponse_samplingRuleRecords :: Lens' GetSamplingRulesResponse (Maybe [SamplingRuleRecord]) Source #
Rule definitions and metadata.
getSamplingRulesResponse_httpStatus :: Lens' GetSamplingRulesResponse Int Source #
The response's http status code.