Skip to content

Commit

Permalink
more consts
Browse files Browse the repository at this point in the history
  • Loading branch information
danquack committed May 9, 2024
1 parent 9ee4306 commit b5bebd8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions internal/service/cognitoidp/user_pool_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func (d *dataSourceUserPool) Schema(ctx context.Context, req datasource.SchemaRe
"recovery_mechanism": schema.ListNestedBlock{
NestedObject: schema.NestedBlockObject{
Attributes: map[string]schema.Attribute{
"name": schema.StringAttribute{
names.AttrName: schema.StringAttribute{
Computed: true,
},
"priority": schema.Int64Attribute{
Expand Down Expand Up @@ -186,7 +186,7 @@ func (d *dataSourceUserPool) Schema(ctx context.Context, req datasource.SchemaRe
"define_auth_challenge": schema.StringAttribute{
Computed: true,
},
"kms_key_id": schema.StringAttribute{
names.AttrKMSKeyID: schema.StringAttribute{
Computed: true,
},
"post_authentication": schema.StringAttribute{
Expand Down Expand Up @@ -267,7 +267,7 @@ func (d *dataSourceUserPool) Schema(ctx context.Context, req datasource.SchemaRe
"mutable": schema.BoolAttribute{
Computed: true,
},
"name": schema.StringAttribute{
names.AttrName: schema.StringAttribute{
Computed: true,
},
"required": schema.BoolAttribute{
Expand Down
4 changes: 2 additions & 2 deletions internal/service/cognitoidp/user_pool_data_source_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func TestAccCognitoIDPUserPoolDataSource_basic(t *testing.T) {
Config: testAccUserPoolDataSourceConfig_basic(rName),
Check: resource.ComposeTestCheckFunc(
testAccCheckUserPoolExists(ctx, dataSourceName, &userpool),
acctest.MatchResourceAttrRegionalARN(dataSourceName, "arn", "cognito-idp", regexache.MustCompile(`userpool/.*`)),
acctest.MatchResourceAttrRegionalARN(dataSourceName, names.AttrARN, "cognito-idp", regexache.MustCompile(`userpool/.*`)),
resource.TestCheckResourceAttr(dataSourceName, "name", rName),
),
},
Expand Down Expand Up @@ -67,7 +67,7 @@ func TestAccCognitoIDPUserPoolDataSource_schemaAttributes(t *testing.T) {
Config: testAccUserPoolDataSourceConfig_schemaAttributes(rName),
Check: resource.ComposeTestCheckFunc(
testAccCheckUserPoolExists(ctx, dataSourceName, &userpool),
resource.TestCheckResourceAttr(dataSourceName, "name", rName),
resource.TestCheckResourceAttr(dataSourceName, names.AttrName, rName),
testSchemaAttributes(ctx, dataSourceName),
),
},
Expand Down

0 comments on commit b5bebd8

Please sign in to comment.