get_component
(**kwargs)¶Gets a component object.
See also: AWS API Documentation
Request Syntax
response = client.get_component(
componentBuildVersionArn='string'
)
[REQUIRED]
The Amazon Resource Name (ARN) of the component that you want to retrieve. Regex requires "/d+$" suffix.
{
'requestId': 'string',
'component': {
'arn': 'string',
'name': 'string',
'version': 'string',
'description': 'string',
'changeDescription': 'string',
'type': 'BUILD'|'TEST',
'platform': 'Windows'|'Linux',
'supportedOsVersions': [
'string',
],
'state': {
'status': 'DEPRECATED',
'reason': 'string'
},
'parameters': [
{
'name': 'string',
'type': 'string',
'defaultValue': [
'string',
],
'description': 'string'
},
],
'owner': 'string',
'data': 'string',
'kmsKeyId': 'string',
'encrypted': True|False,
'dateCreated': 'string',
'tags': {
'string': 'string'
},
'publisher': 'string',
'obfuscate': True|False
}
}
Response Structure
The request ID that uniquely identifies this request.
The component object associated with the specified ARN.
The Amazon Resource Name (ARN) of the component.
The name of the component.
The version of the component.
The description of the component.
The change description of the component.
The component type specifies whether Image Builder uses the component to build the image or only to test it.
The operating system platform of the component.
The operating system (OS) version supported by the component. If the OS information is available, Image Builder performs a prefix match against the base image OS version during image recipe creation.
Describes the current status of the component. This is used for components that are no longer active.
The current state of the component.
Describes how or why the component changed state.
Contains parameter details for each of the parameters that the component document defined for the component.
Defines a parameter that is used to provide configuration details for the component.
The name of this input parameter.
The type of input this parameter provides. The currently supported value is "string".
The default value of this parameter if no input is provided.
Describes this parameter.
The owner of the component.
Component data contains the YAML document content for the component.
The KMS key identifier used to encrypt the component.
The encryption status of the component.
The date that Image Builder created the component.
The tags that apply to the component.
Contains the name of the publisher if this is a third-party component. Otherwise, this property is empty.
Indicates whether component source is hidden from view in the console, and from component detail results for API, CLI, or SDK operations.
Exceptions
imagebuilder.Client.exceptions.ServiceException
imagebuilder.Client.exceptions.ClientException
imagebuilder.Client.exceptions.ServiceUnavailableException
imagebuilder.Client.exceptions.InvalidRequestException
imagebuilder.Client.exceptions.ForbiddenException
imagebuilder.Client.exceptions.CallRateLimitExceededException