import_snapshot
async
¶
import_snapshot(
snapshot_name: SnapshotV2Name,
import_source_configuration: ImportSourceConfiguration,
*,
config_overrides: Optional[AsyncKinesisAnalyticsV2ClientConfig] = None,
destination_encryption_configuration: Optional[
SnapshotEncryptionConfiguration
] = None,
snapshot_description: Optional[SnapshotV2Description] = None,
snapshot_format: Optional[SnapshotFormat] = None,
tags: Optional[Tags] = None,
) -> ImportSnapshotResponse
Imports an Apache Flink savepoint from an Amazon S3 location as an enhanced snapshot. Managed Service for Apache Flink assumes the IAM role that you specify in ImportSourceConfiguration to read the savepoint data.
This operation is asynchronous. The response returns the snapshot ARN with the CREATING status. To track the progress of the import, use DescribeSnapshotOperation.
For more information, see Import and export.
Parameters:
-
snapshot_name(SnapshotV2Name) –The name of the enhanced snapshot. The name must be unique among the snapshots in your account and Region. You can't reuse the name of an existing snapshot, including a snapshot in the
FAILEDstatus, until you delete that snapshot. Names that begin withSYSTEMSNAPSHOTare reserved. -
import_source_configuration(ImportSourceConfiguration) –Describes the location, IAM role, and encryption configuration of the savepoint data to import.
-
destination_encryption_configuration(Optional[SnapshotEncryptionConfiguration], default:None) –The encryption configuration of the imported snapshot. If you don't specify this parameter, the snapshot is encrypted using a key of type
AWS_OWNED_KEY. If you specify a KMS key, you must specify the key ARN. -
snapshot_description(Optional[SnapshotV2Description], default:None) –A summary description of the snapshot.
-
snapshot_format(Optional[SnapshotFormat], default:None) –The format of the snapshot being imported.
-
tags(Optional[Tags], default:None) –A list of one or more tags to assign to the snapshot. A tag is a key-value pair that identifies a snapshot. For more information, see Using Tagging.
Raises:
-
ConcurrentModificationException–Exception thrown as a result of concurrent modifications to an application or snapshot. This error can be the result of attempting to modify an application without using the current application ID.
-
InvalidArgumentException–The specified input parameter value is not valid.
-
LimitExceededException–The number of allowed resources has been exceeded.
-
ResourceInUseException–The application or snapshot is not available for this operation.
-
TooManyTagsException–Application created with too many tags, or too many tags added to an application. Note that the maximum number of application tags includes system tags. The maximum number of user-defined application tags is 50.
-
UnsupportedOperationException–The request was rejected because a specified parameter is not supported or a specified resource is not valid for this operation.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_kinesis_analytics_v2/_services/async_kinesis_analytics_v2.py
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 | |