/* * 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 ram-2018-01-04.normal.json service model. */ using System; using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; using Amazon.Runtime; using Amazon.RAM.Model; namespace Amazon.RAM { /// /// Interface for accessing RAM /// /// This is the Resource Access Manager API Reference. This documentation provides /// descriptions and syntax for each of the actions and data types in RAM. RAM is a service /// that helps you securely share your Amazon Web Services resources to other Amazon Web /// Services accounts. If you use Organizations to manage your accounts, then you can /// share your resources with your entire organization or to organizational units (OUs). /// For supported resource types, you can also share resources with individual Identity /// and Access Management (IAM) roles and users. /// /// /// /// To learn more about RAM, see the following resources: /// /// /// public partial interface IAmazonRAM : IAmazonService, IDisposable { #if AWS_ASYNC_ENUMERABLES_API /// /// Paginators for the service /// IRAMPaginatorFactory Paginators { get; } #endif #region AcceptResourceShareInvitation /// /// Accepts an invitation to a resource share from another Amazon Web Services account. /// After you accept the invitation, the resources included in the resource share are /// available to interact with in the relevant Amazon Web Services Management Consoles /// and tools. /// /// Container for the necessary parameters to execute the AcceptResourceShareInvitation service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the AcceptResourceShareInvitation service method, as returned by RAM. /// /// The operation failed because the client token input parameter matched one that was /// used with a previous call to the operation, but at least one of the other input parameters /// is different from the previous call. /// /// /// The operation failed because the specified client token isn't valid. /// /// /// The operation failed because the specified Amazon /// Resource Name (ARN) has a format that isn't valid. /// /// /// The operation failed because the requested operation isn't permitted. /// /// /// The operation failed because the specified invitation was already accepted. /// /// /// The operation failed because the specified invitation was already rejected. /// /// /// The operation failed because the specified Amazon /// Resource Name (ARN) for an invitation was not found. /// /// /// The operation failed because the specified invitation is past its expiration date /// and time. /// /// /// The operation failed because the service could not respond to the request due to an /// internal problem. Try again later. /// /// /// The operation failed because the service isn't available. Try again later. /// /// REST API Reference for AcceptResourceShareInvitation Operation Task AcceptResourceShareInvitationAsync(AcceptResourceShareInvitationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region AssociateResourceShare /// /// Adds the specified list of principals and list of resources to a resource share. Principals /// that already have access to this resource share immediately receive access to the /// added resources. Newly added principals immediately receive access to the resources /// shared in this resource share. /// /// Container for the necessary parameters to execute the AssociateResourceShare service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the AssociateResourceShare service method, as returned by RAM. /// /// The operation failed because the client token input parameter matched one that was /// used with a previous call to the operation, but at least one of the other input parameters /// is different from the previous call. /// /// /// The operation failed because the specified client token isn't valid. /// /// /// The operation failed because a parameter you specified isn't valid. /// /// /// The operation failed because the requested operation isn't valid for the resource /// share in its current state. /// /// /// The operation failed because the specified Amazon /// Resource Name (ARN) has a format that isn't valid. /// /// /// The operation failed because the requested operation isn't permitted. /// /// /// The operation failed because it would exceed the limit for resource shares for your /// account. To view the limits for your Amazon Web Services account, see the RAM /// page in the Service Quotas console. /// /// /// The operation failed because the service could not respond to the request due to an /// internal problem. Try again later. /// /// /// The operation failed because the service isn't available. Try again later. /// /// /// The operation failed because it exceeded the rate at which you are allowed to perform /// this operation. Please try again later. /// /// /// The operation failed because a specified resource couldn't be found. /// /// REST API Reference for AssociateResourceShare Operation Task AssociateResourceShareAsync(AssociateResourceShareRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region AssociateResourceSharePermission /// /// Adds or replaces the RAM permission for a resource type included in a resource share. /// You can have exactly one permission associated with each resource type in the resource /// share. You can add a new RAM permission only if there are currently no resources of /// that resource type currently in the resource share. /// /// Container for the necessary parameters to execute the AssociateResourceSharePermission service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the AssociateResourceSharePermission service method, as returned by RAM. /// /// The operation failed because the specified client token isn't valid. /// /// /// The operation failed because a parameter you specified isn't valid. /// /// /// The operation failed because the specified Amazon /// Resource Name (ARN) has a format that isn't valid. /// /// /// The operation failed because the requested operation isn't permitted. /// /// /// The operation failed because the service could not respond to the request due to an /// internal problem. Try again later. /// /// /// The operation failed because the service isn't available. Try again later. /// /// /// The operation failed because a specified resource couldn't be found. /// /// REST API Reference for AssociateResourceSharePermission Operation Task AssociateResourceSharePermissionAsync(AssociateResourceSharePermissionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreatePermission /// /// Creates a customer managed permission for a specified resource type that you can attach /// to resource shares. It is created in the Amazon Web Services Region in which you call /// the operation. /// /// Container for the necessary parameters to execute the CreatePermission service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreatePermission service method, as returned by RAM. /// /// The operation failed because the client token input parameter matched one that was /// used with a previous call to the operation, but at least one of the other input parameters /// is different from the previous call. /// /// /// The operation failed because the specified client token isn't valid. /// /// /// The operation failed because a parameter you specified isn't valid. /// /// /// The operation failed because a policy you specified isn't valid. /// /// /// The operation failed because the policy template that you provided isn't valid. /// /// /// The operation failed because the requested operation isn't permitted. /// /// /// The operation failed because a permission with the specified name already exists in /// the requested Amazon Web Services Region. Choose a different name. /// /// /// The operation failed because it would exceed the maximum number of permissions you /// can create in each Amazon Web Services Region. To view the limits for your Amazon /// Web Services account, see the RAM /// page in the Service Quotas console. /// /// /// The operation failed because the service could not respond to the request due to an /// internal problem. Try again later. /// /// /// The operation failed because the service isn't available. Try again later. /// /// REST API Reference for CreatePermission Operation Task CreatePermissionAsync(CreatePermissionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreatePermissionVersion /// /// Creates a new version of the specified customer managed permission. The new version /// is automatically set as the default version of the customer managed permission. New /// resource shares automatically use the default permission. Existing resource shares /// continue to use their original permission versions, but you can use ReplacePermissionAssociations /// to update them. /// /// /// /// If the specified customer managed permission already has the maximum of 5 versions, /// then you must delete one of the existing versions before you can create a new one. /// /// /// Container for the necessary parameters to execute the CreatePermissionVersion service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreatePermissionVersion service method, as returned by RAM. /// /// The operation failed because the client token input parameter matched one that was /// used with a previous call to the operation, but at least one of the other input parameters /// is different from the previous call. /// /// /// The operation failed because the specified client token isn't valid. /// /// /// The operation failed because a parameter you specified isn't valid. /// /// /// The operation failed because a policy you specified isn't valid. /// /// /// The operation failed because the specified Amazon /// Resource Name (ARN) has a format that isn't valid. /// /// /// The operation failed because the policy template that you provided isn't valid. /// /// /// The operation failed because it would exceed the limit for the number of versions /// you can have for a permission. To view the limits for your Amazon Web Services account, /// see the RAM /// page in the Service Quotas console. /// /// /// The operation failed because the service could not respond to the request due to an /// internal problem. Try again later. /// /// /// The operation failed because the service isn't available. Try again later. /// /// /// The operation failed because a specified resource couldn't be found. /// /// REST API Reference for CreatePermissionVersion Operation Task CreatePermissionVersionAsync(CreatePermissionVersionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateResourceShare /// /// Creates a resource share. You can provide a list of the Amazon /// Resource Names (ARNs) for the resources that you want to share, a list of principals /// you want to share the resources with, and the permissions to grant those principals. /// /// /// /// Sharing a resource makes it available for use by principals outside of the Amazon /// Web Services account that created the resource. Sharing doesn't change any permissions /// or quotas that apply to the resource in the account that created it. /// /// /// /// Container for the necessary parameters to execute the CreateResourceShare service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateResourceShare service method, as returned by RAM. /// /// The operation failed because the client token input parameter matched one that was /// used with a previous call to the operation, but at least one of the other input parameters /// is different from the previous call. /// /// /// The operation failed because the specified client token isn't valid. /// /// /// The operation failed because a parameter you specified isn't valid. /// /// /// The operation failed because the requested operation isn't valid for the resource /// share in its current state. /// /// /// The operation failed because the specified Amazon /// Resource Name (ARN) has a format that isn't valid. /// /// /// The operation failed because the requested operation isn't permitted. /// /// /// The operation failed because it would exceed the limit for resource shares for your /// account. To view the limits for your Amazon Web Services account, see the RAM /// page in the Service Quotas console. /// /// /// The operation failed because the service could not respond to the request due to an /// internal problem. Try again later. /// /// /// The operation failed because the service isn't available. Try again later. /// /// /// The operation failed because it would exceed the limit for tags for your Amazon Web /// Services account. /// /// /// The operation failed because the specified tag key is a reserved word and can't be /// used. /// /// /// The operation failed because a specified resource couldn't be found. /// /// REST API Reference for CreateResourceShare Operation Task CreateResourceShareAsync(CreateResourceShareRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeletePermission /// /// Deletes the specified customer managed permission in the Amazon Web Services Region /// in which you call this operation. You can delete a customer managed permission only /// if it isn't attached to any resource share. The operation deletes all versions associated /// with the customer managed permission. /// /// Container for the necessary parameters to execute the DeletePermission service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeletePermission service method, as returned by RAM. /// /// The operation failed because the client token input parameter matched one that was /// used with a previous call to the operation, but at least one of the other input parameters /// is different from the previous call. /// /// /// The operation failed because the specified client token isn't valid. /// /// /// The operation failed because the specified Amazon /// Resource Name (ARN) has a format that isn't valid. /// /// /// The operation failed because the requested operation isn't permitted. /// /// /// The operation failed because the service could not respond to the request due to an /// internal problem. Try again later. /// /// /// The operation failed because the service isn't available. Try again later. /// /// /// The operation failed because a specified resource couldn't be found. /// /// REST API Reference for DeletePermission Operation Task DeletePermissionAsync(DeletePermissionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeletePermissionVersion /// /// Deletes one version of a customer managed permission. The version you specify must /// not be attached to any resource share and must not be the default version for the /// permission. /// /// /// /// If a customer managed permission has the maximum of 5 versions, then you must delete /// at least one version before you can create another. /// /// /// Container for the necessary parameters to execute the DeletePermissionVersion service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeletePermissionVersion service method, as returned by RAM. /// /// The operation failed because the client token input parameter matched one that was /// used with a previous call to the operation, but at least one of the other input parameters /// is different from the previous call. /// /// /// The operation failed because the specified client token isn't valid. /// /// /// The operation failed because a parameter you specified isn't valid. /// /// /// The operation failed because the specified Amazon /// Resource Name (ARN) has a format that isn't valid. /// /// /// The operation failed because the requested operation isn't permitted. /// /// /// The operation failed because the service could not respond to the request due to an /// internal problem. Try again later. /// /// /// The operation failed because the service isn't available. Try again later. /// /// /// The operation failed because a specified resource couldn't be found. /// /// REST API Reference for DeletePermissionVersion Operation Task DeletePermissionVersionAsync(DeletePermissionVersionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteResourceShare /// /// Deletes the specified resource share. /// /// /// /// This doesn't delete any of the resources that were associated with the resource share; /// it only stops the sharing of those resources through this resource share. /// /// /// /// Container for the necessary parameters to execute the DeleteResourceShare service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteResourceShare service method, as returned by RAM. /// /// The operation failed because the client token input parameter matched one that was /// used with a previous call to the operation, but at least one of the other input parameters /// is different from the previous call. /// /// /// The operation failed because the specified client token isn't valid. /// /// /// The operation failed because a parameter you specified isn't valid. /// /// /// The operation failed because the requested operation isn't valid for the resource /// share in its current state. /// /// /// The operation failed because the specified Amazon /// Resource Name (ARN) has a format that isn't valid. /// /// /// The operation failed because the requested operation isn't permitted. /// /// /// The operation failed because the service could not respond to the request due to an /// internal problem. Try again later. /// /// /// The operation failed because the service isn't available. Try again later. /// /// /// The operation failed because a specified resource couldn't be found. /// /// REST API Reference for DeleteResourceShare Operation Task DeleteResourceShareAsync(DeleteResourceShareRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DisassociateResourceShare /// /// Removes the specified principals or resources from participating in the specified /// resource share. /// /// Container for the necessary parameters to execute the DisassociateResourceShare service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DisassociateResourceShare service method, as returned by RAM. /// /// The operation failed because the client token input parameter matched one that was /// used with a previous call to the operation, but at least one of the other input parameters /// is different from the previous call. /// /// /// The operation failed because the specified client token isn't valid. /// /// /// The operation failed because a parameter you specified isn't valid. /// /// /// The operation failed because the requested operation isn't valid for the resource /// share in its current state. /// /// /// The operation failed because the specified Amazon /// Resource Name (ARN) has a format that isn't valid. /// /// /// The operation failed because the requested operation isn't permitted. /// /// /// The operation failed because it would exceed the limit for resource shares for your /// account. To view the limits for your Amazon Web Services account, see the RAM /// page in the Service Quotas console. /// /// /// The operation failed because the service could not respond to the request due to an /// internal problem. Try again later. /// /// /// The operation failed because the service isn't available. Try again later. /// /// /// The operation failed because a specified resource couldn't be found. /// /// REST API Reference for DisassociateResourceShare Operation Task DisassociateResourceShareAsync(DisassociateResourceShareRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DisassociateResourceSharePermission /// /// Removes a managed permission from a resource share. Permission changes take effect /// immediately. You can remove a managed permission from a resource share only if there /// are currently no resources of the relevant resource type currently attached to the /// resource share. /// /// Container for the necessary parameters to execute the DisassociateResourceSharePermission service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DisassociateResourceSharePermission service method, as returned by RAM. /// /// The operation failed because the specified client token isn't valid. /// /// /// The operation failed because a parameter you specified isn't valid. /// /// /// The operation failed because the requested operation isn't valid for the resource /// share in its current state. /// /// /// The operation failed because the specified Amazon /// Resource Name (ARN) has a format that isn't valid. /// /// /// The operation failed because the requested operation isn't permitted. /// /// /// The operation failed because the service could not respond to the request due to an /// internal problem. Try again later. /// /// /// The operation failed because the service isn't available. Try again later. /// /// /// The operation failed because a specified resource couldn't be found. /// /// REST API Reference for DisassociateResourceSharePermission Operation Task DisassociateResourceSharePermissionAsync(DisassociateResourceSharePermissionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region EnableSharingWithAwsOrganization /// /// Enables resource sharing within your organization in Organizations. This operation /// creates a service-linked role called AWSServiceRoleForResourceAccessManager /// that has the IAM managed policy named AWSResourceAccessManagerServiceRolePolicy attached. /// This role permits RAM to retrieve information about the organization and its structure. /// This lets you share resources with all of the accounts in the calling account's organization /// by specifying the organization ID, or all of the accounts in an organizational unit /// (OU) by specifying the OU ID. Until you enable sharing within the organization, you /// can specify only individual Amazon Web Services accounts, or for supported resource /// types, IAM roles and users. /// /// /// /// You must call this operation from an IAM role or user in the organization's management /// account. /// /// /// Container for the necessary parameters to execute the EnableSharingWithAwsOrganization service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the EnableSharingWithAwsOrganization service method, as returned by RAM. /// /// The operation failed because the requested operation isn't permitted. /// /// /// The operation failed because the service could not respond to the request due to an /// internal problem. Try again later. /// /// /// The operation failed because the service isn't available. Try again later. /// /// REST API Reference for EnableSharingWithAwsOrganization Operation Task EnableSharingWithAwsOrganizationAsync(EnableSharingWithAwsOrganizationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetPermission /// /// Retrieves the contents of a managed permission in JSON format. /// /// Container for the necessary parameters to execute the GetPermission service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetPermission service method, as returned by RAM. /// /// The operation failed because a parameter you specified isn't valid. /// /// /// The operation failed because the specified Amazon /// Resource Name (ARN) has a format that isn't valid. /// /// /// The operation failed because the requested operation isn't permitted. /// /// /// The operation failed because the service could not respond to the request due to an /// internal problem. Try again later. /// /// /// The operation failed because the service isn't available. Try again later. /// /// /// The operation failed because a specified resource couldn't be found. /// /// REST API Reference for GetPermission Operation Task GetPermissionAsync(GetPermissionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetResourcePolicies /// /// Retrieves the resource policies for the specified resources that you own and have /// shared. /// /// Container for the necessary parameters to execute the GetResourcePolicies service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetResourcePolicies service method, as returned by RAM. /// /// The operation failed because the specified value for NextToken isn't /// valid. You must specify a value you received in the NextToken response /// of a previous call to this operation. /// /// /// The operation failed because a parameter you specified isn't valid. /// /// /// The operation failed because the specified Amazon /// Resource Name (ARN) has a format that isn't valid. /// /// /// The operation failed because the specified Amazon /// Resource Name (ARN) was not found. /// /// /// The operation failed because the service could not respond to the request due to an /// internal problem. Try again later. /// /// /// The operation failed because the service isn't available. Try again later. /// /// REST API Reference for GetResourcePolicies Operation Task GetResourcePoliciesAsync(GetResourcePoliciesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetResourceShareAssociations /// /// Retrieves the lists of resources and principals that associated for resource shares /// that you own. /// /// Container for the necessary parameters to execute the GetResourceShareAssociations service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetResourceShareAssociations service method, as returned by RAM. /// /// The operation failed because the specified value for NextToken isn't /// valid. You must specify a value you received in the NextToken response /// of a previous call to this operation. /// /// /// The operation failed because a parameter you specified isn't valid. /// /// /// The operation failed because the specified Amazon /// Resource Name (ARN) has a format that isn't valid. /// /// /// The operation failed because the requested operation isn't permitted. /// /// /// The operation failed because the service could not respond to the request due to an /// internal problem. Try again later. /// /// /// The operation failed because the service isn't available. Try again later. /// /// /// The operation failed because a specified resource couldn't be found. /// /// REST API Reference for GetResourceShareAssociations Operation Task GetResourceShareAssociationsAsync(GetResourceShareAssociationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetResourceShareInvitations /// /// Retrieves details about invitations that you have received for resource shares. /// /// Container for the necessary parameters to execute the GetResourceShareInvitations service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetResourceShareInvitations service method, as returned by RAM. /// /// The operation failed because the specified value for MaxResults isn't /// valid. /// /// /// The operation failed because the specified value for NextToken isn't /// valid. You must specify a value you received in the NextToken response /// of a previous call to this operation. /// /// /// The operation failed because a parameter you specified isn't valid. /// /// /// The operation failed because the specified Amazon /// Resource Name (ARN) has a format that isn't valid. /// /// /// The operation failed because the specified Amazon /// Resource Name (ARN) for an invitation was not found. /// /// /// The operation failed because the service could not respond to the request due to an /// internal problem. Try again later. /// /// /// The operation failed because the service isn't available. Try again later. /// /// /// The operation failed because a specified resource couldn't be found. /// /// REST API Reference for GetResourceShareInvitations Operation Task GetResourceShareInvitationsAsync(GetResourceShareInvitationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetResourceShares /// /// Retrieves details about the resource shares that you own or that are shared with you. /// /// Container for the necessary parameters to execute the GetResourceShares service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetResourceShares service method, as returned by RAM. /// /// The operation failed because the specified value for NextToken isn't /// valid. You must specify a value you received in the NextToken response /// of a previous call to this operation. /// /// /// The operation failed because a parameter you specified isn't valid. /// /// /// The operation failed because the specified Amazon /// Resource Name (ARN) has a format that isn't valid. /// /// /// The operation failed because the service could not respond to the request due to an /// internal problem. Try again later. /// /// /// The operation failed because the service isn't available. Try again later. /// /// /// The operation failed because a specified resource couldn't be found. /// /// REST API Reference for GetResourceShares Operation Task GetResourceSharesAsync(GetResourceSharesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListPendingInvitationResources /// /// Lists the resources in a resource share that is shared with you but for which the /// invitation is still PENDING. That means that you haven't accepted or /// rejected the invitation and the invitation hasn't expired. /// /// Container for the necessary parameters to execute the ListPendingInvitationResources service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListPendingInvitationResources service method, as returned by RAM. /// /// The operation failed because the specified value for NextToken isn't /// valid. You must specify a value you received in the NextToken response /// of a previous call to this operation. /// /// /// The operation failed because a parameter you specified isn't valid. /// /// /// The operation failed because the specified Amazon /// Resource Name (ARN) has a format that isn't valid. /// /// /// The operation failed because a required input parameter is missing. /// /// /// The operation failed because the specified invitation was already rejected. /// /// /// The operation failed because the specified Amazon /// Resource Name (ARN) for an invitation was not found. /// /// /// The operation failed because the specified invitation is past its expiration date /// and time. /// /// /// The operation failed because the service could not respond to the request due to an /// internal problem. Try again later. /// /// /// The operation failed because the service isn't available. Try again later. /// /// REST API Reference for ListPendingInvitationResources Operation Task ListPendingInvitationResourcesAsync(ListPendingInvitationResourcesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListPermissionAssociations /// /// Lists information about the managed permission and its associations to any resource /// shares that use this managed permission. This lets you see which resource shares use /// which versions of the specified managed permission. /// /// Container for the necessary parameters to execute the ListPermissionAssociations service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListPermissionAssociations service method, as returned by RAM. /// /// The operation failed because the specified value for NextToken isn't /// valid. You must specify a value you received in the NextToken response /// of a previous call to this operation. /// /// /// The operation failed because a parameter you specified isn't valid. /// /// /// The operation failed because the specified Amazon /// Resource Name (ARN) has a format that isn't valid. /// /// /// The operation failed because the service could not respond to the request due to an /// internal problem. Try again later. /// /// /// The operation failed because the service isn't available. Try again later. /// /// REST API Reference for ListPermissionAssociations Operation Task ListPermissionAssociationsAsync(ListPermissionAssociationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListPermissions /// /// Retrieves a list of available RAM permissions that you can use for the supported resource /// types. /// /// Container for the necessary parameters to execute the ListPermissions service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListPermissions service method, as returned by RAM. /// /// The operation failed because the specified value for NextToken isn't /// valid. You must specify a value you received in the NextToken response /// of a previous call to this operation. /// /// /// The operation failed because a parameter you specified isn't valid. /// /// /// The operation failed because the requested operation isn't permitted. /// /// /// The operation failed because the service could not respond to the request due to an /// internal problem. Try again later. /// /// /// The operation failed because the service isn't available. Try again later. /// /// REST API Reference for ListPermissions Operation Task ListPermissionsAsync(ListPermissionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListPermissionVersions /// /// Lists the available versions of the specified RAM permission. /// /// Container for the necessary parameters to execute the ListPermissionVersions service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListPermissionVersions service method, as returned by RAM. /// /// The operation failed because the specified value for NextToken isn't /// valid. You must specify a value you received in the NextToken response /// of a previous call to this operation. /// /// /// The operation failed because a parameter you specified isn't valid. /// /// /// The operation failed because the specified Amazon /// Resource Name (ARN) has a format that isn't valid. /// /// /// The operation failed because the requested operation isn't permitted. /// /// /// The operation failed because the service could not respond to the request due to an /// internal problem. Try again later. /// /// /// The operation failed because the service isn't available. Try again later. /// /// /// The operation failed because a specified resource couldn't be found. /// /// REST API Reference for ListPermissionVersions Operation Task ListPermissionVersionsAsync(ListPermissionVersionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListPrincipals /// /// Lists the principals that you are sharing resources with or that are sharing resources /// with you. /// /// Container for the necessary parameters to execute the ListPrincipals service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListPrincipals service method, as returned by RAM. /// /// The operation failed because the specified value for NextToken isn't /// valid. You must specify a value you received in the NextToken response /// of a previous call to this operation. /// /// /// The operation failed because a parameter you specified isn't valid. /// /// /// The operation failed because the specified Amazon /// Resource Name (ARN) has a format that isn't valid. /// /// /// The operation failed because the service could not respond to the request due to an /// internal problem. Try again later. /// /// /// The operation failed because the service isn't available. Try again later. /// /// /// The operation failed because a specified resource couldn't be found. /// /// REST API Reference for ListPrincipals Operation Task ListPrincipalsAsync(ListPrincipalsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListReplacePermissionAssociationsWork /// /// Retrieves the current status of the asynchronous tasks performed by RAM when you perform /// the ReplacePermissionAssociationsWork operation. /// /// Container for the necessary parameters to execute the ListReplacePermissionAssociationsWork service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListReplacePermissionAssociationsWork service method, as returned by RAM. /// /// The operation failed because the specified value for NextToken isn't /// valid. You must specify a value you received in the NextToken response /// of a previous call to this operation. /// /// /// The operation failed because a parameter you specified isn't valid. /// /// /// The operation failed because the service could not respond to the request due to an /// internal problem. Try again later. /// /// /// The operation failed because the service isn't available. Try again later. /// /// REST API Reference for ListReplacePermissionAssociationsWork Operation Task ListReplacePermissionAssociationsWorkAsync(ListReplacePermissionAssociationsWorkRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListResources /// /// Lists the resources that you added to a resource share or the resources that are shared /// with you. /// /// Container for the necessary parameters to execute the ListResources service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListResources service method, as returned by RAM. /// /// The operation failed because the specified value for NextToken isn't /// valid. You must specify a value you received in the NextToken response /// of a previous call to this operation. /// /// /// The operation failed because a parameter you specified isn't valid. /// /// /// The operation failed because the specified resource type isn't valid. /// /// /// The operation failed because the specified Amazon /// Resource Name (ARN) has a format that isn't valid. /// /// /// The operation failed because the service could not respond to the request due to an /// internal problem. Try again later. /// /// /// The operation failed because the service isn't available. Try again later. /// /// /// The operation failed because a specified resource couldn't be found. /// /// REST API Reference for ListResources Operation Task ListResourcesAsync(ListResourcesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListResourceSharePermissions /// /// Lists the RAM permissions that are associated with a resource share. /// /// Container for the necessary parameters to execute the ListResourceSharePermissions service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListResourceSharePermissions service method, as returned by RAM. /// /// The operation failed because the specified value for NextToken isn't /// valid. You must specify a value you received in the NextToken response /// of a previous call to this operation. /// /// /// The operation failed because a parameter you specified isn't valid. /// /// /// The operation failed because the specified Amazon /// Resource Name (ARN) has a format that isn't valid. /// /// /// The operation failed because the requested operation isn't permitted. /// /// /// The operation failed because the service could not respond to the request due to an /// internal problem. Try again later. /// /// /// The operation failed because the service isn't available. Try again later. /// /// /// The operation failed because a specified resource couldn't be found. /// /// REST API Reference for ListResourceSharePermissions Operation Task ListResourceSharePermissionsAsync(ListResourceSharePermissionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListResourceTypes /// /// Lists the resource types that can be shared by RAM. /// /// Container for the necessary parameters to execute the ListResourceTypes service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListResourceTypes service method, as returned by RAM. /// /// The operation failed because the specified value for NextToken isn't /// valid. You must specify a value you received in the NextToken response /// of a previous call to this operation. /// /// /// The operation failed because a parameter you specified isn't valid. /// /// /// The operation failed because the service could not respond to the request due to an /// internal problem. Try again later. /// /// /// The operation failed because the service isn't available. Try again later. /// /// REST API Reference for ListResourceTypes Operation Task ListResourceTypesAsync(ListResourceTypesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region PromotePermissionCreatedFromPolicy /// /// When you attach a resource-based policy to a resource, RAM automatically creates a /// resource share of featureSet=CREATED_FROM_POLICY with a /// managed permission that has the same IAM permissions as the original resource-based /// policy. However, this type of managed permission is visible to only the resource share /// owner, and the associated resource share can't be modified by using RAM. /// /// /// /// This operation creates a separate, fully manageable customer managed permission that /// has the same IAM permissions as the original resource-based policy. You can associate /// this customer managed permission to any resource shares. /// /// /// /// Before you use PromoteResourceShareCreatedFromPolicy, you should first run /// this operation to ensure that you have an appropriate customer managed permission /// that can be associated with the promoted resource share. /// ///
  • /// /// The original CREATED_FROM_POLICY policy isn't deleted, and resource shares /// using that original policy aren't automatically updated. /// ///
  • /// /// You can't modify a CREATED_FROM_POLICY resource share so you can't associate /// the new customer managed permission by using ReplacePermsissionAssociations. /// However, if you use PromoteResourceShareCreatedFromPolicy, that operation automatically /// associates the fully manageable customer managed permission to the newly promoted /// STANDARD resource share. /// ///
  • /// /// After you promote a resource share, if the original CREATED_FROM_POLICY /// managed permission has no other associations to A resource share, then RAM automatically /// deletes it. /// ///
///
/// Container for the necessary parameters to execute the PromotePermissionCreatedFromPolicy service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the PromotePermissionCreatedFromPolicy service method, as returned by RAM. /// /// The operation failed because a parameter you specified isn't valid. /// /// /// The operation failed because the specified Amazon /// Resource Name (ARN) has a format that isn't valid. /// /// /// The operation failed because a required input parameter is missing. /// /// /// The operation failed because the requested operation isn't permitted. /// /// /// The operation failed because the service could not respond to the request due to an /// internal problem. Try again later. /// /// /// The operation failed because the service isn't available. Try again later. /// /// /// The operation failed because a specified resource couldn't be found. /// /// REST API Reference for PromotePermissionCreatedFromPolicy Operation Task PromotePermissionCreatedFromPolicyAsync(PromotePermissionCreatedFromPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region PromoteResourceShareCreatedFromPolicy /// /// When you attach a resource-based policy to a resource, RAM automatically creates a /// resource share of featureSet=CREATED_FROM_POLICY with a /// managed permission that has the same IAM permissions as the original resource-based /// policy. However, this type of managed permission is visible to only the resource share /// owner, and the associated resource share can't be modified by using RAM. /// /// /// /// This operation promotes the resource share to a STANDARD resource share /// that is fully manageable in RAM. When you promote a resource share, you can then manage /// the resource share in RAM and it becomes visible to all of the principals you shared /// it with. /// /// /// /// Before you perform this operation, you should first run PromotePermissionCreatedFromPolicyto /// ensure that you have an appropriate customer managed permission that can be associated /// with this resource share after its is promoted. If this operation can't find a managed /// permission that exactly matches the existing CREATED_FROM_POLICY permission, /// then this operation fails. /// /// /// /// Container for the necessary parameters to execute the PromoteResourceShareCreatedFromPolicy service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the PromoteResourceShareCreatedFromPolicy service method, as returned by RAM. /// /// The operation failed because a parameter you specified isn't valid. /// /// /// The operation failed because the requested operation isn't valid for the resource /// share in its current state. /// /// /// The operation failed because the specified Amazon /// Resource Name (ARN) has a format that isn't valid. /// /// /// The operation failed because a required input parameter is missing. /// /// /// The operation failed because the requested operation isn't permitted. /// /// /// The operation failed because it would exceed the limit for resource shares for your /// account. To view the limits for your Amazon Web Services account, see the RAM /// page in the Service Quotas console. /// /// /// The operation failed because the service could not respond to the request due to an /// internal problem. Try again later. /// /// /// The operation failed because the service isn't available. Try again later. /// /// /// The operation failed because a specified resource couldn't be found. /// /// /// There isn't an existing managed permission defined in RAM that has the same IAM permissions /// as the resource-based policy attached to the resource. You should first run PromotePermissionCreatedFromPolicy /// to create that managed permission. /// /// REST API Reference for PromoteResourceShareCreatedFromPolicy Operation Task PromoteResourceShareCreatedFromPolicyAsync(PromoteResourceShareCreatedFromPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region RejectResourceShareInvitation /// /// Rejects an invitation to a resource share from another Amazon Web Services account. /// /// Container for the necessary parameters to execute the RejectResourceShareInvitation service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the RejectResourceShareInvitation service method, as returned by RAM. /// /// The operation failed because the client token input parameter matched one that was /// used with a previous call to the operation, but at least one of the other input parameters /// is different from the previous call. /// /// /// The operation failed because the specified client token isn't valid. /// /// /// The operation failed because the specified Amazon /// Resource Name (ARN) has a format that isn't valid. /// /// /// The operation failed because the requested operation isn't permitted. /// /// /// The operation failed because the specified invitation was already accepted. /// /// /// The operation failed because the specified invitation was already rejected. /// /// /// The operation failed because the specified Amazon /// Resource Name (ARN) for an invitation was not found. /// /// /// The operation failed because the specified invitation is past its expiration date /// and time. /// /// /// The operation failed because the service could not respond to the request due to an /// internal problem. Try again later. /// /// /// The operation failed because the service isn't available. Try again later. /// /// REST API Reference for RejectResourceShareInvitation Operation Task RejectResourceShareInvitationAsync(RejectResourceShareInvitationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ReplacePermissionAssociations /// /// Updates all resource shares that use a managed permission to a different managed permission. /// This operation always applies the default version of the target managed permission. /// You can optionally specify that the update applies to only resource shares that currently /// use a specified version. This enables you to update to the latest version, without /// changing the which managed permission is used. /// /// /// /// You can use this operation to update all of your resource shares to use the current /// default version of the permission by specifying the same value for the fromPermissionArn /// and toPermissionArn parameters. /// /// /// /// You can use the optional fromPermissionVersion parameter to update only /// those resources that use a specified version of the managed permission to the new /// managed permission. /// /// /// /// To successfully perform this operation, you must have permission to update the resource-based /// policy on all affected resource types. /// /// /// /// Container for the necessary parameters to execute the ReplacePermissionAssociations service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ReplacePermissionAssociations service method, as returned by RAM. /// /// The operation failed because the client token input parameter matched one that was /// used with a previous call to the operation, but at least one of the other input parameters /// is different from the previous call. /// /// /// The operation failed because the specified client token isn't valid. /// /// /// The operation failed because a parameter you specified isn't valid. /// /// /// The operation failed because the specified Amazon /// Resource Name (ARN) has a format that isn't valid. /// /// /// The operation failed because the requested operation isn't permitted. /// /// /// The operation failed because the service could not respond to the request due to an /// internal problem. Try again later. /// /// /// The operation failed because the service isn't available. Try again later. /// /// /// The operation failed because a specified resource couldn't be found. /// /// REST API Reference for ReplacePermissionAssociations Operation Task ReplacePermissionAssociationsAsync(ReplacePermissionAssociationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region SetDefaultPermissionVersion /// /// Designates the specified version number as the default version for the specified customer /// managed permission. New resource shares automatically use this new default permission. /// Existing resource shares continue to use their original permission version, but you /// can use ReplacePermissionAssociations to update them. /// /// Container for the necessary parameters to execute the SetDefaultPermissionVersion service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the SetDefaultPermissionVersion service method, as returned by RAM. /// /// The operation failed because the client token input parameter matched one that was /// used with a previous call to the operation, but at least one of the other input parameters /// is different from the previous call. /// /// /// The operation failed because the specified client token isn't valid. /// /// /// The operation failed because a parameter you specified isn't valid. /// /// /// The operation failed because the specified Amazon /// Resource Name (ARN) has a format that isn't valid. /// /// /// The operation failed because the service could not respond to the request due to an /// internal problem. Try again later. /// /// /// The operation failed because the service isn't available. Try again later. /// /// /// The operation failed because a specified resource couldn't be found. /// /// REST API Reference for SetDefaultPermissionVersion Operation Task SetDefaultPermissionVersionAsync(SetDefaultPermissionVersionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region TagResource /// /// Adds the specified tag keys and values to a resource share or managed permission. /// If you choose a resource share, the tags are attached to only the resource share, /// not to the resources that are in the resource share. /// /// /// /// The tags on a managed permission are the same for all versions of the managed permission. /// /// /// Container for the necessary parameters to execute the TagResource service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the TagResource service method, as returned by RAM. /// /// The operation failed because a parameter you specified isn't valid. /// /// /// The operation failed because the specified Amazon /// Resource Name (ARN) has a format that isn't valid. /// /// /// The operation failed because the specified Amazon /// Resource Name (ARN) was not found. /// /// /// The operation failed because the service could not respond to the request due to an /// internal problem. Try again later. /// /// /// The operation failed because the service isn't available. Try again later. /// /// /// The operation failed because it would exceed the limit for tags for your Amazon Web /// Services account. /// /// /// The operation failed because the specified tag key is a reserved word and can't be /// used. /// /// /// The operation failed because a specified resource couldn't be found. /// /// REST API Reference for TagResource Operation Task TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UntagResource /// /// Removes the specified tag key and value pairs from the specified resource share or /// managed permission. /// /// Container for the necessary parameters to execute the UntagResource service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UntagResource service method, as returned by RAM. /// /// The operation failed because a parameter you specified isn't valid. /// /// /// The operation failed because the specified Amazon /// Resource Name (ARN) has a format that isn't valid. /// /// /// The operation failed because the service could not respond to the request due to an /// internal problem. Try again later. /// /// /// The operation failed because the service isn't available. Try again later. /// /// /// The operation failed because a specified resource couldn't be found. /// /// REST API Reference for UntagResource Operation Task UntagResourceAsync(UntagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateResourceShare /// /// Modifies some of the properties of the specified resource share. /// /// Container for the necessary parameters to execute the UpdateResourceShare service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateResourceShare service method, as returned by RAM. /// /// The operation failed because the client token input parameter matched one that was /// used with a previous call to the operation, but at least one of the other input parameters /// is different from the previous call. /// /// /// The operation failed because the specified client token isn't valid. /// /// /// The operation failed because a parameter you specified isn't valid. /// /// /// The operation failed because the specified Amazon /// Resource Name (ARN) has a format that isn't valid. /// /// /// The operation failed because a required input parameter is missing. /// /// /// The operation failed because the requested operation isn't permitted. /// /// /// The operation failed because the service could not respond to the request due to an /// internal problem. Try again later. /// /// /// The operation failed because the service isn't available. Try again later. /// /// /// The operation failed because a specified resource couldn't be found. /// /// REST API Reference for UpdateResourceShare Operation Task UpdateResourceShareAsync(UpdateResourceShareRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion } }