publish_schema
async
¶
publish_schema(
development_schema_arn: Arn,
version: Version,
*,
config_overrides: Optional[AsyncCloudDirectoryClientConfig] = 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/async_cloud_directory.py
4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 | |