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
5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 | |