describeProvisioningArtifact method
Gets information about the specified provisioning artifact (also known as a version) for the specified product.
May throw ResourceNotFoundException. May throw InvalidParametersException.
Parameter acceptLanguage
:
The language code.
-
en
- English (default) -
jp
- Japanese -
zh
- Chinese
Parameter productId
:
The product identifier.
Parameter productName
:
The product name.
Parameter provisioningArtifactId
:
The identifier of the provisioning artifact.
Parameter provisioningArtifactName
:
The provisioning artifact name.
Parameter verbose
:
Indicates whether a verbose level of detail is enabled.
Implementation
Future<DescribeProvisioningArtifactOutput> describeProvisioningArtifact({
String? acceptLanguage,
String? productId,
String? productName,
String? provisioningArtifactId,
String? provisioningArtifactName,
bool? verbose,
}) async {
_s.validateStringLength(
'acceptLanguage',
acceptLanguage,
0,
100,
);
_s.validateStringLength(
'productId',
productId,
1,
100,
);
_s.validateStringLength(
'productName',
productName,
0,
8191,
);
_s.validateStringLength(
'provisioningArtifactId',
provisioningArtifactId,
1,
100,
);
_s.validateStringLength(
'provisioningArtifactName',
provisioningArtifactName,
0,
8192,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWS242ServiceCatalogService.DescribeProvisioningArtifact'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
if (acceptLanguage != null) 'AcceptLanguage': acceptLanguage,
if (productId != null) 'ProductId': productId,
if (productName != null) 'ProductName': productName,
if (provisioningArtifactId != null)
'ProvisioningArtifactId': provisioningArtifactId,
if (provisioningArtifactName != null)
'ProvisioningArtifactName': provisioningArtifactName,
if (verbose != null) 'Verbose': verbose,
},
);
return DescribeProvisioningArtifactOutput.fromJson(jsonResponse.body);
}