Configuration for accessing Amazon OpsWorks service
Inheritance: Amazon.Runtime.ClientConfig
コード例 #1
0
 /// <summary>
 /// Create a client for the Amazon OpsWorks 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 OpsWorks client</returns>
 /// <remarks>
 /// </remarks>
 public static AmazonOpsWorks CreateAmazonOpsWorksClient(
     string awsAccessKey,
     string awsSecretAccessKey,
     AmazonOpsWorksConfig config
     )
 {
     return new AmazonOpsWorksClient(awsAccessKey, awsSecretAccessKey, config);
 }
コード例 #2
0
 /// <summary>
 /// Create a client for the Amazon OpsWorks Service with AWSCredentials and an AmazonOpsWorks 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 OpsWorks client</returns>
 /// <remarks>
 /// </remarks>
 public static AmazonOpsWorks CreateAmazonOpsWorksClient(AWSCredentials credentials, AmazonOpsWorksConfig config)
 {
     return new AmazonOpsWorksClient(credentials, config);
 }
コード例 #3
0
 /// <summary>
 /// Constructs AmazonOpsWorksClient with AWS Access Key ID, AWS Secret Key and an
 /// AmazonOpsWorksClient 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 AmazonOpsWorksClient Configuration Object</param>
 public AmazonOpsWorksClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonOpsWorksConfig clientConfig)
     : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig)
 {
 }
コード例 #4
0
 /// <summary>
 /// Create a client for the Amazon OpsWorks 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>
 /// &lt;?xml version="1.0" encoding="utf-8" ?&gt;
 /// &lt;configuration&gt;
 ///     &lt;appSettings&gt;
 ///         &lt;add key="AWSAccessKey" value="********************"/&gt;
 ///         &lt;add key="AWSSecretKey" value="****************************************"/&gt;
 ///     &lt;/appSettings&gt;
 /// &lt;/configuration&gt;
 /// </code>
 /// </summary>
 /// <param name="config">Configuration options for the service like HTTP Proxy, # of connections, etc</param>
 /// <returns>An Amazon OpsWorks client</returns>
 public static AmazonOpsWorks CreateAmazonOpsWorksClient(AmazonOpsWorksConfig config)
 {
     return new AmazonOpsWorksClient(config);
 }
コード例 #5
0
 /// <summary>
 /// Constructs AmazonOpsWorksClient with AWS Credentials and an
 /// AmazonOpsWorksClient Configuration object.
 /// </summary>
 /// <param name="credentials">AWS Credentials</param>
 /// <param name="clientConfig">The AmazonOpsWorksClient Configuration Object</param>
 public AmazonOpsWorksClient(AWSCredentials credentials, AmazonOpsWorksConfig clientConfig)
     : base(credentials, clientConfig)
 {
 }
コード例 #6
0
 /// <summary>
 /// Constructs AmazonOpsWorksClient with AWS Credentials and an
 /// AmazonOpsWorksClient Configuration object.
 /// </summary>
 /// <param name="credentials">AWS Credentials</param>
 /// <param name="clientConfig">The AmazonOpsWorksClient Configuration Object</param>
 public AmazonOpsWorksClient(AWSCredentials credentials, AmazonOpsWorksConfig clientConfig)
     : base(credentials, clientConfig, AuthenticationTypes.User | AuthenticationTypes.Session)
 {
 }
コード例 #7
0
 /// <summary>
 /// Constructs AmazonOpsWorksClient with AWS Access Key ID, AWS Secret Key and an
 /// AmazonOpsWorksClient Configuration object. If the config object's
 /// UseSecureStringForAwsSecretKey is false, the AWS Secret Key
 /// is stored as a clear-text string. Please use this option only
 /// if the application environment doesn't allow the use of SecureStrings.
 /// </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 AmazonOpsWorksClient Configuration Object</param>
 public AmazonOpsWorksClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonOpsWorksConfig clientConfig)
     : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig, AuthenticationTypes.User | AuthenticationTypes.Session)
 {
 }
コード例 #8
0
 /// <summary>
 /// Constructs AmazonOpsWorksClient 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>
 /// &lt;?xml version="1.0" encoding="utf-8" ?&gt;
 /// &lt;configuration&gt;
 ///     &lt;appSettings&gt;
 ///         &lt;add key="AWSProfileName" value="AWS Default"/&gt;
 ///     &lt;/appSettings&gt;
 /// &lt;/configuration&gt;
 /// </code>
 ///
 /// </summary>
 /// <param name="config">The AmazonOpsWorksClient Configuration Object</param>
 public AmazonOpsWorksClient(AmazonOpsWorksConfig config)
     : base(FallbackCredentialsFactory.GetCredentials(), config) { }
コード例 #9
0
 /// <summary>
 /// Constructs AmazonOpsWorksClient 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>
 /// &lt;?xml version="1.0" encoding="utf-8" ?&gt;
 /// &lt;configuration&gt;
 ///     &lt;appSettings&gt;
 ///         &lt;add key="AWSAccessKey" value="********************"/&gt;
 ///         &lt;add key="AWSSecretKey" value="****************************************"/&gt;
 ///     &lt;/appSettings&gt;
 /// &lt;/configuration&gt;
 /// </code>
 ///
 /// </summary>
 /// <param name="config">The AmazonOpsWorks Configuration Object</param>
 public AmazonOpsWorksClient(AmazonOpsWorksConfig config)
     : base(FallbackCredentialsFactory.GetCredentials(), config, AuthenticationTypes.User | AuthenticationTypes.Session) { }