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 |
Amazonka.GlobalAccelerator.UpdateCustomRoutingAccelerator
Description
Update a custom routing accelerator.
Synopsis
- data UpdateCustomRoutingAccelerator = UpdateCustomRoutingAccelerator' {}
- newUpdateCustomRoutingAccelerator :: Text -> UpdateCustomRoutingAccelerator
- updateCustomRoutingAccelerator_enabled :: Lens' UpdateCustomRoutingAccelerator (Maybe Bool)
- updateCustomRoutingAccelerator_ipAddressType :: Lens' UpdateCustomRoutingAccelerator (Maybe IpAddressType)
- updateCustomRoutingAccelerator_name :: Lens' UpdateCustomRoutingAccelerator (Maybe Text)
- updateCustomRoutingAccelerator_acceleratorArn :: Lens' UpdateCustomRoutingAccelerator Text
- data UpdateCustomRoutingAcceleratorResponse = UpdateCustomRoutingAcceleratorResponse' {}
- newUpdateCustomRoutingAcceleratorResponse :: Int -> UpdateCustomRoutingAcceleratorResponse
- updateCustomRoutingAcceleratorResponse_accelerator :: Lens' UpdateCustomRoutingAcceleratorResponse (Maybe CustomRoutingAccelerator)
- updateCustomRoutingAcceleratorResponse_httpStatus :: Lens' UpdateCustomRoutingAcceleratorResponse Int
Creating a Request
data UpdateCustomRoutingAccelerator Source #
See: newUpdateCustomRoutingAccelerator
smart constructor.
Constructors
UpdateCustomRoutingAccelerator' | |
Fields
|
Instances
newUpdateCustomRoutingAccelerator Source #
Arguments
:: Text | |
-> UpdateCustomRoutingAccelerator |
Create a value of UpdateCustomRoutingAccelerator
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:enabled:UpdateCustomRoutingAccelerator'
, updateCustomRoutingAccelerator_enabled
- Indicates whether an accelerator is enabled. The value is true or false.
The default value is true.
If the value is set to true, the accelerator cannot be deleted. If set to false, the accelerator can be deleted.
$sel:ipAddressType:UpdateCustomRoutingAccelerator'
, updateCustomRoutingAccelerator_ipAddressType
- The value for the address type must be IPv4.
$sel:name:UpdateCustomRoutingAccelerator'
, updateCustomRoutingAccelerator_name
- The name of the accelerator. The name can have a maximum of 32
characters, must contain only alphanumeric characters or hyphens (-),
and must not begin or end with a hyphen.
$sel:acceleratorArn:UpdateCustomRoutingAccelerator'
, updateCustomRoutingAccelerator_acceleratorArn
- The Amazon Resource Name (ARN) of the accelerator to update.
Request Lenses
updateCustomRoutingAccelerator_enabled :: Lens' UpdateCustomRoutingAccelerator (Maybe Bool) Source #
Indicates whether an accelerator is enabled. The value is true or false. The default value is true.
If the value is set to true, the accelerator cannot be deleted. If set to false, the accelerator can be deleted.
updateCustomRoutingAccelerator_ipAddressType :: Lens' UpdateCustomRoutingAccelerator (Maybe IpAddressType) Source #
The value for the address type must be IPv4.
updateCustomRoutingAccelerator_name :: Lens' UpdateCustomRoutingAccelerator (Maybe Text) Source #
The name of the accelerator. The name can have a maximum of 32 characters, must contain only alphanumeric characters or hyphens (-), and must not begin or end with a hyphen.
updateCustomRoutingAccelerator_acceleratorArn :: Lens' UpdateCustomRoutingAccelerator Text Source #
The Amazon Resource Name (ARN) of the accelerator to update.
Destructuring the Response
data UpdateCustomRoutingAcceleratorResponse Source #
See: newUpdateCustomRoutingAcceleratorResponse
smart constructor.
Constructors
UpdateCustomRoutingAcceleratorResponse' | |
Fields
|
Instances
newUpdateCustomRoutingAcceleratorResponse Source #
Arguments
:: Int | |
-> UpdateCustomRoutingAcceleratorResponse |
Create a value of UpdateCustomRoutingAcceleratorResponse
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:accelerator:UpdateCustomRoutingAcceleratorResponse'
, updateCustomRoutingAcceleratorResponse_accelerator
- Information about the updated custom routing accelerator.
$sel:httpStatus:UpdateCustomRoutingAcceleratorResponse'
, updateCustomRoutingAcceleratorResponse_httpStatus
- The response's http status code.
Response Lenses
updateCustomRoutingAcceleratorResponse_accelerator :: Lens' UpdateCustomRoutingAcceleratorResponse (Maybe CustomRoutingAccelerator) Source #
Information about the updated custom routing accelerator.
updateCustomRoutingAcceleratorResponse_httpStatus :: Lens' UpdateCustomRoutingAcceleratorResponse Int Source #
The response's http status code.