Debian Codegraph @

source/auth.h

raw symbols SCIP
1 #ifndef AWS_CRT_PYTHON_AUTH_H
2 #define AWS_CRT_PYTHON_AUTH_H
3 /**
4 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
5 * SPDX-License-Identifier: Apache-2.0.
6 */
7 #include "module.h"
8
9 struct aws_credentials;
10
11 PyObject *aws_py_credentials_new(PyObject *self, PyObject *args);
12 PyObject *aws_py_credentials_access_key_id(PyObject *self, PyObject *args);
13 PyObject *aws_py_credentials_secret_access_key(PyObject *self, PyObject *args);
14 PyObject *aws_py_credentials_session_token(PyObject *self, PyObject *args);
15 PyObject *aws_py_credentials_expiration_timestamp_seconds(PyObject *self, PyObject *args);
16
17 PyObject *aws_py_credentials_provider_get_credentials(PyObject *self, PyObject *args);
18 PyObject *aws_py_credentials_provider_new_chain_default(PyObject *self, PyObject *args);
19 PyObject *aws_py_credentials_provider_new_static(PyObject *self, PyObject *args);
20 PyObject *aws_py_credentials_provider_new_profile(PyObject *self, PyObject *args);
21 PyObject *aws_py_credentials_provider_new_process(PyObject *self, PyObject *args);
22 PyObject *aws_py_credentials_provider_new_environment(PyObject *self, PyObject *args);
23 PyObject *aws_py_credentials_provider_new_chain(PyObject *self, PyObject *args);
24 PyObject *aws_py_credentials_provider_new_delegate(PyObject *self, PyObject *args);
25 PyObject *aws_py_credentials_provider_new_cognito(PyObject *self, PyObject *args);
26 PyObject *aws_py_credentials_provider_new_x509(PyObject *self, PyObject *args);
27
28 PyObject *aws_py_signing_config_new(PyObject *self, PyObject *args);
29 PyObject *aws_py_signing_config_get_algorithm(PyObject *self, PyObject *args);
30 PyObject *aws_py_signing_config_get_signature_type(PyObject *self, PyObject *args);
31 PyObject *aws_py_signing_config_get_credentials_provider(PyObject *self, PyObject *args);
32 PyObject *aws_py_signing_config_get_region(PyObject *self, PyObject *args);
33 PyObject *aws_py_signing_config_get_service(PyObject *self, PyObject *args);
34 PyObject *aws_py_signing_config_get_date(PyObject *self, PyObject *args);
35 PyObject *aws_py_signing_config_get_use_double_uri_encode(PyObject *self, PyObject *args);
36 PyObject *aws_py_signing_config_get_should_normalize_uri_path(PyObject *self, PyObject *args);
37 PyObject *aws_py_signing_config_get_signed_body_value(PyObject *self, PyObject *args);
38 PyObject *aws_py_signing_config_get_signed_body_header_type(PyObject *self, PyObject *args);
39 PyObject *aws_py_signing_config_get_expiration_in_seconds(PyObject *self, PyObject *args);
40 PyObject *aws_py_signing_config_get_omit_session_token(PyObject *self, PyObject *args);
41
42 PyObject *aws_py_sign_request_aws(PyObject *self, PyObject *args);
43
44 /* Given a python object, return a pointer to its underlying native type.
45 * If NULL is returned, a python error has been set */
46
47 struct aws_credentials *aws_py_get_credentials(PyObject *credentials);
48 struct aws_credentials_provider *aws_py_get_credentials_provider(PyObject *credentials_provider);
49 struct aws_signing_config_aws *aws_py_get_signing_config(PyObject *signing_config);
50 PyObject *aws_py_credentials_new_request_from_native(struct aws_credentials *credentials);
51
52 #endif // AWS_CRT_PYTHON_AUTH_H