libZSservicesZSamazonka-databrewZSamazonka-databrew
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.DataBrew.BatchDeleteRecipeVersion

Description

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

Creating a Request

data BatchDeleteRecipeVersion Source #

See: newBatchDeleteRecipeVersion smart constructor.

Constructors

BatchDeleteRecipeVersion' 

Fields

  • name :: Text

    The name of the recipe whose versions are to be deleted.

  • recipeVersions :: NonEmpty Text

    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.

Instances

Instances details
Eq BatchDeleteRecipeVersion Source # 
Instance details

Defined in Amazonka.DataBrew.BatchDeleteRecipeVersion

Read BatchDeleteRecipeVersion Source # 
Instance details

Defined in Amazonka.DataBrew.BatchDeleteRecipeVersion

Show BatchDeleteRecipeVersion Source # 
Instance details

Defined in Amazonka.DataBrew.BatchDeleteRecipeVersion

Generic BatchDeleteRecipeVersion Source # 
Instance details

Defined in Amazonka.DataBrew.BatchDeleteRecipeVersion

Associated Types

type Rep BatchDeleteRecipeVersion :: Type -> Type #

NFData BatchDeleteRecipeVersion Source # 
Instance details

Defined in Amazonka.DataBrew.BatchDeleteRecipeVersion

Hashable BatchDeleteRecipeVersion Source # 
Instance details

Defined in Amazonka.DataBrew.BatchDeleteRecipeVersion

ToJSON BatchDeleteRecipeVersion Source # 
Instance details

Defined in Amazonka.DataBrew.BatchDeleteRecipeVersion

AWSRequest BatchDeleteRecipeVersion Source # 
Instance details

Defined in Amazonka.DataBrew.BatchDeleteRecipeVersion

ToHeaders BatchDeleteRecipeVersion Source # 
Instance details

Defined in Amazonka.DataBrew.BatchDeleteRecipeVersion

ToPath BatchDeleteRecipeVersion Source # 
Instance details

Defined in Amazonka.DataBrew.BatchDeleteRecipeVersion

ToQuery BatchDeleteRecipeVersion Source # 
Instance details

Defined in Amazonka.DataBrew.BatchDeleteRecipeVersion

type Rep BatchDeleteRecipeVersion Source # 
Instance details

Defined in Amazonka.DataBrew.BatchDeleteRecipeVersion

type Rep BatchDeleteRecipeVersion = D1 ('MetaData "BatchDeleteRecipeVersion" "Amazonka.DataBrew.BatchDeleteRecipeVersion" "libZSservicesZSamazonka-databrewZSamazonka-databrew" 'False) (C1 ('MetaCons "BatchDeleteRecipeVersion'" 'PrefixI 'True) (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "recipeVersions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (NonEmpty Text))))
type AWSResponse BatchDeleteRecipeVersion Source # 
Instance details

Defined in Amazonka.DataBrew.BatchDeleteRecipeVersion

newBatchDeleteRecipeVersion Source #

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.

Constructors

BatchDeleteRecipeVersionResponse' 

Fields

Instances

Instances details
Eq BatchDeleteRecipeVersionResponse Source # 
Instance details

Defined in Amazonka.DataBrew.BatchDeleteRecipeVersion

Read BatchDeleteRecipeVersionResponse Source # 
Instance details

Defined in Amazonka.DataBrew.BatchDeleteRecipeVersion

Show BatchDeleteRecipeVersionResponse Source # 
Instance details

Defined in Amazonka.DataBrew.BatchDeleteRecipeVersion

Generic BatchDeleteRecipeVersionResponse Source # 
Instance details

Defined in Amazonka.DataBrew.BatchDeleteRecipeVersion

Associated Types

type Rep BatchDeleteRecipeVersionResponse :: Type -> Type #

NFData BatchDeleteRecipeVersionResponse Source # 
Instance details

Defined in Amazonka.DataBrew.BatchDeleteRecipeVersion

type Rep BatchDeleteRecipeVersionResponse Source # 
Instance details

Defined in Amazonka.DataBrew.BatchDeleteRecipeVersion

type Rep BatchDeleteRecipeVersionResponse = D1 ('MetaData "BatchDeleteRecipeVersionResponse" "Amazonka.DataBrew.BatchDeleteRecipeVersion" "libZSservicesZSamazonka-databrewZSamazonka-databrew" 'False) (C1 ('MetaCons "BatchDeleteRecipeVersionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "errors") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [RecipeVersionErrorDetail])) :*: (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

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.