Table of Contents
finspace.Client¶A low-level client representing FinSpace User Environment Management service
The FinSpace management service provides the APIs for managing FinSpace environments.
client = session.create_client('finspace')
These are the available methods:
can_paginate()close()create_environment()delete_environment()get_environment()get_paginator()get_waiter()list_environments()list_tags_for_resource()tag_resource()untag_resource()update_environment()can_paginate(operation_name)¶Check if an operation can be paginated.
create_foo, and you'd normally invoke the
operation as client.create_foo(**kwargs), if the
create_foo operation can be paginated, you can use the
call client.get_paginator("create_foo").True if the operation can be paginated,
False otherwise.close()¶Closes underlying endpoint connections.
create_environment(**kwargs)¶Create a new FinSpace environment.
See also: AWS API Documentation
Request Syntax
response = client.create_environment(
name='string',
description='string',
kmsKeyId='string',
tags={
'string': 'string'
},
federationMode='FEDERATED'|'LOCAL',
federationParameters={
'samlMetadataDocument': 'string',
'samlMetadataURL': 'string',
'applicationCallBackURL': 'string',
'federationURN': 'string',
'federationProviderName': 'string',
'attributeMap': {
'string': 'string'
}
},
superuserParameters={
'emailAddress': 'string',
'firstName': 'string',
'lastName': 'string'
},
dataBundles=[
'string',
]
)
[REQUIRED]
The name of the FinSpace environment to be created.
Add tags to your FinSpace environment.
Authentication mode for the environment.
FEDERATED - Users access FinSpace through Single Sign On (SSO) via your Identity provider.LOCAL - Users access FinSpace via email and password managed within the FinSpace environment.Configuration information when authentication mode is FEDERATED.
SAML 2.0 Metadata document from identity provider (IdP).
Provide the metadata URL from your SAML 2.0 compliant identity provider (IdP).
The redirect or sign-in URL that should be entered into the SAML 2.0 compliant identity provider configuration (IdP).
The Uniform Resource Name (URN). Also referred as Service Provider URN or Audience URI or Service Provider Entity ID.
Name of the identity provider (IdP).
SAML attribute name and value. The name must always be Email and the value should be set to the attribute definition in which user email is set. For example, name would be Email and value http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress . Please check your SAML 2.0 compliant identity provider (IdP) documentation for details.
Configuration information for the superuser.
The email address of the superuser.
The first name of the superuser.
The last name of the superuser.
The list of Amazon Resource Names (ARN) of the data bundles to install. Currently supported data bundle ARNs:
arn:aws:finspace:${Region}::data-bundle/capital-markets-sample - Contains sample Capital Markets datasets, categories and controlled vocabularies.arn:aws:finspace:${Region}::data-bundle/taq (default) - Contains trades and quotes data in addition to sample Capital Markets data.The Amazon Resource Name (ARN) of the data bundle.
dict
Response Syntax
{
'environmentId': 'string',
'environmentArn': 'string',
'environmentUrl': 'string'
}
Response Structure
(dict) --
environmentId (string) --
The unique identifier for FinSpace environment that you created.
environmentArn (string) --
The Amazon Resource Name (ARN) of the FinSpace environment that you created.
environmentUrl (string) --
The sign-in url for the web application of the FinSpace environment you created.
Exceptions
finspace.Client.exceptions.InternalServerExceptionfinspace.Client.exceptions.ValidationExceptionfinspace.Client.exceptions.AccessDeniedExceptionfinspace.Client.exceptions.ThrottlingExceptionfinspace.Client.exceptions.ServiceQuotaExceededExceptionfinspace.Client.exceptions.LimitExceededExceptiondelete_environment(**kwargs)¶Delete an FinSpace environment.
See also: AWS API Documentation
Request Syntax
response = client.delete_environment(
environmentId='string'
)
[REQUIRED]
The identifier for the FinSpace environment.
{}
Response Structure
Exceptions
get_environment(**kwargs)¶Returns the FinSpace environment object.
See also: AWS API Documentation
Request Syntax
response = client.get_environment(
environmentId='string'
)
[REQUIRED]
The identifier of the FinSpace environment.
{
'environment': {
'name': 'string',
'environmentId': 'string',
'awsAccountId': 'string',
'status': 'CREATE_REQUESTED'|'CREATING'|'CREATED'|'DELETE_REQUESTED'|'DELETING'|'DELETED'|'FAILED_CREATION'|'RETRY_DELETION'|'FAILED_DELETION'|'SUSPENDED',
'environmentUrl': 'string',
'description': 'string',
'environmentArn': 'string',
'sageMakerStudioDomainUrl': 'string',
'kmsKeyId': 'string',
'dedicatedServiceAccountId': 'string',
'federationMode': 'FEDERATED'|'LOCAL',
'federationParameters': {
'samlMetadataDocument': 'string',
'samlMetadataURL': 'string',
'applicationCallBackURL': 'string',
'federationURN': 'string',
'federationProviderName': 'string',
'attributeMap': {
'string': 'string'
}
}
}
}
Response Structure
The name of the FinSpace environment.
The name of the FinSpace environment.
The identifier of the FinSpace environment.
The ID of the AWS account in which the FinSpace environment is created.
The current status of creation of the FinSpace environment.
The sign-in url for the web application of your FinSpace environment.
The description of the FinSpace environment.
The Amazon Resource Name (ARN) of your FinSpace environment.
The url of the integrated FinSpace notebook environment in your web application.
The KMS key id used to encrypt in the FinSpace environment.
The AWS account ID of the dedicated service account associated with your FinSpace environment.
The authentication mode for the environment.
Configuration information when authentication mode is FEDERATED.
SAML 2.0 Metadata document from identity provider (IdP).
Provide the metadata URL from your SAML 2.0 compliant identity provider (IdP).
The redirect or sign-in URL that should be entered into the SAML 2.0 compliant identity provider configuration (IdP).
The Uniform Resource Name (URN). Also referred as Service Provider URN or Audience URI or Service Provider Entity ID.
Name of the identity provider (IdP).
SAML attribute name and value. The name must always be Email and the value should be set to the attribute definition in which user email is set. For example, name would be Email and value http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress . Please check your SAML 2.0 compliant identity provider (IdP) documentation for details.
Exceptions
get_paginator(operation_name)¶Create a paginator for an operation.
create_foo, and you'd normally invoke the
operation as client.create_foo(**kwargs), if the
create_foo operation can be paginated, you can use the
call client.get_paginator("create_foo").client.can_paginate method to
check if an operation is pageable.get_waiter(waiter_name)¶Returns an object that can wait for some condition.
list_environments(**kwargs)¶A list of all of your FinSpace environments.
See also: AWS API Documentation
Request Syntax
response = client.list_environments(
nextToken='string',
maxResults=123
)
dict
Response Syntax
{
'environments': [
{
'name': 'string',
'environmentId': 'string',
'awsAccountId': 'string',
'status': 'CREATE_REQUESTED'|'CREATING'|'CREATED'|'DELETE_REQUESTED'|'DELETING'|'DELETED'|'FAILED_CREATION'|'RETRY_DELETION'|'FAILED_DELETION'|'SUSPENDED',
'environmentUrl': 'string',
'description': 'string',
'environmentArn': 'string',
'sageMakerStudioDomainUrl': 'string',
'kmsKeyId': 'string',
'dedicatedServiceAccountId': 'string',
'federationMode': 'FEDERATED'|'LOCAL',
'federationParameters': {
'samlMetadataDocument': 'string',
'samlMetadataURL': 'string',
'applicationCallBackURL': 'string',
'federationURN': 'string',
'federationProviderName': 'string',
'attributeMap': {
'string': 'string'
}
}
},
],
'nextToken': 'string'
}
Response Structure
(dict) --
environments (list) --
A list of all of your FinSpace environments.
(dict) --
Represents an FinSpace environment.
name (string) --
The name of the FinSpace environment.
environmentId (string) --
The identifier of the FinSpace environment.
awsAccountId (string) --
The ID of the AWS account in which the FinSpace environment is created.
status (string) --
The current status of creation of the FinSpace environment.
environmentUrl (string) --
The sign-in url for the web application of your FinSpace environment.
description (string) --
The description of the FinSpace environment.
environmentArn (string) --
The Amazon Resource Name (ARN) of your FinSpace environment.
sageMakerStudioDomainUrl (string) --
The url of the integrated FinSpace notebook environment in your web application.
kmsKeyId (string) --
The KMS key id used to encrypt in the FinSpace environment.
dedicatedServiceAccountId (string) --
The AWS account ID of the dedicated service account associated with your FinSpace environment.
federationMode (string) --
The authentication mode for the environment.
federationParameters (dict) --
Configuration information when authentication mode is FEDERATED.
samlMetadataDocument (string) --
SAML 2.0 Metadata document from identity provider (IdP).
samlMetadataURL (string) --
Provide the metadata URL from your SAML 2.0 compliant identity provider (IdP).
applicationCallBackURL (string) --
The redirect or sign-in URL that should be entered into the SAML 2.0 compliant identity provider configuration (IdP).
federationURN (string) --
The Uniform Resource Name (URN). Also referred as Service Provider URN or Audience URI or Service Provider Entity ID.
federationProviderName (string) --
Name of the identity provider (IdP).
attributeMap (dict) --
SAML attribute name and value. The name must always be Email and the value should be set to the attribute definition in which user email is set. For example, name would be Email and value http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress . Please check your SAML 2.0 compliant identity provider (IdP) documentation for details.
nextToken (string) --
A token that you can use in a subsequent call to retrieve the next set of results.
Exceptions
A list of all tags for a resource.
See also: AWS API Documentation
Request Syntax
response = client.list_tags_for_resource(
resourceArn='string'
)
[REQUIRED]
The Amazon Resource Name of the resource.
{
'tags': {
'string': 'string'
}
}
Response Structure
A list of all tags for a resource.
Exceptions
tag_resource(**kwargs)¶Adds metadata tags to a FinSpace resource.
See also: AWS API Documentation
Request Syntax
response = client.tag_resource(
resourceArn='string',
tags={
'string': 'string'
}
)
[REQUIRED]
The Amazon Resource Name (ARN) for the resource.
[REQUIRED]
One or more tags to be assigned to the resource.
dict
Response Syntax
{}
Response Structure
Exceptions
untag_resource(**kwargs)¶Removes metadata tags from a FinSpace resource.
See also: AWS API Documentation
Request Syntax
response = client.untag_resource(
resourceArn='string',
tagKeys=[
'string',
]
)
[REQUIRED]
A FinSpace resource from which you want to remove a tag or tags. The value for this parameter is an Amazon Resource Name (ARN).
[REQUIRED]
The tag keys (names) of one or more tags to be removed.
dict
Response Syntax
{}
Response Structure
Exceptions
update_environment(**kwargs)¶Update your FinSpace environment.
See also: AWS API Documentation
Request Syntax
response = client.update_environment(
environmentId='string',
name='string',
description='string',
federationMode='FEDERATED'|'LOCAL',
federationParameters={
'samlMetadataDocument': 'string',
'samlMetadataURL': 'string',
'applicationCallBackURL': 'string',
'federationURN': 'string',
'federationProviderName': 'string',
'attributeMap': {
'string': 'string'
}
}
)
[REQUIRED]
The identifier of the FinSpace environment.
Authentication mode for the environment.
FEDERATED - Users access FinSpace through Single Sign On (SSO) via your Identity provider.LOCAL - Users access FinSpace via email and password managed within the FinSpace environment.Configuration information when authentication mode is FEDERATED.
SAML 2.0 Metadata document from identity provider (IdP).
Provide the metadata URL from your SAML 2.0 compliant identity provider (IdP).
The redirect or sign-in URL that should be entered into the SAML 2.0 compliant identity provider configuration (IdP).
The Uniform Resource Name (URN). Also referred as Service Provider URN or Audience URI or Service Provider Entity ID.
Name of the identity provider (IdP).
SAML attribute name and value. The name must always be Email and the value should be set to the attribute definition in which user email is set. For example, name would be Email and value http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress . Please check your SAML 2.0 compliant identity provider (IdP) documentation for details.
dict
Response Syntax
{
'environment': {
'name': 'string',
'environmentId': 'string',
'awsAccountId': 'string',
'status': 'CREATE_REQUESTED'|'CREATING'|'CREATED'|'DELETE_REQUESTED'|'DELETING'|'DELETED'|'FAILED_CREATION'|'RETRY_DELETION'|'FAILED_DELETION'|'SUSPENDED',
'environmentUrl': 'string',
'description': 'string',
'environmentArn': 'string',
'sageMakerStudioDomainUrl': 'string',
'kmsKeyId': 'string',
'dedicatedServiceAccountId': 'string',
'federationMode': 'FEDERATED'|'LOCAL',
'federationParameters': {
'samlMetadataDocument': 'string',
'samlMetadataURL': 'string',
'applicationCallBackURL': 'string',
'federationURN': 'string',
'federationProviderName': 'string',
'attributeMap': {
'string': 'string'
}
}
}
}
Response Structure
(dict) --
environment (dict) --
Returns the FinSpace environment object.
name (string) --
The name of the FinSpace environment.
environmentId (string) --
The identifier of the FinSpace environment.
awsAccountId (string) --
The ID of the AWS account in which the FinSpace environment is created.
status (string) --
The current status of creation of the FinSpace environment.
environmentUrl (string) --
The sign-in url for the web application of your FinSpace environment.
description (string) --
The description of the FinSpace environment.
environmentArn (string) --
The Amazon Resource Name (ARN) of your FinSpace environment.
sageMakerStudioDomainUrl (string) --
The url of the integrated FinSpace notebook environment in your web application.
kmsKeyId (string) --
The KMS key id used to encrypt in the FinSpace environment.
dedicatedServiceAccountId (string) --
The AWS account ID of the dedicated service account associated with your FinSpace environment.
federationMode (string) --
The authentication mode for the environment.
federationParameters (dict) --
Configuration information when authentication mode is FEDERATED.
samlMetadataDocument (string) --
SAML 2.0 Metadata document from identity provider (IdP).
samlMetadataURL (string) --
Provide the metadata URL from your SAML 2.0 compliant identity provider (IdP).
applicationCallBackURL (string) --
The redirect or sign-in URL that should be entered into the SAML 2.0 compliant identity provider configuration (IdP).
federationURN (string) --
The Uniform Resource Name (URN). Also referred as Service Provider URN or Audience URI or Service Provider Entity ID.
federationProviderName (string) --
Name of the identity provider (IdP).
attributeMap (dict) --
SAML attribute name and value. The name must always be Email and the value should be set to the attribute definition in which user email is set. For example, name would be Email and value http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress . Please check your SAML 2.0 compliant identity provider (IdP) documentation for details.
Exceptions
Client exceptions are available on a client instance via the exceptions property. For more detailed instructions and examples on the exact usage of client exceptions, see the error handling user guide.
The available client exceptions are:
finspace.Client.exceptions.AccessDeniedExceptionfinspace.Client.exceptions.InternalServerExceptionfinspace.Client.exceptions.InvalidRequestExceptionfinspace.Client.exceptions.LimitExceededExceptionfinspace.Client.exceptions.ResourceNotFoundExceptionfinspace.Client.exceptions.ServiceQuotaExceededExceptionfinspace.Client.exceptions.ThrottlingExceptionfinspace.Client.exceptions.ValidationExceptionfinspace.Client.exceptions.AccessDeniedException¶You do not have sufficient access to perform this action.
Example
try:
...
except client.exceptions.AccessDeniedException as e:
print(e.response)
response¶The parsed error response. All exceptions have a top level Error key that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.
Syntax
{}
Structure
(dict) --
You do not have sufficient access to perform this action.
finspace.Client.exceptions.InternalServerException¶The request processing has failed because of an unknown error, exception or failure.
Example
try:
...
except client.exceptions.InternalServerException as e:
print(e.response)
response¶The parsed error response. All exceptions have a top level Error key that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.
Syntax
{
'message': 'string',
'Error': {
'Code': 'string',
'Message': 'string'
}
}
Structure
(dict) --
The request processing has failed because of an unknown error, exception or failure.
finspace.Client.exceptions.InvalidRequestException¶The request is invalid. Something is wrong with the input to the request.
Example
try:
...
except client.exceptions.InvalidRequestException as e:
print(e.response)
response¶The parsed error response. All exceptions have a top level Error key that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.
Syntax
{
'message': 'string',
'Error': {
'Code': 'string',
'Message': 'string'
}
}
Structure
(dict) --
The request is invalid. Something is wrong with the input to the request.
finspace.Client.exceptions.LimitExceededException¶A service limit or quota is exceeded.
Example
try:
...
except client.exceptions.LimitExceededException as e:
print(e.response)
response¶The parsed error response. All exceptions have a top level Error key that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.
Syntax
{
'message': 'string',
'Error': {
'Code': 'string',
'Message': 'string'
}
}
Structure
(dict) --
A service limit or quota is exceeded.
finspace.Client.exceptions.ResourceNotFoundException¶One or more resources can't be found.
Example
try:
...
except client.exceptions.ResourceNotFoundException as e:
print(e.response)
response¶The parsed error response. All exceptions have a top level Error key that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.
Syntax
{
'message': 'string',
'Error': {
'Code': 'string',
'Message': 'string'
}
}
Structure
(dict) --
One or more resources can't be found.
finspace.Client.exceptions.ServiceQuotaExceededException¶You have exceeded your service quota. To perform the requested action, remove some of the relevant resources, or use Service Quotas to request a service quota increase.
Example
try:
...
except client.exceptions.ServiceQuotaExceededException as e:
print(e.response)
response¶The parsed error response. All exceptions have a top level Error key that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.
Syntax
{
'message': 'string',
'Error': {
'Code': 'string',
'Message': 'string'
}
}
Structure
(dict) --
You have exceeded your service quota. To perform the requested action, remove some of the relevant resources, or use Service Quotas to request a service quota increase.
finspace.Client.exceptions.ThrottlingException¶The request was denied due to request throttling.
Example
try:
...
except client.exceptions.ThrottlingException as e:
print(e.response)
response¶The parsed error response. All exceptions have a top level Error key that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.
Syntax
{}
Structure
(dict) --
The request was denied due to request throttling.
finspace.Client.exceptions.ValidationException¶The input fails to satisfy the constraints specified by an AWS service.
Example
try:
...
except client.exceptions.ValidationException as e:
print(e.response)
response¶The parsed error response. All exceptions have a top level Error key that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.
Syntax
{
'message': 'string',
'Error': {
'Code': 'string',
'Message': 'string'
}
}
Structure
(dict) --
The input fails to satisfy the constraints specified by an AWS service.
The available paginators are: