update_capability
¶
update_capability(
capability_id: CapabilityId,
*,
config_overrides: Optional[b2biClientConfig] = None,
name: Optional[CapabilityName] = None,
configuration: Optional[CapabilityConfiguration] = None,
instructions_documents: Optional[InstructionsDocuments] = None,
) -> UpdateCapabilityResponse
Updates some of the parameters for a capability, based on the specified parameters. A trading capability contains the information required to transform incoming EDI documents into JSON or XML outputs.
Parameters:
-
capability_id(CapabilityId) –Specifies a system-assigned unique identifier for the capability.
-
name(Optional[CapabilityName], default:None) –Specifies a new name for the capability, to replace the existing name.
-
configuration(Optional[CapabilityConfiguration], default:None) –Specifies a structure that contains the details for a capability.
-
instructions_documents(Optional[InstructionsDocuments], default:None) –Specifies one or more locations in Amazon S3, each specifying an EDI document that can be used with this capability. Each item contains the name of the bucket and the key, to identify the document's location.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ConflictException–A conflict exception is thrown when you attempt to delete a resource (such as a profile or a capability) that is being used by other resources.
-
InternalServerException–This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.
-
ResourceNotFoundException–Occurs when the requested resource does not exist, or cannot be found. In some cases, the resource exists in a region other than the region specified in the API call.
-
ServiceQuotaExceededException–Occurs when the calling command attempts to exceed one of the service quotas, for example trying to create a capability when you already have the maximum number of capabilities allowed.
-
ThrottlingException–The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions.
-
ValidationException–Occurs when a B2BI object cannot be validated against a request from another object. This exception can be thrown during standard EDI validation or when custom validation rules fail, such as when element length constraints are violated, invalid codes are used in code list validations, or required elements are missing based on configured element requirement rules.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Sample UpdateCapability call
>>> client.update_capability(capability_id='ca-963a8121e4fc4e348', name='b2biexample', instructions_documents=[{'bucketName': 'test-bucket', 'key': 'instructiondoc.txt'}], configuration={'edi': {'type': {'x12Details': {'transactionSet': 'X12_110', 'version': 'VERSION_4010'}}, 'inputLocation': {'bucketName': 'test-bucket', 'key': 'input/'}, 'outputLocation': {'bucketName': 'test-bucket', 'key': 'output/'}, 'transformerId': 'tr-9a893cf536df4658b'}})
Source code in docs_src/capo_b2bi/_services/b2bi.py
981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 | |