| Copyright | (c) 2013-2021 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
Amazonka.APIGateway.DeleteMethod
Description
Deletes an existing Method resource.
Synopsis
- data DeleteMethod = DeleteMethod' {
- restApiId :: Text
- resourceId :: Text
- httpMethod :: Text
- newDeleteMethod :: Text -> Text -> Text -> DeleteMethod
- deleteMethod_restApiId :: Lens' DeleteMethod Text
- deleteMethod_resourceId :: Lens' DeleteMethod Text
- deleteMethod_httpMethod :: Lens' DeleteMethod Text
- data DeleteMethodResponse' = DeleteMethodResponse'' {
- newDeleteMethodResponse' :: DeleteMethodResponse'
Creating a Request
data DeleteMethod Source #
Request to delete an existing Method resource.
See: newDeleteMethod smart constructor.
Constructors
| DeleteMethod' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> Text | |
| -> DeleteMethod |
Create a value of DeleteMethod 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:restApiId:DeleteMethod', deleteMethod_restApiId - [Required] The string identifier of the associated RestApi.
$sel:resourceId:DeleteMethod', deleteMethod_resourceId - [Required] The Resource identifier for the Method resource.
$sel:httpMethod:DeleteMethod', deleteMethod_httpMethod - [Required] The HTTP verb of the Method resource.
Request Lenses
deleteMethod_restApiId :: Lens' DeleteMethod Text Source #
- Required
- The string identifier of the associated RestApi.
deleteMethod_resourceId :: Lens' DeleteMethod Text Source #
- Required
- The Resource identifier for the Method resource.
deleteMethod_httpMethod :: Lens' DeleteMethod Text Source #
- Required
- The HTTP verb of the Method resource.
Destructuring the Response
data DeleteMethodResponse' Source #
See: newDeleteMethodResponse' smart constructor.
Constructors
| DeleteMethodResponse'' | |
Instances
newDeleteMethodResponse' :: DeleteMethodResponse' Source #
Create a value of DeleteMethodResponse' with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.