/*
* 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 ssm-sap-2018-05-10.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.SsmSap.Model;
using Amazon.SsmSap.Model.Internal.MarshallTransformations;
using Amazon.SsmSap.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.SsmSap
{
///
/// Implementation for accessing SsmSap
///
/// This API reference provides descriptions, syntax, and other details about each of
/// the actions and data types for AWS Systems Manager for SAP. The topic for each action
/// shows the API request parameters and responses.
///
public partial class AmazonSsmSapClient : AmazonServiceClient, IAmazonSsmSap
{
private static IServiceMetadata serviceMetadata = new AmazonSsmSapMetadata();
private ISsmSapPaginatorFactory _paginators;
///
/// Paginators for the service
///
public ISsmSapPaginatorFactory Paginators
{
get
{
if (this._paginators == null)
{
this._paginators = new SsmSapPaginatorFactory(this);
}
return this._paginators;
}
}
#region Constructors
///
/// Constructs AmazonSsmSapClient 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 AmazonSsmSapClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonSsmSapConfig()) { }
///
/// Constructs AmazonSsmSapClient 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 AmazonSsmSapClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonSsmSapConfig{RegionEndpoint = region}) { }
///
/// Constructs AmazonSsmSapClient 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 AmazonSsmSapClient Configuration Object
public AmazonSsmSapClient(AmazonSsmSapConfig config)
: base(FallbackCredentialsFactory.GetCredentials(config), config){}
///
/// Constructs AmazonSsmSapClient with AWS Credentials
///
/// AWS Credentials
public AmazonSsmSapClient(AWSCredentials credentials)
: this(credentials, new AmazonSsmSapConfig())
{
}
///
/// Constructs AmazonSsmSapClient with AWS Credentials
///
/// AWS Credentials
/// The region to connect.
public AmazonSsmSapClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonSsmSapConfig{RegionEndpoint = region})
{
}
///
/// Constructs AmazonSsmSapClient with AWS Credentials and an
/// AmazonSsmSapClient Configuration object.
///
/// AWS Credentials
/// The AmazonSsmSapClient Configuration Object
public AmazonSsmSapClient(AWSCredentials credentials, AmazonSsmSapConfig clientConfig)
: base(credentials, clientConfig)
{
}
///
/// Constructs AmazonSsmSapClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
public AmazonSsmSapClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonSsmSapConfig())
{
}
///
/// Constructs AmazonSsmSapClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The region to connect.
public AmazonSsmSapClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonSsmSapConfig() {RegionEndpoint=region})
{
}
///
/// Constructs AmazonSsmSapClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonSsmSapClient Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The AmazonSsmSapClient Configuration Object
public AmazonSsmSapClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonSsmSapConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
///
/// Constructs AmazonSsmSapClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
public AmazonSsmSapClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonSsmSapConfig())
{
}
///
/// Constructs AmazonSsmSapClient 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 AmazonSsmSapClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonSsmSapConfig{RegionEndpoint = region})
{
}
///
/// Constructs AmazonSsmSapClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonSsmSapClient Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
/// The AmazonSsmSapClient Configuration Object
public AmazonSsmSapClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonSsmSapConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig)
{
}
#endregion
#region Overrides
///
/// Creates the signer for the service.
///
protected override AbstractAWSSigner CreateSigner()
{
return new AWS4Signer();
}
///
/// Customize the pipeline
///
///
protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
{
pipeline.RemoveHandler();
pipeline.AddHandlerAfter(new AmazonSsmSapEndpointResolver());
}
///
/// 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 DeleteResourcePermission
///
/// Removes permissions associated with the target database.
///
/// Container for the necessary parameters to execute the DeleteResourcePermission service method.
///
/// The response from the DeleteResourcePermission service method, as returned by SsmSap.
///
/// An internal error has occurred.
///
///
/// The resource is not available.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for DeleteResourcePermission Operation
public virtual DeleteResourcePermissionResponse DeleteResourcePermission(DeleteResourcePermissionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteResourcePermissionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteResourcePermissionResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Removes permissions associated with the target database.
///
/// Container for the necessary parameters to execute the DeleteResourcePermission service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteResourcePermission service method, as returned by SsmSap.
///
/// An internal error has occurred.
///
///
/// The resource is not available.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for DeleteResourcePermission Operation
public virtual Task DeleteResourcePermissionAsync(DeleteResourcePermissionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteResourcePermissionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteResourcePermissionResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeregisterApplication
///
/// Deregister an SAP application with AWS Systems Manager for SAP. This action does not
/// affect the existing setup of your SAP workloads on Amazon EC2.
///
/// Container for the necessary parameters to execute the DeregisterApplication service method.
///
/// The response from the DeregisterApplication service method, as returned by SsmSap.
///
/// An internal error has occurred.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for DeregisterApplication Operation
public virtual DeregisterApplicationResponse DeregisterApplication(DeregisterApplicationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeregisterApplicationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeregisterApplicationResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deregister an SAP application with AWS Systems Manager for SAP. This action does not
/// affect the existing setup of your SAP workloads on Amazon EC2.
///
/// Container for the necessary parameters to execute the DeregisterApplication service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeregisterApplication service method, as returned by SsmSap.
///
/// An internal error has occurred.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for DeregisterApplication Operation
public virtual Task DeregisterApplicationAsync(DeregisterApplicationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeregisterApplicationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeregisterApplicationResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetApplication
///
/// Gets an application registered with AWS Systems Manager for SAP. It also returns the
/// components of the application.
///
/// Container for the necessary parameters to execute the GetApplication service method.
///
/// The response from the GetApplication service method, as returned by SsmSap.
///
/// An internal error has occurred.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for GetApplication Operation
public virtual GetApplicationResponse GetApplication(GetApplicationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetApplicationRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetApplicationResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Gets an application registered with AWS Systems Manager for SAP. It also returns the
/// components of the application.
///
/// Container for the necessary parameters to execute the GetApplication service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetApplication service method, as returned by SsmSap.
///
/// An internal error has occurred.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for GetApplication Operation
public virtual Task GetApplicationAsync(GetApplicationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetApplicationRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetApplicationResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetComponent
///
/// Gets the component of an application registered with AWS Systems Manager for SAP.
///
/// Container for the necessary parameters to execute the GetComponent service method.
///
/// The response from the GetComponent service method, as returned by SsmSap.
///
/// An internal error has occurred.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for GetComponent Operation
public virtual GetComponentResponse GetComponent(GetComponentRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetComponentRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetComponentResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Gets the component of an application registered with AWS Systems Manager for SAP.
///
/// 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 SsmSap.
///
/// An internal error has occurred.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// 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 GetDatabase
///
/// Gets the SAP HANA database of an application registered with AWS Systems Manager for
/// SAP.
///
/// Container for the necessary parameters to execute the GetDatabase service method.
///
/// The response from the GetDatabase service method, as returned by SsmSap.
///
/// An internal error has occurred.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for GetDatabase Operation
public virtual GetDatabaseResponse GetDatabase(GetDatabaseRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetDatabaseRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetDatabaseResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Gets the SAP HANA database of an application registered with AWS Systems Manager for
/// SAP.
///
/// Container for the necessary parameters to execute the GetDatabase service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetDatabase service method, as returned by SsmSap.
///
/// An internal error has occurred.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for GetDatabase Operation
public virtual Task GetDatabaseAsync(GetDatabaseRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetDatabaseRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetDatabaseResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetOperation
///
/// Gets the details of an operation by specifying the operation ID.
///
/// Container for the necessary parameters to execute the GetOperation service method.
///
/// The response from the GetOperation service method, as returned by SsmSap.
///
/// An internal error has occurred.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for GetOperation Operation
public virtual GetOperationResponse GetOperation(GetOperationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetOperationRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetOperationResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Gets the details of an operation by specifying the operation ID.
///
/// Container for the necessary parameters to execute the GetOperation service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetOperation service method, as returned by SsmSap.
///
/// An internal error has occurred.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for GetOperation Operation
public virtual Task GetOperationAsync(GetOperationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetOperationRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetOperationResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetResourcePermission
///
/// Gets permissions associated with the target database.
///
/// Container for the necessary parameters to execute the GetResourcePermission service method.
///
/// The response from the GetResourcePermission service method, as returned by SsmSap.
///
/// An internal error has occurred.
///
///
/// The resource is not available.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for GetResourcePermission Operation
public virtual GetResourcePermissionResponse GetResourcePermission(GetResourcePermissionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetResourcePermissionRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetResourcePermissionResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Gets permissions associated with the target database.
///
/// Container for the necessary parameters to execute the GetResourcePermission service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetResourcePermission service method, as returned by SsmSap.
///
/// An internal error has occurred.
///
///
/// The resource is not available.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for GetResourcePermission Operation
public virtual Task GetResourcePermissionAsync(GetResourcePermissionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetResourcePermissionRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetResourcePermissionResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListApplications
///
/// Lists all the applications registered with AWS Systems Manager for SAP.
///
/// Container for the necessary parameters to execute the ListApplications service method.
///
/// The response from the ListApplications service method, as returned by SsmSap.
///
/// An internal error has occurred.
///
///
/// The resource is not available.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for ListApplications Operation
public virtual ListApplicationsResponse ListApplications(ListApplicationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListApplicationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListApplicationsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Lists all the applications registered with AWS Systems Manager for SAP.
///
/// Container for the necessary parameters to execute the ListApplications service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListApplications service method, as returned by SsmSap.
///
/// An internal error has occurred.
///
///
/// The resource is not available.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for ListApplications Operation
public virtual Task ListApplicationsAsync(ListApplicationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListApplicationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListApplicationsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListComponents
///
/// Lists all the components registered with AWS Systems Manager for SAP.
///
/// Container for the necessary parameters to execute the ListComponents service method.
///
/// The response from the ListComponents service method, as returned by SsmSap.
///
/// An internal error has occurred.
///
///
/// The resource is not available.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for ListComponents Operation
public virtual ListComponentsResponse ListComponents(ListComponentsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListComponentsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListComponentsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Lists all the components registered with AWS Systems Manager for SAP.
///
/// 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 SsmSap.
///
/// An internal error has occurred.
///
///
/// The resource is not available.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// 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 ListDatabases
///
/// Lists the SAP HANA databases of an application registered with AWS Systems Manager
/// for SAP.
///
/// Container for the necessary parameters to execute the ListDatabases service method.
///
/// The response from the ListDatabases service method, as returned by SsmSap.
///
/// An internal error has occurred.
///
///
/// The resource is not available.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for ListDatabases Operation
public virtual ListDatabasesResponse ListDatabases(ListDatabasesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListDatabasesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListDatabasesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Lists the SAP HANA databases of an application registered with AWS Systems Manager
/// for SAP.
///
/// Container for the necessary parameters to execute the ListDatabases service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListDatabases service method, as returned by SsmSap.
///
/// An internal error has occurred.
///
///
/// The resource is not available.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for ListDatabases Operation
public virtual Task ListDatabasesAsync(ListDatabasesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListDatabasesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListDatabasesResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListOperations
///
/// Lists the operations performed by AWS Systems Manager for SAP.
///
/// Container for the necessary parameters to execute the ListOperations service method.
///
/// The response from the ListOperations service method, as returned by SsmSap.
///
/// An internal error has occurred.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for ListOperations Operation
public virtual ListOperationsResponse ListOperations(ListOperationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListOperationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListOperationsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Lists the operations performed by AWS Systems Manager for SAP.
///
/// Container for the necessary parameters to execute the ListOperations service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListOperations service method, as returned by SsmSap.
///
/// An internal error has occurred.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for ListOperations Operation
public virtual Task ListOperationsAsync(ListOperationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListOperationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListOperationsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListTagsForResource
///
/// Lists all tags on an SAP HANA application and/or database registered with AWS Systems
/// Manager for SAP.
///
/// Container for the necessary parameters to execute the ListTagsForResource service method.
///
/// The response from the ListTagsForResource service method, as returned by SsmSap.
///
/// A conflict has occurred.
///
///
/// The resource is not available.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for ListTagsForResource Operation
public virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Lists all tags on an SAP HANA application and/or database registered with AWS Systems
/// Manager for SAP.
///
/// Container for the necessary parameters to execute the ListTagsForResource service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListTagsForResource service method, as returned by SsmSap.
///
/// A conflict has occurred.
///
///
/// The resource is not available.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for ListTagsForResource Operation
public virtual Task ListTagsForResourceAsync(ListTagsForResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region PutResourcePermission
///
/// Adds permissions to the target database.
///
/// Container for the necessary parameters to execute the PutResourcePermission service method.
///
/// The response from the PutResourcePermission service method, as returned by SsmSap.
///
/// An internal error has occurred.
///
///
/// The resource is not available.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for PutResourcePermission Operation
public virtual PutResourcePermissionResponse PutResourcePermission(PutResourcePermissionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = PutResourcePermissionRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutResourcePermissionResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Adds permissions to the target database.
///
/// Container for the necessary parameters to execute the PutResourcePermission service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the PutResourcePermission service method, as returned by SsmSap.
///
/// An internal error has occurred.
///
///
/// The resource is not available.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for PutResourcePermission Operation
public virtual Task PutResourcePermissionAsync(PutResourcePermissionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = PutResourcePermissionRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutResourcePermissionResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region RegisterApplication
///
/// Register an SAP application with AWS Systems Manager for SAP. You must meet the following
/// requirements before registering.
///
///
///
/// The SAP application you want to register with AWS Systems Manager for SAP is running
/// on Amazon EC2.
///
///
///
/// AWS Systems Manager Agent must be setup on an Amazon EC2 instance along with the required
/// IAM permissions.
///
///
///
/// Amazon EC2 instance(s) must have access to the secrets created in AWS Secrets Manager
/// to manage SAP applications and components.
///
///
/// Container for the necessary parameters to execute the RegisterApplication service method.
///
/// The response from the RegisterApplication service method, as returned by SsmSap.
///
/// A conflict has occurred.
///
///
/// An internal error has occurred.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for RegisterApplication Operation
public virtual RegisterApplicationResponse RegisterApplication(RegisterApplicationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = RegisterApplicationRequestMarshaller.Instance;
options.ResponseUnmarshaller = RegisterApplicationResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Register an SAP application with AWS Systems Manager for SAP. You must meet the following
/// requirements before registering.
///
///
///
/// The SAP application you want to register with AWS Systems Manager for SAP is running
/// on Amazon EC2.
///
///
///
/// AWS Systems Manager Agent must be setup on an Amazon EC2 instance along with the required
/// IAM permissions.
///
///
///
/// Amazon EC2 instance(s) must have access to the secrets created in AWS Secrets Manager
/// to manage SAP applications and components.
///
///
/// Container for the necessary parameters to execute the RegisterApplication service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the RegisterApplication service method, as returned by SsmSap.
///
/// A conflict has occurred.
///
///
/// An internal error has occurred.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for RegisterApplication Operation
public virtual Task RegisterApplicationAsync(RegisterApplicationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = RegisterApplicationRequestMarshaller.Instance;
options.ResponseUnmarshaller = RegisterApplicationResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region StartApplicationRefresh
///
/// Refreshes a registered application.
///
/// Container for the necessary parameters to execute the StartApplicationRefresh service method.
///
/// The response from the StartApplicationRefresh service method, as returned by SsmSap.
///
/// A conflict has occurred.
///
///
/// An internal error has occurred.
///
///
/// The resource is not available.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for StartApplicationRefresh Operation
public virtual StartApplicationRefreshResponse StartApplicationRefresh(StartApplicationRefreshRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = StartApplicationRefreshRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartApplicationRefreshResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Refreshes a registered application.
///
/// Container for the necessary parameters to execute the StartApplicationRefresh service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the StartApplicationRefresh service method, as returned by SsmSap.
///
/// A conflict has occurred.
///
///
/// An internal error has occurred.
///
///
/// The resource is not available.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for StartApplicationRefresh Operation
public virtual Task StartApplicationRefreshAsync(StartApplicationRefreshRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = StartApplicationRefreshRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartApplicationRefreshResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region TagResource
///
/// Creates tag for a resource by specifying the ARN.
///
/// Container for the necessary parameters to execute the TagResource service method.
///
/// The response from the TagResource service method, as returned by SsmSap.
///
/// A conflict has occurred.
///
///
/// The resource is not available.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for TagResource Operation
public virtual TagResourceResponse TagResource(TagResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates tag for a resource by specifying the ARN.
///
/// 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 SsmSap.
///
/// A conflict has occurred.
///
///
/// The resource is not available.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for TagResource Operation
public virtual Task TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region UntagResource
///
/// Delete the tags for a resource.
///
/// Container for the necessary parameters to execute the UntagResource service method.
///
/// The response from the UntagResource service method, as returned by SsmSap.
///
/// A conflict has occurred.
///
///
/// The resource is not available.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for UntagResource Operation
public virtual UntagResourceResponse UntagResource(UntagResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Delete the tags for a resource.
///
/// 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 SsmSap.
///
/// A conflict has occurred.
///
///
/// The resource is not available.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for UntagResource Operation
public virtual Task UntagResourceAsync(UntagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region UpdateApplicationSettings
///
/// Updates the settings of an application registered with AWS Systems Manager for SAP.
///
/// Container for the necessary parameters to execute the UpdateApplicationSettings service method.
///
/// The response from the UpdateApplicationSettings service method, as returned by SsmSap.
///
/// A conflict has occurred.
///
///
/// An internal error has occurred.
///
///
/// The resource is not available.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for UpdateApplicationSettings Operation
public virtual UpdateApplicationSettingsResponse UpdateApplicationSettings(UpdateApplicationSettingsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateApplicationSettingsRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateApplicationSettingsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Updates the settings of an application registered with AWS Systems Manager for SAP.
///
/// Container for the necessary parameters to execute the UpdateApplicationSettings service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UpdateApplicationSettings service method, as returned by SsmSap.
///
/// A conflict has occurred.
///
///
/// An internal error has occurred.
///
///
/// The resource is not available.
///
///
/// The input fails to satisfy the constraints specified by an AWS service.
///
/// REST API Reference for UpdateApplicationSettings Operation
public virtual Task UpdateApplicationSettingsAsync(UpdateApplicationSettingsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateApplicationSettingsRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateApplicationSettingsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
}
}