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 |
Sets the IP address type for an Amazon Lightsail resource.
Use this action to enable dual-stack for a resource, which enables IPv4 and IPv6 for the specified resource. Alternately, you can use this action to disable dual-stack, and enable IPv4 only.
Synopsis
- data SetIpAddressType = SetIpAddressType' {}
- newSetIpAddressType :: ResourceType -> Text -> IpAddressType -> SetIpAddressType
- setIpAddressType_resourceType :: Lens' SetIpAddressType ResourceType
- setIpAddressType_resourceName :: Lens' SetIpAddressType Text
- setIpAddressType_ipAddressType :: Lens' SetIpAddressType IpAddressType
- data SetIpAddressTypeResponse = SetIpAddressTypeResponse' {
- operations :: Maybe [Operation]
- httpStatus :: Int
- newSetIpAddressTypeResponse :: Int -> SetIpAddressTypeResponse
- setIpAddressTypeResponse_operations :: Lens' SetIpAddressTypeResponse (Maybe [Operation])
- setIpAddressTypeResponse_httpStatus :: Lens' SetIpAddressTypeResponse Int
Creating a Request
data SetIpAddressType Source #
See: newSetIpAddressType
smart constructor.
SetIpAddressType' | |
|
Instances
:: ResourceType | |
-> Text | |
-> IpAddressType | |
-> SetIpAddressType |
Create a value of SetIpAddressType
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:resourceType:SetIpAddressType'
, setIpAddressType_resourceType
- The resource type.
The possible values are Distribution
, Instance
, and LoadBalancer
.
Distribution-related APIs are available only in the N. Virginia
(us-east-1
) AWS Region. Set your AWS Region configuration to
us-east-1
to create, view, or edit distributions.
$sel:resourceName:SetIpAddressType'
, setIpAddressType_resourceName
- The name of the resource for which to set the IP address type.
$sel:ipAddressType:SetIpAddressType'
, setIpAddressType_ipAddressType
- The IP address type to set for the specified resource.
The possible values are ipv4
for IPv4 only, and dualstack
for IPv4
and IPv6.
Request Lenses
setIpAddressType_resourceType :: Lens' SetIpAddressType ResourceType Source #
The resource type.
The possible values are Distribution
, Instance
, and LoadBalancer
.
Distribution-related APIs are available only in the N. Virginia
(us-east-1
) AWS Region. Set your AWS Region configuration to
us-east-1
to create, view, or edit distributions.
setIpAddressType_resourceName :: Lens' SetIpAddressType Text Source #
The name of the resource for which to set the IP address type.
setIpAddressType_ipAddressType :: Lens' SetIpAddressType IpAddressType Source #
The IP address type to set for the specified resource.
The possible values are ipv4
for IPv4 only, and dualstack
for IPv4
and IPv6.
Destructuring the Response
data SetIpAddressTypeResponse Source #
See: newSetIpAddressTypeResponse
smart constructor.
SetIpAddressTypeResponse' | |
|
Instances
newSetIpAddressTypeResponse Source #
Create a value of SetIpAddressTypeResponse
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:operations:SetIpAddressTypeResponse'
, setIpAddressTypeResponse_operations
- An array of objects that describe the result of the action, such as the
status of the request, the timestamp of the request, and the resources
affected by the request.
$sel:httpStatus:SetIpAddressTypeResponse'
, setIpAddressTypeResponse_httpStatus
- The response's http status code.
Response Lenses
setIpAddressTypeResponse_operations :: Lens' SetIpAddressTypeResponse (Maybe [Operation]) Source #
An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.
setIpAddressTypeResponse_httpStatus :: Lens' SetIpAddressTypeResponse Int Source #
The response's http status code.