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 |
Removes the specified origination identity from an existing pool.
If the origination identity isn't associated with the specified pool, an Error is returned.
Synopsis
- data DisassociateOriginationIdentity = DisassociateOriginationIdentity' {}
- newDisassociateOriginationIdentity :: Text -> Text -> Text -> DisassociateOriginationIdentity
- disassociateOriginationIdentity_clientToken :: Lens' DisassociateOriginationIdentity (Maybe Text)
- disassociateOriginationIdentity_poolId :: Lens' DisassociateOriginationIdentity Text
- disassociateOriginationIdentity_originationIdentity :: Lens' DisassociateOriginationIdentity Text
- disassociateOriginationIdentity_isoCountryCode :: Lens' DisassociateOriginationIdentity Text
- data DisassociateOriginationIdentityResponse = DisassociateOriginationIdentityResponse' {}
- newDisassociateOriginationIdentityResponse :: Int -> DisassociateOriginationIdentityResponse
- disassociateOriginationIdentityResponse_isoCountryCode :: Lens' DisassociateOriginationIdentityResponse (Maybe Text)
- disassociateOriginationIdentityResponse_originationIdentity :: Lens' DisassociateOriginationIdentityResponse (Maybe Text)
- disassociateOriginationIdentityResponse_originationIdentityArn :: Lens' DisassociateOriginationIdentityResponse (Maybe Text)
- disassociateOriginationIdentityResponse_poolArn :: Lens' DisassociateOriginationIdentityResponse (Maybe Text)
- disassociateOriginationIdentityResponse_poolId :: Lens' DisassociateOriginationIdentityResponse (Maybe Text)
- disassociateOriginationIdentityResponse_httpStatus :: Lens' DisassociateOriginationIdentityResponse Int
Creating a Request
data DisassociateOriginationIdentity Source #
See: newDisassociateOriginationIdentity
smart constructor.
DisassociateOriginationIdentity' | |
|
Instances
newDisassociateOriginationIdentity Source #
:: Text | |
-> Text | |
-> Text | |
-> DisassociateOriginationIdentity |
Create a value of DisassociateOriginationIdentity
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:clientToken:DisassociateOriginationIdentity'
, disassociateOriginationIdentity_clientToken
- Unique, case-sensitive identifier you provide to ensure the idempotency
of the request. If you don't specify a client token, a randomly
generated token is used for the request to ensure idempotency.
DisassociateOriginationIdentity
, disassociateOriginationIdentity_poolId
- The unique identifier for the pool to disassociate with the origination
identity. This value can be either the PoolId or PoolArn.
DisassociateOriginationIdentity
, disassociateOriginationIdentity_originationIdentity
- The origination identity to use such as a PhoneNumberId, PhoneNumberArn,
SenderId or SenderIdArn. You can use DescribePhoneNumbers find the
values for PhoneNumberId and PhoneNumberArn, or use DescribeSenderIds to
get the values for SenderId and SenderIdArn.
DisassociateOriginationIdentity
, disassociateOriginationIdentity_isoCountryCode
- The two-character code, in ISO 3166-1 alpha-2 format, for the country or
region.
Request Lenses
disassociateOriginationIdentity_clientToken :: Lens' DisassociateOriginationIdentity (Maybe Text) Source #
Unique, case-sensitive identifier you provide to ensure the idempotency of the request. If you don't specify a client token, a randomly generated token is used for the request to ensure idempotency.
disassociateOriginationIdentity_poolId :: Lens' DisassociateOriginationIdentity Text Source #
The unique identifier for the pool to disassociate with the origination identity. This value can be either the PoolId or PoolArn.
disassociateOriginationIdentity_originationIdentity :: Lens' DisassociateOriginationIdentity Text Source #
The origination identity to use such as a PhoneNumberId, PhoneNumberArn, SenderId or SenderIdArn. You can use DescribePhoneNumbers find the values for PhoneNumberId and PhoneNumberArn, or use DescribeSenderIds to get the values for SenderId and SenderIdArn.
disassociateOriginationIdentity_isoCountryCode :: Lens' DisassociateOriginationIdentity Text Source #
The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.
Destructuring the Response
data DisassociateOriginationIdentityResponse Source #
See: newDisassociateOriginationIdentityResponse
smart constructor.
DisassociateOriginationIdentityResponse' | |
|
Instances
newDisassociateOriginationIdentityResponse Source #
Create a value of DisassociateOriginationIdentityResponse
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:
DisassociateOriginationIdentity
, disassociateOriginationIdentityResponse_isoCountryCode
- The two-character code, in ISO 3166-1 alpha-2 format, for the country or
region.
DisassociateOriginationIdentity
, disassociateOriginationIdentityResponse_originationIdentity
- The PhoneNumberId or SenderId of the origination identity.
DisassociateOriginationIdentityResponse
, disassociateOriginationIdentityResponse_originationIdentityArn
- The PhoneNumberArn or SenderIdArn of the origination identity.
DisassociateOriginationIdentityResponse
, disassociateOriginationIdentityResponse_poolArn
- The Amazon Resource Name (ARN) of the pool.
DisassociateOriginationIdentity
, disassociateOriginationIdentityResponse_poolId
- The PoolId of the pool no longer associated with the origination
identity.
$sel:httpStatus:DisassociateOriginationIdentityResponse'
, disassociateOriginationIdentityResponse_httpStatus
- The response's http status code.
Response Lenses
disassociateOriginationIdentityResponse_isoCountryCode :: Lens' DisassociateOriginationIdentityResponse (Maybe Text) Source #
The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.
disassociateOriginationIdentityResponse_originationIdentity :: Lens' DisassociateOriginationIdentityResponse (Maybe Text) Source #
The PhoneNumberId or SenderId of the origination identity.
disassociateOriginationIdentityResponse_originationIdentityArn :: Lens' DisassociateOriginationIdentityResponse (Maybe Text) Source #
The PhoneNumberArn or SenderIdArn of the origination identity.
disassociateOriginationIdentityResponse_poolArn :: Lens' DisassociateOriginationIdentityResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the pool.
disassociateOriginationIdentityResponse_poolId :: Lens' DisassociateOriginationIdentityResponse (Maybe Text) Source #
The PoolId of the pool no longer associated with the origination identity.
disassociateOriginationIdentityResponse_httpStatus :: Lens' DisassociateOriginationIdentityResponse Int Source #
The response's http status code.