/* * 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 amplifyuibuilder-2021-08-11.normal.json service model. */ using System; using System.Runtime.ExceptionServices; using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; using System.Net; using Amazon.AmplifyUIBuilder.Model; using Amazon.AmplifyUIBuilder.Model.Internal.MarshallTransformations; using Amazon.AmplifyUIBuilder.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.AmplifyUIBuilder { /// /// Implementation for accessing AmplifyUIBuilder /// /// The Amplify UI Builder API provides a programmatic interface for creating and configuring /// user interface (UI) component libraries and themes for use in your Amplify applications. /// You can then connect these UI components to an application's backend Amazon Web Services /// resources. /// /// /// /// You can also use the Amplify Studio visual designer to create UI components and model /// data for an app. For more information, see Introduction /// in the Amplify Docs. /// /// /// /// The Amplify Framework is a comprehensive set of SDKs, libraries, tools, and documentation /// for client app development. For more information, see the Amplify /// Framework. For more information about deploying an Amplify application to Amazon /// Web Services, see the Amplify /// User Guide. /// /// public partial class AmazonAmplifyUIBuilderClient : AmazonServiceClient, IAmazonAmplifyUIBuilder { private static IServiceMetadata serviceMetadata = new AmazonAmplifyUIBuilderMetadata(); #region Constructors /// /// Constructs AmazonAmplifyUIBuilderClient 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 AmazonAmplifyUIBuilderClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonAmplifyUIBuilderConfig()) { } /// /// Constructs AmazonAmplifyUIBuilderClient 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 AmazonAmplifyUIBuilderClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonAmplifyUIBuilderConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonAmplifyUIBuilderClient 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 AmazonAmplifyUIBuilderClient Configuration Object public AmazonAmplifyUIBuilderClient(AmazonAmplifyUIBuilderConfig config) : base(FallbackCredentialsFactory.GetCredentials(config), config){} /// /// Constructs AmazonAmplifyUIBuilderClient with AWS Credentials /// /// AWS Credentials public AmazonAmplifyUIBuilderClient(AWSCredentials credentials) : this(credentials, new AmazonAmplifyUIBuilderConfig()) { } /// /// Constructs AmazonAmplifyUIBuilderClient with AWS Credentials /// /// AWS Credentials /// The region to connect. public AmazonAmplifyUIBuilderClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonAmplifyUIBuilderConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonAmplifyUIBuilderClient with AWS Credentials and an /// AmazonAmplifyUIBuilderClient Configuration object. /// /// AWS Credentials /// The AmazonAmplifyUIBuilderClient Configuration Object public AmazonAmplifyUIBuilderClient(AWSCredentials credentials, AmazonAmplifyUIBuilderConfig clientConfig) : base(credentials, clientConfig) { } /// /// Constructs AmazonAmplifyUIBuilderClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key public AmazonAmplifyUIBuilderClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonAmplifyUIBuilderConfig()) { } /// /// Constructs AmazonAmplifyUIBuilderClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// The region to connect. public AmazonAmplifyUIBuilderClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonAmplifyUIBuilderConfig() {RegionEndpoint=region}) { } /// /// Constructs AmazonAmplifyUIBuilderClient with AWS Access Key ID, AWS Secret Key and an /// AmazonAmplifyUIBuilderClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// The AmazonAmplifyUIBuilderClient Configuration Object public AmazonAmplifyUIBuilderClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonAmplifyUIBuilderConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// /// Constructs AmazonAmplifyUIBuilderClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token public AmazonAmplifyUIBuilderClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAmplifyUIBuilderConfig()) { } /// /// Constructs AmazonAmplifyUIBuilderClient 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 AmazonAmplifyUIBuilderClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAmplifyUIBuilderConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonAmplifyUIBuilderClient with AWS Access Key ID, AWS Secret Key and an /// AmazonAmplifyUIBuilderClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token /// The AmazonAmplifyUIBuilderClient Configuration Object public AmazonAmplifyUIBuilderClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonAmplifyUIBuilderConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #if AWS_ASYNC_ENUMERABLES_API private IAmplifyUIBuilderPaginatorFactory _paginators; /// /// Paginators for the service /// public IAmplifyUIBuilderPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new AmplifyUIBuilderPaginatorFactory(this); } return this._paginators; } } #endif #region Overrides /// /// Creates the signer for the service. /// protected override AbstractAWSSigner CreateSigner() { return new AWS4Signer(); } /// /// Customizes the runtime pipeline. /// /// Runtime pipeline for the current client. protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) { pipeline.RemoveHandler(); pipeline.AddHandlerAfter(new AmazonAmplifyUIBuilderEndpointResolver()); } /// /// 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 CreateComponent internal virtual CreateComponentResponse CreateComponent(CreateComponentRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateComponentRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateComponentResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a new component for an Amplify app. /// /// Container for the necessary parameters to execute the CreateComponent service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateComponent service method, as returned by AmplifyUIBuilder. /// /// An internal error has occurred. Please retry your request. /// /// /// An invalid or out-of-range value was supplied for the input parameter. /// /// /// The resource specified in the request conflicts with an existing resource. /// /// /// You exceeded your service quota. Service quotas, also referred to as limits, are the /// maximum number of service resources or operations for your Amazon Web Services account. /// /// REST API Reference for CreateComponent Operation public virtual Task CreateComponentAsync(CreateComponentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateComponentRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateComponentResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateForm internal virtual CreateFormResponse CreateForm(CreateFormRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateFormRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateFormResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a new form for an Amplify. /// /// Container for the necessary parameters to execute the CreateForm service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateForm service method, as returned by AmplifyUIBuilder. /// /// An internal error has occurred. Please retry your request. /// /// /// An invalid or out-of-range value was supplied for the input parameter. /// /// /// The resource specified in the request conflicts with an existing resource. /// /// /// You exceeded your service quota. Service quotas, also referred to as limits, are the /// maximum number of service resources or operations for your Amazon Web Services account. /// /// REST API Reference for CreateForm Operation public virtual Task CreateFormAsync(CreateFormRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateFormRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateFormResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateTheme internal virtual CreateThemeResponse CreateTheme(CreateThemeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateThemeRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateThemeResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a theme to apply to the components in an Amplify app. /// /// Container for the necessary parameters to execute the CreateTheme service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateTheme service method, as returned by AmplifyUIBuilder. /// /// An internal error has occurred. Please retry your request. /// /// /// An invalid or out-of-range value was supplied for the input parameter. /// /// /// The resource specified in the request conflicts with an existing resource. /// /// /// You exceeded your service quota. Service quotas, also referred to as limits, are the /// maximum number of service resources or operations for your Amazon Web Services account. /// /// REST API Reference for CreateTheme Operation public virtual Task CreateThemeAsync(CreateThemeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateThemeRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateThemeResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteComponent internal virtual DeleteComponentResponse DeleteComponent(DeleteComponentRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteComponentRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteComponentResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes a component from an Amplify app. /// /// Container for the necessary parameters to execute the DeleteComponent service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteComponent service method, as returned by AmplifyUIBuilder. /// /// An internal error has occurred. Please retry your request. /// /// /// An invalid or out-of-range value was supplied for the input parameter. /// /// /// The requested resource does not exist, or access was denied. /// /// REST API Reference for DeleteComponent Operation public virtual Task DeleteComponentAsync(DeleteComponentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteComponentRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteComponentResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteForm internal virtual DeleteFormResponse DeleteForm(DeleteFormRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteFormRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteFormResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes a form from an Amplify app. /// /// Container for the necessary parameters to execute the DeleteForm service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteForm service method, as returned by AmplifyUIBuilder. /// /// An internal error has occurred. Please retry your request. /// /// /// An invalid or out-of-range value was supplied for the input parameter. /// /// /// The requested resource does not exist, or access was denied. /// /// REST API Reference for DeleteForm Operation public virtual Task DeleteFormAsync(DeleteFormRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteFormRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteFormResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteTheme internal virtual DeleteThemeResponse DeleteTheme(DeleteThemeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteThemeRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteThemeResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes a theme from an Amplify app. /// /// Container for the necessary parameters to execute the DeleteTheme service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteTheme service method, as returned by AmplifyUIBuilder. /// /// An internal error has occurred. Please retry your request. /// /// /// An invalid or out-of-range value was supplied for the input parameter. /// /// /// The requested resource does not exist, or access was denied. /// /// REST API Reference for DeleteTheme Operation public virtual Task DeleteThemeAsync(DeleteThemeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteThemeRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteThemeResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ExchangeCodeForToken internal virtual ExchangeCodeForTokenResponse ExchangeCodeForToken(ExchangeCodeForTokenRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ExchangeCodeForTokenRequestMarshaller.Instance; options.ResponseUnmarshaller = ExchangeCodeForTokenResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Exchanges an access code for a token. /// /// Container for the necessary parameters to execute the ExchangeCodeForToken service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ExchangeCodeForToken service method, as returned by AmplifyUIBuilder. /// /// An invalid or out-of-range value was supplied for the input parameter. /// /// REST API Reference for ExchangeCodeForToken Operation public virtual Task ExchangeCodeForTokenAsync(ExchangeCodeForTokenRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ExchangeCodeForTokenRequestMarshaller.Instance; options.ResponseUnmarshaller = ExchangeCodeForTokenResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ExportComponents internal virtual ExportComponentsResponse ExportComponents(ExportComponentsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ExportComponentsRequestMarshaller.Instance; options.ResponseUnmarshaller = ExportComponentsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Exports component configurations to code that is ready to integrate into an Amplify /// app. /// /// Container for the necessary parameters to execute the ExportComponents service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ExportComponents service method, as returned by AmplifyUIBuilder. /// /// An internal error has occurred. Please retry your request. /// /// /// An invalid or out-of-range value was supplied for the input parameter. /// /// REST API Reference for ExportComponents Operation public virtual Task ExportComponentsAsync(ExportComponentsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ExportComponentsRequestMarshaller.Instance; options.ResponseUnmarshaller = ExportComponentsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ExportForms internal virtual ExportFormsResponse ExportForms(ExportFormsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ExportFormsRequestMarshaller.Instance; options.ResponseUnmarshaller = ExportFormsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Exports form configurations to code that is ready to integrate into an Amplify app. /// /// Container for the necessary parameters to execute the ExportForms service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ExportForms service method, as returned by AmplifyUIBuilder. /// /// An internal error has occurred. Please retry your request. /// /// /// An invalid or out-of-range value was supplied for the input parameter. /// /// REST API Reference for ExportForms Operation public virtual Task ExportFormsAsync(ExportFormsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ExportFormsRequestMarshaller.Instance; options.ResponseUnmarshaller = ExportFormsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ExportThemes internal virtual ExportThemesResponse ExportThemes(ExportThemesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ExportThemesRequestMarshaller.Instance; options.ResponseUnmarshaller = ExportThemesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Exports theme configurations to code that is ready to integrate into an Amplify app. /// /// Container for the necessary parameters to execute the ExportThemes service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ExportThemes service method, as returned by AmplifyUIBuilder. /// /// An internal error has occurred. Please retry your request. /// /// /// An invalid or out-of-range value was supplied for the input parameter. /// /// REST API Reference for ExportThemes Operation public virtual Task ExportThemesAsync(ExportThemesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ExportThemesRequestMarshaller.Instance; options.ResponseUnmarshaller = ExportThemesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetCodegenJob internal virtual GetCodegenJobResponse GetCodegenJob(GetCodegenJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetCodegenJobRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCodegenJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns an existing code generation job. /// /// Container for the necessary parameters to execute the GetCodegenJob service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetCodegenJob service method, as returned by AmplifyUIBuilder. /// /// An internal error has occurred. Please retry your request. /// /// /// An invalid or out-of-range value was supplied for the input parameter. /// /// /// The requested resource does not exist, or access was denied. /// /// /// The request was denied due to request throttling. /// /// REST API Reference for GetCodegenJob Operation public virtual Task GetCodegenJobAsync(GetCodegenJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetCodegenJobRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCodegenJobResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetComponent internal virtual GetComponentResponse GetComponent(GetComponentRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetComponentRequestMarshaller.Instance; options.ResponseUnmarshaller = GetComponentResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns an existing component for an Amplify app. /// /// Container for the necessary parameters to execute the GetComponent service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetComponent service method, as returned by AmplifyUIBuilder. /// /// An internal error has occurred. Please retry your request. /// /// /// An invalid or out-of-range value was supplied for the input parameter. /// /// /// The requested resource does not exist, or access was denied. /// /// REST API Reference for GetComponent Operation public virtual Task GetComponentAsync(GetComponentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetComponentRequestMarshaller.Instance; options.ResponseUnmarshaller = GetComponentResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetForm internal virtual GetFormResponse GetForm(GetFormRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetFormRequestMarshaller.Instance; options.ResponseUnmarshaller = GetFormResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns an existing form for an Amplify app. /// /// Container for the necessary parameters to execute the GetForm service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetForm service method, as returned by AmplifyUIBuilder. /// /// An internal error has occurred. Please retry your request. /// /// /// An invalid or out-of-range value was supplied for the input parameter. /// /// /// The requested resource does not exist, or access was denied. /// /// REST API Reference for GetForm Operation public virtual Task GetFormAsync(GetFormRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetFormRequestMarshaller.Instance; options.ResponseUnmarshaller = GetFormResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetMetadata internal virtual GetMetadataResponse GetMetadata(GetMetadataRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetMetadataRequestMarshaller.Instance; options.ResponseUnmarshaller = GetMetadataResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns existing metadata for an Amplify app. /// /// Container for the necessary parameters to execute the GetMetadata service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetMetadata service method, as returned by AmplifyUIBuilder. /// /// An invalid or out-of-range value was supplied for the input parameter. /// /// /// You don't have permission to perform this operation. /// /// REST API Reference for GetMetadata Operation public virtual Task GetMetadataAsync(GetMetadataRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetMetadataRequestMarshaller.Instance; options.ResponseUnmarshaller = GetMetadataResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetTheme internal virtual GetThemeResponse GetTheme(GetThemeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetThemeRequestMarshaller.Instance; options.ResponseUnmarshaller = GetThemeResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns an existing theme for an Amplify app. /// /// Container for the necessary parameters to execute the GetTheme service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetTheme service method, as returned by AmplifyUIBuilder. /// /// An internal error has occurred. Please retry your request. /// /// /// An invalid or out-of-range value was supplied for the input parameter. /// /// /// The requested resource does not exist, or access was denied. /// /// REST API Reference for GetTheme Operation public virtual Task GetThemeAsync(GetThemeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetThemeRequestMarshaller.Instance; options.ResponseUnmarshaller = GetThemeResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListCodegenJobs internal virtual ListCodegenJobsResponse ListCodegenJobs(ListCodegenJobsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListCodegenJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListCodegenJobsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Retrieves a list of code generation jobs for a specified Amplify app and backend environment. /// /// Container for the necessary parameters to execute the ListCodegenJobs service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListCodegenJobs service method, as returned by AmplifyUIBuilder. /// /// An internal error has occurred. Please retry your request. /// /// /// An invalid or out-of-range value was supplied for the input parameter. /// /// /// The request was denied due to request throttling. /// /// REST API Reference for ListCodegenJobs Operation public virtual Task ListCodegenJobsAsync(ListCodegenJobsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListCodegenJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListCodegenJobsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListComponents internal virtual ListComponentsResponse ListComponents(ListComponentsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListComponentsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListComponentsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Retrieves a list of components for a specified Amplify app and backend environment. /// /// Container for the necessary parameters to execute the ListComponents service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListComponents service method, as returned by AmplifyUIBuilder. /// /// An internal error has occurred. Please retry your request. /// /// /// An invalid or out-of-range value was supplied for the input parameter. /// /// REST API Reference for ListComponents Operation public virtual Task ListComponentsAsync(ListComponentsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListComponentsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListComponentsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListForms internal virtual ListFormsResponse ListForms(ListFormsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListFormsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListFormsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Retrieves a list of forms for a specified Amplify app and backend environment. /// /// Container for the necessary parameters to execute the ListForms service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListForms service method, as returned by AmplifyUIBuilder. /// /// An internal error has occurred. Please retry your request. /// /// /// An invalid or out-of-range value was supplied for the input parameter. /// /// REST API Reference for ListForms Operation public virtual Task ListFormsAsync(ListFormsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListFormsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListFormsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListThemes internal virtual ListThemesResponse ListThemes(ListThemesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListThemesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListThemesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Retrieves a list of themes for a specified Amplify app and backend environment. /// /// Container for the necessary parameters to execute the ListThemes service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListThemes service method, as returned by AmplifyUIBuilder. /// /// An internal error has occurred. Please retry your request. /// /// /// An invalid or out-of-range value was supplied for the input parameter. /// /// REST API Reference for ListThemes Operation public virtual Task ListThemesAsync(ListThemesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListThemesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListThemesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region PutMetadataFlag internal virtual PutMetadataFlagResponse PutMetadataFlag(PutMetadataFlagRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutMetadataFlagRequestMarshaller.Instance; options.ResponseUnmarshaller = PutMetadataFlagResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Stores the metadata information about a feature on a form. /// /// Container for the necessary parameters to execute the PutMetadataFlag service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the PutMetadataFlag service method, as returned by AmplifyUIBuilder. /// /// An invalid or out-of-range value was supplied for the input parameter. /// /// /// You don't have permission to perform this operation. /// /// REST API Reference for PutMetadataFlag Operation public virtual Task PutMetadataFlagAsync(PutMetadataFlagRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PutMetadataFlagRequestMarshaller.Instance; options.ResponseUnmarshaller = PutMetadataFlagResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region RefreshToken internal virtual RefreshTokenResponse RefreshToken(RefreshTokenRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = RefreshTokenRequestMarshaller.Instance; options.ResponseUnmarshaller = RefreshTokenResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Refreshes a previously issued access token that might have expired. /// /// Container for the necessary parameters to execute the RefreshToken service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the RefreshToken service method, as returned by AmplifyUIBuilder. /// /// An invalid or out-of-range value was supplied for the input parameter. /// /// REST API Reference for RefreshToken Operation public virtual Task RefreshTokenAsync(RefreshTokenRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = RefreshTokenRequestMarshaller.Instance; options.ResponseUnmarshaller = RefreshTokenResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region StartCodegenJob internal virtual StartCodegenJobResponse StartCodegenJob(StartCodegenJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartCodegenJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StartCodegenJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Starts a code generation job for for a specified Amplify app and backend environment. /// /// Container for the necessary parameters to execute the StartCodegenJob service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the StartCodegenJob service method, as returned by AmplifyUIBuilder. /// /// An internal error has occurred. Please retry your request. /// /// /// An invalid or out-of-range value was supplied for the input parameter. /// /// /// The request was denied due to request throttling. /// /// REST API Reference for StartCodegenJob Operation public virtual Task StartCodegenJobAsync(StartCodegenJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StartCodegenJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StartCodegenJobResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateComponent internal virtual UpdateComponentResponse UpdateComponent(UpdateComponentRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateComponentRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateComponentResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates an existing component. /// /// Container for the necessary parameters to execute the UpdateComponent service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateComponent service method, as returned by AmplifyUIBuilder. /// /// An internal error has occurred. Please retry your request. /// /// /// An invalid or out-of-range value was supplied for the input parameter. /// /// /// The resource specified in the request conflicts with an existing resource. /// /// REST API Reference for UpdateComponent Operation public virtual Task UpdateComponentAsync(UpdateComponentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateComponentRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateComponentResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateForm internal virtual UpdateFormResponse UpdateForm(UpdateFormRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateFormRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateFormResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates an existing form. /// /// Container for the necessary parameters to execute the UpdateForm service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateForm service method, as returned by AmplifyUIBuilder. /// /// An internal error has occurred. Please retry your request. /// /// /// An invalid or out-of-range value was supplied for the input parameter. /// /// /// The resource specified in the request conflicts with an existing resource. /// /// REST API Reference for UpdateForm Operation public virtual Task UpdateFormAsync(UpdateFormRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateFormRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateFormResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateTheme internal virtual UpdateThemeResponse UpdateTheme(UpdateThemeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateThemeRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateThemeResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates an existing theme. /// /// Container for the necessary parameters to execute the UpdateTheme service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateTheme service method, as returned by AmplifyUIBuilder. /// /// An internal error has occurred. Please retry your request. /// /// /// An invalid or out-of-range value was supplied for the input parameter. /// /// /// The resource specified in the request conflicts with an existing resource. /// /// REST API Reference for UpdateTheme Operation public virtual Task UpdateThemeAsync(UpdateThemeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateThemeRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateThemeResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion } }