update_job
¶
update_job(
job_id: JobId,
*,
config_overrides: Optional[SnowballClientConfig] = 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.
>>> 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/snowball.py
2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 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 | |