-
Notifications
You must be signed in to change notification settings - Fork 9.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
provider/aws: Added API Gateway Usage Plan (#12542)
* Added api_gateway_usage_plan * Updated documentation * Fixed AWS usage plan review points
- Loading branch information
Showing
9 changed files
with
1,391 additions
and
1 deletion.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
builtin/providers/aws/import_aws_api_gateway_usage_plan_test.go
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,30 @@ | ||
package aws | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/hashicorp/terraform/helper/acctest" | ||
"github.com/hashicorp/terraform/helper/resource" | ||
) | ||
|
||
func TestAccAWSAPIGatewayUsagePlan_importBasic(t *testing.T) { | ||
resourceName := "aws_api_gateway_usage_plan.main" | ||
rName := acctest.RandString(10) | ||
|
||
resource.Test(t, resource.TestCase{ | ||
PreCheck: func() { testAccPreCheck(t) }, | ||
Providers: testAccProviders, | ||
CheckDestroy: testAccCheckAWSAPIGatewayUsagePlanDestroy, | ||
Steps: []resource.TestStep{ | ||
{ | ||
Config: testAccAWSApiGatewayUsagePlanBasicConfig(rName), | ||
}, | ||
|
||
{ | ||
ResourceName: resourceName, | ||
ImportState: true, | ||
ImportStateVerify: true, | ||
}, | ||
}, | ||
}) | ||
} |
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
Oops, something went wrong.