publish_schema
¶
publish_schema(
development_schema_arn: Arn,
version: Version,
*,
config_overrides: Optional[CloudDirectoryClientConfig] = None,
minor_version: Optional[Version] = None,
name: Optional[SchemaName] = None,
) -> PublishSchemaResponse
Publishes a development schema with a major version and a recommended minor version.
Parameters:
-
development_schema_arn(Arn) –The Amazon Resource Name (ARN) that is associated with the development schema. For more information, see arns.
-
version(Version) –The major version under which the schema will be published. Schemas have both a major and minor version associated with them.
-
minor_version(Optional[Version], default:None) –The minor version under which the schema will be published. This parameter is recommended. Schemas have both a major and minor version associated with them.
-
name(Optional[SchemaName], default:None) –The new name under which the schema will be published. If this is not provided, the development schema is considered.
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.
-
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.
-
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.
-
SchemaAlreadyPublishedException–Indicates that a schema is already published.
-
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
4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 | |