update_microvm_image
¶
update_microvm_image(
base_image_arn: NonBlankString,
build_role_arn: RoleArn,
code_artifact: CodeArtifact,
image_identifier: MicrovmImageIdentifier,
*,
config_overrides: Optional[LambdaMicrovmsClientConfig] = None,
base_image_version: Optional[Version] = None,
description: Optional[str] = None,
logging: Optional[Logging] = None,
egress_network_connectors: Optional[NetworkConnectorList] = None,
cpu_configurations: Optional[CpuConfigurationList] = None,
resources: Optional[ResourcesList] = None,
additional_os_capabilities: Optional[CapabilityList] = None,
hooks: Optional[Hooks] = None,
environment_variables: Optional[EnvironmentVariableMap] = None,
client_token: Optional[str] = None,
) -> UpdateMicrovmImageResponse
Updates the configuration of a MicroVM image and triggers a new version build. This operation uses PUT semantics — all required fields (codeArtifact, baseImageArn, buildRoleArn) must be provided with every request.
Parameters:
-
base_image_arn(NonBlankString) –The ARN of the base MicroVM image.
-
base_image_version(Optional[Version], default:None) –The specific version of the base MicroVM image to use.
-
build_role_arn(RoleArn) –The ARN of the IAM build role.
-
description(Optional[str], default:None) –The description of the MicroVM image.
-
code_artifact(CodeArtifact) –The code artifact containing the application code and metadata for the MicroVM image.
-
logging(Optional[Logging], default:None) –The logging configuration for build-time and runtime logs. Specify {"cloudWatch": {"logGroup": "..."}} to stream logs to a custom CloudWatch log group, or {"disabled": {}} to turn off logging.
-
egress_network_connectors(Optional[NetworkConnectorList], default:None) –The list of egress network connectors available to the MicroVM at runtime.
-
cpu_configurations(Optional[CpuConfigurationList], default:None) –The list of supported CPU configurations for the MicroVM.
-
resources(Optional[ResourcesList], default:None) –The resource requirements for the MicroVM.
-
additional_os_capabilities(Optional[CapabilityList], default:None) –Additional OS capabilities granted to the MicroVM runtime environment.
-
environment_variables(Optional[EnvironmentVariableMap], default:None) –Environment variables set in the MicroVM runtime environment.
-
image_identifier(MicrovmImageIdentifier) –The unique identifier (ARN or ID) of the MicroVM image to update.
-
client_token(Optional[str], default:None) –A unique, case-sensitive identifier you provide to ensure the idempotency of the request.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
InternalServerException–An internal server error occurred. Retry the request later.
-
ThrottlingException–The request was denied due to request throttling. Retry the request later.
-
ValidationException–The input does not satisfy the constraints specified by the service.
-
ConflictException–The request could not be completed due to a conflict with the current state of the resource.
-
ResourceNotFoundException–The specified resource does not exist.
-
ServiceQuotaExceededException–You have exceeded a service quota for Lambda MicroVMs.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_lambda_microvms/_services/lambda_microvms.py
1766 1767 1768 1769 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 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 | |