IoT / Client / get_package_version
get_package_version#
- IoT.Client.get_package_version(**kwargs)#
Gets information about the specified package version.
Requires permission to access the GetPackageVersion action.
See also: AWS API Documentation
Request Syntax
response = client.get_package_version( packageName='string', versionName='string' )
- Parameters:
packageName (string) –
[REQUIRED]
The name of the associated package.
versionName (string) –
[REQUIRED]
The name of the target package version.
- Return type:
dict
- Returns:
Response Syntax
{ 'packageVersionArn': 'string', 'packageName': 'string', 'versionName': 'string', 'description': 'string', 'attributes': { 'string': 'string' }, 'status': 'DRAFT'|'PUBLISHED'|'DEPRECATED', 'errorReason': 'string', 'creationDate': datetime(2015, 1, 1), 'lastModifiedDate': datetime(2015, 1, 1) }
Response Structure
(dict) –
packageVersionArn (string) –
The ARN for the package version.
packageName (string) –
The name of the package.
versionName (string) –
The name of the package version.
description (string) –
The package version description.
attributes (dict) –
Metadata that were added to the package version that can be used to define a package version’s configuration.
(string) –
(string) –
status (string) –
The status associated to the package version. For more information, see Package version lifecycle.
errorReason (string) –
Error reason for a package version failure during creation or update.
creationDate (datetime) –
The date when the package version was created.
lastModifiedDate (datetime) –
The date when the package version was last updated.
Exceptions
IoT.Client.exceptions.ThrottlingException
IoT.Client.exceptions.InternalServerException
IoT.Client.exceptions.ValidationException
IoT.Client.exceptions.ResourceNotFoundException