create_product
¶
create_product(
name: ProductViewName,
owner: ProductViewOwner,
product_type: ProductType,
idempotency_token: IdempotencyToken,
*,
config_overrides: Optional[ServiceCatalogClientConfig] = None,
accept_language: Optional[AcceptLanguage] = None,
description: Optional[ProductViewShortDescription] = None,
distributor: Optional[ProductViewOwner] = None,
support_description: Optional[SupportDescription] = None,
support_email: Optional[SupportEmail] = None,
support_url: Optional[SupportUrl] = None,
tags: Optional[AddTags] = None,
provisioning_artifact_parameters: Optional[ProvisioningArtifactProperties] = None,
source_connection: Optional[SourceConnection] = None,
) -> CreateProductOutput
Creates a product.
A delegated admin is authorized to invoke this command.
The user or role that performs this operation must have the cloudformation:GetTemplate IAM policy permission. This policy permission is required when using the ImportFromPhysicalId template source in the information data section.
Parameters:
-
accept_language(Optional[AcceptLanguage], default:None) –The language code.
-
jp- Japanese -
zh- Chinese
-
-
name(ProductViewName) –The name of the product.
-
owner(ProductViewOwner) –The owner of the product.
-
description(Optional[ProductViewShortDescription], default:None) –The description of the product.
-
distributor(Optional[ProductViewOwner], default:None) –The distributor of the product.
-
support_description(Optional[SupportDescription], default:None) –The support information about the product.
-
support_email(Optional[SupportEmail], default:None) –The contact email for product support.
-
support_url(Optional[SupportUrl], default:None) –The contact URL for product support.
^https?:\/\/// is the pattern used to validate SupportUrl. -
product_type(ProductType) –The type of product.
-
tags(Optional[AddTags], default:None) –One or more tags.
-
provisioning_artifact_parameters(Optional[ProvisioningArtifactProperties], default:None) –The configuration of the provisioning artifact.
-
idempotency_token(IdempotencyToken) –A unique identifier that you provide to ensure idempotency. If multiple requests differ only by the idempotency token, the same response is returned for each repeated request.
-
source_connection(Optional[SourceConnection], default:None) –Specifies connection details for the created product and syncs the product to the connection source artifact. This automatically manages the product's artifacts based on changes to the source. The
SourceConnectionparameter consists of the following sub-fields.-
Type -
ConnectionParamters
-
Raises:
-
InvalidParametersException–One or more parameters provided to the operation are not valid.
-
LimitExceededException–The current limits of the service would have been exceeded by this operation. Decrease your resource use or increase your service limits and retry the operation.
-
TagOptionNotMigratedException–An operation requiring TagOptions failed because the TagOptions migration process has not been performed for this account. Use the Amazon Web Services Management Console to perform the migration process before retrying the operation.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_service_catalog/_services/service_catalog.py
1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 | |