update_facet
async
¶
update_facet(
schema_arn: Arn,
name: FacetName,
*,
config_overrides: Optional[AsyncCloudDirectoryClientConfig] = None,
attribute_updates: Optional[FacetAttributeUpdateList] = None,
object_type: Optional[ObjectType] = None,
) -> UpdateFacetResponse
Does the following:
-
Adds new
Attributes,Rules, orObjectTypes. -
Updates existing
Attributes,Rules, orObjectTypes. -
Deletes existing
Attributes,Rules, orObjectTypes.
Parameters:
-
schema_arn(Arn) – -
name(FacetName) –The name of the facet.
-
attribute_updates(Optional[FacetAttributeUpdateList], default:None) –List of attributes that need to be updated in a given schema Facet. Each attribute is followed by
AttributeAction, which specifies the type of update operation to perform. -
object_type(Optional[ObjectType], default:None) –The object type that is associated with the facet. See CreateFacetRequest$ObjectType for more details.
Raises:
-
AccessDeniedException–Access denied or directory not found. Either you don't have permissions for this directory or the directory does not exist. Try calling ListDirectories and check your permissions.
-
FacetNotFoundException–The specified Facet could not be found.
-
FacetValidationException–The Facet that you provided was not well formed or could not be validated with the schema.
-
InternalServiceException–Indicates a problem that must be resolved by Amazon Web Services. This might be a transient error in which case you can retry your request until it succeeds. Otherwise, go to the AWS Service Health Dashboard site to see if there are any operational issues with the service.
-
InvalidArnException–Indicates that the provided ARN value is not valid.
-
InvalidFacetUpdateException–An attempt to modify a Facet resulted in an invalid schema exception.
-
InvalidRuleException–Occurs when any of the rule parameter keys or values are invalid.
-
LimitExceededException–Indicates that limits are exceeded. See Limits for more information.
-
ResourceNotFoundException–The specified resource could not be found.
-
RetryableConflictException–Occurs when a conflict with a previous successful write is detected. For example, if a write operation occurs on an object and then an attempt is made to read the object using “SERIALIZABLE” consistency, this exception may result. This generally occurs when the previous write did not have time to propagate to the host serving the current request. A retry (with appropriate backoff logic) is the recommended response to this exception.
-
ValidationException–Indicates that your request is malformed in some manner. See the exception message.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_clouddirectory/_services/async_cloud_directory.py
4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 | |