MCPcopy Index your code
hub / github.com/zappa/Zappa / ZappaCLI

Class ZappaCLI

zappa/cli.py:80–3573  ·  view source on GitHub ↗

ZappaCLI object is responsible for loading the settings, handling the input arguments and executing the calls to the core library.

Source from the content-addressed store, hash-verified

78
79
80class ZappaCLI:
81 """
82 ZappaCLI object is responsible for loading the settings,
83 handling the input arguments and executing the calls to the core library.
84 """
85
86 # CLI
87 vargs: Optional[Dict[str, Any]] = None
88 command = None
89 stage_env = None
90
91 # Zappa settings
92 zappa = None
93 zappa_settings = None
94 load_credentials = True
95 disable_progress = False
96
97 # Specific settings
98 api_stage = None
99 app_function = None
100 aws_region = None
101 debug = None
102 prebuild_script = None
103 project_name = None
104 profile_name = None
105 lambda_arn = None
106 lambda_name = None
107 lambda_description = None
108 lambda_concurrency = None
109 s3_bucket_name = None
110 settings_file = None
111 zip_path = None
112 handler_path = None
113 vpc_config = None
114 efs_config = None # List of EFS configurations
115 memory_size = None
116 ephemeral_storage = None
117 use_apigateway = None
118 lambda_handler = None
119 django_settings = None
120 manage_roles = True
121 exception_handler = None
122 environment_variables = None
123 authorizer = None
124 xray_tracing = False
125 aws_kms_key_arn = ""
126 snap_start = None
127 context_header_mappings = None
128 additional_text_mimetypes = None
129 tags = [] # type: ignore[var-annotated]
130 layers = None
131 use_function_url = False
132 architecture = None
133
134 stage_name_env_pattern = re.compile("^[a-zA-Z0-9_]+$")
135
136 def __init__(self):
137 self._stage_config_overrides = {} # change using self.override_stage_config_setting(key, val)

Calls

no outgoing calls