update_accelerator
¶
update_accelerator(
accelerator_arn: GenericString,
*,
config_overrides: Optional[GlobalAcceleratorClientConfig] = None,
name: Optional[GenericString] = None,
ip_address_type: Optional[IpAddressType] = None,
ip_addresses: Optional[IpAddresses] = None,
enabled: Optional[GenericBoolean] = None,
) -> UpdateAcceleratorResponse
Update an accelerator to make changes, such as the following:
-
Change the name of the accelerator.
-
Disable the accelerator so that it no longer accepts or routes traffic, or so that you can delete it.
-
Enable the accelerator, if it is disabled.
-
Change the IP address type to dual-stack if it is IPv4, or change the IP address type to IPv4 if it's dual-stack.
Be aware that static IP addresses remain assigned to your accelerator for as long as it exists, even if you disable the accelerator and it no longer accepts or routes traffic. However, when you delete the accelerator, you lose the static IP addresses that are assigned to it, so you can no longer route traffic by using them.
Global Accelerator is a global service that supports endpoints in multiple Amazon Web Services Regions but you must specify the US West (Oregon) Region to create, update, or otherwise work with accelerators. That is, for example, specify --region us-west-2 on Amazon Web Services CLI commands.
Parameters:
-
accelerator_arn(GenericString) –The Amazon Resource Name (ARN) of the accelerator to update.
-
name(Optional[GenericString], default:None) –The name of the accelerator. The name can have a maximum of 64 characters, must contain only alphanumeric characters, periods (.), or hyphens (-), and must not begin or end with a hyphen or period.
-
ip_address_type(Optional[IpAddressType], default:None) –The IP address type that an accelerator supports. For a standard accelerator, the value can be IPV4 or DUAL_STACK.
-
ip_addresses(Optional[IpAddresses], default:None) –The IP addresses for an accelerator. Specify one or two IPv4 addresses. Do not include the /32 suffix.
You can update IP addresses only for an accelerator that you created with at least one BYOIP address. You can't update an accelerator that has only IP addresses provided by Global Accelerator to use BYOIP addresses. Instead, create a new accelerator with your BYOIP addresses.
For more information, see Update an accelerator to change your IP addresses in the Global Accelerator Developer Guide.
-
enabled(Optional[GenericBoolean], default:None) –Indicates whether an accelerator is enabled. The value is true or false. The default value is true.
If the value is set to true, the accelerator cannot be deleted. If set to false, the accelerator can be deleted.
Raises:
-
AcceleratorNotFoundException–The accelerator that you specified doesn't exist.
-
AccessDeniedException–You don't have access permission.
-
ConflictException–You can't use both of those options.
-
InternalServiceErrorException–There was an internal error for Global Accelerator.
-
InvalidArgumentException–An argument that you specified is invalid.
-
TransactionInProgressException–There's already a transaction in progress. Another transaction can't be processed.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_global_accelerator/_services/global_accelerator.py
3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 | |