1**Example1: To view attributes for a list of fleets**
2
3The following ``describe-fleet-attributes`` example retrieves fleet attributes for two specified fleets. As shown, the requested fleets are deployed with the same build, one for On-Demand instances and one for Spot instances, with some minor configuration differences. ::
4
5    aws gamelift describe-fleet-attributes \
6        --fleet-ids arn:aws:gamelift:us-west-2::fleet/fleet-a1b2c3d4-5678-90ab-cdef-EXAMPLE11111 fleet-a1b2c3d4-5678-90ab-cdef-EXAMPLE22222
7
8Output::
9
10    {
11        "FleetAttributes": [
12            {
13                "FleetId": "fleet-a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
14                "FleetArn": "arn:aws:gamelift:us-west-2::fleet/fleet-a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
15                "FleetType": "ON_DEMAND",
16                "InstanceType": "c4.large",
17                "Description": "On-demand hosts for v2 North America",
18                "Name": "MegaFrogRaceServer.NA.v2-od",
19                "CreationTime": 1568836191.995,
20                "Status": "ACTIVE",
21                "BuildId": "build-a1b2c3d4-5678-90ab-cdef-EXAMPLE33333",
22                "BuildArn": "arn:aws:gamelift:us-west-2::build/build-a1b2c3d4-5678-90ab-cdef-EXAMPLE33333",
23                "ServerLaunchPath": "C:\\game\\MegaFrogRace_Server.exe",
24                "ServerLaunchParameters": "+gamelift_start_server",
25                "NewGameSessionProtectionPolicy": "NoProtection",
26                "OperatingSystem": "WINDOWS_2012",
27                "MetricGroups": [
28                    "default"
29                ],
30                "CertificateConfiguration": {
31                    "CertificateType": "DISABLED"
32                }
33            },
34            {
35                "FleetId": "fleet-a1b2c3d4-5678-90ab-cdef-EXAMPLE22222",
36                "FleetArn": "arn:aws:gamelift:us-west-2::fleet/fleet-a1b2c3d4-5678-90ab-cdef-EXAMPLE22222",
37                "FleetType": "SPOT",
38                "InstanceType": "c4.large",
39                "Description": "On-demand hosts for v2 North America",
40                "Name": "MegaFrogRaceServer.NA.v2-spot",
41                "CreationTime": 1568838275.379,
42                "Status": "ACTIVATING",
43                "BuildId": "build-a1b2c3d4-5678-90ab-cdef-EXAMPLE33333",
44                "BuildArn": "arn:aws:gamelift:us-west-2::build/build-a1b2c3d4-5678-90ab-cdef-EXAMPLE33333",
45                "ServerLaunchPath": "C:\\game\\MegaFrogRace_Server.exe",
46                "NewGameSessionProtectionPolicy": "NoProtection",
47                "OperatingSystem": "WINDOWS_2012",
48                    "MetricGroups": [
49                    "default"
50                ],
51                "CertificateConfiguration": {
52                    "CertificateType": "GENERATED"
53                }
54            }
55        ]
56    }
57
58**Example2: To request attributes for all fleets**
59
60The following ``describe-fleet-attributes`` returns fleet attributes for all fleets with any status. This example illustrates the use of pagination parameters to return one fleet at a time. ::
61
62    aws gamelift describe-fleet-attributes \
63        --limit 1
64
65Output::
66
67    {
68        "FleetAttributes": [
69            {
70                "FleetId": "fleet-a1b2c3d4-5678-90ab-cdef-EXAMPLE22222",
71                "FleetArn": "arn:aws:gamelift:us-west-2::fleet/fleet-a1b2c3d4-5678-90ab-cdef-EXAMPLE22222",
72                "FleetType": "SPOT",
73                "InstanceType": "c4.large",
74                "Description": "On-demand hosts for v2 North America",
75                "Name": "MegaFrogRaceServer.NA.v2-spot",
76                "CreationTime": 1568838275.379,
77                "Status": "ACTIVATING",
78                "BuildId": "build-a1b2c3d4-5678-90ab-cdef-EXAMPLE33333",
79                "BuildArn": "arn:aws:gamelift:us-west-2::build/build-a1b2c3d4-5678-90ab-cdef-EXAMPLE33333",
80                "ServerLaunchPath": "C:\\game\\MegaFrogRace_Server.exe",
81                "NewGameSessionProtectionPolicy": "NoProtection",
82                "OperatingSystem": "WINDOWS_2012",
83                "MetricGroups": [
84                    "default"
85                ],
86                "CertificateConfiguration": {
87                    "CertificateType": "GENERATED"
88                }
89            }
90        ],
91        "NextToken": "eyJhd3NBY2NvdW50SWQiOnsicyI6IjMwMjc3NjAxNjM5OCJ9LCJidWlsZElkIjp7InMiOiJidWlsZC01NWYxZTZmMS1jY2FlLTQ3YTctOWI5ZS1iYjFkYTQwMjEXAMPLE2"
92    }
93
94The output includes a ``NextToken`` value that you can use when you call the command a second time. Pass the value to the ``--next-token`` parameter to specify where to pick up the output. The following command returns the second result in the output. ::
95
96    aws gamelift describe-fleet-attributes \
97        --limit 1 \
98        --next-token eyJhd3NBY2NvdW50SWQiOnsicyI6IjMwMjc3NjAxNjM5OCJ9LCJidWlsZElkIjp7InMiOiJidWlsZC01NWYxZTZmMS1jY2FlLTQ3YTctOWI5ZS1iYjFkYTQwMjEXAMPLE1
99
100Repeat until the response doesn't include a ``NextToken`` value.
101
102For more information, see `Setting Up GameLift Fleets <https://docs.aws.amazon.com/gamelift/latest/developerguide/fleets-intro.html>`__ in the *Amazon GameLift Developer Guide*.
103