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;
24#[doc(hidden)]
25pub mod credential_feature;
26pub mod credential_fn;
27mod credentials_impl;
28pub mod provider;
29pub mod token_fn;
30
31pub use credentials_impl::{Credentials, CredentialsBuilder};
32
33/// AWS Access Token
34///
35/// This access token type is used to authenticate to AWS services that use HTTP Bearer
36/// Auth with an AWS Builder ID such as CodeCatalyst.
37///
38/// For more details on tokens, see: <https://oauth.net/2/access-tokens>
39pub type Token = aws_smithy_runtime_api::client::identity::http::Token;