Skip to content

Commit

Permalink
Add sso endpoint to s3 backend (#302)
Browse files Browse the repository at this point in the history
  • Loading branch information
dbanck authored Nov 16, 2023
1 parent e5c77bf commit 9f608e7
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions internal/schema/backends/s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,41 @@ func s3Backend(v *version.Version) *schema.BodySchema {
IsOptional: true,
Description: lang.Markdown("Comma-separated list of hosts that should not use HTTP or HTTPS proxies."),
}
bodySchema.Attributes["endpoints"] = &schema.AttributeSchema{
Constraint: schema.Object{
Attributes: schema.ObjectAttributes{
"dynamodb": &schema.AttributeSchema{
Constraint: schema.LiteralType{Type: cty.String},
IsOptional: true,
Description: lang.Markdown("A custom endpoint for the DynamoDB API"),
},

"iam": &schema.AttributeSchema{
Constraint: schema.LiteralType{Type: cty.String},
IsOptional: true,
Description: lang.Markdown("A custom endpoint for the IAM API"),
},

"s3": &schema.AttributeSchema{
Constraint: schema.LiteralType{Type: cty.String},
IsOptional: true,
Description: lang.Markdown("A custom endpoint for the S3 API"),
},

"sts": &schema.AttributeSchema{
Constraint: schema.LiteralType{Type: cty.String},
IsOptional: true,
Description: lang.Markdown("A custom endpoint for the STS API"),
},

"sso": &schema.AttributeSchema{
Constraint: schema.LiteralType{Type: cty.String},
IsOptional: true,
Description: lang.Markdown("A custom endpoint for the IAM Identity Center (formerly known as SSO) API"),
},
},
},
}
}

return bodySchema
Expand Down

0 comments on commit 9f608e7

Please sign in to comment.