Struct rusoto_ram::RamClient
source · [−]pub struct RamClient { /* private fields */ }
Expand description
A client for the RAM API.
Implementations
sourceimpl RamClient
impl RamClient
sourcepub fn new(region: Region) -> RamClient
pub fn new(region: Region) -> RamClient
Creates a client backed by the default tokio event loop.
The client will use the default credentials provider and tls client.
pub fn new_with<P, D>(
request_dispatcher: D,
credentials_provider: P,
region: Region
) -> RamClient where
P: ProvideAwsCredentials + Send + Sync + 'static,
D: DispatchSignedRequest + Send + Sync + 'static,
pub fn new_with_client(client: Client, region: Region) -> RamClient
Trait Implementations
sourceimpl Ram for RamClient
impl Ram for RamClient
Accepts an invitation to a resource share from another AWS account.
Associates the specified resource share with the specified principals and resources.
Associates a permission with a resource share.
Creates a resource share.
Deletes the specified resource share.
Disassociates the specified principals or resources from the specified resource share.
Disassociates an AWS RAM permission from a resource share.
sourcefn enable_sharing_with_aws_organization<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<EnableSharingWithAwsOrganizationResponse, RusotoError<EnableSharingWithAwsOrganizationError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn enable_sharing_with_aws_organization<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<EnableSharingWithAwsOrganizationResponse, RusotoError<EnableSharingWithAwsOrganizationError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Enables resource sharing within your AWS Organization.
The caller must be the master account for the AWS Organization.
sourcefn get_permission<'life0, 'async_trait>(
&'life0 self,
input: GetPermissionRequest
) -> Pin<Box<dyn Future<Output = Result<GetPermissionResponse, RusotoError<GetPermissionError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn get_permission<'life0, 'async_trait>(
&'life0 self,
input: GetPermissionRequest
) -> Pin<Box<dyn Future<Output = Result<GetPermissionResponse, RusotoError<GetPermissionError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Gets the contents of an AWS RAM permission in JSON format.
sourcefn get_resource_policies<'life0, 'async_trait>(
&'life0 self,
input: GetResourcePoliciesRequest
) -> Pin<Box<dyn Future<Output = Result<GetResourcePoliciesResponse, RusotoError<GetResourcePoliciesError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn get_resource_policies<'life0, 'async_trait>(
&'life0 self,
input: GetResourcePoliciesRequest
) -> Pin<Box<dyn Future<Output = Result<GetResourcePoliciesResponse, RusotoError<GetResourcePoliciesError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Gets the policies for the specified resources that you own and have shared.
Gets the resources or principals for the resource shares that you own.
Gets the invitations that you have received for resource shares.
Gets the resource shares that you own or the resource shares that are shared with you.
sourcefn list_pending_invitation_resources<'life0, 'async_trait>(
&'life0 self,
input: ListPendingInvitationResourcesRequest
) -> Pin<Box<dyn Future<Output = Result<ListPendingInvitationResourcesResponse, RusotoError<ListPendingInvitationResourcesError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn list_pending_invitation_resources<'life0, 'async_trait>(
&'life0 self,
input: ListPendingInvitationResourcesRequest
) -> Pin<Box<dyn Future<Output = Result<ListPendingInvitationResourcesResponse, RusotoError<ListPendingInvitationResourcesError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Lists the resources in a resource share that is shared with you but that the invitation is still pending for.
sourcefn list_permissions<'life0, 'async_trait>(
&'life0 self,
input: ListPermissionsRequest
) -> Pin<Box<dyn Future<Output = Result<ListPermissionsResponse, RusotoError<ListPermissionsError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn list_permissions<'life0, 'async_trait>(
&'life0 self,
input: ListPermissionsRequest
) -> Pin<Box<dyn Future<Output = Result<ListPermissionsResponse, RusotoError<ListPermissionsError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Lists the AWS RAM permissions.
sourcefn list_principals<'life0, 'async_trait>(
&'life0 self,
input: ListPrincipalsRequest
) -> Pin<Box<dyn Future<Output = Result<ListPrincipalsResponse, RusotoError<ListPrincipalsError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn list_principals<'life0, 'async_trait>(
&'life0 self,
input: ListPrincipalsRequest
) -> Pin<Box<dyn Future<Output = Result<ListPrincipalsResponse, RusotoError<ListPrincipalsError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Lists the principals that you have shared resources with or that have shared resources with you.
Lists the AWS RAM permissions that are associated with a resource share.
sourcefn list_resource_types<'life0, 'async_trait>(
&'life0 self,
input: ListResourceTypesRequest
) -> Pin<Box<dyn Future<Output = Result<ListResourceTypesResponse, RusotoError<ListResourceTypesError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn list_resource_types<'life0, 'async_trait>(
&'life0 self,
input: ListResourceTypesRequest
) -> Pin<Box<dyn Future<Output = Result<ListResourceTypesResponse, RusotoError<ListResourceTypesError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Lists the shareable resource types supported by AWS RAM.
sourcefn list_resources<'life0, 'async_trait>(
&'life0 self,
input: ListResourcesRequest
) -> Pin<Box<dyn Future<Output = Result<ListResourcesResponse, RusotoError<ListResourcesError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn list_resources<'life0, 'async_trait>(
&'life0 self,
input: ListResourcesRequest
) -> Pin<Box<dyn Future<Output = Result<ListResourcesResponse, RusotoError<ListResourcesError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Lists the resources that you added to a resource shares or the resources that are shared with you.
Resource shares that were created by attaching a policy to a resource are visible only to the resource share owner, and the resource share cannot be modified in AWS RAM.
Use this API action to promote the resource share. When you promote the resource share, it becomes:
-
Visible to all principals that it is shared with.
-
Modifiable in AWS RAM.
Rejects an invitation to a resource share from another AWS account.
sourcefn tag_resource<'life0, 'async_trait>(
&'life0 self,
input: TagResourceRequest
) -> Pin<Box<dyn Future<Output = Result<TagResourceResponse, RusotoError<TagResourceError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn tag_resource<'life0, 'async_trait>(
&'life0 self,
input: TagResourceRequest
) -> Pin<Box<dyn Future<Output = Result<TagResourceResponse, RusotoError<TagResourceError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Adds the specified tags to the specified resource share that you own.
sourcefn untag_resource<'life0, 'async_trait>(
&'life0 self,
input: UntagResourceRequest
) -> Pin<Box<dyn Future<Output = Result<UntagResourceResponse, RusotoError<UntagResourceError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn untag_resource<'life0, 'async_trait>(
&'life0 self,
input: UntagResourceRequest
) -> Pin<Box<dyn Future<Output = Result<UntagResourceResponse, RusotoError<UntagResourceError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Removes the specified tags from the specified resource share that you own.
Updates the specified resource share that you own.
Auto Trait Implementations
impl !RefUnwindSafe for RamClient
impl Send for RamClient
impl Sync for RamClient
impl Unpin for RamClient
impl !UnwindSafe for RamClient
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more