| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.WorkMail.CreateResource
Description
Creates a new 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.
Constructors
| CreateResource' | |
Fields
| |
Instances
Arguments
| :: 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:
CreateResource, createResource_organizationId - The identifier associated with the organization for which the resource
is created.
CreateResource, createResource_name - The name of the new resource.
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.
Constructors
| CreateResourceResponse' | |
Fields
| |
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.