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_large_strings_opt_in,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
4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 | |