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.
Learn more
Related operations
-
Update fleets:
-
UpdateFleetPortSettings
Request Syntax
{
"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.
In the following list, the required parameters are described first.
- FleetId
-
A unique identifier for a fleet to update port settings for. You can use either the fleet ID or ARN value.
Type: String
Pattern:
^fleet-\S+|^arn:.*:fleet\/fleet-\S+
Required: Yes
- InboundPermissionAuthorizations
-
A collection of port settings to be added to the fleet resource.
Type: Array of IpPermission objects
Array Members: Maximum number of 50 items.
Required: No
- InboundPermissionRevocations
-
A collection of port settings to be removed from the fleet resource.
Type: Array of IpPermission objects
Array Members: Maximum number of 50 items.
Required: No
Response Syntax
{
"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
-
A 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: