| 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.DeleteSamplingRule
Description
Deletes a sampling rule.
Synopsis
- data DeleteSamplingRule = DeleteSamplingRule' {}
- newDeleteSamplingRule :: DeleteSamplingRule
- deleteSamplingRule_ruleARN :: Lens' DeleteSamplingRule (Maybe Text)
- deleteSamplingRule_ruleName :: Lens' DeleteSamplingRule (Maybe Text)
- data DeleteSamplingRuleResponse = DeleteSamplingRuleResponse' {}
- newDeleteSamplingRuleResponse :: Int -> DeleteSamplingRuleResponse
- deleteSamplingRuleResponse_samplingRuleRecord :: Lens' DeleteSamplingRuleResponse (Maybe SamplingRuleRecord)
- deleteSamplingRuleResponse_httpStatus :: Lens' DeleteSamplingRuleResponse Int
Creating a Request
data DeleteSamplingRule Source #
See: newDeleteSamplingRule smart constructor.
Constructors
| DeleteSamplingRule' | |
Instances
newDeleteSamplingRule :: DeleteSamplingRule Source #
Create a value of DeleteSamplingRule 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:
DeleteSamplingRule, deleteSamplingRule_ruleARN - The ARN of the sampling rule. Specify a rule by either name or ARN, but
not both.
DeleteSamplingRule, deleteSamplingRule_ruleName - The name of the sampling rule. Specify a rule by either name or ARN, but
not both.
Request Lenses
deleteSamplingRule_ruleARN :: Lens' DeleteSamplingRule (Maybe Text) Source #
The ARN of the sampling rule. Specify a rule by either name or ARN, but not both.
deleteSamplingRule_ruleName :: Lens' DeleteSamplingRule (Maybe Text) Source #
The name of the sampling rule. Specify a rule by either name or ARN, but not both.
Destructuring the Response
data DeleteSamplingRuleResponse Source #
See: newDeleteSamplingRuleResponse smart constructor.
Constructors
| DeleteSamplingRuleResponse' | |
Fields
| |
Instances
newDeleteSamplingRuleResponse Source #
Arguments
| :: Int | |
| -> DeleteSamplingRuleResponse |
Create a value of DeleteSamplingRuleResponse 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:samplingRuleRecord:DeleteSamplingRuleResponse', deleteSamplingRuleResponse_samplingRuleRecord - The deleted rule definition and metadata.
DeleteSamplingRuleResponse, deleteSamplingRuleResponse_httpStatus - The response's http status code.
Response Lenses
deleteSamplingRuleResponse_samplingRuleRecord :: Lens' DeleteSamplingRuleResponse (Maybe SamplingRuleRecord) Source #
The deleted rule definition and metadata.
deleteSamplingRuleResponse_httpStatus :: Lens' DeleteSamplingRuleResponse Int Source #
The response's http status code.