Skip to content

Create Pipeline

codepipeline_create_pipeline R Documentation

Creates a pipeline

Description

Creates a pipeline.

In the pipeline structure, you must include either artifactStore or artifactStores in your pipeline, but you cannot use both. If you create a cross-region action in your pipeline, you must use artifactStores.

Usage

codepipeline_create_pipeline(pipeline, tags)

Arguments

pipeline

[required] Represents the structure of actions and stages to be performed in the pipeline.

tags

The tags for the pipeline.

Value

A list with the following syntax:

list(
  pipeline = list(
    name = "string",
    roleArn = "string",
    artifactStore = list(
      type = "S3",
      location = "string",
      encryptionKey = list(
        id = "string",
        type = "KMS"
      )
    ),
    artifactStores = list(
      list(
        type = "S3",
        location = "string",
        encryptionKey = list(
          id = "string",
          type = "KMS"
        )
      )
    ),
    stages = list(
      list(
        name = "string",
        blockers = list(
          list(
            name = "string",
            type = "Schedule"
          )
        ),
        actions = list(
          list(
            name = "string",
            actionTypeId = list(
              category = "Source"|"Build"|"Deploy"|"Test"|"Invoke"|"Approval",
              owner = "AWS"|"ThirdParty"|"Custom",
              provider = "string",
              version = "string"
            ),
            runOrder = 123,
            configuration = list(
              "string"
            ),
            outputArtifacts = list(
              list(
                name = "string"
              )
            ),
            inputArtifacts = list(
              list(
                name = "string"
              )
            ),
            roleArn = "string",
            region = "string",
            namespace = "string",
            timeoutInMinutes = 123
          )
        ),
        onFailure = list(
          result = "ROLLBACK"
        )
      )
    ),
    version = 123,
    executionMode = "QUEUED"|"SUPERSEDED"|"PARALLEL",
    pipelineType = "V1"|"V2",
    variables = list(
      list(
        name = "string",
        defaultValue = "string",
        description = "string"
      )
    ),
    triggers = list(
      list(
        providerType = "CodeStarSourceConnection",
        gitConfiguration = list(
          sourceActionName = "string",
          push = list(
            list(
              tags = list(
                includes = list(
                  "string"
                ),
                excludes = list(
                  "string"
                )
              ),
              branches = list(
                includes = list(
                  "string"
                ),
                excludes = list(
                  "string"
                )
              ),
              filePaths = list(
                includes = list(
                  "string"
                ),
                excludes = list(
                  "string"
                )
              )
            )
          ),
          pullRequest = list(
            list(
              events = list(
                "OPEN"|"UPDATED"|"CLOSED"
              ),
              branches = list(
                includes = list(
                  "string"
                ),
                excludes = list(
                  "string"
                )
              ),
              filePaths = list(
                includes = list(
                  "string"
                ),
                excludes = list(
                  "string"
                )
              )
            )
          )
        )
      )
    )
  ),
  tags = list(
    list(
      key = "string",
      value = "string"
    )
  )
)

Request syntax

svc$create_pipeline(
  pipeline = list(
    name = "string",
    roleArn = "string",
    artifactStore = list(
      type = "S3",
      location = "string",
      encryptionKey = list(
        id = "string",
        type = "KMS"
      )
    ),
    artifactStores = list(
      list(
        type = "S3",
        location = "string",
        encryptionKey = list(
          id = "string",
          type = "KMS"
        )
      )
    ),
    stages = list(
      list(
        name = "string",
        blockers = list(
          list(
            name = "string",
            type = "Schedule"
          )
        ),
        actions = list(
          list(
            name = "string",
            actionTypeId = list(
              category = "Source"|"Build"|"Deploy"|"Test"|"Invoke"|"Approval",
              owner = "AWS"|"ThirdParty"|"Custom",
              provider = "string",
              version = "string"
            ),
            runOrder = 123,
            configuration = list(
              "string"
            ),
            outputArtifacts = list(
              list(
                name = "string"
              )
            ),
            inputArtifacts = list(
              list(
                name = "string"
              )
            ),
            roleArn = "string",
            region = "string",
            namespace = "string",
            timeoutInMinutes = 123
          )
        ),
        onFailure = list(
          result = "ROLLBACK"
        )
      )
    ),
    version = 123,
    executionMode = "QUEUED"|"SUPERSEDED"|"PARALLEL",
    pipelineType = "V1"|"V2",
    variables = list(
      list(
        name = "string",
        defaultValue = "string",
        description = "string"
      )
    ),
    triggers = list(
      list(
        providerType = "CodeStarSourceConnection",
        gitConfiguration = list(
          sourceActionName = "string",
          push = list(
            list(
              tags = list(
                includes = list(
                  "string"
                ),
                excludes = list(
                  "string"
                )
              ),
              branches = list(
                includes = list(
                  "string"
                ),
                excludes = list(
                  "string"
                )
              ),
              filePaths = list(
                includes = list(
                  "string"
                ),
                excludes = list(
                  "string"
                )
              )
            )
          ),
          pullRequest = list(
            list(
              events = list(
                "OPEN"|"UPDATED"|"CLOSED"
              ),
              branches = list(
                includes = list(
                  "string"
                ),
                excludes = list(
                  "string"
                )
              ),
              filePaths = list(
                includes = list(
                  "string"
                ),
                excludes = list(
                  "string"
                )
              )
            )
          )
        )
      )
    )
  ),
  tags = list(
    list(
      key = "string",
      value = "string"
    )
  )
)