update_facet
¶
update_facet(
schema_arn: Arn,
name: FacetName,
*,
config_overrides: Optional[CloudDirectoryClientConfig] = 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/cloud_directory.py
4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 | |