Struct aws_sdk_grafana::input::CreateWorkspaceApiKeyInput
source · [−]#[non_exhaustive]pub struct CreateWorkspaceApiKeyInput { /* private fields */ }
Implementations
sourceimpl CreateWorkspaceApiKeyInput
impl CreateWorkspaceApiKeyInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateWorkspaceApiKey, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateWorkspaceApiKey, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<CreateWorkspaceApiKey
>
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture CreateWorkspaceApiKeyInput
.
sourceimpl CreateWorkspaceApiKeyInput
impl CreateWorkspaceApiKeyInput
sourcepub fn key_name(&self) -> Option<&str>
pub fn key_name(&self) -> Option<&str>
Specifies the name of the key to create. Key names must be unique to the workspace.
sourcepub fn key_role(&self) -> Option<&str>
pub fn key_role(&self) -> Option<&str>
Specifies the permission level of the key.
Valid Values: VIEWER
| EDITOR
| ADMIN
sourcepub fn seconds_to_live(&self) -> Option<i32>
pub fn seconds_to_live(&self) -> Option<i32>
Specifies the time in seconds until the key expires. Keys can be valid for up to 30 days.
sourcepub fn workspace_id(&self) -> Option<&str>
pub fn workspace_id(&self) -> Option<&str>
The ID of the workspace in which to create an API key.
Trait Implementations
sourceimpl Clone for CreateWorkspaceApiKeyInput
impl Clone for CreateWorkspaceApiKeyInput
sourcefn clone(&self) -> CreateWorkspaceApiKeyInput
fn clone(&self) -> CreateWorkspaceApiKeyInput
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for CreateWorkspaceApiKeyInput
impl Debug for CreateWorkspaceApiKeyInput
sourceimpl PartialEq<CreateWorkspaceApiKeyInput> for CreateWorkspaceApiKeyInput
impl PartialEq<CreateWorkspaceApiKeyInput> for CreateWorkspaceApiKeyInput
sourcefn eq(&self, other: &CreateWorkspaceApiKeyInput) -> bool
fn eq(&self, other: &CreateWorkspaceApiKeyInput) -> bool
impl StructuralPartialEq for CreateWorkspaceApiKeyInput
Auto Trait Implementations
impl RefUnwindSafe for CreateWorkspaceApiKeyInput
impl Send for CreateWorkspaceApiKeyInput
impl Sync for CreateWorkspaceApiKeyInput
impl Unpin for CreateWorkspaceApiKeyInput
impl UnwindSafe for CreateWorkspaceApiKeyInput
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more