diff --git a/.changes/unreleased/Feature-20231107-164857.yaml b/.changes/unreleased/Feature-20231107-164857.yaml new file mode 100644 index 00000000..40e1c473 --- /dev/null +++ b/.changes/unreleased/Feature-20231107-164857.yaml @@ -0,0 +1,3 @@ +kind: Feature +body: Enable deletion of Infrastructure Resource aliases +time: 2023-11-07T16:48:57.512456-05:00 diff --git a/aliases.go b/aliases.go index 3e165dc7..2ef4dc29 100644 --- a/aliases.go +++ b/aliases.go @@ -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,