/// <summary> /// Constructs AmazonECSClient with AWS Access Key ID, AWS Secret Key and an /// AmazonECSClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> /// <param name="clientConfig">The AmazonECSClient Configuration Object</param> public AmazonECSClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonECSConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { }
/// <summary> /// Constructs AmazonECSClient 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. /// <code> /// <?xml version="1.0" encoding="utf-8" ?> /// <configuration> /// <appSettings> /// <add key="AWSProfileName" value="AWS Default"/> /// </appSettings> /// </configuration> /// </code> /// /// </summary> /// <param name="config">The AmazonECSClient Configuration Object</param> public AmazonECSClient(AmazonECSConfig config) : base(FallbackCredentialsFactory.GetCredentials(), config) { }
/// <summary> /// Constructs AmazonECSClient with AWS Credentials and an /// AmazonECSClient Configuration object. /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="clientConfig">The AmazonECSClient Configuration Object</param> public AmazonECSClient(AWSCredentials credentials, AmazonECSConfig clientConfig) : base(credentials, clientConfig) { }
private AmazonECSLocale(AmazonECSConfig config) { this.config = config; }
/// <summary> /// Create a client for the Amazon ECS Service with AWSCredentials and an AmazonECS Configuration object. /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="config">Configuration options for the service like HTTP Proxy, # of connections, etc</param> /// <returns>An Amazon ECS client</returns> /// <remarks> /// </remarks> public static IAmazonECS CreateAmazonECSClient(AWSCredentials credentials, AmazonECSConfig config) { return new AmazonECSClient(credentials, config); }
/// <summary> /// Create a client for the Amazon ECS Service with the specified configuration /// </summary> /// <param name="awsAccessKey">The AWS Access Key associated with the account</param> /// <param name="awsSecretAccessKey">The AWS Secret Access Key associated with the account</param> /// <param name="config">Configuration options for the service like HTTP Proxy, # of connections, etc /// </param> /// <returns>An Amazon ECS client</returns> /// <remarks> /// </remarks> public static IAmazonECS CreateAmazonECSClient( string awsAccessKey, string awsSecretAccessKey, AmazonECSConfig config ) { return new AmazonECSClient(awsAccessKey, awsSecretAccessKey, config); }
/// <summary> /// Create a client for the Amazon ECS Service 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. /// <code> /// <?xml version="1.0" encoding="utf-8" ?> /// <configuration> /// <appSettings> /// <add key="AWSProfileName" value="AWS Default"/> /// </appSettings> /// </configuration> /// </code> /// </summary> /// <param name="config">Configuration options for the service like HTTP Proxy, # of connections, etc</param> /// <returns>An Amazon ECS client</returns> public static IAmazonECS CreateAmazonECSClient(AmazonECSConfig config) { return new AmazonECSClient(config); }