Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TemplateResolver"/> class.
 /// </summary>
 /// <param name="clientFactory">The client factory.</param>
 /// <param name="context">The context.</param>
 /// <param name="templateStage">Template stage to retrieve.</param>
 /// <param name="stackName">Name of the stack.</param>
 /// <param name="usePreviousTemplate">if set to <c>true</c> [use previous template].</param>
 /// <param name="forceS3">If set to <c>true</c>, force template upload to S3 even if less than max size.</param>
 public TemplateResolver(IAwsClientFactory clientFactory, ICloudFormationContext context, TemplateStage templateStage, string stackName, bool usePreviousTemplate, bool forceS3)
     : base(clientFactory, context)
 {
     this.usePreviousTemplate = usePreviousTemplate;
     this.stackName           = stackName;
     this.ForceS3             = forceS3;
     this.templateStage       = templateStage;
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TemplateResolver"/> class.
 /// </summary>
 /// <param name="context">The context.</param>
 /// <param name="templateStage">Template stage to retrieve.</param>
 /// <param name="stackName">Name of the stack.</param>
 /// <param name="usePreviousTemplate">if set to <c>true</c> reuse the existing template that is associated with the stack that you are updating.</param>
 /// <param name="forceS3">If set to <c>true</c>, force template upload to S3 even if less than max size.</param>
 public TemplateResolver(ICloudFormationContext context, TemplateStage templateStage, string stackName, bool usePreviousTemplate, bool forceS3)
     : this(new DefaultClientFactory(context), context, templateStage, stackName, usePreviousTemplate, forceS3)
 {
 }