modify_cache_subnet_group
async
¶
modify_cache_subnet_group(
*,
config_overrides: Optional[AsyncElastiCacheClientConfig] = None,
cache_subnet_group_name: Optional[String] = None,
cache_subnet_group_description: Optional[String] = None,
subnet_ids: Optional[SubnetIdentifierList] = None,
) -> ModifyCacheSubnetGroupResult
Modifies an existing cache subnet group.
Parameters:
-
cache_subnet_group_name(Optional[String], default:None) –The name for the cache subnet group. This value is stored as a lowercase string.
Constraints: Must contain no more than 255 alphanumeric characters or hyphens.
Example:
mysubnetgroup -
cache_subnet_group_description(Optional[String], default:None) –A description of the cache subnet group.
-
subnet_ids(Optional[SubnetIdentifierList], default:None) –The EC2 subnet IDs for the cache subnet group.
Raises:
-
CacheSubnetGroupNotFoundFault–The requested cache subnet group name does not refer to an existing cache subnet group.
-
CacheSubnetQuotaExceededFault–The request cannot be processed because it would exceed the allowed number of subnets in a cache subnet group.
-
InvalidSubnet–An invalid subnet identifier was specified.
-
SubnetInUse–The requested subnet is being used by another cache subnet group.
-
SubnetNotAllowedFault–At least one subnet ID does not match the other subnet IDs. This mismatch typically occurs when a user sets one subnet ID to a regional Availability Zone and a different one to an outpost. Or when a user sets the subnet ID to an Outpost when not subscribed on this service.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
ModifyCacheSubnetGroup Modifies an existing ElastiCache subnet group.
>>> await client.modify_cache_subnet_group(cache_subnet_group_name='my-sn-grp', subnet_ids=['subnet-bcde2345'])
Source code in docs_src/capo_elasticache/_services/async_elasti_cache.py
5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 | |