/*
* 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.
*/
using Amazon.MediaStoreData.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Amazon.MediaStoreData
{
public partial class AmazonMediaStoreDataClient : AmazonServiceClient
{
///
/// Constructs AmazonMediaStoreDataClient 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 URL of the search or document service.
public AmazonMediaStoreDataClient(string serviceUrl)
: base(FallbackCredentialsFactory.GetCredentials(true), new AmazonMediaStoreDataConfig { ServiceURL = serviceUrl })
{
}
///
/// Constructs AmazonMediaStoreDataClient 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 AmazonMediaStoreDataClient Configuration Object
public AmazonMediaStoreDataClient(AmazonMediaStoreDataConfig config)
: base(FallbackCredentialsFactory.GetCredentials(true), config)
{
}
///
/// Constructs AmazonMediaStoreDataClient with AWS Credentials
///
/// The URL of the search or document service.
/// AWS Credentials
public AmazonMediaStoreDataClient(string serviceUrl, AWSCredentials credentials)
: this(credentials, new AmazonMediaStoreDataConfig { ServiceURL = serviceUrl })
{
}
///
/// Constructs AmazonMediaStoreDataClient with AWS Credentials and an
/// AmazonMediaStoreDataClient Configuration object.
///
/// AWS Credentials
/// The AmazonMediaStoreDataClient Configuration Object
public AmazonMediaStoreDataClient(AWSCredentials credentials, AmazonMediaStoreDataConfig clientConfig)
: base(credentials, clientConfig)
{
}
///
/// Constructs AmazonMediaStoreDataClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The URL of the search or document service.
public AmazonMediaStoreDataClient(string awsAccessKeyId, string awsSecretAccessKey, string serviceUrl)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonMediaStoreDataConfig { ServiceURL = serviceUrl })
{
}
///
/// Constructs AmazonMediaStoreDataClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonMediaStoreDataClient Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The AmazonMediaStoreDataClient Configuration Object
public AmazonMediaStoreDataClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonMediaStoreDataConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
///
/// Constructs AmazonMediaStoreDataClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
/// The URL of the search or document service.
public AmazonMediaStoreDataClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, string serviceUrl)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonMediaStoreDataConfig{ ServiceURL = serviceUrl})
{
}
///
/// Constructs AmazonMediaStoreDataClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonMediaStoreDataClient Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
/// The AmazonMediaStoreDataClient Configuration Object
public AmazonMediaStoreDataClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonMediaStoreDataConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig)
{
}
}
}