Skip to main content

environments

Creates, updates, deletes, gets or lists an environments resource.

Overview

Nameenvironments
TypeResource
Idaws.finspace.environments

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe name of the FinSpace environment. (pattern: <code>^[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]$</code>)
aws_account_idstringThe ID of the AWS account in which the FinSpace environment is created. (pattern: <code>^[a-zA-Z0-9]{1,26}$</code>)
dedicated_service_account_idstringThe AWS account ID of the dedicated service account associated with your FinSpace environment. (pattern: <code>^[a-zA-Z0-9]{1,26}$</code>)
descriptionstringThe description of the FinSpace environment. (pattern: <code>^[a-zA-Z0-9. ]{1,1000}$</code>)
environment_arnstringThe Amazon Resource Name (ARN) of your FinSpace environment. (pattern: <code>^arn:aws:finspace:[A-Za-z0-9_/.-]{0,63}:\d+:environment/[0-9A-Za-z_-]{1,128}$</code>)
environment_idstringThe identifier of the FinSpace environment. (pattern: <code>^[a-zA-Z0-9]{1,26}$</code>)
environment_urlstringThe sign-in URL for the web application of your FinSpace environment. (pattern: <code>^https?:​//[-a-zA-Z0-9+&@#/%?=_|!:,.;]*[-a-zA-Z0-9+&@#/%=_|]</code>)
federation_modestringThe authentication mode for the environment. (FEDERATED, LOCAL)
federation_parametersobjectConfiguration information when authentication mode is FEDERATED.
kms_key_idstringThe KMS key id used to encrypt in the FinSpace environment. (pattern: <code>^[a-zA-Z-0-9-:/]*$</code>)
sage_maker_studio_domain_urlstringThe URL of the integrated FinSpace notebook environment in your web application. (pattern: <code>^[a-zA-Z-0-9-:/.]*$</code>)
statusstringThe current status of creation of the FinSpace environment. (CREATE_REQUESTED, CREATING, CREATED, DELETE_REQUESTED, DELETING, DELETED, FAILED_CREATION, RETRY_DELETION, FAILED_DELETION, UPDATE_NETWORK_REQUESTED, UPDATING_NETWORK, FAILED_UPDATING_NETWORK, SUSPENDED)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_environmentselectenvironment_id, regionReturns the FinSpace environment object.
list_environmentsselectregionnextToken, maxResultsA list of all of your FinSpace environments.
create_environmentinsertregion, nameCreate a new FinSpace environment.
update_environmentupdateenvironment_id, regionUpdate your FinSpace environment.
delete_environmentdeleteenvironment_id, regionDelete an FinSpace environment.

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
environment_idstringThe identifier for the FinSpace environment.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of results to return in this request.
nextTokenstringA token generated by FinSpace that specifies where to continue pagination if a previous request was truncated. To get the next set of pages, pass in the nextTokennextToken value from the response object of the previous page call.

SELECT examples

Returns the FinSpace environment object.

SELECT
name,
aws_account_id,
dedicated_service_account_id,
description,
environment_arn,
environment_id,
environment_url,
federation_mode,
federation_parameters,
kms_key_id,
sage_maker_studio_domain_url,
status
FROM aws.finspace.environments
WHERE environment_id = '{{ environment_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Create a new FinSpace environment.

INSERT INTO aws.finspace.environments (
name,
description,
kmsKeyId,
tags,
federationMode,
federationParameters,
superuserParameters,
dataBundles,
region
)
SELECT
'{{ name }}' /* required */,
'{{ description }}',
'{{ kmsKeyId }}',
'{{ tags }}',
'{{ federationMode }}',
'{{ federationParameters }}',
'{{ superuserParameters }}',
'{{ dataBundles }}',
'{{ region }}'
RETURNING
environment_arn,
environment_id,
environment_url
;

UPDATE examples

Update your FinSpace environment.

UPDATE aws.finspace.environments
SET
name = '{{ name }}',
description = '{{ description }}',
federationMode = '{{ federationMode }}',
federationParameters = '{{ federationParameters }}'
WHERE
environment_id = '{{ environment_id }}' --required
AND region = '{{ region }}' --required
RETURNING
environment;

DELETE examples

Delete an FinSpace environment.

DELETE FROM aws.finspace.environments
WHERE environment_id = '{{ environment_id }}' --required
AND region = '{{ region }}' --required
;