listProvisioningArtifacts method
Lists all provisioning artifacts (also known as versions) for the specified product.
May throw ResourceNotFoundException. May throw InvalidParametersException.
Parameter productId
:
The product identifier.
Parameter acceptLanguage
:
The language code.
-
en
- English (default) -
jp
- Japanese -
zh
- Chinese
Implementation
Future<ListProvisioningArtifactsOutput> listProvisioningArtifacts({
required String productId,
String? acceptLanguage,
}) async {
ArgumentError.checkNotNull(productId, 'productId');
_s.validateStringLength(
'productId',
productId,
1,
100,
isRequired: true,
);
_s.validateStringLength(
'acceptLanguage',
acceptLanguage,
0,
100,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWS242ServiceCatalogService.ListProvisioningArtifacts'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ProductId': productId,
if (acceptLanguage != null) 'AcceptLanguage': acceptLanguage,
},
);
return ListProvisioningArtifactsOutput.fromJson(jsonResponse.body);
}