Struct aws_sdk_appfabric::types::AppAuthorization
source · #[non_exhaustive]pub struct AppAuthorization {
pub app_authorization_arn: Option<String>,
pub app_bundle_arn: Option<String>,
pub app: Option<String>,
pub tenant: Option<Tenant>,
pub auth_type: Option<AuthType>,
pub status: Option<AppAuthorizationStatus>,
pub created_at: Option<DateTime>,
pub updated_at: Option<DateTime>,
pub persona: Option<Persona>,
pub auth_url: Option<String>,
}
Expand description
Contains information about an app authorization.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.The Amazon Resource Name (ARN) of the app authorization.
app_bundle_arn: Option<String>
The Amazon Resource Name (ARN) of the app bundle for the app authorization.
app: Option<String>
The name of the application.
tenant: Option<Tenant>
Contains information about an application tenant, such as the application display name and identifier.
auth_type: Option<AuthType>
The authorization type.
status: Option<AppAuthorizationStatus>
The state of the app authorization.
The following states are possible:
-
PendingConnect
: The initial state of the app authorization. The app authorization is created but not yet connected. -
Connected
: The app authorization is connected to the application, and is ready to be used. -
ConnectionValidationFailed
: The app authorization received a validation exception when trying to connect to the application. If the app authorization is in this state, you should verify the configured credentials and try to connect the app authorization again. -
TokenAutoRotationFailed
: AppFabric failed to refresh the access token. If the app authorization is in this state, you should try to reconnect the app authorization.
created_at: Option<DateTime>
The timestamp of when the app authorization was created.
updated_at: Option<DateTime>
The timestamp of when the app authorization was last updated.
persona: Option<Persona>
The user persona of the app authorization.
This field should always be admin
.
auth_url: Option<String>
The application URL for the OAuth flow.
Implementations§
source§impl AppAuthorization
impl AppAuthorization
The Amazon Resource Name (ARN) of the app authorization.
sourcepub fn app_bundle_arn(&self) -> Option<&str>
pub fn app_bundle_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the app bundle for the app authorization.
sourcepub fn tenant(&self) -> Option<&Tenant>
pub fn tenant(&self) -> Option<&Tenant>
Contains information about an application tenant, such as the application display name and identifier.
sourcepub fn status(&self) -> Option<&AppAuthorizationStatus>
pub fn status(&self) -> Option<&AppAuthorizationStatus>
The state of the app authorization.
The following states are possible:
-
PendingConnect
: The initial state of the app authorization. The app authorization is created but not yet connected. -
Connected
: The app authorization is connected to the application, and is ready to be used. -
ConnectionValidationFailed
: The app authorization received a validation exception when trying to connect to the application. If the app authorization is in this state, you should verify the configured credentials and try to connect the app authorization again. -
TokenAutoRotationFailed
: AppFabric failed to refresh the access token. If the app authorization is in this state, you should try to reconnect the app authorization.
sourcepub fn created_at(&self) -> Option<&DateTime>
pub fn created_at(&self) -> Option<&DateTime>
The timestamp of when the app authorization was created.
sourcepub fn updated_at(&self) -> Option<&DateTime>
pub fn updated_at(&self) -> Option<&DateTime>
The timestamp of when the app authorization was last updated.
source§impl AppAuthorization
impl AppAuthorization
sourcepub fn builder() -> AppAuthorizationBuilder
pub fn builder() -> AppAuthorizationBuilder
Creates a new builder-style object to manufacture AppAuthorization
.
Trait Implementations§
source§impl Clone for AppAuthorization
impl Clone for AppAuthorization
source§fn clone(&self) -> AppAuthorization
fn clone(&self) -> AppAuthorization
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AppAuthorization
impl Debug for AppAuthorization
source§impl PartialEq<AppAuthorization> for AppAuthorization
impl PartialEq<AppAuthorization> for AppAuthorization
source§fn eq(&self, other: &AppAuthorization) -> bool
fn eq(&self, other: &AppAuthorization) -> bool
self
and other
values to be equal, and is used
by ==
.