amazonka-ec2-2.0: Amazon Elastic Compute Cloud 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.EC2.ModifyIpamResourceCidr

Description

Modify a resource CIDR. You can use this action to transfer resource CIDRs between scopes and ignore resource CIDRs that you do not want to manage. If set to false, the resource will not be tracked for overlap, it cannot be auto-imported into a pool, and it will be removed from any pool it has an allocation in.

For more information, see Move resource CIDRs between scopes and Change the monitoring state of resource CIDRs in the Amazon VPC IPAM User Guide.

Synopsis

Creating a Request

data ModifyIpamResourceCidr Source #

See: newModifyIpamResourceCidr smart constructor.

Constructors

ModifyIpamResourceCidr' 

Fields

  • destinationIpamScopeId :: Maybe Text

    The ID of the scope you want to transfer the resource CIDR to.

  • dryRun :: Maybe Bool

    A check for whether you have the required permissions for the action without actually making the request and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

  • resourceId :: Text

    The ID of the resource you want to modify.

  • resourceCidr :: Text

    The CIDR of the resource you want to modify.

  • resourceRegion :: Text

    The Amazon Web Services Region of the resource you want to modify.

  • currentIpamScopeId :: Text

    The ID of the current scope that the resource CIDR is in.

  • monitored :: Bool

    Determines if the resource is monitored by IPAM. If a resource is monitored, the resource is discovered by IPAM and you can view details about the resource’s CIDR.

Instances

Instances details
ToHeaders ModifyIpamResourceCidr Source # 
Instance details

Defined in Amazonka.EC2.ModifyIpamResourceCidr

ToPath ModifyIpamResourceCidr Source # 
Instance details

Defined in Amazonka.EC2.ModifyIpamResourceCidr

ToQuery ModifyIpamResourceCidr Source # 
Instance details

Defined in Amazonka.EC2.ModifyIpamResourceCidr

AWSRequest ModifyIpamResourceCidr Source # 
Instance details

Defined in Amazonka.EC2.ModifyIpamResourceCidr

Associated Types

type AWSResponse ModifyIpamResourceCidr #

Generic ModifyIpamResourceCidr Source # 
Instance details

Defined in Amazonka.EC2.ModifyIpamResourceCidr

Associated Types

type Rep ModifyIpamResourceCidr :: Type -> Type #

Read ModifyIpamResourceCidr Source # 
Instance details

Defined in Amazonka.EC2.ModifyIpamResourceCidr

Show ModifyIpamResourceCidr Source # 
Instance details

Defined in Amazonka.EC2.ModifyIpamResourceCidr

NFData ModifyIpamResourceCidr Source # 
Instance details

Defined in Amazonka.EC2.ModifyIpamResourceCidr

Methods

rnf :: ModifyIpamResourceCidr -> () #

Eq ModifyIpamResourceCidr Source # 
Instance details

Defined in Amazonka.EC2.ModifyIpamResourceCidr

Hashable ModifyIpamResourceCidr Source # 
Instance details

Defined in Amazonka.EC2.ModifyIpamResourceCidr

type AWSResponse ModifyIpamResourceCidr Source # 
Instance details

Defined in Amazonka.EC2.ModifyIpamResourceCidr

type Rep ModifyIpamResourceCidr Source # 
Instance details

Defined in Amazonka.EC2.ModifyIpamResourceCidr

type Rep ModifyIpamResourceCidr = D1 ('MetaData "ModifyIpamResourceCidr" "Amazonka.EC2.ModifyIpamResourceCidr" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "ModifyIpamResourceCidr'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "destinationIpamScopeId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "dryRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "resourceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))) :*: ((S1 ('MetaSel ('Just "resourceCidr") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "resourceRegion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "currentIpamScopeId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "monitored") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool)))))

newModifyIpamResourceCidr Source #

Create a value of ModifyIpamResourceCidr 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:destinationIpamScopeId:ModifyIpamResourceCidr', modifyIpamResourceCidr_destinationIpamScopeId - The ID of the scope you want to transfer the resource CIDR to.

$sel:dryRun:ModifyIpamResourceCidr', modifyIpamResourceCidr_dryRun - A check for whether you have the required permissions for the action without actually making the request and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

ModifyIpamResourceCidr, modifyIpamResourceCidr_resourceId - The ID of the resource you want to modify.

ModifyIpamResourceCidr, modifyIpamResourceCidr_resourceCidr - The CIDR of the resource you want to modify.

ModifyIpamResourceCidr, modifyIpamResourceCidr_resourceRegion - The Amazon Web Services Region of the resource you want to modify.

$sel:currentIpamScopeId:ModifyIpamResourceCidr', modifyIpamResourceCidr_currentIpamScopeId - The ID of the current scope that the resource CIDR is in.

$sel:monitored:ModifyIpamResourceCidr', modifyIpamResourceCidr_monitored - Determines if the resource is monitored by IPAM. If a resource is monitored, the resource is discovered by IPAM and you can view details about the resource’s CIDR.

Request Lenses

modifyIpamResourceCidr_destinationIpamScopeId :: Lens' ModifyIpamResourceCidr (Maybe Text) Source #

The ID of the scope you want to transfer the resource CIDR to.

modifyIpamResourceCidr_dryRun :: Lens' ModifyIpamResourceCidr (Maybe Bool) Source #

A check for whether you have the required permissions for the action without actually making the request and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

modifyIpamResourceCidr_resourceId :: Lens' ModifyIpamResourceCidr Text Source #

The ID of the resource you want to modify.

modifyIpamResourceCidr_resourceCidr :: Lens' ModifyIpamResourceCidr Text Source #

The CIDR of the resource you want to modify.

modifyIpamResourceCidr_resourceRegion :: Lens' ModifyIpamResourceCidr Text Source #

The Amazon Web Services Region of the resource you want to modify.

modifyIpamResourceCidr_currentIpamScopeId :: Lens' ModifyIpamResourceCidr Text Source #

The ID of the current scope that the resource CIDR is in.

modifyIpamResourceCidr_monitored :: Lens' ModifyIpamResourceCidr Bool Source #

Determines if the resource is monitored by IPAM. If a resource is monitored, the resource is discovered by IPAM and you can view details about the resource’s CIDR.

Destructuring the Response

data ModifyIpamResourceCidrResponse Source #

See: newModifyIpamResourceCidrResponse smart constructor.

Constructors

ModifyIpamResourceCidrResponse' 

Fields

Instances

Instances details
Generic ModifyIpamResourceCidrResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyIpamResourceCidr

Associated Types

type Rep ModifyIpamResourceCidrResponse :: Type -> Type #

Read ModifyIpamResourceCidrResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyIpamResourceCidr

Show ModifyIpamResourceCidrResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyIpamResourceCidr

NFData ModifyIpamResourceCidrResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyIpamResourceCidr

Eq ModifyIpamResourceCidrResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyIpamResourceCidr

type Rep ModifyIpamResourceCidrResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyIpamResourceCidr

type Rep ModifyIpamResourceCidrResponse = D1 ('MetaData "ModifyIpamResourceCidrResponse" "Amazonka.EC2.ModifyIpamResourceCidr" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "ModifyIpamResourceCidrResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "ipamResourceCidr") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe IpamResourceCidr)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newModifyIpamResourceCidrResponse Source #

Create a value of ModifyIpamResourceCidrResponse 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:ipamResourceCidr:ModifyIpamResourceCidrResponse', modifyIpamResourceCidrResponse_ipamResourceCidr - The CIDR of the resource.

$sel:httpStatus:ModifyIpamResourceCidrResponse', modifyIpamResourceCidrResponse_httpStatus - The response's http status code.

Response Lenses