create_package_group
¶
create_package_group(
domain: DomainName,
package_group: PackageGroupPattern,
*,
config_overrides: Optional[codeartifactClientConfig] = None,
domain_owner: Optional[AccountId] = None,
contact_info: Optional[PackageGroupContactInfo] = None,
description: Optional[Description] = None,
tags: Optional[TagList] = None,
) -> CreatePackageGroupResult
Creates a package group. For more information about creating package groups, including example CLI commands, see Create a package group in the CodeArtifact User Guide.
Parameters:
-
domain(DomainName) –The name of the domain in which you want to create a package group.
-
domain_owner(Optional[AccountId], default:None) –The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.
-
package_group(PackageGroupPattern) –The pattern of the package group to create. The pattern is also the identifier of the package group.
-
contact_info(Optional[PackageGroupContactInfo], default:None) –The contact information for the created package group.
-
description(Optional[Description], default:None) –A description of the package group.
-
tags(Optional[TagList], default:None) –One or more tag key-value pairs for the package group.
Raises:
-
AccessDeniedException–The operation did not succeed because of an unauthorized access attempt.
-
ConflictException–The operation did not succeed because prerequisites are not met.
-
InternalServerException–The operation did not succeed because of an error that occurred inside CodeArtifact.
-
ResourceNotFoundException–The operation did not succeed because the resource requested is not found in the service.
-
ServiceQuotaExceededException–The operation did not succeed because it would have exceeded a service limit for your account.
-
ThrottlingException–The operation did not succeed because too many requests are sent to the service.
-
ValidationException–The operation did not succeed because a parameter in the request was sent with an invalid value.
-
UnknownServiceError–The service returned an error code this client does not model.