Source Repository
Resource for managing an AWS CodeCatalyst Source Repository.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.codecatalyst.SourceRepository("example", {
name: "example-repo",
projectName: "example-project",
spaceName: "example-space",
});
Content copied to clipboard
import pulumi
import pulumi_aws as aws
example = aws.codecatalyst.SourceRepository("example",
name="example-repo",
project_name="example-project",
space_name="example-space")
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.CodeCatalyst.SourceRepository("example", new()
{
Name = "example-repo",
ProjectName = "example-project",
SpaceName = "example-space",
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/codecatalyst"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := codecatalyst.NewSourceRepository(ctx, "example", &codecatalyst.SourceRepositoryArgs{
Name: pulumi.String("example-repo"),
ProjectName: pulumi.String("example-project"),
SpaceName: pulumi.String("example-space"),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.codecatalyst.SourceRepository;
import com.pulumi.aws.codecatalyst.SourceRepositoryArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new SourceRepository("example", SourceRepositoryArgs.builder()
.name("example-repo")
.projectName("example-project")
.spaceName("example-space")
.build());
}
}
Content copied to clipboard
resources:
example:
type: aws:codecatalyst:SourceRepository
properties:
name: example-repo
projectName: example-project
spaceName: example-space
Content copied to clipboard
Import
Using pulumi import
, import CodeCatalyst Source Repository using the id
. For example:
$ pulumi import aws:codecatalyst/sourceRepository:SourceRepository example example-repo
Content copied to clipboard
Properties
Link copied to clipboard
The description of the project. This description will be displayed to all users of the project. We recommend providing a brief description of the project and its intended purpose.
Link copied to clipboard
The name of the source repository. For more information about name requirements, see Quotas for source repositories.
Link copied to clipboard
The name of the project in the CodeCatalyst space. The following arguments are optional:
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard