Skip to content

Commit

Permalink
aws_gamelift_game_session_queue: import
Browse files Browse the repository at this point in the history
  • Loading branch information
Hinidu committed Nov 14, 2018
1 parent ada8036 commit 704805e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
3 changes: 3 additions & 0 deletions aws/resource_aws_gamelift_game_session_queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ func resourceAwsGameliftGameSessionQueue() *schema.Resource {
Read: resourceAwsGameliftGameSessionQueueRead,
Update: resourceAwsGameliftGameSessionQueueUpdate,
Delete: resourceAwsGameliftGameSessionQueueDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
},

Schema: map[string]*schema.Schema{
"destinations": {
Expand Down
5 changes: 5 additions & 0 deletions aws/resource_aws_gamelift_game_session_queue_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,11 @@ func TestAccAWSGameliftGameSessionQueue_basic(t *testing.T) {
"timeout_in_seconds", fmt.Sprintf("%d", uTimeoutInSeconds)),
),
},
{
ResourceName: "aws_gamelift_game_session_queue.test",
ImportState: true,
ImportStateVerify: true,
},
},
})
}
Expand Down
6 changes: 5 additions & 1 deletion website/docs/r/gamelift_game_session_queue.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,8 @@ In addition to all arguments above, the following attributes are exported:

## Import

Gamelift Session Queues cannot be imported at this time.
Gamelift Game Session Queues can be imported by their `name`, e.g.

```
$ terraform import aws_gamelift_game_session_queue.example example
```

0 comments on commit 704805e

Please sign in to comment.