aws_credential_types/lib.rs
1/*
2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 * SPDX-License-Identifier: Apache-2.0
4 */
5
6/* Automatically managed default lints */
7#![cfg_attr(docsrs, feature(doc_auto_cfg))]
8/* End of automatically managed default lints */
9//! `aws-credential-types` provides types concerned with AWS SDK credentials including:
10//! * Traits for credentials providers and for credentials caching
11//! * An opaque struct representing credentials
12//! * Concrete implementations of credentials caching
13
14#![allow(clippy::derive_partial_eq_without_eq)]
15#![warn(
16 missing_debug_implementations,
17 missing_docs,
18 rust_2018_idioms,
19 rustdoc::missing_crate_level_docs,
20 unreachable_pub
21)]
22
23pub mod attributes;
24pub mod credential_fn;
25mod credentials_impl;
26pub mod provider;
27pub mod token_fn;
28
29pub use credentials_impl::{Credentials, CredentialsBuilder};
30
31/// AWS Access Token
32///
33/// This access token type is used to authenticate to AWS services that use HTTP Bearer
34/// Auth with an AWS Builder ID such as CodeCatalyst.
35///
36/// For more details on tokens, see: <https://oauth.net/2/access-tokens>
37pub type Token = aws_smithy_runtime_api::client::identity::http::Token;