SourceRepositoryArgs

data class SourceRepositoryArgs(val description: Output<String>? = null, val name: Output<String>? = null, val projectName: Output<String>? = null, val spaceName: Output<String>? = null) : ConvertibleToJava<SourceRepositoryArgs>

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",
});
import pulumi
import pulumi_aws as aws
example = aws.codecatalyst.SourceRepository("example",
name="example-repo",
project_name="example-project",
space_name="example-space")
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",
});
});
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
})
}
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());
}
}
resources:
example:
type: aws:codecatalyst:SourceRepository
properties:
name: example-repo
projectName: example-project
spaceName: example-space

Import

Using pulumi import, import CodeCatalyst Source Repository using the id. For example:

$ pulumi import aws:codecatalyst/sourceRepository:SourceRepository example example-repo

Constructors

Link copied to clipboard
constructor(description: Output<String>? = null, name: Output<String>? = null, projectName: Output<String>? = null, spaceName: Output<String>? = null)

Properties

Link copied to clipboard
val description: Output<String>? = null

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
val name: Output<String>? = null

The name of the source repository. For more information about name requirements, see Quotas for source repositories.

Link copied to clipboard
val projectName: Output<String>? = null

The name of the project in the CodeCatalyst space. The following arguments are optional:

Link copied to clipboard
val spaceName: Output<String>? = null

The name of the CodeCatalyst space.

Functions

Link copied to clipboard
open override fun toJava(): SourceRepositoryArgs