update_facet
(**kwargs)¶Does the following:
Attributes
, Rules
, or ObjectTypes
.Attributes
, Rules
, or ObjectTypes
.Attributes
, Rules
, or ObjectTypes
.See also: AWS API Documentation
Request Syntax
response = client.update_facet(
SchemaArn='string',
Name='string',
AttributeUpdates=[
{
'Attribute': {
'Name': 'string',
'AttributeDefinition': {
'Type': 'STRING'|'BINARY'|'BOOLEAN'|'NUMBER'|'DATETIME'|'VARIANT',
'DefaultValue': {
'StringValue': 'string',
'BinaryValue': b'bytes',
'BooleanValue': True|False,
'NumberValue': 'string',
'DatetimeValue': datetime(2015, 1, 1)
},
'IsImmutable': True|False,
'Rules': {
'string': {
'Type': 'BINARY_LENGTH'|'NUMBER_COMPARISON'|'STRING_FROM_SET'|'STRING_LENGTH',
'Parameters': {
'string': 'string'
}
}
}
},
'AttributeReference': {
'TargetFacetName': 'string',
'TargetAttributeName': 'string'
},
'RequiredBehavior': 'REQUIRED_ALWAYS'|'NOT_REQUIRED'
},
'Action': 'CREATE_OR_UPDATE'|'DELETE'
},
],
ObjectType='NODE'|'LEAF_NODE'|'POLICY'|'INDEX'
)
[REQUIRED]
The Amazon Resource Name (ARN) that is associated with the Facet. For more information, see arns.
[REQUIRED]
The name of the facet.
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.
A structure that contains information used to update an attribute.
The attribute to update.
The name of the facet attribute.
A facet attribute consists of either a definition or a reference. This structure contains the attribute definition. See Attribute References for more information.
The type of the attribute.
The default value of the attribute (if configured).
A string data value.
A binary data value.
A Boolean data value.
A number data value.
A date and time value.
Whether the attribute is mutable or not.
Validation rules attached to the attribute definition.
Contains an Amazon Resource Name (ARN) and parameters that are associated with the rule.
The type of attribute validation rule.
The minimum and maximum parameters that are associated with the rule.
An attribute reference that is associated with the attribute. See Attribute References for more information.
The target facet name that is associated with the facet reference. See Attribute References for more information.
The target attribute name that is associated with the facet reference. See Attribute References for more information.
The required behavior of the FacetAttribute
.
The action to perform when updating the attribute.
dict
Response Syntax
{}
Response Structure
Exceptions
CloudDirectory.Client.exceptions.InternalServiceException
CloudDirectory.Client.exceptions.InvalidArnException
CloudDirectory.Client.exceptions.RetryableConflictException
CloudDirectory.Client.exceptions.ValidationException
CloudDirectory.Client.exceptions.LimitExceededException
CloudDirectory.Client.exceptions.AccessDeniedException
CloudDirectory.Client.exceptions.InvalidFacetUpdateException
CloudDirectory.Client.exceptions.FacetValidationException
CloudDirectory.Client.exceptions.ResourceNotFoundException
CloudDirectory.Client.exceptions.FacetNotFoundException
CloudDirectory.Client.exceptions.InvalidRuleException