https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/awscli/examples/ec2/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/awscli/examples/ec2/modify-ipam-pool.rst
**To modify an IPAM pool**

The following ``modify-ipam-pool`` example modifies an IPAM pool.

(Linux)::

    aws ec2 modify-ipam-pool \
        --ipam-pool-id ipam-pool-0533048da7d823723 \
        --add-allocation-resource-tags "Key=Owner,Value=Build Team" \
        --clear-allocation-default-netmask-length \
        --allocation-min-netmask-length 14

(Windows)::

    aws ec2 modify-ipam-pool ^
        --ipam-pool-id ipam-pool-0533048da7d823723 ^
        --add-allocation-resource-tags "Key=Owner,Value=Build Team" ^
        --clear-allocation-default-netmask-length ^
        --allocation-min-netmask-length 14

Output::

    {
        "IpamPool": {
            "OwnerId": "123456789012",
            "IpamPoolId": "ipam-pool-0533048da7d823723",
            "IpamPoolArn": "arn:aws:ec2::123456789012:ipam-pool/ipam-pool-0533048da7d823723",
            "IpamScopeArn": "arn:aws:ec2::123456789012:ipam-scope/ipam-scope-02fc38cd4c48e7d38",
            "IpamScopeType": "private",
            "IpamArn": "arn:aws:ec2::123456789012:ipam/ipam-08440e7a3acde3908",
            "IpamRegion": "us-east-1",
            "Locale": "None",
            "PoolDepth": 1,
            "State": "modify-complete",
            "AutoImport": true,
            "AddressFamily": "ipv4",
            "AllocationMinNetmaskLength": 14,
            "AllocationMaxNetmaskLength": 26,
            "AllocationResourceTags": [
                {
                    "Key": "Environment",
                    "Value": "Preprod"
                },
                {
                    "Key": "Owner",
                    "Value": "Build Team"
                }
            ]
        }
    }

For more information, see `Edit a pool  <https://docs.aws.amazon.com/vpc/latest/ipam/mod-pool-ipam.html>`__ in the *Amazon VPC IPAM User Guide*. 

https://t.me/RX1948 - 2025