Copyright | (c) 2013-2021 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 |
Deletes one or more versions of a recipe at a time.
The entire request will be rejected if:
- The recipe does not exist.
- There is an invalid version identifier in the list of versions.
- The version list is empty.
- The version list size exceeds 50.
- The version list contains duplicate entries.
The request will complete successfully, but with partial failures, if:
- A version does not exist.
- A version is being used by a job.
- You specify
LATEST_WORKING
, but it's being used by a project. - The version fails to be deleted.
The LATEST_WORKING
version will only be deleted if the recipe has no
other versions. If you try to delete LATEST_WORKING
while other
versions exist (or if they can't be deleted), then LATEST_WORKING
will be listed as partial failure in the response.
Synopsis
- data BatchDeleteRecipeVersion = BatchDeleteRecipeVersion' {
- name :: Text
- recipeVersions :: NonEmpty Text
- newBatchDeleteRecipeVersion :: Text -> NonEmpty Text -> BatchDeleteRecipeVersion
- batchDeleteRecipeVersion_name :: Lens' BatchDeleteRecipeVersion Text
- batchDeleteRecipeVersion_recipeVersions :: Lens' BatchDeleteRecipeVersion (NonEmpty Text)
- data BatchDeleteRecipeVersionResponse = BatchDeleteRecipeVersionResponse' {
- errors :: Maybe [RecipeVersionErrorDetail]
- httpStatus :: Int
- name :: Text
- newBatchDeleteRecipeVersionResponse :: Int -> Text -> BatchDeleteRecipeVersionResponse
- batchDeleteRecipeVersionResponse_errors :: Lens' BatchDeleteRecipeVersionResponse (Maybe [RecipeVersionErrorDetail])
- batchDeleteRecipeVersionResponse_httpStatus :: Lens' BatchDeleteRecipeVersionResponse Int
- batchDeleteRecipeVersionResponse_name :: Lens' BatchDeleteRecipeVersionResponse Text
Creating a Request
data BatchDeleteRecipeVersion Source #
See: newBatchDeleteRecipeVersion
smart constructor.
BatchDeleteRecipeVersion' | |
|
Instances
newBatchDeleteRecipeVersion Source #
:: Text | |
-> NonEmpty Text | |
-> BatchDeleteRecipeVersion |
Create a value of BatchDeleteRecipeVersion
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:name:BatchDeleteRecipeVersion'
, batchDeleteRecipeVersion_name
- The name of the recipe whose versions are to be deleted.
$sel:recipeVersions:BatchDeleteRecipeVersion'
, batchDeleteRecipeVersion_recipeVersions
- An array of version identifiers, for the recipe versions to be deleted.
You can specify numeric versions (X.Y
) or LATEST_WORKING
.
LATEST_PUBLISHED
is not supported.
Request Lenses
batchDeleteRecipeVersion_name :: Lens' BatchDeleteRecipeVersion Text Source #
The name of the recipe whose versions are to be deleted.
batchDeleteRecipeVersion_recipeVersions :: Lens' BatchDeleteRecipeVersion (NonEmpty Text) Source #
An array of version identifiers, for the recipe versions to be deleted.
You can specify numeric versions (X.Y
) or LATEST_WORKING
.
LATEST_PUBLISHED
is not supported.
Destructuring the Response
data BatchDeleteRecipeVersionResponse Source #
See: newBatchDeleteRecipeVersionResponse
smart constructor.
BatchDeleteRecipeVersionResponse' | |
|
Instances
newBatchDeleteRecipeVersionResponse Source #
Create a value of BatchDeleteRecipeVersionResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:errors:BatchDeleteRecipeVersionResponse'
, batchDeleteRecipeVersionResponse_errors
- Errors, if any, that occurred while attempting to delete the recipe
versions.
$sel:httpStatus:BatchDeleteRecipeVersionResponse'
, batchDeleteRecipeVersionResponse_httpStatus
- The response's http status code.
$sel:name:BatchDeleteRecipeVersion'
, batchDeleteRecipeVersionResponse_name
- The name of the recipe that was modified.
Response Lenses
batchDeleteRecipeVersionResponse_errors :: Lens' BatchDeleteRecipeVersionResponse (Maybe [RecipeVersionErrorDetail]) Source #
Errors, if any, that occurred while attempting to delete the recipe versions.
batchDeleteRecipeVersionResponse_httpStatus :: Lens' BatchDeleteRecipeVersionResponse Int Source #
The response's http status code.
batchDeleteRecipeVersionResponse_name :: Lens' BatchDeleteRecipeVersionResponse Text Source #
The name of the recipe that was modified.