Skip to content

Commit d98725d

Browse files
committed
fixes the name of connection due the linter
1 parent ece2f6e commit d98725d

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

internal/service/costexplorer/cost_category.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ func schemaCostExplorerCostCategoryRuleExpression() *schema.Resource {
380380
}
381381

382382
func resourceCostExplorerCostCategoryCreate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics {
383-
conn := meta.(*conns.AWSClient).CostExplorerConn
383+
conn := meta.(*conns.AWSClient).CEConn
384384
input := &costexplorer.CreateCostCategoryDefinitionInput{
385385
Name: aws.String(d.Get("name").(string)),
386386
Rules: expandCostExplorerCostCategoryRules(d.Get("rule").(*schema.Set).List()),
@@ -424,7 +424,7 @@ func resourceCostExplorerCostCategoryCreate(ctx context.Context, d *schema.Resou
424424
}
425425

426426
func resourceCostExplorerCostCategoryRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics {
427-
conn := meta.(*conns.AWSClient).CostExplorerConn
427+
conn := meta.(*conns.AWSClient).CEConn
428428

429429
resp, err := conn.DescribeCostCategoryDefinitionWithContext(ctx, &costexplorer.DescribeCostCategoryDefinitionInput{CostCategoryArn: aws.String(d.Id())})
430430
if !d.IsNewResource() && tfawserr.ErrCodeEquals(err, costexplorer.ErrCodeResourceNotFoundException) {
@@ -454,7 +454,7 @@ func resourceCostExplorerCostCategoryRead(ctx context.Context, d *schema.Resourc
454454
}
455455

456456
func resourceCostExplorerCostCategoryUpdate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics {
457-
conn := meta.(*conns.AWSClient).CostExplorerConn
457+
conn := meta.(*conns.AWSClient).CEConn
458458

459459
input := &costexplorer.UpdateCostCategoryDefinitionInput{
460460
CostCategoryArn: aws.String(d.Id()),
@@ -480,7 +480,7 @@ func resourceCostExplorerCostCategoryUpdate(ctx context.Context, d *schema.Resou
480480
}
481481

482482
func resourceCostExplorerCostCategoryDelete(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics {
483-
conn := meta.(*conns.AWSClient).CostExplorerConn
483+
conn := meta.(*conns.AWSClient).CEConn
484484

485485
_, err := conn.DeleteCostCategoryDefinitionWithContext(ctx, &costexplorer.DeleteCostCategoryDefinitionInput{
486486
CostCategoryArn: aws.String(d.Id()),

internal/service/costexplorer/cost_category_data_source.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ func schemaCostExplorerCostCategoryRuleExpressionComputed() *schema.Resource {
324324
}
325325

326326
func dataSourceCostExplorerCostCategoryRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics {
327-
conn := meta.(*conns.AWSClient).CostExplorerConn
327+
conn := meta.(*conns.AWSClient).CEConn
328328

329329
resp, err := conn.DescribeCostCategoryDefinitionWithContext(ctx, &costexplorer.DescribeCostCategoryDefinitionInput{CostCategoryArn: aws.String(d.Get("cost_category_arn").(string))})
330330

internal/service/costexplorer/cost_category_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ func testAccCheckCostExplorerCostCategoryExists(resourceName string, output *cos
140140
return fmt.Errorf("not found: %s", resourceName)
141141
}
142142

143-
conn := acctest.Provider.Meta().(*conns.AWSClient).CostExplorerConn
143+
conn := acctest.Provider.Meta().(*conns.AWSClient).CEConn
144144
resp, err := conn.DescribeCostCategoryDefinition(&costexplorer.DescribeCostCategoryDefinitionInput{CostCategoryArn: aws.String(rs.Primary.ID)})
145145

146146
if err != nil {
@@ -158,7 +158,7 @@ func testAccCheckCostExplorerCostCategoryExists(resourceName string, output *cos
158158
}
159159

160160
func testAccCheckCostExplorerCostCategoryDestroy(s *terraform.State) error {
161-
conn := acctest.Provider.Meta().(*conns.AWSClient).CostExplorerConn
161+
conn := acctest.Provider.Meta().(*conns.AWSClient).CEConn
162162

163163
for _, rs := range s.RootModule().Resources {
164164
if rs.Type != "aws_costexplorer_cost_category" {

internal/service/costexplorer/tags_data_source.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ func DataSourceCostExplorerTags() *schema.Resource {
8686
}
8787

8888
func dataSourceCostExplorerTagsRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics {
89-
conn := meta.(*conns.AWSClient).CostExplorerConn
89+
conn := meta.(*conns.AWSClient).CEConn
9090

9191
input := &costexplorer.GetTagsInput{
9292
TimePeriod: expandCostExplorerTagsTimePeriod(d.Get("time_period").([]interface{})[0].(map[string]interface{})),

0 commit comments

Comments
 (0)