2020/05/14 - EC2 Image Builder - 4 updated api methods
Changes This release adds a new parameter (SupportedOsVersions) to the Components API. This parameter lists the OS versions supported by a component.
{'supportedOsVersions': ['string']}
Creates a new component that can be used to build, validate, test, and assess your image.
See also: AWS API Documentation
Request Syntax
client.create_component( name='string', semanticVersion='string', description='string', changeDescription='string', platform='Windows'|'Linux', supportedOsVersions=[ 'string', ], data='string', uri='string', kmsKeyId='string', tags={ 'string': 'string' }, clientToken='string' )
string
[REQUIRED]
The name of the component.
string
[REQUIRED]
The semantic version of the component. This version follows the semantic version syntax. For example, major.minor.patch. This could be versioned like software (2.0.1) or like a date (2019.12.01).
string
The description of the component. Describes the contents of the component.
string
The change description of the component. Describes what change has been made in this version, or what makes this version different from other versions of this component.
string
[REQUIRED]
The platform of the component.
list
The operating system (OS) version supported by the component. If the OS information is available, a prefix match is performed against the parent image OS version during image recipe creation.
(string) --
string
The data of the component. Used to specify the data inline. Either data or uri can be used to specify the data within the component.
string
The uri of the component. Must be an S3 URL and the requester must have permission to access the S3 bucket. If you use S3, you can specify component content up to your service quota. Either data or uri can be used to specify the data within the component.
string
The ID of the KMS key that should be used to encrypt this component.
dict
The tags of the component.
(string) --
(string) --
string
[REQUIRED]
The idempotency token of the component.
This field is autopopulated if not provided.
dict
Response Syntax
{ 'requestId': 'string', 'clientToken': 'string', 'componentBuildVersionArn': 'string' }
Response Structure
(dict) --
requestId (string) --
The request ID that uniquely identifies this request.
clientToken (string) --
The idempotency token used to make this request idempotent.
componentBuildVersionArn (string) --
The Amazon Resource Name (ARN) of the component that was created by this request.
{'component': {'supportedOsVersions': ['string']}}
Gets a component object.
See also: AWS API Documentation
Request Syntax
client.get_component( componentBuildVersionArn='string' )
string
[REQUIRED]
The Amazon Resource Name (ARN) of the component that you want to retrieve. Regex requires "/d+$" suffix.
dict
Response Syntax
{ 'requestId': 'string', 'component': { 'arn': 'string', 'name': 'string', 'version': 'string', 'description': 'string', 'changeDescription': 'string', 'type': 'BUILD'|'TEST', 'platform': 'Windows'|'Linux', 'supportedOsVersions': [ 'string', ], 'owner': 'string', 'data': 'string', 'kmsKeyId': 'string', 'encrypted': True|False, 'dateCreated': 'string', 'tags': { 'string': 'string' } } }
Response Structure
(dict) --
requestId (string) --
The request ID that uniquely identifies this request.
component (dict) --
The component object associated with the specified ARN.
arn (string) --
The Amazon Resource Name (ARN) of the component.
name (string) --
The name of the component.
version (string) --
The version of the component.
description (string) --
The description of the component.
changeDescription (string) --
The change description of the component.
type (string) --
The type of the component denotes whether the component is used to build the image or only to test it.
platform (string) --
The platform of the component.
supportedOsVersions (list) --
The operating system (OS) version supported by the component. If the OS information is available, a prefix match is performed against the parent image OS version during image recipe creation.
(string) --
owner (string) --
The owner of the component.
data (string) --
The data of the component.
kmsKeyId (string) --
The KMS key identifier used to encrypt the component.
encrypted (boolean) --
The encryption status of the component.
dateCreated (string) --
The date that the component was created.
tags (dict) --
The tags associated with the component.
(string) --
(string) --
{'componentSummaryList': {'supportedOsVersions': ['string']}}
Returns the list of component build versions for the specified semantic version.
See also: AWS API Documentation
Request Syntax
client.list_component_build_versions( componentVersionArn='string', maxResults=123, nextToken='string' )
string
[REQUIRED]
The component version Amazon Resource Name (ARN) whose versions you want to list.
integer
The maximum items to return in a request.
string
A token to specify where to start paginating. This is the NextToken from a previously truncated response.
dict
Response Syntax
{ 'requestId': 'string', 'componentSummaryList': [ { 'arn': 'string', 'name': 'string', 'version': 'string', 'platform': 'Windows'|'Linux', 'supportedOsVersions': [ 'string', ], 'type': 'BUILD'|'TEST', 'owner': 'string', 'description': 'string', 'changeDescription': 'string', 'dateCreated': 'string', 'tags': { 'string': 'string' } }, ], 'nextToken': 'string' }
Response Structure
(dict) --
requestId (string) --
The request ID that uniquely identifies this request.
componentSummaryList (list) --
The list of component summaries for the specified semantic version.
(dict) --
A high-level summary of a component.
arn (string) --
The Amazon Resource Name (ARN) of the component.
name (string) --
The name of the component.
version (string) --
The version of the component.
platform (string) --
The platform of the component.
supportedOsVersions (list) --
The operating system (OS) version supported by the component. If the OS information is available, a prefix match is performed against the parent image OS version during image recipe creation.
(string) --
type (string) --
The type of the component denotes whether the component is used to build the image or only to test it.
owner (string) --
The owner of the component.
description (string) --
The description of the component.
changeDescription (string) --
The change description of the component.
dateCreated (string) --
The date that the component was created.
tags (dict) --
The tags associated with the component.
(string) --
(string) --
nextToken (string) --
The next token used for paginated responses. When this is not empty, there are additional elements that the service has not included in this request. Use this token with the next request to retrieve additional objects.
{'componentVersionList': {'supportedOsVersions': ['string']}}
Returns the list of component build versions for the specified semantic version.
See also: AWS API Documentation
Request Syntax
client.list_components( owner='Self'|'Shared'|'Amazon', filters=[ { 'name': 'string', 'values': [ 'string', ] }, ], maxResults=123, nextToken='string' )
string
The owner defines which components you want to list. By default, this request will only show components owned by your account. You can use this field to specify if you want to view components owned by yourself, by Amazon, or those components that have been shared with you by other customers.
list
The filters.
(dict) --
A filter name and value pair that is used to return a more specific list of results from a list operation. Filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs.
name (string) --
The name of the filter. Filter names are case-sensitive.
values (list) --
The filter values. Filter values are case-sensitive.
(string) --
integer
The maximum items to return in a request.
string
A token to specify where to start paginating. This is the NextToken from a previously truncated response.
dict
Response Syntax
{ 'requestId': 'string', 'componentVersionList': [ { 'arn': 'string', 'name': 'string', 'version': 'string', 'description': 'string', 'platform': 'Windows'|'Linux', 'supportedOsVersions': [ 'string', ], 'type': 'BUILD'|'TEST', 'owner': 'string', 'dateCreated': 'string' }, ], 'nextToken': 'string' }
Response Structure
(dict) --
requestId (string) --
The request ID that uniquely identifies this request.
componentVersionList (list) --
The list of component semantic versions.
(dict) --
A high-level overview of a component semantic version.
arn (string) --
The Amazon Resource Name (ARN) of the component.
name (string) --
The name of the component.
version (string) --
The semantic version of the component.
description (string) --
The description of the component.
platform (string) --
The platform of the component.
supportedOsVersions (list) --
The operating system (OS) version supported by the component. If the OS information is available, a prefix match is performed against the parent image OS version during image recipe creation.
(string) --
type (string) --
The type of the component denotes whether the component is used to build the image or only to test it.
owner (string) --
The owner of the component.
dateCreated (string) --
The date that the component was created.
nextToken (string) --
The next token used for paginated responses. When this is not empty, there are additional elements that the service has not included in this request. Use this token with the next request to retrieve additional objects.