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 |
Creates a new Amazon WorkMail resource.
Synopsis
- data CreateResource = CreateResource' {
- organizationId :: Text
- name :: Text
- type' :: ResourceType
- newCreateResource :: Text -> Text -> ResourceType -> CreateResource
- createResource_organizationId :: Lens' CreateResource Text
- createResource_name :: Lens' CreateResource Text
- createResource_type :: Lens' CreateResource ResourceType
- data CreateResourceResponse = CreateResourceResponse' {
- resourceId :: Maybe Text
- httpStatus :: Int
- newCreateResourceResponse :: Int -> CreateResourceResponse
- createResourceResponse_resourceId :: Lens' CreateResourceResponse (Maybe Text)
- createResourceResponse_httpStatus :: Lens' CreateResourceResponse Int
Creating a Request
data CreateResource Source #
See: newCreateResource
smart constructor.
CreateResource' | |
|
Instances
:: Text | |
-> Text | |
-> ResourceType | |
-> CreateResource |
Create a value of CreateResource
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:organizationId:CreateResource'
, createResource_organizationId
- The identifier associated with the organization for which the resource
is created.
$sel:name:CreateResource'
, createResource_name
- The name of the new resource.
$sel:type':CreateResource'
, createResource_type
- The type of the new resource. The available types are equipment
and
room
.
Request Lenses
createResource_organizationId :: Lens' CreateResource Text Source #
The identifier associated with the organization for which the resource is created.
createResource_name :: Lens' CreateResource Text Source #
The name of the new resource.
createResource_type :: Lens' CreateResource ResourceType Source #
The type of the new resource. The available types are equipment
and
room
.
Destructuring the Response
data CreateResourceResponse Source #
See: newCreateResourceResponse
smart constructor.
CreateResourceResponse' | |
|
Instances
newCreateResourceResponse Source #
Create a value of CreateResourceResponse
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:resourceId:CreateResourceResponse'
, createResourceResponse_resourceId
- The identifier of the new resource.
$sel:httpStatus:CreateResourceResponse'
, createResourceResponse_httpStatus
- The response's http status code.
Response Lenses
createResourceResponse_resourceId :: Lens' CreateResourceResponse (Maybe Text) Source #
The identifier of the new resource.
createResourceResponse_httpStatus :: Lens' CreateResourceResponse Int Source #
The response's http status code.