Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Creates a new Amazon WorkMail resource. The available types are equipment and room.
- createResource :: Text -> Text -> ResourceType -> CreateResource
- data CreateResource
- crOrganizationId :: Lens' CreateResource Text
- crName :: Lens' CreateResource Text
- crType :: Lens' CreateResource ResourceType
- createResourceResponse :: Int -> CreateResourceResponse
- data CreateResourceResponse
- crrsResourceId :: Lens' CreateResourceResponse (Maybe Text)
- crrsResponseStatus :: Lens' CreateResourceResponse Int
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:
crOrganizationId
- The identifier associated with the organization for which the resource is created.crName
- The name of the created resource.crType
- The type of the created resource.
data CreateResource Source #
See: createResource
smart constructor.
Request Lenses
crOrganizationId :: Lens' CreateResource Text Source #
The identifier associated with the organization for which the resource is created.
crType :: Lens' CreateResource ResourceType Source #
The type of the created resource.
Destructuring the Response
createResourceResponse Source #
Creates a value of CreateResourceResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
crrsResourceId
- The identifier of the created resource.crrsResponseStatus
- -- | The response status code.
data CreateResourceResponse Source #
See: createResourceResponse
smart constructor.
Response Lenses
crrsResourceId :: Lens' CreateResourceResponse (Maybe Text) Source #
The identifier of the created resource.
crrsResponseStatus :: Lens' CreateResourceResponse Int Source #
- - | The response status code.