create_registry
¶
create_registry(
name: RegistryName,
*,
config_overrides: Optional[AgentRegistryControlClientConfig] = None,
description: Optional[Description] = None,
encryption_configuration: Optional[EncryptionConfiguration] = None,
discovery_configuration: Optional[DiscoveryConfiguration] = None,
client_token: Optional[ClientToken] = None,
tags: Optional[TagsMap] = None,
approval_configuration: Optional[ApprovalConfiguration] = None,
custom_metadata_schema_configuration: Optional[
CustomMetadataSchemaConfiguration
] = None,
auto_detection_configuration: Optional[AutoDetectionConfiguration] = None,
record_visibility_configuration: Optional[
RecordVisibilityConfigurationDocument
] = None,
) -> CreateRegistryResponse
Creates a new registry, a catalog that organizes registry records and defines their discovery authorization and record approval behavior. Creation is asynchronous: the registry begins in the CREATING status and becomes usable once it reaches READY.
Parameters:
-
name(RegistryName) –The name of the registry
-
description(Optional[Description], default:None) –The description of the registry
-
encryption_configuration(Optional[EncryptionConfiguration], default:None) –The optional server-side encryption configuration for the registry. When you provide this field, the specified customer-managed Amazon Web Services KMS key encrypts the registry's content. Omit this field to use an Amazon Web Services-owned encryption key. You cannot change the encryption configuration after registry creation.
-
discovery_configuration(Optional[DiscoveryConfiguration], default:None) –Discovery configuration for the registry
-
client_token(Optional[ClientToken], default:None) –A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, the service ignores the request, but does not return an error.
-
tags(Optional[TagsMap], default:None) –Tags to associate with the registry
-
approval_configuration(Optional[ApprovalConfiguration], default:None) –Approval configuration for registry records
-
custom_metadata_schema_configuration(Optional[CustomMetadataSchemaConfiguration], default:None) –The optional custom metadata schema configuration for the registry. When provided, registry records can carry structured metadata validated against this schema.
-
auto_detection_configuration(Optional[AutoDetectionConfiguration], default:None) –The optional auto-detection configuration for the registry. When provided, the registry is automatically populated with resources discovered according to the configuration. Omit this field for registries whose records are managed exclusively through the Agent Registry Control API.
-
record_visibility_configuration(Optional[RecordVisibilityConfigurationDocument], default:None) –The registry's record visibility configuration, as a stringified JSON object. It controls which records each caller can discover. To use this field, you must also have the
agent-registry:PutRecordVisibilityConfigurationpermission onregistry/*.
Raises:
-
AccessDeniedException–The caller is not authorized to perform the requested action.
-
ConflictException–The request conflicts with the current state of the resource.
-
InternalServerException–The request failed due to an unexpected internal error; the caller may retry.
-
ServiceQuotaExceededException–The request would exceed a service quota.
-
ThrottlingException–The request was denied due to request throttling; the caller may retry after a delay.
-
ValidationException–The request failed validation of one or more input fields.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_agent_registry_control/_services/agent_registry_control.py
1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 | |