404

[ Avaa Bypassed ]




Upload:

Command:

botdev@18.217.203.133: ~ $
**To create an invalidation for a CloudFront distribution**

The following ``create-invalidation`` example creates an invalidation for the specified files in the specified CloudFront distribution::

    aws cloudfront create-invalidation \
        --distribution-id EDFDVBD6EXAMPLE \
        --paths "/example-path/example-file.jpg" "/example-path/example-file2.png"

Output::

    {
        "Location": "https://cloudfront.amazonaws.com/2019-03-26/distribution/EDFDVBD6EXAMPLE/invalidation/I1JLWSDAP8FU89",
        "Invalidation": {
            "Id": "I1JLWSDAP8FU89",
            "Status": "InProgress",
            "CreateTime": "2019-12-05T18:24:51.407Z",
            "InvalidationBatch": {
                "Paths": {
                    "Quantity": 2,
                    "Items": [
                        "/example-path/example-file2.png",
                        "/example-path/example-file.jpg"
                    ]
                },
                "CallerReference": "cli-1575570291-670203"
            }
        }
    }

In the previous example, the AWS CLI automatically generated a random ``CallerReference``. To specify your own ``CallerReference``, or to avoid passing the invalidation parameters as command line arguments, you can use a JSON file. The following example creates an invalidation for two files, by providing the invalidation parameters in a JSON file named ``inv-batch.json``::

    aws cloudfront create-invalidation \
        --distribution-id EDFDVBD6EXAMPLE \
        --invalidation-batch file://inv-batch.json

Contents of ``inv-batch.json``::

    {
        "Paths": {
            "Quantity": 2,
            "Items": [
                "/example-path/example-file.jpg",
                "/example-path/example-file2.png"
            ]
        },
        "CallerReference": "cli-example"
    }

Output::

    {
        "Location": "https://cloudfront.amazonaws.com/2019-03-26/distribution/EDFDVBD6EXAMPLE/invalidation/I2J0I21PCUYOIK",
        "Invalidation": {
            "Id": "I2J0I21PCUYOIK",
            "Status": "InProgress",
            "CreateTime": "2019-12-05T18:40:49.413Z",
            "InvalidationBatch": {
                "Paths": {
                    "Quantity": 2,
                    "Items": [
                        "/example-path/example-file.jpg",
                        "/example-path/example-file2.png"
                    ]
                },
                "CallerReference": "cli-example"
            }
        }
    }

Filemanager

Name Type Size Permission Actions
create-cloud-front-origin-access-identity.rst File 1.42 KB 0644
create-distribution-with-tags.rst File 8.27 KB 0644
create-distribution.rst File 7.77 KB 0644
create-field-level-encryption-config.rst File 2.9 KB 0644
create-field-level-encryption-profile.rst File 2.58 KB 0644
create-invalidation.rst File 2.43 KB 0644
create-public-key.rst File 2.24 KB 0644
delete-cloud-front-origin-access-identity.rst File 923 B 0644
delete-distribution.rst File 842 B 0644
delete-field-level-encryption-config.rst File 911 B 0644
delete-field-level-encryption-profile.rst File 921 B 0644
delete-public-key.rst File 685 B 0644
get-cloud-front-origin-access-identity-config.rst File 742 B 0644
get-cloud-front-origin-access-identity.rst File 949 B 0644
get-distribution-config.rst File 3.63 KB 0644
get-distribution.rst File 4.44 KB 0644
get-field-level-encryption-config.rst File 1.22 KB 0644
get-field-level-encryption-profile-config.rst File 1.05 KB 0644
get-field-level-encryption-profile.rst File 1.24 KB 0644
get-field-level-encryption.rst File 1.41 KB 0644
get-invalidation.rst File 803 B 0644
get-public-key-config.rst File 1.06 KB 0644
get-public-key.rst File 1.17 KB 0644
list-cloud-front-origin-access-identities.rst File 1.03 KB 0644
list-distributions.rst File 13.89 KB 0644
list-field-level-encryption-configs.rst File 1.47 KB 0644
list-field-level-encryption-profiles.rst File 2.16 KB 0644
list-invalidations.rst File 632 B 0644
list-public-keys.rst File 1.74 KB 0644
list-tags-for-resource.rst File 698 B 0644
sign.rst File 1.2 KB 0644
tag-resource.rst File 928 B 0644
untag-resource.rst File 825 B 0644
update-cloud-front-origin-access-identity.rst File 2.06 KB 0644
update-distribution.rst File 12.85 KB 0644
update-field-level-encryption-config.rst File 2.97 KB 0644
update-field-level-encryption-profile.rst File 2.92 KB 0644