-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implement
aws_controltower_landing_zone
- Loading branch information
1 parent
816aa99
commit 208ac08
Showing
1 changed file
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
// Copyright (c) HashiCorp, Inc. | ||
// SPDX-License-Identifier: MPL-2.0 | ||
|
||
package controltower | ||
|
||
import ( | ||
"context" | ||
"time" | ||
|
||
"github.com/hashicorp/terraform-plugin-sdk/v2/diag" | ||
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" | ||
"github.com/hashicorp/terraform-provider-aws/internal/conns" | ||
"github.com/hashicorp/terraform-provider-aws/internal/verify" | ||
) | ||
|
||
// @SDKResource("aws_controltower_landing_zone", name="Landing Zone") | ||
func resourceLandingZone() *schema.Resource { | ||
return &schema.Resource{ | ||
CreateWithoutTimeout: resourceLandingZoneCreate, | ||
ReadWithoutTimeout: resourceLandingZoneRead, | ||
DeleteWithoutTimeout: resourceLandingZoneDelete, | ||
|
||
Importer: &schema.ResourceImporter{ | ||
StateContext: schema.ImportStatePassthroughContext, | ||
}, | ||
|
||
Timeouts: &schema.ResourceTimeout{ | ||
Create: schema.DefaultTimeout(120 * time.Minute), | ||
Delete: schema.DefaultTimeout(120 * time.Minute), | ||
}, | ||
|
||
Schema: map[string]*schema.Schema{ | ||
"control_identifier": { | ||
Type: schema.TypeString, | ||
Required: true, | ||
ForceNew: true, | ||
ValidateFunc: verify.ValidARN, | ||
}, | ||
"target_identifier": { | ||
Type: schema.TypeString, | ||
Required: true, | ||
ForceNew: true, | ||
ValidateFunc: verify.ValidARN, | ||
}, | ||
}, | ||
} | ||
} | ||
|
||
func resourceLandingZoneCreate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { | ||
conn := meta.(*conns.AWSClient).ControlTowerClient(ctx) | ||
|
||
return resourceLandingZoneRead(ctx, d, meta) | ||
} | ||
|
||
func resourceLandingZoneRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { | ||
conn := meta.(*conns.AWSClient).ControlTowerClient(ctx) | ||
|
||
return nil | ||
} | ||
|
||
func resourceLandingZoneDelete(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { | ||
conn := meta.(*conns.AWSClient).ControlTowerClient(ctx) | ||
|
||
return nil | ||
} |