3
0

constants.py 1.5 KB

12345678910111213141516171819202122232425262728293031
  1. """
  2. Copyright (c) Contributors to the Open 3D Engine Project.
  3. For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. SPDX-License-Identifier: Apache-2.0 OR MIT
  5. """
  6. from typing import List
  7. # AWS resource types related constants
  8. AWS_RESOURCE_CLOUDFORMATION_STACK_TYPE: str = "AWS::Cloudformation::Stack"
  9. AWS_RESOURCE_TYPES: List[str] = ["AWS::Lambda::Function", "AWS::DynamoDB::Table", "AWS::S3::Bucket"]
  10. AWS_RESOURCE_LAMBDA_FUNCTION_INDEX: int = 0
  11. AWS_RESOURCE_DYNAMODB_TABLE_INDEX: int = 1
  12. AWS_RESOURCE_S3_BUCKET_INDEX: int = 2
  13. # AWS regions
  14. AWS_RESOURCE_REGIONS: List[str] = ["us-east-2", "us-east-1", "us-west-1", "us-west-2", "af-south-1",
  15. "ap-east-1", "ap-south-1", "ap-northeast-3", "ap-northeast-2", "ap-southeast-1",
  16. "ap-southeast-2", "ap-northeast-1", "ca-central-1", "cn-north-1", "cn-northwest-1",
  17. "eu-central-1", "eu-west-1", "eu-west-2", "eu-south-1", "eu-west-3",
  18. "eu-north-1", "me-south-1", "sa-east-1"]
  19. # Default client&server config file name
  20. RESOURCE_MAPPING_CONFIG_FILE_NAME_SUFFIX: str = "_aws_resource_mappings.json"
  21. RESOURCE_MAPPING_DEFAULT_CONFIG_FILE_NAME: str = "default" + RESOURCE_MAPPING_CONFIG_FILE_NAME_SUFFIX
  22. RESOURCE_MAPPING_DEFAULT_CONFIG_FILE_REGION: str = "us-east-1"
  23. # View related constants
  24. SEARCH_TYPED_RESOURCES_VERSION: str = "Import AWS Resources"
  25. SEARCH_CFN_STACKS_VERSION: str = "Import CFN Stacks"