Skip to content

Commit

Permalink
Code review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
psyvision authored Dec 11, 2017
1 parent 6e59531 commit 622633f
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions aws/resource_aws_cognito_user_pool_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,27 +46,27 @@ func resourceAwsCognitoUserPoolClient() *schema.Resource {
},

"explicit_auth_flows": {
Type: schema.TypeList,
Type: schema.TypeSet,
Optional: true,
Elem: &schema.Schema{
Type: schema.TypeString,
Type: schema.TypeSet,
ValidateFunc: validation.StringInSlice([]string{
cognitoidentityprovider.AuthFlowTypeAdminNoSrpAuth,
cognitoidentityprovider.AuthFlowTypeCustomAuth,
cognitoidentityprovider.ExplicitAuthFlowsTypeAdminNoSrpAuth,
cognitoidentityprovider.ExplicitAuthFlowsTypeCustomAuthFlowOnly,
}, false),
},
},

"read_attributes": {
Type: schema.TypeList,
Type: schema.TypeSet,
Optional: true,
Elem: &schema.Schema{
Type: schema.TypeString,
},
},

"write_attributes": {
Type: schema.TypeList,
Type: schema.TypeSet,
Optional: true,
Elem: &schema.Schema{
Type: schema.TypeString,
Expand All @@ -81,7 +81,7 @@ func resourceAwsCognitoUserPoolClient() *schema.Resource {
},

"allowed_oauth_flows": {
Type: schema.TypeList,
Type: schema.TypeSet,
Optional: true,
MaxItems: 3,
Elem: &schema.Schema{
Expand All @@ -100,7 +100,7 @@ func resourceAwsCognitoUserPoolClient() *schema.Resource {
},

"allowed_oauth_scopes": {
Type: schema.TypeList,
Type: schema.TypeSet,
Optional: true,
Elem: &schema.Schema{
Type: schema.TypeString,
Expand Down Expand Up @@ -210,8 +210,6 @@ func resourceAwsCognitoUserPoolClientCreate(d *schema.ResourceData, meta interfa
}

d.SetId(*resp.UserPoolClient.ClientId)
d.Set("user_pool_id", *resp.UserPoolClient.UserPoolId)
d.Set("name", *resp.UserPoolClient.ClientName)

return resourceAwsCognitoUserPoolClientRead(d, meta)
}
Expand Down

0 comments on commit 622633f

Please sign in to comment.