2024/10/25 - AWS Supply Chain - 5 updated api methods
Changes API doc updates, and also support showing error message on a failed instance
{'instance': {'errorMessage': 'string'}}
Enables you to programmatically create an Amazon Web Services Supply Chain instance by applying KMS keys and relevant information associated with the API without using the Amazon Web Services console.
This is an asynchronous operation. Upon receiving a CreateInstance request, Amazon Web Services Supply Chain immediately returns the instance resource, instance ID, and the initializing state while simultaneously creating all required Amazon Web Services resources for an instance creation. You can use GetInstance to check the status of the instance. If the instance results in an unhealthy state, you need to check the error message, delete the current instance, and recreate a new one based on the mitigation from the error message.
See also: AWS API Documentation
Request Syntax
client.create_instance( instanceName='string', instanceDescription='string', kmsKeyArn='string', tags={ 'string': 'string' }, clientToken='string' )
string
The AWS Supply Chain instance name.
string
The AWS Supply Chain instance description.
string
The ARN (Amazon Resource Name) of the Key Management Service (KMS) key you provide for encryption. This is required if you do not want to use the Amazon Web Services owned KMS key. If you don't provide anything here, AWS Supply Chain uses the Amazon Web Services owned KMS key.
dict
The Amazon Web Services tags of an instance to be created.
(string) --
(string) --
string
The client token for idempotency.
This field is autopopulated if not provided.
dict
Response Syntax
{ 'instance': { 'instanceId': 'string', 'awsAccountId': 'string', 'state': 'Initializing'|'Active'|'CreateFailed'|'DeleteFailed'|'Deleting'|'Deleted', 'errorMessage': 'string', 'webAppDnsDomain': 'string', 'createdTime': datetime(2015, 1, 1), 'lastModifiedTime': datetime(2015, 1, 1), 'instanceName': 'string', 'instanceDescription': 'string', 'kmsKeyArn': 'string', 'versionNumber': 123.0 } }
Response Structure
(dict) --
The response parameters for CreateInstance.
instance (dict) --
The AWS Supply Chain instance resource data details.
instanceId (string) --
The Amazon Web Services Supply Chain instance identifier.
awsAccountId (string) --
The Amazon Web Services account ID that owns the instance.
state (string) --
The state of the instance.
errorMessage (string) --
The Amazon Web Services Supply Chain instance error message. If the instance results in an unhealthy state, customers need to check the error message, delete the current instance, and recreate a new one based on the mitigation from the error message.
webAppDnsDomain (string) --
The WebApp DNS domain name of the instance.
createdTime (datetime) --
The instance creation timestamp.
lastModifiedTime (datetime) --
The instance last modified timestamp.
instanceName (string) --
The Amazon Web Services Supply Chain instance name.
instanceDescription (string) --
The Amazon Web Services Supply Chain instance description.
kmsKeyArn (string) --
The ARN (Amazon Resource Name) of the Key Management Service (KMS) key you optionally provided for encryption. If you did not provide anything here, AWS Supply Chain uses the Amazon Web Services owned KMS key and nothing is returned.
versionNumber (float) --
The version number of the instance.
{'instance': {'errorMessage': 'string'}}
Enables you to programmatically delete an Amazon Web Services Supply Chain instance by deleting the KMS keys and relevant information associated with the API without using the Amazon Web Services console.
This is an asynchronous operation. Upon receiving a DeleteInstance request, Amazon Web Services Supply Chain immediately returns a response with the instance resource, delete state while cleaning up all Amazon Web Services resources created during the instance creation process. You can use the GetInstance action to check the instance status.
See also: AWS API Documentation
Request Syntax
client.delete_instance( instanceId='string' )
string
[REQUIRED]
The AWS Supply Chain instance identifier.
dict
Response Syntax
{ 'instance': { 'instanceId': 'string', 'awsAccountId': 'string', 'state': 'Initializing'|'Active'|'CreateFailed'|'DeleteFailed'|'Deleting'|'Deleted', 'errorMessage': 'string', 'webAppDnsDomain': 'string', 'createdTime': datetime(2015, 1, 1), 'lastModifiedTime': datetime(2015, 1, 1), 'instanceName': 'string', 'instanceDescription': 'string', 'kmsKeyArn': 'string', 'versionNumber': 123.0 } }
Response Structure
(dict) --
The response parameters for DeleteInstance.
instance (dict) --
The AWS Supply Chain instance resource data details.
instanceId (string) --
The Amazon Web Services Supply Chain instance identifier.
awsAccountId (string) --
The Amazon Web Services account ID that owns the instance.
state (string) --
The state of the instance.
errorMessage (string) --
The Amazon Web Services Supply Chain instance error message. If the instance results in an unhealthy state, customers need to check the error message, delete the current instance, and recreate a new one based on the mitigation from the error message.
webAppDnsDomain (string) --
The WebApp DNS domain name of the instance.
createdTime (datetime) --
The instance creation timestamp.
lastModifiedTime (datetime) --
The instance last modified timestamp.
instanceName (string) --
The Amazon Web Services Supply Chain instance name.
instanceDescription (string) --
The Amazon Web Services Supply Chain instance description.
kmsKeyArn (string) --
The ARN (Amazon Resource Name) of the Key Management Service (KMS) key you optionally provided for encryption. If you did not provide anything here, AWS Supply Chain uses the Amazon Web Services owned KMS key and nothing is returned.
versionNumber (float) --
The version number of the instance.
{'instance': {'errorMessage': 'string'}}
Enables you to programmatically retrieve the information related to an Amazon Web Services Supply Chain instance ID.
See also: AWS API Documentation
Request Syntax
client.get_instance( instanceId='string' )
string
[REQUIRED]
The AWS Supply Chain instance identifier
dict
Response Syntax
{ 'instance': { 'instanceId': 'string', 'awsAccountId': 'string', 'state': 'Initializing'|'Active'|'CreateFailed'|'DeleteFailed'|'Deleting'|'Deleted', 'errorMessage': 'string', 'webAppDnsDomain': 'string', 'createdTime': datetime(2015, 1, 1), 'lastModifiedTime': datetime(2015, 1, 1), 'instanceName': 'string', 'instanceDescription': 'string', 'kmsKeyArn': 'string', 'versionNumber': 123.0 } }
Response Structure
(dict) --
The response parameters for GetInstance.
instance (dict) --
The instance resource data details.
instanceId (string) --
The Amazon Web Services Supply Chain instance identifier.
awsAccountId (string) --
The Amazon Web Services account ID that owns the instance.
state (string) --
The state of the instance.
errorMessage (string) --
The Amazon Web Services Supply Chain instance error message. If the instance results in an unhealthy state, customers need to check the error message, delete the current instance, and recreate a new one based on the mitigation from the error message.
webAppDnsDomain (string) --
The WebApp DNS domain name of the instance.
createdTime (datetime) --
The instance creation timestamp.
lastModifiedTime (datetime) --
The instance last modified timestamp.
instanceName (string) --
The Amazon Web Services Supply Chain instance name.
instanceDescription (string) --
The Amazon Web Services Supply Chain instance description.
kmsKeyArn (string) --
The ARN (Amazon Resource Name) of the Key Management Service (KMS) key you optionally provided for encryption. If you did not provide anything here, AWS Supply Chain uses the Amazon Web Services owned KMS key and nothing is returned.
versionNumber (float) --
The version number of the instance.
{'instances': {'errorMessage': 'string'}}
List all Amazon Web Services Supply Chain instances for a specific account. Enables you to programmatically list all Amazon Web Services Supply Chain instances based on their account ID, instance name, and state of the instance (active or delete).
See also: AWS API Documentation
Request Syntax
client.list_instances( nextToken='string', maxResults=123, instanceNameFilter=[ 'string', ], instanceStateFilter=[ 'Initializing'|'Active'|'CreateFailed'|'DeleteFailed'|'Deleting'|'Deleted', ] )
string
The pagination token to fetch the next page of instances.
integer
Specify the maximum number of instances to fetch in this paginated request.
list
The filter to ListInstances based on their names.
(string) --
list
The filter to ListInstances based on their state.
(string) --
dict
Response Syntax
{ 'instances': [ { 'instanceId': 'string', 'awsAccountId': 'string', 'state': 'Initializing'|'Active'|'CreateFailed'|'DeleteFailed'|'Deleting'|'Deleted', 'errorMessage': 'string', 'webAppDnsDomain': 'string', 'createdTime': datetime(2015, 1, 1), 'lastModifiedTime': datetime(2015, 1, 1), 'instanceName': 'string', 'instanceDescription': 'string', 'kmsKeyArn': 'string', 'versionNumber': 123.0 }, ], 'nextToken': 'string' }
Response Structure
(dict) --
The response parameters for ListInstances.
instances (list) --
The list of instances resource data details.
(dict) --
The details of the instance.
instanceId (string) --
The Amazon Web Services Supply Chain instance identifier.
awsAccountId (string) --
The Amazon Web Services account ID that owns the instance.
state (string) --
The state of the instance.
errorMessage (string) --
The Amazon Web Services Supply Chain instance error message. If the instance results in an unhealthy state, customers need to check the error message, delete the current instance, and recreate a new one based on the mitigation from the error message.
webAppDnsDomain (string) --
The WebApp DNS domain name of the instance.
createdTime (datetime) --
The instance creation timestamp.
lastModifiedTime (datetime) --
The instance last modified timestamp.
instanceName (string) --
The Amazon Web Services Supply Chain instance name.
instanceDescription (string) --
The Amazon Web Services Supply Chain instance description.
kmsKeyArn (string) --
The ARN (Amazon Resource Name) of the Key Management Service (KMS) key you optionally provided for encryption. If you did not provide anything here, AWS Supply Chain uses the Amazon Web Services owned KMS key and nothing is returned.
versionNumber (float) --
The version number of the instance.
nextToken (string) --
The pagination token to fetch the next page of instances.
{'instance': {'errorMessage': 'string'}}
Enables you to programmatically update an Amazon Web Services Supply Chain instance description by providing all the relevant information such as account ID, instance ID and so on without using the AWS console.
See also: AWS API Documentation
Request Syntax
client.update_instance( instanceId='string', instanceName='string', instanceDescription='string' )
string
[REQUIRED]
The AWS Supply Chain instance identifier.
string
The AWS Supply Chain instance name.
string
The AWS Supply Chain instance description.
dict
Response Syntax
{ 'instance': { 'instanceId': 'string', 'awsAccountId': 'string', 'state': 'Initializing'|'Active'|'CreateFailed'|'DeleteFailed'|'Deleting'|'Deleted', 'errorMessage': 'string', 'webAppDnsDomain': 'string', 'createdTime': datetime(2015, 1, 1), 'lastModifiedTime': datetime(2015, 1, 1), 'instanceName': 'string', 'instanceDescription': 'string', 'kmsKeyArn': 'string', 'versionNumber': 123.0 } }
Response Structure
(dict) --
The response parameters for UpdateInstance.
instance (dict) --
The instance resource data details.
instanceId (string) --
The Amazon Web Services Supply Chain instance identifier.
awsAccountId (string) --
The Amazon Web Services account ID that owns the instance.
state (string) --
The state of the instance.
errorMessage (string) --
The Amazon Web Services Supply Chain instance error message. If the instance results in an unhealthy state, customers need to check the error message, delete the current instance, and recreate a new one based on the mitigation from the error message.
webAppDnsDomain (string) --
The WebApp DNS domain name of the instance.
createdTime (datetime) --
The instance creation timestamp.
lastModifiedTime (datetime) --
The instance last modified timestamp.
instanceName (string) --
The Amazon Web Services Supply Chain instance name.
instanceDescription (string) --
The Amazon Web Services Supply Chain instance description.
kmsKeyArn (string) --
The ARN (Amazon Resource Name) of the Key Management Service (KMS) key you optionally provided for encryption. If you did not provide anything here, AWS Supply Chain uses the Amazon Web Services owned KMS key and nothing is returned.
versionNumber (float) --
The version number of the instance.