update_job
async
¶
update_job(
job_id: JobId,
*,
config_overrides: Optional[AsyncSnowballClientConfig] = None,
role_arn: Optional[RoleARN] = None,
notification: Optional[Notification] = None,
resources: Optional[JobResource] = None,
on_device_service_configuration: Optional[OnDeviceServiceConfiguration] = None,
address_id: Optional[AddressId] = None,
shipping_option: Optional[ShippingOption] = None,
description: Optional[String] = None,
snowball_capacity_preference: Optional[SnowballCapacity] = None,
forwarding_address_id: Optional[AddressId] = None,
pickup_details: Optional[PickupDetails] = None,
) -> UpdateJobResult
While a job's JobState value is New, you can update some of the information associated with a job. Once the job changes to a different job state, usually within 60 minutes of the job being created, this action is no longer available.
Parameters:
-
job_id(JobId) –The job ID of the job that you want to update, for example
JID123e4567-e89b-12d3-a456-426655440000. -
role_arn(Optional[RoleARN], default:None) –The new role Amazon Resource Name (ARN) that you want to associate with this job. To create a role ARN, use the CreateRoleIdentity and Access Management (IAM) API action.
-
notification(Optional[Notification], default:None) –The new or updated Notification object.
-
resources(Optional[JobResource], default:None) –The updated
JobResourceobject, or the updated JobResource object. -
on_device_service_configuration(Optional[OnDeviceServiceConfiguration], default:None) –Specifies the service or services on the Snow Family device that your transferred data will be exported from or imported into. Amazon Web Services Snow Family supports Amazon S3 and NFS (Network File System) and the Amazon Web Services Storage Gateway service Tape Gateway type.
-
address_id(Optional[AddressId], default:None) –The ID of the updated Address object.
-
shipping_option(Optional[ShippingOption], default:None) –The updated shipping option value of this job's ShippingDetails object.
-
description(Optional[String], default:None) –The updated description of this job's JobMetadata object.
-
snowball_capacity_preference(Optional[SnowballCapacity], default:None) –The updated
SnowballCapacityPreferenceof this job's JobMetadata object. The 50 TB Snowballs are only available in the US regions.For more information, see "https://docs.aws.amazon.com/snowball/latest/snowcone-guide/snow-device-types.html" (Snow Family Devices and Capacity) in the Snowcone User Guide or "https://docs.aws.amazon.com/snowball/latest/developer-guide/snow-device-types.html" (Snow Family Devices and Capacity) in the Snowcone User Guide.
-
forwarding_address_id(Optional[AddressId], default:None) –The updated ID for the forwarding address for a job. This field is not supported in most regions.
Raises:
-
ClusterLimitExceededException–Job creation failed. Currently, clusters support five nodes. If you have fewer than five nodes for your cluster and you have more nodes to create for this cluster, try again and create jobs until your cluster has exactly five nodes.
-
Ec2RequestFailedException–Your user lacks the necessary Amazon EC2 permissions to perform the attempted action.
-
InvalidInputCombinationException–Job or cluster creation failed. One or more inputs were invalid. Confirm that the CreateClusterRequest$SnowballType value supports your CreateJobRequest$JobType, and try again.
-
InvalidJobStateException–The action can't be performed because the job's current state doesn't allow that action to be performed.
-
InvalidResourceException–The specified resource can't be found. Check the information you provided in your last request, and try again.
-
KMSRequestFailedException– -
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To update a job This action allows you to update certain parameters for a job. Once the job changes to a different job state, usually within 60 minutes of the job being created, this action is no longer available.
>>> await client.update_job(job_id='JID123e4567-e89b-12d3-a456-426655440000', address_id='ADID1234ab12-3eec-4eb3-9be6-9374c10eb51b', shipping_option='NEXT_DAY', description='updated-job-name', snowball_capacity_preference='T100')
Source code in docs_src/capo_snowball/_services/async_snowball.py
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 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 | |