pub struct ArnBuilder { /* private fields */ }
Expand description
ARN builder for creating ARNs programmatically
Implementations§
Source§impl ArnBuilder
impl ArnBuilder
Sourcepub fn partition<S: Into<String>>(self, partition: S) -> Self
pub fn partition<S: Into<String>>(self, partition: S) -> Self
Set the partition (e.g., “aws”, “aws-cn”)
Sourcepub fn service<S: Into<String>>(self, service: S) -> Self
pub fn service<S: Into<String>>(self, service: S) -> Self
Set the service (e.g., “s3”, “ec2”, “iam”)
Sourcepub fn account_id<S: Into<String>>(self, account_id: S) -> Self
pub fn account_id<S: Into<String>>(self, account_id: S) -> Self
Set the account ID
Sourcepub fn resource<S: Into<String>>(self, resource_type: S, resource_id: S) -> Self
pub fn resource<S: Into<String>>(self, resource_type: S, resource_id: S) -> Self
Set the resource type and ID separately
Sourcepub fn resource_string<S: Into<String>>(self, resource: S) -> Self
pub fn resource_string<S: Into<String>>(self, resource: S) -> Self
Set the full resource string
Trait Implementations§
Source§impl Clone for ArnBuilder
impl Clone for ArnBuilder
Source§fn clone(&self) -> ArnBuilder
fn clone(&self) -> ArnBuilder
Returns a duplicate 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 Debug for ArnBuilder
impl Debug for ArnBuilder
Source§impl Default for ArnBuilder
impl Default for ArnBuilder
Source§fn default() -> ArnBuilder
fn default() -> ArnBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ArnBuilder
impl RefUnwindSafe for ArnBuilder
impl Send for ArnBuilder
impl Sync for ArnBuilder
impl Unpin for ArnBuilder
impl UnwindSafe for ArnBuilder
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