copy_db_parameter_group
async
¶
copy_db_parameter_group(
*,
config_overrides: Optional[AsyncRDSClientConfig] = None,
source_db_parameter_group_identifier: Optional[String] = None,
target_db_parameter_group_identifier: Optional[String] = None,
target_db_parameter_group_description: Optional[String] = None,
tags: Optional[TagList] = None,
) -> CopyDBParameterGroupResult
Copies the specified DB parameter group.
You can't copy a default DB parameter group. Instead, create a new custom DB parameter group, which copies the default parameters and values for the specified DB parameter group family.
Parameters:
-
source_db_parameter_group_identifier(Optional[String], default:None) –The identifier or ARN for the source DB parameter group. For information about creating an ARN, see Constructing an ARN for Amazon RDS in the Amazon RDS User Guide.
Constraints:
-
Must specify a valid DB parameter group.
-
-
target_db_parameter_group_identifier(Optional[String], default:None) –The identifier for the copied DB parameter group.
Constraints:
-
Can't be null, empty, or blank
-
Must contain from 1 to 255 letters, numbers, or hyphens
-
First character must be a letter
-
Can't end with a hyphen or contain two consecutive hyphens
Example:
my-db-parameter-group -
-
target_db_parameter_group_description(Optional[String], default:None) –A description for the copied DB parameter group.
Raises:
-
DBParameterGroupAlreadyExistsFault–A DB parameter group with the same name exists.
-
DBParameterGroupNotFoundFault–DBParameterGroupNamedoesn't refer to an existing DB parameter group. -
DBParameterGroupQuotaExceededFault–The request would result in the user exceeding the allowed number of DB parameter groups.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To copy a DB parameter group The following example makes a copy of a DB parameter group.
>>> await client.copy_db_parameter_group(source_db_parameter_group_identifier='mydbpg', target_db_parameter_group_identifier='mydbpgcopy', target_db_parameter_group_description='Copy of mydbpg parameter group')
Source code in docs_src/capo_rds/_services/async_rds.py
1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 | |