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