Skip to content

Commit

Permalink
fixup! Add MSKServerless Configration
Browse files Browse the repository at this point in the history
  • Loading branch information
moremagic committed Jul 6, 2022
1 parent dfe7a3e commit 828e5a7
Showing 1 changed file with 58 additions and 58 deletions.
116 changes: 58 additions & 58 deletions internal/service/kafka/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,64 +98,6 @@ func ResourceCluster() *schema.Resource {
Type: schema.TypeString,
Computed: true,
},
"serverless": {
Type: schema.TypeList,
Optional: true,
DiffSuppressFunc: verify.SuppressMissingOptionalConfigurationBlock,
MaxItems: 1,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"client_authentication": {
Type: schema.TypeList,
Optional: true,
MaxItems: 1,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"sasl": {
Type: schema.TypeList,
Optional: true,
MaxItems: 1,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"iam": {
Type: schema.TypeBool,
Optional: true,
},
},
},
},
},
},
},
"vpc_configs": {
Type: schema.TypeList,
Required: true,
ForceNew: true,
MaxItems: 1,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"security_group_ids": {
Type: schema.TypeSet,
Optional: true,
ForceNew: true,
Elem: &schema.Schema{
Type: schema.TypeString,
},
},
"subnet_ids": {
Type: schema.TypeSet,
Required: true,
ForceNew: true,
Elem: &schema.Schema{
Type: schema.TypeString,
},
},
},
},
},
},
},
},
"provisioned": {
Type: schema.TypeList,
Optional: true,
Expand Down Expand Up @@ -541,6 +483,64 @@ func ResourceCluster() *schema.Resource {
},
},
},
"serverless": {
Type: schema.TypeList,
Optional: true,
DiffSuppressFunc: verify.SuppressMissingOptionalConfigurationBlock,
MaxItems: 1,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"client_authentication": {
Type: schema.TypeList,
Optional: true,
MaxItems: 1,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"sasl": {
Type: schema.TypeList,
Optional: true,
MaxItems: 1,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"iam": {
Type: schema.TypeBool,
Optional: true,
},
},
},
},
},
},
},
"vpc_configs": {
Type: schema.TypeList,
Required: true,
ForceNew: true,
MaxItems: 1,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"security_group_ids": {
Type: schema.TypeSet,
Optional: true,
ForceNew: true,
Elem: &schema.Schema{
Type: schema.TypeString,
},
},
"subnet_ids": {
Type: schema.TypeSet,
Required: true,
ForceNew: true,
Elem: &schema.Schema{
Type: schema.TypeString,
},
},
},
},
},
},
},
},
"tags": tftags.TagsSchema(),
"tags_all": tftags.TagsSchemaComputed(),
},
Expand Down

0 comments on commit 828e5a7

Please sign in to comment.