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 |
Update an accelerator.
Global Accelerator is a global service that supports endpoints in multiple AWS Regions but you must specify the US West (Oregon) Region to create or update accelerators.
Synopsis
- data UpdateAccelerator = UpdateAccelerator' {}
- newUpdateAccelerator :: Text -> UpdateAccelerator
- updateAccelerator_enabled :: Lens' UpdateAccelerator (Maybe Bool)
- updateAccelerator_ipAddressType :: Lens' UpdateAccelerator (Maybe IpAddressType)
- updateAccelerator_name :: Lens' UpdateAccelerator (Maybe Text)
- updateAccelerator_acceleratorArn :: Lens' UpdateAccelerator Text
- data UpdateAcceleratorResponse = UpdateAcceleratorResponse' {}
- newUpdateAcceleratorResponse :: Int -> UpdateAcceleratorResponse
- updateAcceleratorResponse_accelerator :: Lens' UpdateAcceleratorResponse (Maybe Accelerator)
- updateAcceleratorResponse_httpStatus :: Lens' UpdateAcceleratorResponse Int
Creating a Request
data UpdateAccelerator Source #
See: newUpdateAccelerator
smart constructor.
UpdateAccelerator' | |
|
Instances
Create a value of UpdateAccelerator
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:UpdateAccelerator'
, updateAccelerator_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:UpdateAccelerator'
, updateAccelerator_ipAddressType
- The IP address type, which must be IPv4.
$sel:name:UpdateAccelerator'
, updateAccelerator_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:UpdateAccelerator'
, updateAccelerator_acceleratorArn
- The Amazon Resource Name (ARN) of the accelerator to update.
Request Lenses
updateAccelerator_enabled :: Lens' UpdateAccelerator (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.
updateAccelerator_ipAddressType :: Lens' UpdateAccelerator (Maybe IpAddressType) Source #
The IP address type, which must be IPv4.
updateAccelerator_name :: Lens' UpdateAccelerator (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.
updateAccelerator_acceleratorArn :: Lens' UpdateAccelerator Text Source #
The Amazon Resource Name (ARN) of the accelerator to update.
Destructuring the Response
data UpdateAcceleratorResponse Source #
See: newUpdateAcceleratorResponse
smart constructor.
UpdateAcceleratorResponse' | |
|
Instances
newUpdateAcceleratorResponse Source #
Create a value of UpdateAcceleratorResponse
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:UpdateAcceleratorResponse'
, updateAcceleratorResponse_accelerator
- Information about the updated accelerator.
$sel:httpStatus:UpdateAcceleratorResponse'
, updateAcceleratorResponse_httpStatus
- The response's http status code.
Response Lenses
updateAcceleratorResponse_accelerator :: Lens' UpdateAcceleratorResponse (Maybe Accelerator) Source #
Information about the updated accelerator.
updateAcceleratorResponse_httpStatus :: Lens' UpdateAcceleratorResponse Int Source #
The response's http status code.