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 |
Creates an address book with the specified details.
Synopsis
- data CreateAddressBook = CreateAddressBook' {}
- newCreateAddressBook :: Text -> CreateAddressBook
- createAddressBook_clientRequestToken :: Lens' CreateAddressBook (Maybe Text)
- createAddressBook_description :: Lens' CreateAddressBook (Maybe Text)
- createAddressBook_tags :: Lens' CreateAddressBook (Maybe [Tag])
- createAddressBook_name :: Lens' CreateAddressBook Text
- data CreateAddressBookResponse = CreateAddressBookResponse' {
- addressBookArn :: Maybe Text
- httpStatus :: Int
- newCreateAddressBookResponse :: Int -> CreateAddressBookResponse
- createAddressBookResponse_addressBookArn :: Lens' CreateAddressBookResponse (Maybe Text)
- createAddressBookResponse_httpStatus :: Lens' CreateAddressBookResponse Int
Creating a Request
data CreateAddressBook Source #
See: newCreateAddressBook
smart constructor.
CreateAddressBook' | |
|
Instances
Create a value of CreateAddressBook
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:clientRequestToken:CreateAddressBook'
, createAddressBook_clientRequestToken
- A unique, user-specified identifier for the request that ensures
idempotency.
CreateAddressBook
, createAddressBook_description
- The description of the address book.
$sel:tags:CreateAddressBook'
, createAddressBook_tags
- The tags to be added to the specified resource. Do not provide system
tags.
CreateAddressBook
, createAddressBook_name
- The name of the address book.
Request Lenses
createAddressBook_clientRequestToken :: Lens' CreateAddressBook (Maybe Text) Source #
A unique, user-specified identifier for the request that ensures idempotency.
createAddressBook_description :: Lens' CreateAddressBook (Maybe Text) Source #
The description of the address book.
createAddressBook_tags :: Lens' CreateAddressBook (Maybe [Tag]) Source #
The tags to be added to the specified resource. Do not provide system tags.
createAddressBook_name :: Lens' CreateAddressBook Text Source #
The name of the address book.
Destructuring the Response
data CreateAddressBookResponse Source #
See: newCreateAddressBookResponse
smart constructor.
CreateAddressBookResponse' | |
|
Instances
newCreateAddressBookResponse Source #
Create a value of CreateAddressBookResponse
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:
CreateAddressBookResponse
, createAddressBookResponse_addressBookArn
- The ARN of the newly created address book.
$sel:httpStatus:CreateAddressBookResponse'
, createAddressBookResponse_httpStatus
- The response's http status code.
Response Lenses
createAddressBookResponse_addressBookArn :: Lens' CreateAddressBookResponse (Maybe Text) Source #
The ARN of the newly created address book.
createAddressBookResponse_httpStatus :: Lens' CreateAddressBookResponse Int Source #
The response's http status code.