Package com.pulumi.aws.codecatalyst
Class SourceRepository
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.codecatalyst.SourceRepository
-
public class SourceRepository extends com.pulumi.resources.CustomResourceResource for managing an AWS CodeCatalyst Source Repository. ## Example Usage ### Basic Usage
## Import Using `pulumi import`, import CodeCatalyst Source Repository using the `id`. For example: ```sh $ pulumi import aws:codecatalyst/sourceRepository:SourceRepository example example-repo ```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.ArrayList; import java.util.Arrays; 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()); } }
-
-
Constructor Summary
Constructors Constructor Description SourceRepository(java.lang.String name)SourceRepository(java.lang.String name, SourceRepositoryArgs args)SourceRepository(java.lang.String name, SourceRepositoryArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.util.Optional<java.lang.String>>description()static SourceRepositoryget(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, SourceRepositoryState state, com.pulumi.resources.CustomResourceOptions options)Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.lang.String>name()com.pulumi.core.Output<java.lang.String>projectName()com.pulumi.core.Output<java.lang.String>region()com.pulumi.core.Output<java.lang.String>spaceName()
-
-
-
Constructor Detail
-
SourceRepository
public SourceRepository(java.lang.String name)
- Parameters:
name- The _unique_ name of the resulting resource.
-
SourceRepository
public SourceRepository(java.lang.String name, SourceRepositoryArgs args)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.
-
SourceRepository
public SourceRepository(java.lang.String name, SourceRepositoryArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.options- A bag of options that control this resource's behavior.
-
-
Method Detail
-
description
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> description()
- Returns:
- 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.
-
name
public com.pulumi.core.Output<java.lang.String> name()
- Returns:
- The name of the source repository. For more information about name requirements, see [Quotas for source repositories](https://docs.aws.amazon.com/codecatalyst/latest/userguide/source-quotas.html).
-
projectName
public com.pulumi.core.Output<java.lang.String> projectName()
- Returns:
- The name of the project in the CodeCatalyst space. The following arguments are optional:
-
region
public com.pulumi.core.Output<java.lang.String> region()
- Returns:
- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
-
spaceName
public com.pulumi.core.Output<java.lang.String> spaceName()
- Returns:
- The name of the CodeCatalyst space.
-
get
public static SourceRepository get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable SourceRepositoryState state, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name- The _unique_ name of the resulting resource.id- The _unique_ provider ID of the resource to lookup.state-options- Optional settings to control the behavior of the CustomResource.
-
-