Skip to content

Commit

Permalink
aws_dx_connection state
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhil-goenka committed Jun 19, 2024
1 parent 00c797d commit f19a5d9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/service/directconnect/connection_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ func DataSourceConnection() *schema.Resource {
Type: schema.TypeString,
Required: true,
},
names.AttrState: {
Type: schema.TypeString,
Computed: true,
},
names.AttrOwnerAccountID: {
Type: schema.TypeString,
Computed: true,
Expand Down Expand Up @@ -111,6 +115,7 @@ func dataSourceConnectionRead(ctx context.Context, d *schema.ResourceData, meta
d.Set("bandwidth", connection.Bandwidth)
d.Set(names.AttrLocation, connection.Location)
d.Set(names.AttrName, connection.ConnectionName)
d.Set(names.AttrState, connection.ConnectionState)
d.Set(names.AttrOwnerAccountID, connection.OwnerAccount)
d.Set("partner_name", connection.PartnerName)
d.Set(names.AttrProviderName, connection.ProviderName)
Expand Down

0 comments on commit f19a5d9

Please sign in to comment.