| Copyright | (c) 2013-2018 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.AWS.Snowball.UpdateJob
Description
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.
Synopsis
- updateJob :: Text -> UpdateJob
- data UpdateJob
- ujNotification :: Lens' UpdateJob (Maybe Notification)
- ujForwardingAddressId :: Lens' UpdateJob (Maybe Text)
- ujAddressId :: Lens' UpdateJob (Maybe Text)
- ujShippingOption :: Lens' UpdateJob (Maybe ShippingOption)
- ujResources :: Lens' UpdateJob (Maybe JobResource)
- ujDescription :: Lens' UpdateJob (Maybe Text)
- ujRoleARN :: Lens' UpdateJob (Maybe Text)
- ujSnowballCapacityPreference :: Lens' UpdateJob (Maybe SnowballCapacity)
- ujJobId :: Lens' UpdateJob Text
- updateJobResponse :: Int -> UpdateJobResponse
- data UpdateJobResponse
- ujrsResponseStatus :: Lens' UpdateJobResponse Int
Creating a Request
Creates a value of UpdateJob with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ujNotification- The new or updatedNotificationobject.ujForwardingAddressId- The updated ID for the forwarding address for a job. This field is not supported in most regions.ujAddressId- The ID of the updatedAddressobject.ujShippingOption- The updated shipping option value of this job'sShippingDetailsobject.ujResources- The updatedS3Resourceobject (for a single Amazon S3 bucket or key range), or the updatedJobResourceobject (for multiple buckets or key ranges).ujDescription- The updated description of this job'sJobMetadataobject.ujRoleARN- The new role Amazon Resource Name (ARN) that you want to associate with this job. To create a role ARN, use the CreateRole AWS Identity and Access Management (IAM) API action.ujSnowballCapacityPreference- The updatedSnowballCapacityPreferenceof this job'sJobMetadataobject. The 50 TB Snowballs are only available in the US regions.ujJobId- The job ID of the job that you want to update, for exampleJID123e4567-e89b-12d3-a456-426655440000.
See: updateJob smart constructor.
Instances
Request Lenses
ujNotification :: Lens' UpdateJob (Maybe Notification) Source #
The new or updated Notification object.
ujForwardingAddressId :: Lens' UpdateJob (Maybe Text) Source #
The updated ID for the forwarding address for a job. This field is not supported in most regions.
ujShippingOption :: Lens' UpdateJob (Maybe ShippingOption) Source #
The updated shipping option value of this job's ShippingDetails object.
ujResources :: Lens' UpdateJob (Maybe JobResource) Source #
The updated S3Resource object (for a single Amazon S3 bucket or key range), or the updated JobResource object (for multiple buckets or key ranges).
ujDescription :: Lens' UpdateJob (Maybe Text) Source #
The updated description of this job's JobMetadata object.
ujRoleARN :: Lens' UpdateJob (Maybe Text) Source #
The new role Amazon Resource Name (ARN) that you want to associate with this job. To create a role ARN, use the CreateRole AWS Identity and Access Management (IAM) API action.
ujSnowballCapacityPreference :: Lens' UpdateJob (Maybe SnowballCapacity) Source #
The updated SnowballCapacityPreference of this job's JobMetadata object. The 50 TB Snowballs are only available in the US regions.
ujJobId :: Lens' UpdateJob Text Source #
The job ID of the job that you want to update, for example JID123e4567-e89b-12d3-a456-426655440000 .
Destructuring the Response
Arguments
| :: Int | |
| -> UpdateJobResponse |
Creates a value of UpdateJobResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ujrsResponseStatus- -- | The response status code.
data UpdateJobResponse Source #
See: updateJobResponse smart constructor.
Instances
Response Lenses
ujrsResponseStatus :: Lens' UpdateJobResponse Int Source #
- - | The response status code.