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 |
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.
DeleteMethod' | |
|
Instances
:: 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.
Instances
Eq DeleteMethodResponse' Source # | |
Defined in Amazonka.APIGateway.DeleteMethod (==) :: DeleteMethodResponse' -> DeleteMethodResponse' -> Bool # (/=) :: DeleteMethodResponse' -> DeleteMethodResponse' -> Bool # | |
Read DeleteMethodResponse' Source # | |
Show DeleteMethodResponse' Source # | |
Defined in Amazonka.APIGateway.DeleteMethod showsPrec :: Int -> DeleteMethodResponse' -> ShowS # show :: DeleteMethodResponse' -> String # showList :: [DeleteMethodResponse'] -> ShowS # | |
Generic DeleteMethodResponse' Source # | |
Defined in Amazonka.APIGateway.DeleteMethod type Rep DeleteMethodResponse' :: Type -> Type # | |
NFData DeleteMethodResponse' Source # | |
Defined in Amazonka.APIGateway.DeleteMethod rnf :: DeleteMethodResponse' -> () # | |
type Rep DeleteMethodResponse' Source # | |
newDeleteMethodResponse' :: DeleteMethodResponse' Source #
Create a value of DeleteMethodResponse'
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.