publish_type
¶
publish_type(
*,
config_overrides: Optional[CloudFormationClientConfig] = None,
type: Optional[ThirdPartyType] = None,
arn: Optional[PrivateTypeArn] = None,
type_name: Optional[TypeName] = None,
public_version_number: Optional[PublicVersionNumber] = None,
) -> PublishTypeOutput
Publishes the specified extension to the CloudFormation registry as a public extension in this Region. Public extensions are available for use by all CloudFormation users. For more information about publishing extensions, see Publishing extensions to make them available for public use in the CloudFormation Command Line Interface (CLI) User Guide.
To publish an extension, you must be registered as a publisher with CloudFormation. For more information, see RegisterPublisher.
Parameters:
-
type(Optional[ThirdPartyType], default:None) –The type of the extension.
Conditional: You must specify
Arn, orTypeNameandType. -
arn(Optional[PrivateTypeArn], default:None) –The Amazon Resource Name (ARN) of the extension.
Conditional: You must specify
Arn, orTypeNameandType. -
type_name(Optional[TypeName], default:None) –The name of the extension.
Conditional: You must specify
Arn, orTypeNameandType. -
public_version_number(Optional[PublicVersionNumber], default:None) –The version number to assign to this version of the extension.
Use the following format, and adhere to semantic versioning when assigning a version number to your extension:
MAJOR.MINOR.PATCHFor more information, see Semantic Versioning 2.0.0.
If you don't specify a version number, CloudFormation increments the version number by one minor version release.
You cannot specify a version number the first time you publish a type. CloudFormation automatically sets the first version number to be
1.0.0.
Raises:
-
CFNRegistryException–An error occurred during a CloudFormation registry operation.
-
TypeNotFoundException–The specified extension doesn't exist in the CloudFormation registry.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_cloudformation/_services/cloud_formation.py
5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 | |