amazonka-lightsail-2.0: Amazon Lightsail SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Lightsail.SetIpAddressType

Description

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

Creating a Request

data SetIpAddressType Source #

See: newSetIpAddressType smart constructor.

Constructors

SetIpAddressType' 

Fields

  • resourceType :: 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) Amazon Web Services Region. Set your Amazon Web Services Region configuration to us-east-1 to create, view, or edit distributions.

  • resourceName :: Text

    The name of the resource for which to set the IP address type.

  • ipAddressType :: 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.

Instances

Instances details
ToJSON SetIpAddressType Source # 
Instance details

Defined in Amazonka.Lightsail.SetIpAddressType

ToHeaders SetIpAddressType Source # 
Instance details

Defined in Amazonka.Lightsail.SetIpAddressType

ToPath SetIpAddressType Source # 
Instance details

Defined in Amazonka.Lightsail.SetIpAddressType

ToQuery SetIpAddressType Source # 
Instance details

Defined in Amazonka.Lightsail.SetIpAddressType

AWSRequest SetIpAddressType Source # 
Instance details

Defined in Amazonka.Lightsail.SetIpAddressType

Associated Types

type AWSResponse SetIpAddressType #

Generic SetIpAddressType Source # 
Instance details

Defined in Amazonka.Lightsail.SetIpAddressType

Associated Types

type Rep SetIpAddressType :: Type -> Type #

Read SetIpAddressType Source # 
Instance details

Defined in Amazonka.Lightsail.SetIpAddressType

Show SetIpAddressType Source # 
Instance details

Defined in Amazonka.Lightsail.SetIpAddressType

NFData SetIpAddressType Source # 
Instance details

Defined in Amazonka.Lightsail.SetIpAddressType

Methods

rnf :: SetIpAddressType -> () #

Eq SetIpAddressType Source # 
Instance details

Defined in Amazonka.Lightsail.SetIpAddressType

Hashable SetIpAddressType Source # 
Instance details

Defined in Amazonka.Lightsail.SetIpAddressType

type AWSResponse SetIpAddressType Source # 
Instance details

Defined in Amazonka.Lightsail.SetIpAddressType

type Rep SetIpAddressType Source # 
Instance details

Defined in Amazonka.Lightsail.SetIpAddressType

type Rep SetIpAddressType = D1 ('MetaData "SetIpAddressType" "Amazonka.Lightsail.SetIpAddressType" "amazonka-lightsail-2.0-77hvsZhtZFxFduYae8QaN0" 'False) (C1 ('MetaCons "SetIpAddressType'" 'PrefixI 'True) (S1 ('MetaSel ('Just "resourceType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ResourceType) :*: (S1 ('MetaSel ('Just "resourceName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "ipAddressType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 IpAddressType))))

newSetIpAddressType Source #

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:

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) Amazon Web Services Region. Set your Amazon Web Services Region configuration to us-east-1 to create, view, or edit distributions.

SetIpAddressType, setIpAddressType_resourceName - The name of the resource for which to set the IP address type.

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) Amazon Web Services Region. Set your Amazon Web Services 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.

Constructors

SetIpAddressTypeResponse' 

Fields

  • operations :: Maybe [Operation]

    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.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic SetIpAddressTypeResponse Source # 
Instance details

Defined in Amazonka.Lightsail.SetIpAddressType

Associated Types

type Rep SetIpAddressTypeResponse :: Type -> Type #

Read SetIpAddressTypeResponse Source # 
Instance details

Defined in Amazonka.Lightsail.SetIpAddressType

Show SetIpAddressTypeResponse Source # 
Instance details

Defined in Amazonka.Lightsail.SetIpAddressType

NFData SetIpAddressTypeResponse Source # 
Instance details

Defined in Amazonka.Lightsail.SetIpAddressType

Eq SetIpAddressTypeResponse Source # 
Instance details

Defined in Amazonka.Lightsail.SetIpAddressType

type Rep SetIpAddressTypeResponse Source # 
Instance details

Defined in Amazonka.Lightsail.SetIpAddressType

type Rep SetIpAddressTypeResponse = D1 ('MetaData "SetIpAddressTypeResponse" "Amazonka.Lightsail.SetIpAddressType" "amazonka-lightsail-2.0-77hvsZhtZFxFduYae8QaN0" 'False) (C1 ('MetaCons "SetIpAddressTypeResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "operations") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Operation])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

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.