Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Creates a Resource resource.
- createResource :: Text -> Text -> Text -> CreateResource
- data CreateResource
- crRestAPIId :: Lens' CreateResource Text
- crParentId :: Lens' CreateResource Text
- crPathPart :: Lens' CreateResource Text
- resource :: Resource
- data Resource
- rPathPart :: Lens' Resource (Maybe Text)
- rPath :: Lens' Resource (Maybe Text)
- rId :: Lens' Resource (Maybe Text)
- rResourceMethods :: Lens' Resource (HashMap Text Method)
- rParentId :: Lens' Resource (Maybe Text)
Creating a Request
Creates a value of CreateResource
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CreateResource Source #
Requests Amazon API Gateway to create a Resource resource.
See: createResource
smart constructor.
Request Lenses
crRestAPIId :: Lens' CreateResource Text Source #
The identifier of the RestApi for the resource.
crParentId :: Lens' CreateResource Text Source #
The parent resource's identifier.
crPathPart :: Lens' CreateResource Text Source #
The last path segment for this resource.
Destructuring the Response
Represents a resource.
See: resource
smart constructor.