Menu
Amazon GameLift Service
API Reference (API Version 2015-10-01)

UpdateFleetPortSettings

Updates port settings for a fleet. To update settings, specify the fleet ID to be updated and list the permissions you want to update. List the permissions you want to add in InboundPermissionAuthorizations, and permissions you want to remove in InboundPermissionRevocations. Permissions to be removed must match existing fleet permissions. If successful, the fleet ID for the updated fleet is returned.

Fleet-related operations include:

Request Syntax

Copy
{ "FleetId": "string", "InboundPermissionAuthorizations": [ { "FromPort": number, "IpRange": "string", "Protocol": "string", "ToPort": number } ], "InboundPermissionRevocations": [ { "FromPort": number, "IpRange": "string", "Protocol": "string", "ToPort": number } ] }

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

The request accepts the following data in JSON format.

Note

In the following list, the required parameters are described first.

FleetId

Unique identifier for a fleet to update port settings for.

Type: String

Pattern: ^fleet-\S+

Required: Yes

InboundPermissionAuthorizations

Collection of port settings to be added to the fleet record.

Type: Array of IpPermission objects

Array Members: Maximum number of 50 items.

Required: No

InboundPermissionRevocations

Collection of port settings to be removed from the fleet record.

Type: Array of IpPermission objects

Array Members: Maximum number of 50 items.

Required: No

Response Syntax

Copy
{ "FleetId": "string" }

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

FleetId

Unique identifier for a fleet that was updated.

Type: String

Pattern: ^fleet-\S+

Errors

For information about the errors that are common to all actions, see Common Errors.

ConflictException

The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request.

HTTP Status Code: 400

InternalServiceException

The service encountered an unrecoverable internal failure while processing the request. Clients can retry such requests immediately or after a waiting period.

HTTP Status Code: 500

InvalidFleetStatusException

The requested operation would cause a conflict with the current state of a resource associated with the request and/or the fleet. Resolve the conflict before retrying.

HTTP Status Code: 400

InvalidRequestException

One or more parameter values in the request are invalid. Correct the invalid parameter values before retrying.

HTTP Status Code: 400

LimitExceededException

The requested operation would cause the resource to exceed the allowed service limit. Resolve the issue before retrying.

HTTP Status Code: 400

NotFoundException

A service resource associated with the request could not be found. Clients should not retry such requests.

HTTP Status Code: 400

UnauthorizedException

The client failed authentication. Clients should not retry such requests.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: