Struct tink_awskms::AwsClient [−][src]
pub struct AwsClient { /* fields omitted */ }
Expand description
AwsClient
represents a client that connects to the AWS KMS backend.
Implementations
impl AwsClient
[src]
impl AwsClient
[src]pub fn new(uri_prefix: &str) -> Result<AwsClient, TinkError>
[src]
pub fn new(uri_prefix: &str) -> Result<AwsClient, TinkError>
[src]Return a new AWS KMS client which will use default credentials to handle keys with
uri_prefix
prefix. uri_prefix
must have the following format:
aws-kms://arn:<partition>:kms:<region>:[:path]
See http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html.
pub fn new_with_credentials(
uri_prefix: &str,
credential_path: &Path
) -> Result<AwsClient, TinkError>
[src]
pub fn new_with_credentials(
uri_prefix: &str,
credential_path: &Path
) -> Result<AwsClient, TinkError>
[src]Return a new AWS KMS client which will use given credentials to handle keys with
uri_prefix
prefix. uri_prefix
must have the following format:
aws-kms://arn:<partition>:kms:<region>:[:path]
See http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html.
pub fn new_with_kms(
uri_prefix: &str,
kms: KmsClient
) -> Result<AwsClient, TinkError>
[src]
pub fn new_with_kms(
uri_prefix: &str,
kms: KmsClient
) -> Result<AwsClient, TinkError>
[src]Return a new AWS KMS client with user created KMS client. Client is responsible for keeping
the region consistency between key URI and KMS client. uri_prefix
must have the
following format: aws-kms://arn:<partition>:kms:<region>:[:path]
See http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html.
Trait Implementations
impl KmsClient for AwsClient
[src]
impl KmsClient for AwsClient
[src]Auto Trait Implementations
impl !RefUnwindSafe for AwsClient
impl Send for AwsClient
impl Sync for AwsClient
impl Unpin for AwsClient
impl !UnwindSafe for AwsClient
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,