Skip to content

Commit

Permalink
DEVOPS-2428 dxcon deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Barnes committed Apr 5, 2023
1 parent ca67556 commit 43f5967
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# 0.1.15 Release

## New Features
- Support for extracting AWS Hosted Connection ID's.

# 0.1.14 Release

## New Features
Expand Down
16 changes: 15 additions & 1 deletion service/vxc/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func (v *VXC) BuyAWSVXC(

func (v *VXC) ExtractAwsId(vxcDetails types.VXC) string {

// extract fid id from csp connection data
// extract vif id from csp connection data
cspConnection := v.GetCspConnection("connectType", "AWS", vxcDetails)

if cspConnection != nil {
Expand All @@ -77,6 +77,20 @@ func (v *VXC) ExtractAwsId(vxcDetails types.VXC) string {
return ""
}

func (v *VXC) ExtractConnectionId(vxcDetails types.VXC) string {

// extract connection id from csp connection data
cspConnection := v.GetCspConnection("connectType", "AWSHC", vxcDetails)

if cspConnection != nil {
if _, exists := cspConnection["connectionId"]; exists {
return cspConnection["connectionId"].(string)
}
}

return ""
}

// Extract AWS CSP details from VXC CspConnection
func (v *VXC) ExtractAWSPartnerConfig(vxcDetails types.VXC) (*types.AWSVXCOrderBEndPartnerConfig, error) {

Expand Down

0 comments on commit 43f5967

Please sign in to comment.