Skip to content

Update Package Group Origin Configuration

codeartifact_update_package_group_origin_configuration R Documentation

Updates the package origin configuration for a package group

Description

Updates the package origin configuration for a package group.

The package origin configuration determines how new versions of a package can be added to a repository. You can allow or block direct publishing of new package versions, or ingestion and retaining of new package versions from an external connection or upstream source. For more information about package group origin controls and configuration, see Package group origin controls in the CodeArtifact User Guide.

Usage

codeartifact_update_package_group_origin_configuration(domain,
  domainOwner, packageGroup, restrictions, addAllowedRepositories,
  removeAllowedRepositories)

Arguments

domain

[required] The name of the domain which contains the package group for which to update the origin configuration.

domainOwner

The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.

packageGroup

[required] The pattern of the package group for which to update the origin configuration.

restrictions

The origin configuration settings that determine how package versions can enter repositories.

addAllowedRepositories

The repository name and restrictions to add to the allowed repository list of the specified package group.

removeAllowedRepositories

The repository name and restrictions to remove from the allowed repository list of the specified package group.

Value

A list with the following syntax:

list(
  packageGroup = list(
    arn = "string",
    pattern = "string",
    domainName = "string",
    domainOwner = "string",
    createdTime = as.POSIXct(
      "2015-01-01"
    ),
    contactInfo = "string",
    description = "string",
    originConfiguration = list(
      restrictions = list(
        list(
          mode = "ALLOW"|"ALLOW_SPECIFIC_REPOSITORIES"|"BLOCK"|"INHERIT",
          effectiveMode = "ALLOW"|"ALLOW_SPECIFIC_REPOSITORIES"|"BLOCK"|"INHERIT",
          inheritedFrom = list(
            arn = "string",
            pattern = "string"
          ),
          repositoriesCount = 123
        )
      )
    ),
    parent = list(
      arn = "string",
      pattern = "string"
    )
  ),
  allowedRepositoryUpdates = list(
    list(
      list(
        "string"
      )
    )
  )
)

Request syntax

svc$update_package_group_origin_configuration(
  domain = "string",
  domainOwner = "string",
  packageGroup = "string",
  restrictions = list(
    "ALLOW"|"ALLOW_SPECIFIC_REPOSITORIES"|"BLOCK"|"INHERIT"
  ),
  addAllowedRepositories = list(
    list(
      repositoryName = "string",
      originRestrictionType = "EXTERNAL_UPSTREAM"|"INTERNAL_UPSTREAM"|"PUBLISH"
    )
  ),
  removeAllowedRepositories = list(
    list(
      repositoryName = "string",
      originRestrictionType = "EXTERNAL_UPSTREAM"|"INTERNAL_UPSTREAM"|"PUBLISH"
    )
  )
)