pub struct ResourceGroupsClient { /* private fields */ }
Expand description
A client for the Resource Groups API.
Implementations
sourceimpl ResourceGroupsClient
impl ResourceGroupsClient
sourcepub fn new(region: Region) -> ResourceGroupsClient
pub fn new(region: Region) -> ResourceGroupsClient
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
) -> ResourceGroupsClient where
P: ProvideAwsCredentials + Send + Sync + 'static,
D: DispatchSignedRequest + Send + Sync + 'static,
pub fn new_with_client(client: Client, region: Region) -> ResourceGroupsClient
Trait Implementations
sourceimpl Clone for ResourceGroupsClient
impl Clone for ResourceGroupsClient
sourcefn clone(&self) -> ResourceGroupsClient
fn clone(&self) -> ResourceGroupsClient
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 more
sourceimpl ResourceGroups for ResourceGroupsClient
impl ResourceGroups for ResourceGroupsClient
sourcefn create_group<'life0, 'async_trait>(
&'life0 self,
input: CreateGroupInput
) -> Pin<Box<dyn Future<Output = Result<CreateGroupOutput, RusotoError<CreateGroupError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn create_group<'life0, 'async_trait>(
&'life0 self,
input: CreateGroupInput
) -> Pin<Box<dyn Future<Output = Result<CreateGroupOutput, RusotoError<CreateGroupError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Creates a resource group with the specified name and description. You can optionally include a resource query, or a service configuration. For more information about constructing a resource query, see Create a tag-based group in Resource Groups. For more information about service configurations, see Service configurations for resource groups.
Minimum permissions
To run this command, you must have the following permissions:
-
resource-groups:CreateGroup
sourcefn delete_group<'life0, 'async_trait>(
&'life0 self,
input: DeleteGroupInput
) -> Pin<Box<dyn Future<Output = Result<DeleteGroupOutput, RusotoError<DeleteGroupError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn delete_group<'life0, 'async_trait>(
&'life0 self,
input: DeleteGroupInput
) -> Pin<Box<dyn Future<Output = Result<DeleteGroupOutput, RusotoError<DeleteGroupError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Deletes the specified resource group. Deleting a resource group does not delete any resources that are members of the group; it only deletes the group structure.
Minimum permissions
To run this command, you must have the following permissions:
-
resource-groups:DeleteGroup
sourcefn get_group<'life0, 'async_trait>(
&'life0 self,
input: GetGroupInput
) -> Pin<Box<dyn Future<Output = Result<GetGroupOutput, RusotoError<GetGroupError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn get_group<'life0, 'async_trait>(
&'life0 self,
input: GetGroupInput
) -> Pin<Box<dyn Future<Output = Result<GetGroupOutput, RusotoError<GetGroupError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Returns information about a specified resource group.
Minimum permissions
To run this command, you must have the following permissions:
-
resource-groups:GetGroup
sourcefn get_group_configuration<'life0, 'async_trait>(
&'life0 self,
input: GetGroupConfigurationInput
) -> Pin<Box<dyn Future<Output = Result<GetGroupConfigurationOutput, RusotoError<GetGroupConfigurationError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn get_group_configuration<'life0, 'async_trait>(
&'life0 self,
input: GetGroupConfigurationInput
) -> Pin<Box<dyn Future<Output = Result<GetGroupConfigurationOutput, RusotoError<GetGroupConfigurationError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Returns the service configuration associated with the specified resource group. For details about the service configuration syntax, see Service configurations for resource groups.
Minimum permissions
To run this command, you must have the following permissions:
-
resource-groups:GetGroupConfiguration
sourcefn get_group_query<'life0, 'async_trait>(
&'life0 self,
input: GetGroupQueryInput
) -> Pin<Box<dyn Future<Output = Result<GetGroupQueryOutput, RusotoError<GetGroupQueryError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn get_group_query<'life0, 'async_trait>(
&'life0 self,
input: GetGroupQueryInput
) -> Pin<Box<dyn Future<Output = Result<GetGroupQueryOutput, RusotoError<GetGroupQueryError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Retrieves the resource query associated with the specified resource group. For more information about resource queries, see Create a tag-based group in Resource Groups.
Minimum permissions
To run this command, you must have the following permissions:
-
resource-groups:GetGroupQuery
Returns a list of tags that are associated with a resource group, specified by an ARN.
Minimum permissions
To run this command, you must have the following permissions:
-
resource-groups:GetTags
sourcefn group_resources<'life0, 'async_trait>(
&'life0 self,
input: GroupResourcesInput
) -> Pin<Box<dyn Future<Output = Result<GroupResourcesOutput, RusotoError<GroupResourcesError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn group_resources<'life0, 'async_trait>(
&'life0 self,
input: GroupResourcesInput
) -> Pin<Box<dyn Future<Output = Result<GroupResourcesOutput, RusotoError<GroupResourcesError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Adds the specified resources to the specified group.
Minimum permissions
To run this command, you must have the following permissions:
-
resource-groups:GroupResources
sourcefn list_group_resources<'life0, 'async_trait>(
&'life0 self,
input: ListGroupResourcesInput
) -> Pin<Box<dyn Future<Output = Result<ListGroupResourcesOutput, RusotoError<ListGroupResourcesError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn list_group_resources<'life0, 'async_trait>(
&'life0 self,
input: ListGroupResourcesInput
) -> Pin<Box<dyn Future<Output = Result<ListGroupResourcesOutput, RusotoError<ListGroupResourcesError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Returns a list of ARNs of the resources that are members of a specified resource group.
Minimum permissions
To run this command, you must have the following permissions:
-
resource-groups:ListGroupResources
-
cloudformation:DescribeStacks
-
cloudformation:ListStackResources
-
tag:GetResources
sourcefn list_groups<'life0, 'async_trait>(
&'life0 self,
input: ListGroupsInput
) -> Pin<Box<dyn Future<Output = Result<ListGroupsOutput, RusotoError<ListGroupsError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn list_groups<'life0, 'async_trait>(
&'life0 self,
input: ListGroupsInput
) -> Pin<Box<dyn Future<Output = Result<ListGroupsOutput, RusotoError<ListGroupsError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Returns a list of existing resource groups in your account.
Minimum permissions
To run this command, you must have the following permissions:
-
resource-groups:ListGroups
sourcefn put_group_configuration<'life0, 'async_trait>(
&'life0 self,
input: PutGroupConfigurationInput
) -> Pin<Box<dyn Future<Output = Result<PutGroupConfigurationOutput, RusotoError<PutGroupConfigurationError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn put_group_configuration<'life0, 'async_trait>(
&'life0 self,
input: PutGroupConfigurationInput
) -> Pin<Box<dyn Future<Output = Result<PutGroupConfigurationOutput, RusotoError<PutGroupConfigurationError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Attaches a service configuration to the specified group. This occurs asynchronously, and can take time to complete. You can use GetGroupConfiguration to check the status of the update.
Minimum permissions
To run this command, you must have the following permissions:
-
resource-groups:PutGroupConfiguration
sourcefn search_resources<'life0, 'async_trait>(
&'life0 self,
input: SearchResourcesInput
) -> Pin<Box<dyn Future<Output = Result<SearchResourcesOutput, RusotoError<SearchResourcesError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn search_resources<'life0, 'async_trait>(
&'life0 self,
input: SearchResourcesInput
) -> Pin<Box<dyn Future<Output = Result<SearchResourcesOutput, RusotoError<SearchResourcesError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Returns a list of AWS resource identifiers that matches the specified query. The query uses the same format as a resource query in a CreateGroup or UpdateGroupQuery operation.
Minimum permissions
To run this command, you must have the following permissions:
-
resource-groups:SearchResources
-
cloudformation:DescribeStacks
-
cloudformation:ListStackResources
-
tag:GetResources
sourcefn tag<'life0, 'async_trait>(
&'life0 self,
input: TagInput
) -> Pin<Box<dyn Future<Output = Result<TagOutput, RusotoError<TagError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn tag<'life0, 'async_trait>(
&'life0 self,
input: TagInput
) -> Pin<Box<dyn Future<Output = Result<TagOutput, RusotoError<TagError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Adds tags to a resource group with the specified ARN. Existing tags on a resource group are not changed if they are not specified in the request parameters.
Do not store personally identifiable information (PII) or other confidential or sensitive information in tags. We use tags to provide you with billing and administration services. Tags are not intended to be used for private or sensitive data.
Minimum permissions
To run this command, you must have the following permissions:
-
resource-groups:Tag
sourcefn ungroup_resources<'life0, 'async_trait>(
&'life0 self,
input: UngroupResourcesInput
) -> Pin<Box<dyn Future<Output = Result<UngroupResourcesOutput, RusotoError<UngroupResourcesError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn ungroup_resources<'life0, 'async_trait>(
&'life0 self,
input: UngroupResourcesInput
) -> Pin<Box<dyn Future<Output = Result<UngroupResourcesOutput, RusotoError<UngroupResourcesError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Removes the specified resources from the specified group.
Minimum permissions
To run this command, you must have the following permissions:
-
resource-groups:UngroupResources
sourcefn untag<'life0, 'async_trait>(
&'life0 self,
input: UntagInput
) -> Pin<Box<dyn Future<Output = Result<UntagOutput, RusotoError<UntagError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn untag<'life0, 'async_trait>(
&'life0 self,
input: UntagInput
) -> Pin<Box<dyn Future<Output = Result<UntagOutput, RusotoError<UntagError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Deletes tags from a specified resource group.
Minimum permissions
To run this command, you must have the following permissions:
-
resource-groups:Untag
sourcefn update_group<'life0, 'async_trait>(
&'life0 self,
input: UpdateGroupInput
) -> Pin<Box<dyn Future<Output = Result<UpdateGroupOutput, RusotoError<UpdateGroupError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn update_group<'life0, 'async_trait>(
&'life0 self,
input: UpdateGroupInput
) -> Pin<Box<dyn Future<Output = Result<UpdateGroupOutput, RusotoError<UpdateGroupError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Updates the description for an existing group. You cannot update the name of a resource group.
Minimum permissions
To run this command, you must have the following permissions:
-
resource-groups:UpdateGroup
sourcefn update_group_query<'life0, 'async_trait>(
&'life0 self,
input: UpdateGroupQueryInput
) -> Pin<Box<dyn Future<Output = Result<UpdateGroupQueryOutput, RusotoError<UpdateGroupQueryError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn update_group_query<'life0, 'async_trait>(
&'life0 self,
input: UpdateGroupQueryInput
) -> Pin<Box<dyn Future<Output = Result<UpdateGroupQueryOutput, RusotoError<UpdateGroupQueryError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Updates the resource query of a group. For more information about resource queries, see Create a tag-based group in Resource Groups.
Minimum permissions
To run this command, you must have the following permissions:
-
resource-groups:UpdateGroupQuery
Auto Trait Implementations
impl !RefUnwindSafe for ResourceGroupsClient
impl Send for ResourceGroupsClient
impl Sync for ResourceGroupsClient
impl Unpin for ResourceGroupsClient
impl !UnwindSafe for ResourceGroupsClient
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