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
2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 | |