Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Permanently deletes a SizeConstraintSet. You can't delete a SizeConstraintSet
if it's still used in any Rules
or if it still includes any SizeConstraint objects (any filters).
If you just want to remove a SizeConstraintSet
from a Rule
, use UpdateRule.
To permanently delete a SizeConstraintSet
, perform the following steps:
- Update the
SizeConstraintSet
to remove filters, if any. For more information, see UpdateSizeConstraintSet. - Use GetChangeToken to get the change token that you provide in the
ChangeToken
parameter of aDeleteSizeConstraintSet
request. - Submit a
DeleteSizeConstraintSet
request.
- deleteSizeConstraintSet :: Text -> Text -> DeleteSizeConstraintSet
- data DeleteSizeConstraintSet
- dscsSizeConstraintSetId :: Lens' DeleteSizeConstraintSet Text
- dscsChangeToken :: Lens' DeleteSizeConstraintSet Text
- deleteSizeConstraintSetResponse :: Int -> DeleteSizeConstraintSetResponse
- data DeleteSizeConstraintSetResponse
- dscsrsChangeToken :: Lens' DeleteSizeConstraintSetResponse (Maybe Text)
- dscsrsResponseStatus :: Lens' DeleteSizeConstraintSetResponse Int
Creating a Request
deleteSizeConstraintSet Source #
Creates a value of DeleteSizeConstraintSet
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data DeleteSizeConstraintSet Source #
See: deleteSizeConstraintSet
smart constructor.
Request Lenses
dscsSizeConstraintSetId :: Lens' DeleteSizeConstraintSet Text Source #
The SizeConstraintSetId
of the SizeConstraintSet that you want to delete. SizeConstraintSetId
is returned by CreateSizeConstraintSet and by ListSizeConstraintSets.
dscsChangeToken :: Lens' DeleteSizeConstraintSet Text Source #
The value returned by the most recent call to GetChangeToken.
Destructuring the Response
deleteSizeConstraintSetResponse Source #
Creates a value of DeleteSizeConstraintSetResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data DeleteSizeConstraintSetResponse Source #
See: deleteSizeConstraintSetResponse
smart constructor.
Response Lenses
dscsrsChangeToken :: Lens' DeleteSizeConstraintSetResponse (Maybe Text) Source #
The ChangeToken
that you used to submit the DeleteSizeConstraintSet
request. You can also use this value to query the status of the request. For more information, see GetChangeTokenStatus.
dscsrsResponseStatus :: Lens' DeleteSizeConstraintSetResponse Int Source #
The response status code.