Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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
- data ModifyIpamResourceCidr = ModifyIpamResourceCidr' {}
- newModifyIpamResourceCidr :: Text -> Text -> Text -> Text -> Bool -> ModifyIpamResourceCidr
- modifyIpamResourceCidr_destinationIpamScopeId :: Lens' ModifyIpamResourceCidr (Maybe Text)
- modifyIpamResourceCidr_dryRun :: Lens' ModifyIpamResourceCidr (Maybe Bool)
- modifyIpamResourceCidr_resourceId :: Lens' ModifyIpamResourceCidr Text
- modifyIpamResourceCidr_resourceCidr :: Lens' ModifyIpamResourceCidr Text
- modifyIpamResourceCidr_resourceRegion :: Lens' ModifyIpamResourceCidr Text
- modifyIpamResourceCidr_currentIpamScopeId :: Lens' ModifyIpamResourceCidr Text
- modifyIpamResourceCidr_monitored :: Lens' ModifyIpamResourceCidr Bool
- data ModifyIpamResourceCidrResponse = ModifyIpamResourceCidrResponse' {}
- newModifyIpamResourceCidrResponse :: Int -> ModifyIpamResourceCidrResponse
- modifyIpamResourceCidrResponse_ipamResourceCidr :: Lens' ModifyIpamResourceCidrResponse (Maybe IpamResourceCidr)
- modifyIpamResourceCidrResponse_httpStatus :: Lens' ModifyIpamResourceCidrResponse Int
Creating a Request
data ModifyIpamResourceCidr Source #
See: newModifyIpamResourceCidr
smart constructor.
ModifyIpamResourceCidr' | |
|
Instances
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.
ModifyIpamResourceCidrResponse' | |
|
Instances
Generic ModifyIpamResourceCidrResponse Source # | |
Read ModifyIpamResourceCidrResponse Source # | |
Show ModifyIpamResourceCidrResponse Source # | |
Defined in Amazonka.EC2.ModifyIpamResourceCidr | |
NFData ModifyIpamResourceCidrResponse Source # | |
Defined in Amazonka.EC2.ModifyIpamResourceCidr rnf :: ModifyIpamResourceCidrResponse -> () # | |
Eq ModifyIpamResourceCidrResponse Source # | |
type Rep ModifyIpamResourceCidrResponse Source # | |
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
modifyIpamResourceCidrResponse_ipamResourceCidr :: Lens' ModifyIpamResourceCidrResponse (Maybe IpamResourceCidr) Source #
The CIDR of the resource.
modifyIpamResourceCidrResponse_httpStatus :: Lens' ModifyIpamResourceCidrResponse Int Source #
The response's http status code.