create_product
async
¶
create_product(
name: ProductViewName,
owner: ProductViewOwner,
product_type: ProductType,
idempotency_token: IdempotencyToken,
*,
config_overrides: Optional[AsyncServiceCatalogClientConfig] = 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/async_service_catalog.py
1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 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 | |