Skip to content

Commit

Permalink
Delete aliases on infrastructure resources (#293)
Browse files Browse the repository at this point in the history
* enable deletion of infra aliases

* changie
  • Loading branch information
taimoor ahmad authored Nov 7, 2023
1 parent ce79be3 commit 86c3889
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .changes/unreleased/Feature-20231107-164857.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
kind: Feature
body: Enable deletion of Infrastructure Resource aliases
time: 2023-11-07T16:48:57.512456-05:00
7 changes: 7 additions & 0 deletions aliases.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,13 @@ func (client *Client) CreateAlias(input AliasCreateInput) ([]string, error) {

//#region Delete

func (client *Client) DeleteInfraAlias(alias string) error {
return client.DeleteAlias(AliasDeleteInput{
Alias: alias,
OwnerType: AliasOwnerTypeEnumInfrastructureResource,
})
}

func (client *Client) DeleteServiceAlias(alias string) error {
return client.DeleteAlias(AliasDeleteInput{
Alias: alias,
Expand Down

0 comments on commit 86c3889

Please sign in to comment.