provider/aws: Deprecate the usage of stage_key in favor of usage plans (#12883)

This commit is contained in:
Gauthier Wallet 2017-03-20 17:09:14 +01:00 committed by Paul Stack
parent 373324ed43
commit 6f6dddba67
2 changed files with 5 additions and 2 deletions

View File

@ -42,8 +42,9 @@ func resourceAwsApiGatewayApiKey() *schema.Resource {
},
"stage_key": {
Type: schema.TypeSet,
Optional: true,
Type: schema.TypeSet,
Optional: true,
Deprecated: "Since the API Gateway usage plans feature was launched on August 11, 2016, usage plans are now required to associate an API key with an API stage",
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"rest_api_id": {

View File

@ -10,6 +10,8 @@ description: |-
Provides an API Gateway API Key.
~> **Warning:** Since the API Gateway usage plans feature was launched on August 11, 2016, usage plans are now **required** to associate an API key with an API stage.
## Example Usage
```