update_workgroup
async
¶
update_workgroup(
workgroup_name: WorkgroupName,
*,
config_overrides: Optional[AsyncRedshiftServerlessClientConfig] = None,
base_capacity: Optional[int] = None,
enhanced_vpc_routing: Optional[bool] = None,
config_parameters: Optional[ConfigParameterList] = None,
publicly_accessible: Optional[bool] = None,
subnet_ids: Optional[SubnetIdList] = None,
security_group_ids: Optional[SecurityGroupIdList] = None,
port: Optional[int] = None,
max_capacity: Optional[int] = None,
ip_address_type: Optional[IpAddressType] = None,
price_performance_target: Optional[PerformanceTarget] = None,
track_name: Optional[TrackName] = None,
extra_compute_for_automatic_optimization: Optional[bool] = None,
) -> UpdateWorkgroupResponse
Updates a workgroup with the specified configuration settings. You can't update multiple parameters in one request. For example, you can update baseCapacity or port in a single request, but you can't update both in the same request.
VPC Block Public Access (BPA) enables you to block resources in VPCs and subnets that you own in a Region from reaching or being reached from the internet through internet gateways and egress-only internet gateways. If a workgroup is in an account with VPC BPA turned on, the following capabilities are blocked:
-
Creating a public access workgroup
-
Modifying a private workgroup to public
-
Adding a subnet with VPC BPA turned on to the workgroup when the workgroup is public
For more information about VPC BPA, see Block public access to VPCs and subnets in the Amazon VPC User Guide.
Parameters:
-
workgroup_name(WorkgroupName) –The name of the workgroup to update. You can't update the name of a workgroup once it is created.
-
base_capacity(Optional[int], default:None) –The new base data warehouse capacity in Redshift Processing Units (RPUs).
-
enhanced_vpc_routing(Optional[bool], default:None) –The value that specifies whether to turn on enhanced virtual private cloud (VPC) routing, which forces Amazon Redshift Serverless to route traffic through your VPC.
-
config_parameters(Optional[ConfigParameterList], default:None) –An array of parameters to set for advanced control over a database. The options are
auto_mv,datestyle,enable_case_sensitive_identifier,enable_user_activity_logging,query_group,search_path,require_ssl,use_fips_ssl, and eitherwlm_json_configurationor query monitoring metrics that let you define performance boundaries. You can either specify individual query monitoring metrics (such asmax_scan_row_count,max_query_execution_time) or usewlm_json_configurationto define query queues with rules, but not both. If you're usingwlm_json_configuration, the maximum size ofparameterValueis 8000 characters. For more information about query monitoring rules and available metrics, see Query monitoring metrics for Amazon Redshift Serverless. -
publicly_accessible(Optional[bool], default:None) –A value that specifies whether the workgroup can be accessible from a public network.
-
subnet_ids(Optional[SubnetIdList], default:None) –An array of VPC subnet IDs to associate with the workgroup.
-
security_group_ids(Optional[SecurityGroupIdList], default:None) –An array of security group IDs to associate with the workgroup.
-
port(Optional[int], default:None) –The custom port to use when connecting to a workgroup. Valid port ranges are 5431-5455 and 8191-8215. The default is 5439.
-
max_capacity(Optional[int], default:None) –The maximum data-warehouse capacity Amazon Redshift Serverless uses to serve queries. The max capacity is specified in RPUs.
-
ip_address_type(Optional[IpAddressType], default:None) –The IP address type that the workgroup supports. Possible values are
ipv4anddualstack. -
price_performance_target(Optional[PerformanceTarget], default:None) –An object that represents the price performance target settings for the workgroup.
-
track_name(Optional[TrackName], default:None) –An optional parameter for the name of the track for the workgroup. If you don't provide a track name, the workgroup is assigned to the
currenttrack. -
extra_compute_for_automatic_optimization(Optional[bool], default:None) –If
true, allocates additional compute resources for running automatic optimization operations.Default: false
Raises:
-
ConflictException–The submitted action has conflicts.
-
InsufficientCapacityException–There is an insufficient capacity to perform the action.
-
InternalServerException–The request processing has failed because of an unknown error, exception or failure.
-
Ipv6CidrBlockNotFoundException–There are no subnets in your VPC with associated IPv6 CIDR blocks. To use dual-stack mode, associate an IPv6 CIDR block with each subnet in your VPC.
-
ResourceNotFoundException–The resource could not be found.
-
ValidationException–The input failed to satisfy the constraints specified by an Amazon Web Services service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_redshift_serverless/_services/async_redshift_serverless.py
4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 | |