CodeArtifact / Client / delete_package_group
delete_package_group#
- CodeArtifact.Client.delete_package_group(**kwargs)#
Deletes a package group. Deleting a package group does not delete packages or package versions associated with the package group. When a package group is deleted, the direct child package groups will become children of the package group’s direct parent package group. Therefore, if any of the child groups are inheriting any settings from the parent, those settings could change.
See also: AWS API Documentation
Request Syntax
response = client.delete_package_group( domain='string', domainOwner='string', packageGroup='string' )
- Parameters:
domain (string) –
[REQUIRED]
The domain that contains the package group to be deleted.
domainOwner (string) – The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.
packageGroup (string) –
[REQUIRED]
The pattern of the package group to be deleted.
- Return type:
dict
- Returns:
Response Syntax
{ 'packageGroup': { 'arn': 'string', 'pattern': 'string', 'domainName': 'string', 'domainOwner': 'string', 'createdTime': datetime(2015, 1, 1), 'contactInfo': 'string', 'description': 'string', 'originConfiguration': { 'restrictions': { 'string': { 'mode': 'ALLOW'|'ALLOW_SPECIFIC_REPOSITORIES'|'BLOCK'|'INHERIT', 'effectiveMode': 'ALLOW'|'ALLOW_SPECIFIC_REPOSITORIES'|'BLOCK'|'INHERIT', 'inheritedFrom': { 'arn': 'string', 'pattern': 'string' }, 'repositoriesCount': 123 } } }, 'parent': { 'arn': 'string', 'pattern': 'string' } } }
Response Structure
(dict) –
packageGroup (dict) –
Information about the deleted package group after processing the request.
arn (string) –
The ARN of the package group.
pattern (string) –
The pattern of the package group. The pattern determines which packages are associated with the package group.
domainName (string) –
The name of the domain that contains the package group.
domainOwner (string) –
The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.
createdTime (datetime) –
A timestamp that represents the date and time the package group was created.
contactInfo (string) –
The contact information of the package group.
description (string) –
The description of the package group.
originConfiguration (dict) –
The package group origin configuration that determines how package versions can enter repositories.
restrictions (dict) –
The origin configuration settings that determine how package versions can enter repositories.
(string) –
(dict) –
Contains information about the configured restrictions of the origin controls of a package group.
mode (string) –
The package group origin restriction setting. If the value of
mode
isALLOW
,ALLOW_SPECIFIC_REPOSITORIES
, orBLOCK
, then the value ofeffectiveMode
is the same. Otherwise, when the value isINHERIT
, then the value ofeffectiveMode
is the value ofmode
of the first parent group which does not have a value ofINHERIT
.effectiveMode (string) –
The effective package group origin restriction setting. If the value of
mode
isALLOW
,ALLOW_SPECIFIC_REPOSITORIES
, orBLOCK
, then the value ofeffectiveMode
is the same. Otherwise, when the value ofmode
isINHERIT
, then the value ofeffectiveMode
is the value ofmode
of the first parent group which does not have a value ofINHERIT
.inheritedFrom (dict) –
The parent package group that the package group origin restrictions are inherited from.
arn (string) –
The ARN of the package group.
pattern (string) –
The pattern of the package group. The pattern determines which packages are associated with the package group, and is also the identifier of the package group.
repositoriesCount (integer) –
The number of repositories in the allowed repository list.
parent (dict) –
The direct parent package group of the package group.
arn (string) –
The ARN of the package group.
pattern (string) –
The pattern of the package group. The pattern determines which packages are associated with the package group, and is also the identifier of the package group.
Exceptions