/* * 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 account-2021-02-01.normal.json service model. */ using System; using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; using Amazon.Runtime; using Amazon.Account.Model; namespace Amazon.Account { /// /// Interface for accessing Account /// /// Operations for Amazon Web Services Account Management /// public partial interface IAmazonAccount : IAmazonService, IDisposable { /// /// Paginators for the service /// IAccountPaginatorFactory Paginators { get; } #region DeleteAlternateContact /// /// Deletes the specified alternate contact from an Amazon Web Services account. /// /// /// /// For complete details about how to use the alternate contact operations, see Access /// or updating the alternate contacts. /// /// /// /// Before you can update the alternate contact information for an Amazon Web Services /// account that is managed by Organizations, you must first enable integration between /// Amazon Web Services Account Management and Organizations. For more information, see /// Enabling /// trusted access for Amazon Web Services Account Management. /// /// /// /// Container for the necessary parameters to execute the DeleteAlternateContact service method. /// /// The response from the DeleteAlternateContact service method, as returned by Account. /// /// The operation failed because the calling identity doesn't have the minimum required /// permissions. /// /// /// The operation failed because of an error internal to Amazon Web Services. Try your /// operation again later. /// /// /// The operation failed because it specified a resource that can't be found. /// /// /// The operation failed because it was called too frequently and exceeded a throttle /// limit. /// /// /// The operation failed because one of the input parameters was invalid. /// /// REST API Reference for DeleteAlternateContact Operation DeleteAlternateContactResponse DeleteAlternateContact(DeleteAlternateContactRequest request); /// /// Deletes the specified alternate contact from an Amazon Web Services account. /// /// /// /// For complete details about how to use the alternate contact operations, see Access /// or updating the alternate contacts. /// /// /// /// Before you can update the alternate contact information for an Amazon Web Services /// account that is managed by Organizations, you must first enable integration between /// Amazon Web Services Account Management and Organizations. For more information, see /// Enabling /// trusted access for Amazon Web Services Account Management. /// /// /// /// Container for the necessary parameters to execute the DeleteAlternateContact service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteAlternateContact service method, as returned by Account. /// /// The operation failed because the calling identity doesn't have the minimum required /// permissions. /// /// /// The operation failed because of an error internal to Amazon Web Services. Try your /// operation again later. /// /// /// The operation failed because it specified a resource that can't be found. /// /// /// The operation failed because it was called too frequently and exceeded a throttle /// limit. /// /// /// The operation failed because one of the input parameters was invalid. /// /// REST API Reference for DeleteAlternateContact Operation Task DeleteAlternateContactAsync(DeleteAlternateContactRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DisableRegion /// /// Disables (opts-out) a particular Region for an account. /// /// Container for the necessary parameters to execute the DisableRegion service method. /// /// The response from the DisableRegion service method, as returned by Account. /// /// The operation failed because the calling identity doesn't have the minimum required /// permissions. /// /// /// The request could not be processed because of a conflict in the current status of /// the resource. For example, this happens if you try to enable a Region that is currently /// being disabled (in a status of DISABLING). /// /// /// The operation failed because of an error internal to Amazon Web Services. Try your /// operation again later. /// /// /// The operation failed because it was called too frequently and exceeded a throttle /// limit. /// /// /// The operation failed because one of the input parameters was invalid. /// /// REST API Reference for DisableRegion Operation DisableRegionResponse DisableRegion(DisableRegionRequest request); /// /// Disables (opts-out) a particular Region for an account. /// /// Container for the necessary parameters to execute the DisableRegion service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DisableRegion service method, as returned by Account. /// /// The operation failed because the calling identity doesn't have the minimum required /// permissions. /// /// /// The request could not be processed because of a conflict in the current status of /// the resource. For example, this happens if you try to enable a Region that is currently /// being disabled (in a status of DISABLING). /// /// /// The operation failed because of an error internal to Amazon Web Services. Try your /// operation again later. /// /// /// The operation failed because it was called too frequently and exceeded a throttle /// limit. /// /// /// The operation failed because one of the input parameters was invalid. /// /// REST API Reference for DisableRegion Operation Task DisableRegionAsync(DisableRegionRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region EnableRegion /// /// Enables (opts-in) a particular Region for an account. /// /// Container for the necessary parameters to execute the EnableRegion service method. /// /// The response from the EnableRegion service method, as returned by Account. /// /// The operation failed because the calling identity doesn't have the minimum required /// permissions. /// /// /// The request could not be processed because of a conflict in the current status of /// the resource. For example, this happens if you try to enable a Region that is currently /// being disabled (in a status of DISABLING). /// /// /// The operation failed because of an error internal to Amazon Web Services. Try your /// operation again later. /// /// /// The operation failed because it was called too frequently and exceeded a throttle /// limit. /// /// /// The operation failed because one of the input parameters was invalid. /// /// REST API Reference for EnableRegion Operation EnableRegionResponse EnableRegion(EnableRegionRequest request); /// /// Enables (opts-in) a particular Region for an account. /// /// Container for the necessary parameters to execute the EnableRegion service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the EnableRegion service method, as returned by Account. /// /// The operation failed because the calling identity doesn't have the minimum required /// permissions. /// /// /// The request could not be processed because of a conflict in the current status of /// the resource. For example, this happens if you try to enable a Region that is currently /// being disabled (in a status of DISABLING). /// /// /// The operation failed because of an error internal to Amazon Web Services. Try your /// operation again later. /// /// /// The operation failed because it was called too frequently and exceeded a throttle /// limit. /// /// /// The operation failed because one of the input parameters was invalid. /// /// REST API Reference for EnableRegion Operation Task EnableRegionAsync(EnableRegionRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetAlternateContact /// /// Retrieves the specified alternate contact attached to an Amazon Web Services account. /// /// /// /// For complete details about how to use the alternate contact operations, see Access /// or updating the alternate contacts. /// /// /// /// Before you can update the alternate contact information for an Amazon Web Services /// account that is managed by Organizations, you must first enable integration between /// Amazon Web Services Account Management and Organizations. For more information, see /// Enabling /// trusted access for Amazon Web Services Account Management. /// /// /// /// Container for the necessary parameters to execute the GetAlternateContact service method. /// /// The response from the GetAlternateContact service method, as returned by Account. /// /// The operation failed because the calling identity doesn't have the minimum required /// permissions. /// /// /// The operation failed because of an error internal to Amazon Web Services. Try your /// operation again later. /// /// /// The operation failed because it specified a resource that can't be found. /// /// /// The operation failed because it was called too frequently and exceeded a throttle /// limit. /// /// /// The operation failed because one of the input parameters was invalid. /// /// REST API Reference for GetAlternateContact Operation GetAlternateContactResponse GetAlternateContact(GetAlternateContactRequest request); /// /// Retrieves the specified alternate contact attached to an Amazon Web Services account. /// /// /// /// For complete details about how to use the alternate contact operations, see Access /// or updating the alternate contacts. /// /// /// /// Before you can update the alternate contact information for an Amazon Web Services /// account that is managed by Organizations, you must first enable integration between /// Amazon Web Services Account Management and Organizations. For more information, see /// Enabling /// trusted access for Amazon Web Services Account Management. /// /// /// /// Container for the necessary parameters to execute the GetAlternateContact service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetAlternateContact service method, as returned by Account. /// /// The operation failed because the calling identity doesn't have the minimum required /// permissions. /// /// /// The operation failed because of an error internal to Amazon Web Services. Try your /// operation again later. /// /// /// The operation failed because it specified a resource that can't be found. /// /// /// The operation failed because it was called too frequently and exceeded a throttle /// limit. /// /// /// The operation failed because one of the input parameters was invalid. /// /// REST API Reference for GetAlternateContact Operation Task GetAlternateContactAsync(GetAlternateContactRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetContactInformation /// /// Retrieves the primary contact information of an Amazon Web Services account. /// /// /// /// For complete details about how to use the primary contact operations, see Update /// the primary and alternate contact information. /// /// /// Container for the necessary parameters to execute the GetContactInformation service method. /// /// The response from the GetContactInformation service method, as returned by Account. /// /// The operation failed because the calling identity doesn't have the minimum required /// permissions. /// /// /// The operation failed because of an error internal to Amazon Web Services. Try your /// operation again later. /// /// /// The operation failed because it specified a resource that can't be found. /// /// /// The operation failed because it was called too frequently and exceeded a throttle /// limit. /// /// /// The operation failed because one of the input parameters was invalid. /// /// REST API Reference for GetContactInformation Operation GetContactInformationResponse GetContactInformation(GetContactInformationRequest request); /// /// Retrieves the primary contact information of an Amazon Web Services account. /// /// /// /// For complete details about how to use the primary contact operations, see Update /// the primary and alternate contact information. /// /// /// Container for the necessary parameters to execute the GetContactInformation service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetContactInformation service method, as returned by Account. /// /// The operation failed because the calling identity doesn't have the minimum required /// permissions. /// /// /// The operation failed because of an error internal to Amazon Web Services. Try your /// operation again later. /// /// /// The operation failed because it specified a resource that can't be found. /// /// /// The operation failed because it was called too frequently and exceeded a throttle /// limit. /// /// /// The operation failed because one of the input parameters was invalid. /// /// REST API Reference for GetContactInformation Operation Task GetContactInformationAsync(GetContactInformationRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetRegionOptStatus /// /// Retrieves the opt-in status of a particular Region. /// /// Container for the necessary parameters to execute the GetRegionOptStatus service method. /// /// The response from the GetRegionOptStatus service method, as returned by Account. /// /// The operation failed because the calling identity doesn't have the minimum required /// permissions. /// /// /// The operation failed because of an error internal to Amazon Web Services. Try your /// operation again later. /// /// /// The operation failed because it was called too frequently and exceeded a throttle /// limit. /// /// /// The operation failed because one of the input parameters was invalid. /// /// REST API Reference for GetRegionOptStatus Operation GetRegionOptStatusResponse GetRegionOptStatus(GetRegionOptStatusRequest request); /// /// Retrieves the opt-in status of a particular Region. /// /// Container for the necessary parameters to execute the GetRegionOptStatus service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetRegionOptStatus service method, as returned by Account. /// /// The operation failed because the calling identity doesn't have the minimum required /// permissions. /// /// /// The operation failed because of an error internal to Amazon Web Services. Try your /// operation again later. /// /// /// The operation failed because it was called too frequently and exceeded a throttle /// limit. /// /// /// The operation failed because one of the input parameters was invalid. /// /// REST API Reference for GetRegionOptStatus Operation Task GetRegionOptStatusAsync(GetRegionOptStatusRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListRegions /// /// Lists all the Regions for a given account and their respective opt-in statuses. Optionally, /// this list can be filtered by the region-opt-status-contains parameter. /// /// Container for the necessary parameters to execute the ListRegions service method. /// /// The response from the ListRegions service method, as returned by Account. /// /// The operation failed because the calling identity doesn't have the minimum required /// permissions. /// /// /// The operation failed because of an error internal to Amazon Web Services. Try your /// operation again later. /// /// /// The operation failed because it was called too frequently and exceeded a throttle /// limit. /// /// /// The operation failed because one of the input parameters was invalid. /// /// REST API Reference for ListRegions Operation ListRegionsResponse ListRegions(ListRegionsRequest request); /// /// Lists all the Regions for a given account and their respective opt-in statuses. Optionally, /// this list can be filtered by the region-opt-status-contains parameter. /// /// Container for the necessary parameters to execute the ListRegions service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListRegions service method, as returned by Account. /// /// The operation failed because the calling identity doesn't have the minimum required /// permissions. /// /// /// The operation failed because of an error internal to Amazon Web Services. Try your /// operation again later. /// /// /// The operation failed because it was called too frequently and exceeded a throttle /// limit. /// /// /// The operation failed because one of the input parameters was invalid. /// /// REST API Reference for ListRegions Operation Task ListRegionsAsync(ListRegionsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region PutAlternateContact /// /// Modifies the specified alternate contact attached to an Amazon Web Services account. /// /// /// /// For complete details about how to use the alternate contact operations, see Access /// or updating the alternate contacts. /// /// /// /// Before you can update the alternate contact information for an Amazon Web Services /// account that is managed by Organizations, you must first enable integration between /// Amazon Web Services Account Management and Organizations. For more information, see /// Enabling /// trusted access for Amazon Web Services Account Management. /// /// /// /// Container for the necessary parameters to execute the PutAlternateContact service method. /// /// The response from the PutAlternateContact service method, as returned by Account. /// /// The operation failed because the calling identity doesn't have the minimum required /// permissions. /// /// /// The operation failed because of an error internal to Amazon Web Services. Try your /// operation again later. /// /// /// The operation failed because it was called too frequently and exceeded a throttle /// limit. /// /// /// The operation failed because one of the input parameters was invalid. /// /// REST API Reference for PutAlternateContact Operation PutAlternateContactResponse PutAlternateContact(PutAlternateContactRequest request); /// /// Modifies the specified alternate contact attached to an Amazon Web Services account. /// /// /// /// For complete details about how to use the alternate contact operations, see Access /// or updating the alternate contacts. /// /// /// /// Before you can update the alternate contact information for an Amazon Web Services /// account that is managed by Organizations, you must first enable integration between /// Amazon Web Services Account Management and Organizations. For more information, see /// Enabling /// trusted access for Amazon Web Services Account Management. /// /// /// /// Container for the necessary parameters to execute the PutAlternateContact service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the PutAlternateContact service method, as returned by Account. /// /// The operation failed because the calling identity doesn't have the minimum required /// permissions. /// /// /// The operation failed because of an error internal to Amazon Web Services. Try your /// operation again later. /// /// /// The operation failed because it was called too frequently and exceeded a throttle /// limit. /// /// /// The operation failed because one of the input parameters was invalid. /// /// REST API Reference for PutAlternateContact Operation Task PutAlternateContactAsync(PutAlternateContactRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region PutContactInformation /// /// Updates the primary contact information of an Amazon Web Services account. /// /// /// /// For complete details about how to use the primary contact operations, see Update /// the primary and alternate contact information. /// /// /// Container for the necessary parameters to execute the PutContactInformation service method. /// /// The response from the PutContactInformation service method, as returned by Account. /// /// The operation failed because the calling identity doesn't have the minimum required /// permissions. /// /// /// The operation failed because of an error internal to Amazon Web Services. Try your /// operation again later. /// /// /// The operation failed because it was called too frequently and exceeded a throttle /// limit. /// /// /// The operation failed because one of the input parameters was invalid. /// /// REST API Reference for PutContactInformation Operation PutContactInformationResponse PutContactInformation(PutContactInformationRequest request); /// /// Updates the primary contact information of an Amazon Web Services account. /// /// /// /// For complete details about how to use the primary contact operations, see Update /// the primary and alternate contact information. /// /// /// Container for the necessary parameters to execute the PutContactInformation service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the PutContactInformation service method, as returned by Account. /// /// The operation failed because the calling identity doesn't have the minimum required /// permissions. /// /// /// The operation failed because of an error internal to Amazon Web Services. Try your /// operation again later. /// /// /// The operation failed because it was called too frequently and exceeded a throttle /// limit. /// /// /// The operation failed because one of the input parameters was invalid. /// /// REST API Reference for PutContactInformation Operation Task PutContactInformationAsync(PutContactInformationRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion } }