aws_runtime/sdk_feature.rs
1/*
2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 * SPDX-License-Identifier: Apache-2.0
4 */
5
6/// Note: This code originally lived in the `aws-runtime` crate. It was moved here to avoid circular dependencies
7/// This module is re-exported in `aws-runtime`, and so even though this is a pre-1.0 crate, this module should not
8/// have any breaking changes
9use aws_smithy_types::config_bag::{Storable, StoreAppend};
10
11/// IDs for the features that may be used in the AWS SDK
12#[non_exhaustive]
13#[derive(Clone, Debug, Eq, PartialEq)]
14pub enum AwsSdkFeature {
15 /// An operation called with account ID mode set to preferred
16 AccountIdModePreferred,
17 /// An operation called with account ID mode set to disabled
18 AccountIdModeDisabled,
19 /// An operation called with account ID mode set to required
20 AccountIdModeRequired,
21 /// Indicates that an operation was called by the S3 Transfer Manager
22 S3Transfer,
23 /// Calling an SSO-OIDC operation as part of the SSO login flow, when using the OAuth2.0 device code grant
24 SsoLoginDevice,
25 /// Calling an SSO-OIDC operation as part of the SSO login flow, when using the OAuth2.0 authorization code grant
26 SsoLoginAuth,
27}
28
29impl Storable for AwsSdkFeature {
30 type Storer = StoreAppend<Self>;
31}