Skip to main content

constraints

Creates, updates, deletes, gets or lists a constraints resource.

Overview

Nameconstraints
TypeResource
Idaws.servicecatalog.constraints

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
constraint_detailobjectInformation about the constraint.
constraint_parametersstringThe constraint parameters.
statusstringThe status of the current request. (AVAILABLE, CREATING, FAILED)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_constraintselectregionGets information about the specified constraint.
create_constraintinsertregion, PortfolioId, ProductId, Parameters, Type, IdempotencyTokenCreates a constraint. A delegated admin is authorized to invoke this command.
update_constraintupdateregion, IdUpdates the specified constraint.
delete_constraintdeleteregionDeletes the specified constraint. A delegated admin is authorized to invoke this command.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Gets information about the specified constraint.

SELECT
constraint_detail,
constraint_parameters,
status
FROM aws.servicecatalog.constraints
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a constraint. A delegated admin is authorized to invoke this command.

INSERT INTO aws.servicecatalog.constraints (
AcceptLanguage,
PortfolioId,
ProductId,
Parameters,
Type,
Description,
IdempotencyToken,
region
)
SELECT
'{{ AcceptLanguage }}',
'{{ PortfolioId }}' /* required */,
'{{ ProductId }}' /* required */,
'{{ Parameters }}' /* required */,
'{{ Type }}' /* required */,
'{{ Description }}',
'{{ IdempotencyToken }}' /* required */,
'{{ region }}'
RETURNING
constraint_detail,
constraint_parameters,
status
;

UPDATE examples

Updates the specified constraint.

UPDATE aws.servicecatalog.constraints
SET
AcceptLanguage = '{{ AcceptLanguage }}',
Id = '{{ Id }}',
Description = '{{ Description }}',
Parameters = '{{ Parameters }}'
WHERE
region = '{{ region }}' --required
AND Id = '{{ Id }}' --required
RETURNING
constraint_detail,
constraint_parameters,
status;

DELETE examples

Deletes the specified constraint. A delegated admin is authorized to invoke this command.

DELETE FROM aws.servicecatalog.constraints
WHERE region = '{{ region }}' --required
;