/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the resource-groups-2017-11-27.normal.json service model. */ using System; using System.Collections.Generic; using System.Net; using Amazon.ResourceGroups.Model; using Amazon.ResourceGroups.Model.Internal.MarshallTransformations; using Amazon.ResourceGroups.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.ResourceGroups { /// /// Implementation for accessing ResourceGroups /// /// Resource Groups lets you organize Amazon Web Services resources such as Amazon Elastic /// Compute Cloud instances, Amazon Relational Database Service databases, and Amazon /// Simple Storage Service buckets into groups using criteria that you define as tags. /// A resource group is a collection of resources that match the resource types specified /// in a query, and share one or more tags or portions of tags. You can create a group /// of resources based on their roles in your cloud infrastructure, lifecycle stages, /// regions, application layers, or virtually any criteria. Resource Groups enable you /// to automate management tasks, such as those in Amazon Web Services Systems Manager /// Automation documents, on tag-related resources in Amazon Web Services Systems Manager. /// Groups of tagged resources also let you quickly view a custom console in Amazon Web /// Services Systems Manager that shows Config compliance and other monitoring data about /// member resources. /// /// /// /// To create a resource group, build a resource query, and specify tags that identify /// the criteria that members of the group have in common. Tags are key-value pairs. /// /// /// /// For more information about Resource Groups, see the Resource /// Groups User Guide. /// /// /// /// Resource Groups uses a REST-compliant API that you can use to perform the following /// types of operations. /// /// /// public partial class AmazonResourceGroupsClient : AmazonServiceClient, IAmazonResourceGroups { private static IServiceMetadata serviceMetadata = new AmazonResourceGroupsMetadata(); #if BCL45 || AWS_ASYNC_ENUMERABLES_API private IResourceGroupsPaginatorFactory _paginators; /// /// Paginators for the service /// public IResourceGroupsPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new ResourceGroupsPaginatorFactory(this); } return this._paginators; } } #endif #region Constructors /// /// Constructs AmazonResourceGroupsClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// /// <?xml version="1.0" encoding="utf-8" ?> /// <configuration> /// <appSettings> /// <add key="AWSProfileName" value="AWS Default"/> /// </appSettings> /// </configuration> /// /// /// public AmazonResourceGroupsClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonResourceGroupsConfig()) { } /// /// Constructs AmazonResourceGroupsClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// /// <?xml version="1.0" encoding="utf-8" ?> /// <configuration> /// <appSettings> /// <add key="AWSProfileName" value="AWS Default"/> /// </appSettings> /// </configuration> /// /// /// /// The region to connect. public AmazonResourceGroupsClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonResourceGroupsConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonResourceGroupsClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// /// <?xml version="1.0" encoding="utf-8" ?> /// <configuration> /// <appSettings> /// <add key="AWSProfileName" value="AWS Default"/> /// </appSettings> /// </configuration> /// /// /// /// The AmazonResourceGroupsClient Configuration Object public AmazonResourceGroupsClient(AmazonResourceGroupsConfig config) : base(FallbackCredentialsFactory.GetCredentials(config), config){} /// /// Constructs AmazonResourceGroupsClient with AWS Credentials /// /// AWS Credentials public AmazonResourceGroupsClient(AWSCredentials credentials) : this(credentials, new AmazonResourceGroupsConfig()) { } /// /// Constructs AmazonResourceGroupsClient with AWS Credentials /// /// AWS Credentials /// The region to connect. public AmazonResourceGroupsClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonResourceGroupsConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonResourceGroupsClient with AWS Credentials and an /// AmazonResourceGroupsClient Configuration object. /// /// AWS Credentials /// The AmazonResourceGroupsClient Configuration Object public AmazonResourceGroupsClient(AWSCredentials credentials, AmazonResourceGroupsConfig clientConfig) : base(credentials, clientConfig) { } /// /// Constructs AmazonResourceGroupsClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key public AmazonResourceGroupsClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonResourceGroupsConfig()) { } /// /// Constructs AmazonResourceGroupsClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// The region to connect. public AmazonResourceGroupsClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonResourceGroupsConfig() {RegionEndpoint=region}) { } /// /// Constructs AmazonResourceGroupsClient with AWS Access Key ID, AWS Secret Key and an /// AmazonResourceGroupsClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// The AmazonResourceGroupsClient Configuration Object public AmazonResourceGroupsClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonResourceGroupsConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// /// Constructs AmazonResourceGroupsClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token public AmazonResourceGroupsClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonResourceGroupsConfig()) { } /// /// Constructs AmazonResourceGroupsClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token /// The region to connect. public AmazonResourceGroupsClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonResourceGroupsConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonResourceGroupsClient with AWS Access Key ID, AWS Secret Key and an /// AmazonResourceGroupsClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token /// The AmazonResourceGroupsClient Configuration Object public AmazonResourceGroupsClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonResourceGroupsConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #region Overrides /// /// Creates the signer for the service. /// protected override AbstractAWSSigner CreateSigner() { return new AWS4Signer(); } /// /// Customize the pipeline /// /// protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) { pipeline.RemoveHandler(); pipeline.AddHandlerAfter(new AmazonResourceGroupsEndpointResolver()); } /// /// Capture metadata for the service. /// protected override IServiceMetadata ServiceMetadata { get { return serviceMetadata; } } #endregion #region Dispose /// /// Disposes the service client. /// protected override void Dispose(bool disposing) { base.Dispose(disposing); } #endregion #region CreateGroup /// /// Creates a resource group with the specified name and description. You can optionally /// include either a resource query or a service configuration. For more information about /// constructing a resource query, see Build /// queries and groups in Resource Groups in the Resource Groups User Guide. /// For more information about service-linked groups and service configurations, see Service /// configurations for Resource Groups. /// /// /// /// Minimum permissions /// /// /// /// To run this command, you must have the following permissions: /// ///
  • /// /// resource-groups:CreateGroup /// ///
///
/// Container for the necessary parameters to execute the CreateGroup service method. /// /// The response from the CreateGroup service method, as returned by ResourceGroups. /// /// The request includes one or more parameters that violate validation rules. /// /// /// The caller isn't authorized to make the request. Check permissions. /// /// /// An internal error occurred while processing the request. Try again later. /// /// /// The request uses an HTTP method that isn't allowed for the specified resource. /// /// /// You've exceeded throttling limits by making too many requests in a period of time. /// /// REST API Reference for CreateGroup Operation public virtual CreateGroupResponse CreateGroup(CreateGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateGroupResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the CreateGroup operation. /// /// /// Container for the necessary parameters to execute the CreateGroup operation on AmazonResourceGroupsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateGroup /// operation. /// REST API Reference for CreateGroup Operation public virtual IAsyncResult BeginCreateGroup(CreateGroupRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateGroupResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the CreateGroup operation. /// /// /// The IAsyncResult returned by the call to BeginCreateGroup. /// /// Returns a CreateGroupResult from ResourceGroups. /// REST API Reference for CreateGroup Operation public virtual CreateGroupResponse EndCreateGroup(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DeleteGroup /// /// 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 /// ///
///
/// Container for the necessary parameters to execute the DeleteGroup service method. /// /// The response from the DeleteGroup service method, as returned by ResourceGroups. /// /// The request includes one or more parameters that violate validation rules. /// /// /// The caller isn't authorized to make the request. Check permissions. /// /// /// An internal error occurred while processing the request. Try again later. /// /// /// The request uses an HTTP method that isn't allowed for the specified resource. /// /// /// One or more of the specified resources don't exist. /// /// /// You've exceeded throttling limits by making too many requests in a period of time. /// /// REST API Reference for DeleteGroup Operation public virtual DeleteGroupResponse DeleteGroup(DeleteGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteGroupResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DeleteGroup operation. /// /// /// Container for the necessary parameters to execute the DeleteGroup operation on AmazonResourceGroupsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteGroup /// operation. /// REST API Reference for DeleteGroup Operation public virtual IAsyncResult BeginDeleteGroup(DeleteGroupRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteGroupResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DeleteGroup operation. /// /// /// The IAsyncResult returned by the call to BeginDeleteGroup. /// /// Returns a DeleteGroupResult from ResourceGroups. /// REST API Reference for DeleteGroup Operation public virtual DeleteGroupResponse EndDeleteGroup(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region GetAccountSettings /// /// Retrieves the current status of optional features in Resource Groups. /// /// Container for the necessary parameters to execute the GetAccountSettings service method. /// /// The response from the GetAccountSettings service method, as returned by ResourceGroups. /// /// The request includes one or more parameters that violate validation rules. /// /// /// The caller isn't authorized to make the request. Check permissions. /// /// /// An internal error occurred while processing the request. Try again later. /// /// /// The request uses an HTTP method that isn't allowed for the specified resource. /// /// /// You've exceeded throttling limits by making too many requests in a period of time. /// /// REST API Reference for GetAccountSettings Operation public virtual GetAccountSettingsResponse GetAccountSettings(GetAccountSettingsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetAccountSettingsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetAccountSettingsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the GetAccountSettings operation. /// /// /// Container for the necessary parameters to execute the GetAccountSettings operation on AmazonResourceGroupsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetAccountSettings /// operation. /// REST API Reference for GetAccountSettings Operation public virtual IAsyncResult BeginGetAccountSettings(GetAccountSettingsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetAccountSettingsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetAccountSettingsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GetAccountSettings operation. /// /// /// The IAsyncResult returned by the call to BeginGetAccountSettings. /// /// Returns a GetAccountSettingsResult from ResourceGroups. /// REST API Reference for GetAccountSettings Operation public virtual GetAccountSettingsResponse EndGetAccountSettings(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region GetGroup /// /// Returns information about a specified resource group. /// /// /// /// Minimum permissions /// /// /// /// To run this command, you must have the following permissions: /// ///
  • /// /// resource-groups:GetGroup /// ///
///
/// Container for the necessary parameters to execute the GetGroup service method. /// /// The response from the GetGroup service method, as returned by ResourceGroups. /// /// The request includes one or more parameters that violate validation rules. /// /// /// The caller isn't authorized to make the request. Check permissions. /// /// /// An internal error occurred while processing the request. Try again later. /// /// /// The request uses an HTTP method that isn't allowed for the specified resource. /// /// /// One or more of the specified resources don't exist. /// /// /// You've exceeded throttling limits by making too many requests in a period of time. /// /// REST API Reference for GetGroup Operation public virtual GetGroupResponse GetGroup(GetGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = GetGroupResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the GetGroup operation. /// /// /// Container for the necessary parameters to execute the GetGroup operation on AmazonResourceGroupsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetGroup /// operation. /// REST API Reference for GetGroup Operation public virtual IAsyncResult BeginGetGroup(GetGroupRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = GetGroupResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GetGroup operation. /// /// /// The IAsyncResult returned by the call to BeginGetGroup. /// /// Returns a GetGroupResult from ResourceGroups. /// REST API Reference for GetGroup Operation public virtual GetGroupResponse EndGetGroup(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region GetGroupConfiguration /// /// Retrieves 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 /// ///
///
/// Container for the necessary parameters to execute the GetGroupConfiguration service method. /// /// The response from the GetGroupConfiguration service method, as returned by ResourceGroups. /// /// The request includes one or more parameters that violate validation rules. /// /// /// The caller isn't authorized to make the request. Check permissions. /// /// /// An internal error occurred while processing the request. Try again later. /// /// /// The request uses an HTTP method that isn't allowed for the specified resource. /// /// /// One or more of the specified resources don't exist. /// /// /// You've exceeded throttling limits by making too many requests in a period of time. /// /// REST API Reference for GetGroupConfiguration Operation public virtual GetGroupConfigurationResponse GetGroupConfiguration(GetGroupConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetGroupConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetGroupConfigurationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the GetGroupConfiguration operation. /// /// /// Container for the necessary parameters to execute the GetGroupConfiguration operation on AmazonResourceGroupsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetGroupConfiguration /// operation. /// REST API Reference for GetGroupConfiguration Operation public virtual IAsyncResult BeginGetGroupConfiguration(GetGroupConfigurationRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetGroupConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetGroupConfigurationResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GetGroupConfiguration operation. /// /// /// The IAsyncResult returned by the call to BeginGetGroupConfiguration. /// /// Returns a GetGroupConfigurationResult from ResourceGroups. /// REST API Reference for GetGroupConfiguration Operation public virtual GetGroupConfigurationResponse EndGetGroupConfiguration(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region GetGroupQuery /// /// 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 /// ///
///
/// Container for the necessary parameters to execute the GetGroupQuery service method. /// /// The response from the GetGroupQuery service method, as returned by ResourceGroups. /// /// The request includes one or more parameters that violate validation rules. /// /// /// The caller isn't authorized to make the request. Check permissions. /// /// /// An internal error occurred while processing the request. Try again later. /// /// /// The request uses an HTTP method that isn't allowed for the specified resource. /// /// /// One or more of the specified resources don't exist. /// /// /// You've exceeded throttling limits by making too many requests in a period of time. /// /// REST API Reference for GetGroupQuery Operation public virtual GetGroupQueryResponse GetGroupQuery(GetGroupQueryRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetGroupQueryRequestMarshaller.Instance; options.ResponseUnmarshaller = GetGroupQueryResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the GetGroupQuery operation. /// /// /// Container for the necessary parameters to execute the GetGroupQuery operation on AmazonResourceGroupsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetGroupQuery /// operation. /// REST API Reference for GetGroupQuery Operation public virtual IAsyncResult BeginGetGroupQuery(GetGroupQueryRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetGroupQueryRequestMarshaller.Instance; options.ResponseUnmarshaller = GetGroupQueryResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GetGroupQuery operation. /// /// /// The IAsyncResult returned by the call to BeginGetGroupQuery. /// /// Returns a GetGroupQueryResult from ResourceGroups. /// REST API Reference for GetGroupQuery Operation public virtual GetGroupQueryResponse EndGetGroupQuery(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region GetTags /// /// 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 /// ///
///
/// Container for the necessary parameters to execute the GetTags service method. /// /// The response from the GetTags service method, as returned by ResourceGroups. /// /// The request includes one or more parameters that violate validation rules. /// /// /// The caller isn't authorized to make the request. Check permissions. /// /// /// An internal error occurred while processing the request. Try again later. /// /// /// The request uses an HTTP method that isn't allowed for the specified resource. /// /// /// One or more of the specified resources don't exist. /// /// /// You've exceeded throttling limits by making too many requests in a period of time. /// /// REST API Reference for GetTags Operation public virtual GetTagsResponse GetTags(GetTagsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetTagsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetTagsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the GetTags operation. /// /// /// Container for the necessary parameters to execute the GetTags operation on AmazonResourceGroupsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetTags /// operation. /// REST API Reference for GetTags Operation public virtual IAsyncResult BeginGetTags(GetTagsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetTagsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetTagsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GetTags operation. /// /// /// The IAsyncResult returned by the call to BeginGetTags. /// /// Returns a GetTagsResult from ResourceGroups. /// REST API Reference for GetTags Operation public virtual GetTagsResponse EndGetTags(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region GroupResources /// /// Adds the specified resources to the specified group. /// /// /// /// You can use this operation with only resource groups that are configured with the /// following types: /// ///
  • /// /// AWS::EC2::HostManagement /// ///
  • /// /// AWS::EC2::CapacityReservationPool /// ///
/// /// Other resource group type and resource types aren't currently supported by this operation. /// ///
/// /// Minimum permissions /// /// /// /// To run this command, you must have the following permissions: /// ///
  • /// /// resource-groups:GroupResources /// ///
///
/// Container for the necessary parameters to execute the GroupResources service method. /// /// The response from the GroupResources service method, as returned by ResourceGroups. /// /// The request includes one or more parameters that violate validation rules. /// /// /// The caller isn't authorized to make the request. Check permissions. /// /// /// An internal error occurred while processing the request. Try again later. /// /// /// The request uses an HTTP method that isn't allowed for the specified resource. /// /// /// One or more of the specified resources don't exist. /// /// /// You've exceeded throttling limits by making too many requests in a period of time. /// /// REST API Reference for GroupResources Operation public virtual GroupResourcesResponse GroupResources(GroupResourcesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GroupResourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = GroupResourcesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the GroupResources operation. /// /// /// Container for the necessary parameters to execute the GroupResources operation on AmazonResourceGroupsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGroupResources /// operation. /// REST API Reference for GroupResources Operation public virtual IAsyncResult BeginGroupResources(GroupResourcesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GroupResourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = GroupResourcesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GroupResources operation. /// /// /// The IAsyncResult returned by the call to BeginGroupResources. /// /// Returns a GroupResourcesResult from ResourceGroups. /// REST API Reference for GroupResources Operation public virtual GroupResourcesResponse EndGroupResources(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListGroupResources /// /// 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 /// ///
///
/// Container for the necessary parameters to execute the ListGroupResources service method. /// /// The response from the ListGroupResources service method, as returned by ResourceGroups. /// /// The request includes one or more parameters that violate validation rules. /// /// /// The caller isn't authorized to make the request. Check permissions. /// /// /// An internal error occurred while processing the request. Try again later. /// /// /// The request uses an HTTP method that isn't allowed for the specified resource. /// /// /// One or more of the specified resources don't exist. /// /// /// You've exceeded throttling limits by making too many requests in a period of time. /// /// /// The request was rejected because it doesn't have valid credentials for the target /// resource. /// /// REST API Reference for ListGroupResources Operation public virtual ListGroupResourcesResponse ListGroupResources(ListGroupResourcesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListGroupResourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListGroupResourcesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListGroupResources operation. /// /// /// Container for the necessary parameters to execute the ListGroupResources operation on AmazonResourceGroupsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListGroupResources /// operation. /// REST API Reference for ListGroupResources Operation public virtual IAsyncResult BeginListGroupResources(ListGroupResourcesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListGroupResourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListGroupResourcesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListGroupResources operation. /// /// /// The IAsyncResult returned by the call to BeginListGroupResources. /// /// Returns a ListGroupResourcesResult from ResourceGroups. /// REST API Reference for ListGroupResources Operation public virtual ListGroupResourcesResponse EndListGroupResources(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListGroups /// /// 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 /// ///
///
/// Container for the necessary parameters to execute the ListGroups service method. /// /// The response from the ListGroups service method, as returned by ResourceGroups. /// /// The request includes one or more parameters that violate validation rules. /// /// /// The caller isn't authorized to make the request. Check permissions. /// /// /// An internal error occurred while processing the request. Try again later. /// /// /// The request uses an HTTP method that isn't allowed for the specified resource. /// /// /// You've exceeded throttling limits by making too many requests in a period of time. /// /// REST API Reference for ListGroups Operation public virtual ListGroupsResponse ListGroups(ListGroupsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListGroupsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListGroups operation. /// /// /// Container for the necessary parameters to execute the ListGroups operation on AmazonResourceGroupsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListGroups /// operation. /// REST API Reference for ListGroups Operation public virtual IAsyncResult BeginListGroups(ListGroupsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListGroupsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListGroups operation. /// /// /// The IAsyncResult returned by the call to BeginListGroups. /// /// Returns a ListGroupsResult from ResourceGroups. /// REST API Reference for ListGroups Operation public virtual ListGroupsResponse EndListGroups(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region PutGroupConfiguration /// /// 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 /// ///
///
/// Container for the necessary parameters to execute the PutGroupConfiguration service method. /// /// The response from the PutGroupConfiguration service method, as returned by ResourceGroups. /// /// The request includes one or more parameters that violate validation rules. /// /// /// The caller isn't authorized to make the request. Check permissions. /// /// /// An internal error occurred while processing the request. Try again later. /// /// /// The request uses an HTTP method that isn't allowed for the specified resource. /// /// /// One or more of the specified resources don't exist. /// /// /// You've exceeded throttling limits by making too many requests in a period of time. /// /// REST API Reference for PutGroupConfiguration Operation public virtual PutGroupConfigurationResponse PutGroupConfiguration(PutGroupConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutGroupConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = PutGroupConfigurationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the PutGroupConfiguration operation. /// /// /// Container for the necessary parameters to execute the PutGroupConfiguration operation on AmazonResourceGroupsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutGroupConfiguration /// operation. /// REST API Reference for PutGroupConfiguration Operation public virtual IAsyncResult BeginPutGroupConfiguration(PutGroupConfigurationRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = PutGroupConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = PutGroupConfigurationResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the PutGroupConfiguration operation. /// /// /// The IAsyncResult returned by the call to BeginPutGroupConfiguration. /// /// Returns a PutGroupConfigurationResult from ResourceGroups. /// REST API Reference for PutGroupConfiguration Operation public virtual PutGroupConfigurationResponse EndPutGroupConfiguration(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region SearchResources /// /// Returns a list of Amazon Web Services 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 /// ///
///
/// Container for the necessary parameters to execute the SearchResources service method. /// /// The response from the SearchResources service method, as returned by ResourceGroups. /// /// The request includes one or more parameters that violate validation rules. /// /// /// The caller isn't authorized to make the request. Check permissions. /// /// /// An internal error occurred while processing the request. Try again later. /// /// /// The request uses an HTTP method that isn't allowed for the specified resource. /// /// /// You've exceeded throttling limits by making too many requests in a period of time. /// /// /// The request was rejected because it doesn't have valid credentials for the target /// resource. /// /// REST API Reference for SearchResources Operation public virtual SearchResourcesResponse SearchResources(SearchResourcesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SearchResourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = SearchResourcesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the SearchResources operation. /// /// /// Container for the necessary parameters to execute the SearchResources operation on AmazonResourceGroupsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndSearchResources /// operation. /// REST API Reference for SearchResources Operation public virtual IAsyncResult BeginSearchResources(SearchResourcesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = SearchResourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = SearchResourcesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the SearchResources operation. /// /// /// The IAsyncResult returned by the call to BeginSearchResources. /// /// Returns a SearchResourcesResult from ResourceGroups. /// REST API Reference for SearchResources Operation public virtual SearchResourcesResponse EndSearchResources(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region Tag /// /// 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 /// ///
///
/// Container for the necessary parameters to execute the Tag service method. /// /// The response from the Tag service method, as returned by ResourceGroups. /// /// The request includes one or more parameters that violate validation rules. /// /// /// The caller isn't authorized to make the request. Check permissions. /// /// /// An internal error occurred while processing the request. Try again later. /// /// /// The request uses an HTTP method that isn't allowed for the specified resource. /// /// /// One or more of the specified resources don't exist. /// /// /// You've exceeded throttling limits by making too many requests in a period of time. /// /// REST API Reference for Tag Operation public virtual TagResponse Tag(TagRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = TagRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the Tag operation. /// /// /// Container for the necessary parameters to execute the Tag operation on AmazonResourceGroupsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndTag /// operation. /// REST API Reference for Tag Operation public virtual IAsyncResult BeginTag(TagRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = TagRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the Tag operation. /// /// /// The IAsyncResult returned by the call to BeginTag. /// /// Returns a TagResult from ResourceGroups. /// REST API Reference for Tag Operation public virtual TagResponse EndTag(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region UngroupResources /// /// Removes the specified resources from the specified group. This operation works only /// with static groups that you populated using the GroupResources operation. It /// doesn't work with any resource groups that are automatically populated by tag-based /// or CloudFormation stack-based queries. /// /// /// /// Minimum permissions /// /// /// /// To run this command, you must have the following permissions: /// ///
  • /// /// resource-groups:UngroupResources /// ///
///
/// Container for the necessary parameters to execute the UngroupResources service method. /// /// The response from the UngroupResources service method, as returned by ResourceGroups. /// /// The request includes one or more parameters that violate validation rules. /// /// /// The caller isn't authorized to make the request. Check permissions. /// /// /// An internal error occurred while processing the request. Try again later. /// /// /// The request uses an HTTP method that isn't allowed for the specified resource. /// /// /// One or more of the specified resources don't exist. /// /// /// You've exceeded throttling limits by making too many requests in a period of time. /// /// REST API Reference for UngroupResources Operation public virtual UngroupResourcesResponse UngroupResources(UngroupResourcesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UngroupResourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = UngroupResourcesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the UngroupResources operation. /// /// /// Container for the necessary parameters to execute the UngroupResources operation on AmazonResourceGroupsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUngroupResources /// operation. /// REST API Reference for UngroupResources Operation public virtual IAsyncResult BeginUngroupResources(UngroupResourcesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UngroupResourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = UngroupResourcesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the UngroupResources operation. /// /// /// The IAsyncResult returned by the call to BeginUngroupResources. /// /// Returns a UngroupResourcesResult from ResourceGroups. /// REST API Reference for UngroupResources Operation public virtual UngroupResourcesResponse EndUngroupResources(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region Untag /// /// Deletes tags from a specified resource group. /// /// /// /// Minimum permissions /// /// /// /// To run this command, you must have the following permissions: /// ///
  • /// /// resource-groups:Untag /// ///
///
/// Container for the necessary parameters to execute the Untag service method. /// /// The response from the Untag service method, as returned by ResourceGroups. /// /// The request includes one or more parameters that violate validation rules. /// /// /// The caller isn't authorized to make the request. Check permissions. /// /// /// An internal error occurred while processing the request. Try again later. /// /// /// The request uses an HTTP method that isn't allowed for the specified resource. /// /// /// One or more of the specified resources don't exist. /// /// /// You've exceeded throttling limits by making too many requests in a period of time. /// /// REST API Reference for Untag Operation public virtual UntagResponse Untag(UntagRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UntagRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the Untag operation. /// /// /// Container for the necessary parameters to execute the Untag operation on AmazonResourceGroupsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUntag /// operation. /// REST API Reference for Untag Operation public virtual IAsyncResult BeginUntag(UntagRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UntagRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the Untag operation. /// /// /// The IAsyncResult returned by the call to BeginUntag. /// /// Returns a UntagResult from ResourceGroups. /// REST API Reference for Untag Operation public virtual UntagResponse EndUntag(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region UpdateAccountSettings /// /// Turns on or turns off optional features in Resource Groups. /// /// /// /// The preceding example shows that the request to turn on group lifecycle events is /// IN_PROGRESS. You can call the GetAccountSettings operation to /// check for completion by looking for GroupLifecycleEventsStatus to change /// to ACTIVE. /// /// /// Container for the necessary parameters to execute the UpdateAccountSettings service method. /// /// The response from the UpdateAccountSettings service method, as returned by ResourceGroups. /// /// The request includes one or more parameters that violate validation rules. /// /// /// The caller isn't authorized to make the request. Check permissions. /// /// /// An internal error occurred while processing the request. Try again later. /// /// /// The request uses an HTTP method that isn't allowed for the specified resource. /// /// /// You've exceeded throttling limits by making too many requests in a period of time. /// /// REST API Reference for UpdateAccountSettings Operation public virtual UpdateAccountSettingsResponse UpdateAccountSettings(UpdateAccountSettingsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateAccountSettingsRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateAccountSettingsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the UpdateAccountSettings operation. /// /// /// Container for the necessary parameters to execute the UpdateAccountSettings operation on AmazonResourceGroupsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateAccountSettings /// operation. /// REST API Reference for UpdateAccountSettings Operation public virtual IAsyncResult BeginUpdateAccountSettings(UpdateAccountSettingsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateAccountSettingsRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateAccountSettingsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the UpdateAccountSettings operation. /// /// /// The IAsyncResult returned by the call to BeginUpdateAccountSettings. /// /// Returns a UpdateAccountSettingsResult from ResourceGroups. /// REST API Reference for UpdateAccountSettings Operation public virtual UpdateAccountSettingsResponse EndUpdateAccountSettings(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region UpdateGroup /// /// 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 /// ///
///
/// Container for the necessary parameters to execute the UpdateGroup service method. /// /// The response from the UpdateGroup service method, as returned by ResourceGroups. /// /// The request includes one or more parameters that violate validation rules. /// /// /// The caller isn't authorized to make the request. Check permissions. /// /// /// An internal error occurred while processing the request. Try again later. /// /// /// The request uses an HTTP method that isn't allowed for the specified resource. /// /// /// One or more of the specified resources don't exist. /// /// /// You've exceeded throttling limits by making too many requests in a period of time. /// /// REST API Reference for UpdateGroup Operation public virtual UpdateGroupResponse UpdateGroup(UpdateGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateGroupResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the UpdateGroup operation. /// /// /// Container for the necessary parameters to execute the UpdateGroup operation on AmazonResourceGroupsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateGroup /// operation. /// REST API Reference for UpdateGroup Operation public virtual IAsyncResult BeginUpdateGroup(UpdateGroupRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateGroupResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the UpdateGroup operation. /// /// /// The IAsyncResult returned by the call to BeginUpdateGroup. /// /// Returns a UpdateGroupResult from ResourceGroups. /// REST API Reference for UpdateGroup Operation public virtual UpdateGroupResponse EndUpdateGroup(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region UpdateGroupQuery /// /// 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 /// ///
///
/// Container for the necessary parameters to execute the UpdateGroupQuery service method. /// /// The response from the UpdateGroupQuery service method, as returned by ResourceGroups. /// /// The request includes one or more parameters that violate validation rules. /// /// /// The caller isn't authorized to make the request. Check permissions. /// /// /// An internal error occurred while processing the request. Try again later. /// /// /// The request uses an HTTP method that isn't allowed for the specified resource. /// /// /// One or more of the specified resources don't exist. /// /// /// You've exceeded throttling limits by making too many requests in a period of time. /// /// REST API Reference for UpdateGroupQuery Operation public virtual UpdateGroupQueryResponse UpdateGroupQuery(UpdateGroupQueryRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateGroupQueryRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateGroupQueryResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the UpdateGroupQuery operation. /// /// /// Container for the necessary parameters to execute the UpdateGroupQuery operation on AmazonResourceGroupsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateGroupQuery /// operation. /// REST API Reference for UpdateGroupQuery Operation public virtual IAsyncResult BeginUpdateGroupQuery(UpdateGroupQueryRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateGroupQueryRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateGroupQueryResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the UpdateGroupQuery operation. /// /// /// The IAsyncResult returned by the call to BeginUpdateGroupQuery. /// /// Returns a UpdateGroupQueryResult from ResourceGroups. /// REST API Reference for UpdateGroupQuery Operation public virtual UpdateGroupQueryResponse EndUpdateGroupQuery(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion } }