Struct aws_sdk_grafana::operation::create_workspace_service_account_token::CreateWorkspaceServiceAccountTokenInput
source · #[non_exhaustive]pub struct CreateWorkspaceServiceAccountTokenInput {
pub name: Option<String>,
pub seconds_to_live: Option<i32>,
pub service_account_id: Option<String>,
pub workspace_id: Option<String>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.name: Option<String>
A name for the token to create.
seconds_to_live: Option<i32>
Sets how long the token will be valid, in seconds. You can set the time up to 30 days in the future.
service_account_id: Option<String>
The ID of the service account for which to create a token.
workspace_id: Option<String>
The ID of the workspace the service account resides within.
Implementations§
source§impl CreateWorkspaceServiceAccountTokenInput
impl CreateWorkspaceServiceAccountTokenInput
sourcepub fn seconds_to_live(&self) -> Option<i32>
pub fn seconds_to_live(&self) -> Option<i32>
Sets how long the token will be valid, in seconds. You can set the time up to 30 days in the future.
sourcepub fn service_account_id(&self) -> Option<&str>
pub fn service_account_id(&self) -> Option<&str>
The ID of the service account for which to create a token.
sourcepub fn workspace_id(&self) -> Option<&str>
pub fn workspace_id(&self) -> Option<&str>
The ID of the workspace the service account resides within.
source§impl CreateWorkspaceServiceAccountTokenInput
impl CreateWorkspaceServiceAccountTokenInput
sourcepub fn builder() -> CreateWorkspaceServiceAccountTokenInputBuilder
pub fn builder() -> CreateWorkspaceServiceAccountTokenInputBuilder
Creates a new builder-style object to manufacture CreateWorkspaceServiceAccountTokenInput
.
Trait Implementations§
source§impl Clone for CreateWorkspaceServiceAccountTokenInput
impl Clone for CreateWorkspaceServiceAccountTokenInput
source§fn clone(&self) -> CreateWorkspaceServiceAccountTokenInput
fn clone(&self) -> CreateWorkspaceServiceAccountTokenInput
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl PartialEq for CreateWorkspaceServiceAccountTokenInput
impl PartialEq for CreateWorkspaceServiceAccountTokenInput
source§fn eq(&self, other: &CreateWorkspaceServiceAccountTokenInput) -> bool
fn eq(&self, other: &CreateWorkspaceServiceAccountTokenInput) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for CreateWorkspaceServiceAccountTokenInput
Auto Trait Implementations§
impl Freeze for CreateWorkspaceServiceAccountTokenInput
impl RefUnwindSafe for CreateWorkspaceServiceAccountTokenInput
impl Send for CreateWorkspaceServiceAccountTokenInput
impl Sync for CreateWorkspaceServiceAccountTokenInput
impl Unpin for CreateWorkspaceServiceAccountTokenInput
impl UnwindSafe for CreateWorkspaceServiceAccountTokenInput
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
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.