pub struct UpdateApiAccessPolicyRequest {
pub dry_run: Option<bool>,
pub max_access_key_expiration_seconds: i64,
pub require_trusted_env: bool,
}
Fields§
§dry_run: Option<bool>
If true, checks whether you have the required permissions to perform the action.
max_access_key_expiration_seconds: i64
The maximum possible lifetime for your access keys, in seconds (between 0
and 3153600000
, both included). If set to O
, your access keys can have unlimited lifetimes, but a trusted session cannot be activated. Otherwise, all your access keys must have an expiration date. This value must be greater than the remaining lifetime of each access key of your account.
require_trusted_env: bool
If true, a trusted session is activated, provided that you specify the MaxAccessKeyExpirationSeconds
parameter with a value greater than 0
.
Enabling this will require you and all your users to log in to Cockpit v2 using the WebAuthn method for multi-factor authentication. For more information, see About Authentication > Multi-Factor Authentication.
Implementations§
Source§impl UpdateApiAccessPolicyRequest
impl UpdateApiAccessPolicyRequest
pub fn new( max_access_key_expiration_seconds: i64, require_trusted_env: bool, ) -> UpdateApiAccessPolicyRequest
Trait Implementations§
Source§impl Clone for UpdateApiAccessPolicyRequest
impl Clone for UpdateApiAccessPolicyRequest
Source§fn clone(&self) -> UpdateApiAccessPolicyRequest
fn clone(&self) -> UpdateApiAccessPolicyRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for UpdateApiAccessPolicyRequest
impl Debug for UpdateApiAccessPolicyRequest
Source§impl Default for UpdateApiAccessPolicyRequest
impl Default for UpdateApiAccessPolicyRequest
Source§fn default() -> UpdateApiAccessPolicyRequest
fn default() -> UpdateApiAccessPolicyRequest
Source§impl<'de> Deserialize<'de> for UpdateApiAccessPolicyRequest
impl<'de> Deserialize<'de> for UpdateApiAccessPolicyRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for UpdateApiAccessPolicyRequest
impl PartialEq for UpdateApiAccessPolicyRequest
Source§fn eq(&self, other: &UpdateApiAccessPolicyRequest) -> bool
fn eq(&self, other: &UpdateApiAccessPolicyRequest) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for UpdateApiAccessPolicyRequest
Auto Trait Implementations§
impl Freeze for UpdateApiAccessPolicyRequest
impl RefUnwindSafe for UpdateApiAccessPolicyRequest
impl Send for UpdateApiAccessPolicyRequest
impl Sync for UpdateApiAccessPolicyRequest
impl Unpin for UpdateApiAccessPolicyRequest
impl UnwindSafe for UpdateApiAccessPolicyRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more