libZSservicesZSamazonka-lightsailZSamazonka-lightsail
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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) AWS Region. Set your AWS 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
Eq SetIpAddressType Source # 
Instance details

Defined in Amazonka.Lightsail.SetIpAddressType

Read SetIpAddressType Source # 
Instance details

Defined in Amazonka.Lightsail.SetIpAddressType

Show SetIpAddressType Source # 
Instance details

Defined in Amazonka.Lightsail.SetIpAddressType

Generic SetIpAddressType Source # 
Instance details

Defined in Amazonka.Lightsail.SetIpAddressType

Associated Types

type Rep SetIpAddressType :: Type -> Type #

NFData SetIpAddressType Source # 
Instance details

Defined in Amazonka.Lightsail.SetIpAddressType

Methods

rnf :: SetIpAddressType -> () #

Hashable SetIpAddressType Source # 
Instance details

Defined in Amazonka.Lightsail.SetIpAddressType

ToJSON SetIpAddressType Source # 
Instance details

Defined in Amazonka.Lightsail.SetIpAddressType

AWSRequest SetIpAddressType Source # 
Instance details

Defined in Amazonka.Lightsail.SetIpAddressType

Associated Types

type AWSResponse 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

type Rep SetIpAddressType Source # 
Instance details

Defined in Amazonka.Lightsail.SetIpAddressType

type Rep SetIpAddressType = D1 ('MetaData "SetIpAddressType" "Amazonka.Lightsail.SetIpAddressType" "libZSservicesZSamazonka-lightsailZSamazonka-lightsail" '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))))
type AWSResponse SetIpAddressType Source # 
Instance details

Defined in Amazonka.Lightsail.SetIpAddressType

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:

$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.

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
Eq SetIpAddressTypeResponse Source # 
Instance details

Defined in Amazonka.Lightsail.SetIpAddressType

Read SetIpAddressTypeResponse Source # 
Instance details

Defined in Amazonka.Lightsail.SetIpAddressType

Show SetIpAddressTypeResponse Source # 
Instance details

Defined in Amazonka.Lightsail.SetIpAddressType

Generic SetIpAddressTypeResponse Source # 
Instance details

Defined in Amazonka.Lightsail.SetIpAddressType

Associated Types

type Rep SetIpAddressTypeResponse :: Type -> Type #

NFData 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" "libZSservicesZSamazonka-lightsailZSamazonka-lightsail" '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.