bitbucket.ForkedRepository
Explore with Pulumi AI
Provides a Bitbucket repository resource that is forked from a parent repo.
This resource allows you manage properties of the fork, if it is
private, how to fork the repository and other options. SCM cannot be overridden,
as it is inherited from the parent repository. Creation will fail if the parent
repo has no_forks
as its fork policy.
OAuth2 Scopes: repository
, repository:admin
, and repository:delete
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as bitbucket from "@pulumi/bitbucket";
const infrastructure = new bitbucket.ForkedRepository("infrastructure", {owner: "myteam"});
import pulumi
import pulumi_bitbucket as bitbucket
infrastructure = bitbucket.ForkedRepository("infrastructure", owner="myteam")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/bitbucket/v2/bitbucket"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := bitbucket.NewForkedRepository(ctx, "infrastructure", &bitbucket.ForkedRepositoryArgs{
Owner: pulumi.String("myteam"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Bitbucket = Pulumi.Bitbucket;
return await Deployment.RunAsync(() =>
{
var infrastructure = new Bitbucket.ForkedRepository("infrastructure", new()
{
Owner = "myteam",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.bitbucket.ForkedRepository;
import com.pulumi.bitbucket.ForkedRepositoryArgs;
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 infrastructure = new ForkedRepository("infrastructure", ForkedRepositoryArgs.builder()
.owner("myteam")
.build());
}
}
resources:
infrastructure:
type: bitbucket:ForkedRepository
properties:
owner: myteam
If you want to create a repository with a CamelCase name, you should provide a separate slug
import * as pulumi from "@pulumi/pulumi";
import * as bitbucket from "@pulumi/bitbucket";
const infrastructure = new bitbucket.ForkedRepository("infrastructure", {
owner: "myteam",
slug: "terraform-code",
parent: {
owner: bitbucket_repository.test.owner,
slug: bitbucket_repository.test.slug,
},
});
import pulumi
import pulumi_bitbucket as bitbucket
infrastructure = bitbucket.ForkedRepository("infrastructure",
owner="myteam",
slug="terraform-code",
parent={
"owner": bitbucket_repository["test"]["owner"],
"slug": bitbucket_repository["test"]["slug"],
})
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/bitbucket/v2/bitbucket"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := bitbucket.NewForkedRepository(ctx, "infrastructure", &bitbucket.ForkedRepositoryArgs{
Owner: pulumi.String("myteam"),
Slug: pulumi.String("terraform-code"),
Parent: pulumi.StringMap{
"owner": pulumi.Any(bitbucket_repository.Test.Owner),
"slug": pulumi.Any(bitbucket_repository.Test.Slug),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Bitbucket = Pulumi.Bitbucket;
return await Deployment.RunAsync(() =>
{
var infrastructure = new Bitbucket.ForkedRepository("infrastructure", new()
{
Owner = "myteam",
Slug = "terraform-code",
Parent =
{
{ "owner", bitbucket_repository.Test.Owner },
{ "slug", bitbucket_repository.Test.Slug },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.bitbucket.ForkedRepository;
import com.pulumi.bitbucket.ForkedRepositoryArgs;
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 infrastructure = new ForkedRepository("infrastructure", ForkedRepositoryArgs.builder()
.owner("myteam")
.slug("terraform-code")
.parent(Map.ofEntries(
Map.entry("owner", bitbucket_repository.test().owner()),
Map.entry("slug", bitbucket_repository.test().slug())
))
.build());
}
}
resources:
infrastructure:
type: bitbucket:ForkedRepository
properties:
owner: myteam
slug: terraform-code
parent:
owner: ${bitbucket_repository.test.owner}
slug: ${bitbucket_repository.test.slug}
Create ForkedRepository Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ForkedRepository(name: string, args: ForkedRepositoryArgs, opts?: CustomResourceOptions);
@overload
def ForkedRepository(resource_name: str,
args: ForkedRepositoryArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ForkedRepository(resource_name: str,
opts: Optional[ResourceOptions] = None,
owner: Optional[str] = None,
parent: Optional[Mapping[str, str]] = None,
has_issues: Optional[bool] = None,
description: Optional[str] = None,
has_wiki: Optional[bool] = None,
is_private: Optional[bool] = None,
language: Optional[str] = None,
link: Optional[ForkedRepositoryLinkArgs] = None,
name: Optional[str] = None,
forked_repository_id: Optional[str] = None,
fork_policy: Optional[str] = None,
pipelines_enabled: Optional[bool] = None,
project_key: Optional[str] = None,
slug: Optional[str] = None,
website: Optional[str] = None)
func NewForkedRepository(ctx *Context, name string, args ForkedRepositoryArgs, opts ...ResourceOption) (*ForkedRepository, error)
public ForkedRepository(string name, ForkedRepositoryArgs args, CustomResourceOptions? opts = null)
public ForkedRepository(String name, ForkedRepositoryArgs args)
public ForkedRepository(String name, ForkedRepositoryArgs args, CustomResourceOptions options)
type: bitbucket:ForkedRepository
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ForkedRepositoryArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ForkedRepositoryArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ForkedRepositoryArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ForkedRepositoryArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ForkedRepositoryArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var forkedRepositoryResource = new Bitbucket.ForkedRepository("forkedRepositoryResource", new()
{
Owner = "string",
Parent =
{
{ "string", "string" },
},
HasIssues = false,
Description = "string",
HasWiki = false,
IsPrivate = false,
Language = "string",
Link = new Bitbucket.Inputs.ForkedRepositoryLinkArgs
{
Avatar = new Bitbucket.Inputs.ForkedRepositoryLinkAvatarArgs
{
Href = "string",
},
},
Name = "string",
ForkedRepositoryId = "string",
ForkPolicy = "string",
PipelinesEnabled = false,
ProjectKey = "string",
Slug = "string",
Website = "string",
});
example, err := bitbucket.NewForkedRepository(ctx, "forkedRepositoryResource", &bitbucket.ForkedRepositoryArgs{
Owner: pulumi.String("string"),
Parent: pulumi.StringMap{
"string": pulumi.String("string"),
},
HasIssues: pulumi.Bool(false),
Description: pulumi.String("string"),
HasWiki: pulumi.Bool(false),
IsPrivate: pulumi.Bool(false),
Language: pulumi.String("string"),
Link: &bitbucket.ForkedRepositoryLinkArgs{
Avatar: &bitbucket.ForkedRepositoryLinkAvatarArgs{
Href: pulumi.String("string"),
},
},
Name: pulumi.String("string"),
ForkedRepositoryId: pulumi.String("string"),
ForkPolicy: pulumi.String("string"),
PipelinesEnabled: pulumi.Bool(false),
ProjectKey: pulumi.String("string"),
Slug: pulumi.String("string"),
Website: pulumi.String("string"),
})
var forkedRepositoryResource = new ForkedRepository("forkedRepositoryResource", ForkedRepositoryArgs.builder()
.owner("string")
.parent(Map.of("string", "string"))
.hasIssues(false)
.description("string")
.hasWiki(false)
.isPrivate(false)
.language("string")
.link(ForkedRepositoryLinkArgs.builder()
.avatar(ForkedRepositoryLinkAvatarArgs.builder()
.href("string")
.build())
.build())
.name("string")
.forkedRepositoryId("string")
.forkPolicy("string")
.pipelinesEnabled(false)
.projectKey("string")
.slug("string")
.website("string")
.build());
forked_repository_resource = bitbucket.ForkedRepository("forkedRepositoryResource",
owner="string",
parent={
"string": "string",
},
has_issues=False,
description="string",
has_wiki=False,
is_private=False,
language="string",
link={
"avatar": {
"href": "string",
},
},
name="string",
forked_repository_id="string",
fork_policy="string",
pipelines_enabled=False,
project_key="string",
slug="string",
website="string")
const forkedRepositoryResource = new bitbucket.ForkedRepository("forkedRepositoryResource", {
owner: "string",
parent: {
string: "string",
},
hasIssues: false,
description: "string",
hasWiki: false,
isPrivate: false,
language: "string",
link: {
avatar: {
href: "string",
},
},
name: "string",
forkedRepositoryId: "string",
forkPolicy: "string",
pipelinesEnabled: false,
projectKey: "string",
slug: "string",
website: "string",
});
type: bitbucket:ForkedRepository
properties:
description: string
forkPolicy: string
forkedRepositoryId: string
hasIssues: false
hasWiki: false
isPrivate: false
language: string
link:
avatar:
href: string
name: string
owner: string
parent:
string: string
pipelinesEnabled: false
projectKey: string
slug: string
website: string
ForkedRepository Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ForkedRepository resource accepts the following input properties:
- Owner string
- The owner of this repository. Can be you or any team you have write access to.
- Parent Dictionary<string, string>
- The repository to fork from. See Parent below.
- Description string
- What the description of the repo is.
- Fork
Policy string - What the fork policy should be. Defaults to
allow_forks
. Valid values areallow_forks
,no_public_forks
,no_forks
. - Forked
Repository stringId - Has
Issues bool - If this should have issues turned on or not.
- Has
Wiki bool - If this should have wiki turned on or not.
- Is
Private bool - If this should be private or not. Defaults to
true
. Note that if the parent repo hasno_public_forks
as its fork policy, the resource may fail to be created. - Language string
- What the language of this repository should be.
- Link
Forked
Repository Link - A set of links to a resource related to this object. See Link Below.
- Name string
- The name of the repository.
- Pipelines
Enabled bool - Turn on to enable pipelines support.
- Project
Key string - If you want to have this repo associated with a project.
- Slug string
- The slug of the repository.
- Website string
- URL of website associated with this repository.
- Owner string
- The owner of this repository. Can be you or any team you have write access to.
- Parent map[string]string
- The repository to fork from. See Parent below.
- Description string
- What the description of the repo is.
- Fork
Policy string - What the fork policy should be. Defaults to
allow_forks
. Valid values areallow_forks
,no_public_forks
,no_forks
. - Forked
Repository stringId - Has
Issues bool - If this should have issues turned on or not.
- Has
Wiki bool - If this should have wiki turned on or not.
- Is
Private bool - If this should be private or not. Defaults to
true
. Note that if the parent repo hasno_public_forks
as its fork policy, the resource may fail to be created. - Language string
- What the language of this repository should be.
- Link
Forked
Repository Link Args - A set of links to a resource related to this object. See Link Below.
- Name string
- The name of the repository.
- Pipelines
Enabled bool - Turn on to enable pipelines support.
- Project
Key string - If you want to have this repo associated with a project.
- Slug string
- The slug of the repository.
- Website string
- URL of website associated with this repository.
- owner String
- The owner of this repository. Can be you or any team you have write access to.
- parent Map<String,String>
- The repository to fork from. See Parent below.
- description String
- What the description of the repo is.
- fork
Policy String - What the fork policy should be. Defaults to
allow_forks
. Valid values areallow_forks
,no_public_forks
,no_forks
. - forked
Repository StringId - has
Issues Boolean - If this should have issues turned on or not.
- has
Wiki Boolean - If this should have wiki turned on or not.
- is
Private Boolean - If this should be private or not. Defaults to
true
. Note that if the parent repo hasno_public_forks
as its fork policy, the resource may fail to be created. - language String
- What the language of this repository should be.
- link
Forked
Repository Link - A set of links to a resource related to this object. See Link Below.
- name String
- The name of the repository.
- pipelines
Enabled Boolean - Turn on to enable pipelines support.
- project
Key String - If you want to have this repo associated with a project.
- slug String
- The slug of the repository.
- website String
- URL of website associated with this repository.
- owner string
- The owner of this repository. Can be you or any team you have write access to.
- parent {[key: string]: string}
- The repository to fork from. See Parent below.
- description string
- What the description of the repo is.
- fork
Policy string - What the fork policy should be. Defaults to
allow_forks
. Valid values areallow_forks
,no_public_forks
,no_forks
. - forked
Repository stringId - has
Issues boolean - If this should have issues turned on or not.
- has
Wiki boolean - If this should have wiki turned on or not.
- is
Private boolean - If this should be private or not. Defaults to
true
. Note that if the parent repo hasno_public_forks
as its fork policy, the resource may fail to be created. - language string
- What the language of this repository should be.
- link
Forked
Repository Link - A set of links to a resource related to this object. See Link Below.
- name string
- The name of the repository.
- pipelines
Enabled boolean - Turn on to enable pipelines support.
- project
Key string - If you want to have this repo associated with a project.
- slug string
- The slug of the repository.
- website string
- URL of website associated with this repository.
- owner str
- The owner of this repository. Can be you or any team you have write access to.
- parent Mapping[str, str]
- The repository to fork from. See Parent below.
- description str
- What the description of the repo is.
- fork_
policy str - What the fork policy should be. Defaults to
allow_forks
. Valid values areallow_forks
,no_public_forks
,no_forks
. - forked_
repository_ strid - has_
issues bool - If this should have issues turned on or not.
- has_
wiki bool - If this should have wiki turned on or not.
- is_
private bool - If this should be private or not. Defaults to
true
. Note that if the parent repo hasno_public_forks
as its fork policy, the resource may fail to be created. - language str
- What the language of this repository should be.
- link
Forked
Repository Link Args - A set of links to a resource related to this object. See Link Below.
- name str
- The name of the repository.
- pipelines_
enabled bool - Turn on to enable pipelines support.
- project_
key str - If you want to have this repo associated with a project.
- slug str
- The slug of the repository.
- website str
- URL of website associated with this repository.
- owner String
- The owner of this repository. Can be you or any team you have write access to.
- parent Map<String>
- The repository to fork from. See Parent below.
- description String
- What the description of the repo is.
- fork
Policy String - What the fork policy should be. Defaults to
allow_forks
. Valid values areallow_forks
,no_public_forks
,no_forks
. - forked
Repository StringId - has
Issues Boolean - If this should have issues turned on or not.
- has
Wiki Boolean - If this should have wiki turned on or not.
- is
Private Boolean - If this should be private or not. Defaults to
true
. Note that if the parent repo hasno_public_forks
as its fork policy, the resource may fail to be created. - language String
- What the language of this repository should be.
- link Property Map
- A set of links to a resource related to this object. See Link Below.
- name String
- The name of the repository.
- pipelines
Enabled Boolean - Turn on to enable pipelines support.
- project
Key String - If you want to have this repo associated with a project.
- slug String
- The slug of the repository.
- website String
- URL of website associated with this repository.
Outputs
All input properties are implicitly available as output properties. Additionally, the ForkedRepository resource produces the following output properties:
- Clone
Https string - The HTTPS clone URL.
- Clone
Ssh string - The SSH clone URL.
- Id string
- The provider-assigned unique ID for this managed resource.
- Scm string
- The SCM of the resource. Either
hg
orgit
. - Uuid string
- The uuid of the repository resource.
- Clone
Https string - The HTTPS clone URL.
- Clone
Ssh string - The SSH clone URL.
- Id string
- The provider-assigned unique ID for this managed resource.
- Scm string
- The SCM of the resource. Either
hg
orgit
. - Uuid string
- The uuid of the repository resource.
- clone
Https String - The HTTPS clone URL.
- clone
Ssh String - The SSH clone URL.
- id String
- The provider-assigned unique ID for this managed resource.
- scm String
- The SCM of the resource. Either
hg
orgit
. - uuid String
- The uuid of the repository resource.
- clone
Https string - The HTTPS clone URL.
- clone
Ssh string - The SSH clone URL.
- id string
- The provider-assigned unique ID for this managed resource.
- scm string
- The SCM of the resource. Either
hg
orgit
. - uuid string
- The uuid of the repository resource.
- clone_
https str - The HTTPS clone URL.
- clone_
ssh str - The SSH clone URL.
- id str
- The provider-assigned unique ID for this managed resource.
- scm str
- The SCM of the resource. Either
hg
orgit
. - uuid str
- The uuid of the repository resource.
- clone
Https String - The HTTPS clone URL.
- clone
Ssh String - The SSH clone URL.
- id String
- The provider-assigned unique ID for this managed resource.
- scm String
- The SCM of the resource. Either
hg
orgit
. - uuid String
- The uuid of the repository resource.
Look up Existing ForkedRepository Resource
Get an existing ForkedRepository resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ForkedRepositoryState, opts?: CustomResourceOptions): ForkedRepository
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
clone_https: Optional[str] = None,
clone_ssh: Optional[str] = None,
description: Optional[str] = None,
fork_policy: Optional[str] = None,
forked_repository_id: Optional[str] = None,
has_issues: Optional[bool] = None,
has_wiki: Optional[bool] = None,
is_private: Optional[bool] = None,
language: Optional[str] = None,
link: Optional[ForkedRepositoryLinkArgs] = None,
name: Optional[str] = None,
owner: Optional[str] = None,
parent: Optional[Mapping[str, str]] = None,
pipelines_enabled: Optional[bool] = None,
project_key: Optional[str] = None,
scm: Optional[str] = None,
slug: Optional[str] = None,
uuid: Optional[str] = None,
website: Optional[str] = None) -> ForkedRepository
func GetForkedRepository(ctx *Context, name string, id IDInput, state *ForkedRepositoryState, opts ...ResourceOption) (*ForkedRepository, error)
public static ForkedRepository Get(string name, Input<string> id, ForkedRepositoryState? state, CustomResourceOptions? opts = null)
public static ForkedRepository get(String name, Output<String> id, ForkedRepositoryState state, CustomResourceOptions options)
resources: _: type: bitbucket:ForkedRepository get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Clone
Https string - The HTTPS clone URL.
- Clone
Ssh string - The SSH clone URL.
- Description string
- What the description of the repo is.
- Fork
Policy string - What the fork policy should be. Defaults to
allow_forks
. Valid values areallow_forks
,no_public_forks
,no_forks
. - Forked
Repository stringId - Has
Issues bool - If this should have issues turned on or not.
- Has
Wiki bool - If this should have wiki turned on or not.
- Is
Private bool - If this should be private or not. Defaults to
true
. Note that if the parent repo hasno_public_forks
as its fork policy, the resource may fail to be created. - Language string
- What the language of this repository should be.
- Link
Forked
Repository Link - A set of links to a resource related to this object. See Link Below.
- Name string
- The name of the repository.
- Owner string
- The owner of this repository. Can be you or any team you have write access to.
- Parent Dictionary<string, string>
- The repository to fork from. See Parent below.
- Pipelines
Enabled bool - Turn on to enable pipelines support.
- Project
Key string - If you want to have this repo associated with a project.
- Scm string
- The SCM of the resource. Either
hg
orgit
. - Slug string
- The slug of the repository.
- Uuid string
- The uuid of the repository resource.
- Website string
- URL of website associated with this repository.
- Clone
Https string - The HTTPS clone URL.
- Clone
Ssh string - The SSH clone URL.
- Description string
- What the description of the repo is.
- Fork
Policy string - What the fork policy should be. Defaults to
allow_forks
. Valid values areallow_forks
,no_public_forks
,no_forks
. - Forked
Repository stringId - Has
Issues bool - If this should have issues turned on or not.
- Has
Wiki bool - If this should have wiki turned on or not.
- Is
Private bool - If this should be private or not. Defaults to
true
. Note that if the parent repo hasno_public_forks
as its fork policy, the resource may fail to be created. - Language string
- What the language of this repository should be.
- Link
Forked
Repository Link Args - A set of links to a resource related to this object. See Link Below.
- Name string
- The name of the repository.
- Owner string
- The owner of this repository. Can be you or any team you have write access to.
- Parent map[string]string
- The repository to fork from. See Parent below.
- Pipelines
Enabled bool - Turn on to enable pipelines support.
- Project
Key string - If you want to have this repo associated with a project.
- Scm string
- The SCM of the resource. Either
hg
orgit
. - Slug string
- The slug of the repository.
- Uuid string
- The uuid of the repository resource.
- Website string
- URL of website associated with this repository.
- clone
Https String - The HTTPS clone URL.
- clone
Ssh String - The SSH clone URL.
- description String
- What the description of the repo is.
- fork
Policy String - What the fork policy should be. Defaults to
allow_forks
. Valid values areallow_forks
,no_public_forks
,no_forks
. - forked
Repository StringId - has
Issues Boolean - If this should have issues turned on or not.
- has
Wiki Boolean - If this should have wiki turned on or not.
- is
Private Boolean - If this should be private or not. Defaults to
true
. Note that if the parent repo hasno_public_forks
as its fork policy, the resource may fail to be created. - language String
- What the language of this repository should be.
- link
Forked
Repository Link - A set of links to a resource related to this object. See Link Below.
- name String
- The name of the repository.
- owner String
- The owner of this repository. Can be you or any team you have write access to.
- parent Map<String,String>
- The repository to fork from. See Parent below.
- pipelines
Enabled Boolean - Turn on to enable pipelines support.
- project
Key String - If you want to have this repo associated with a project.
- scm String
- The SCM of the resource. Either
hg
orgit
. - slug String
- The slug of the repository.
- uuid String
- The uuid of the repository resource.
- website String
- URL of website associated with this repository.
- clone
Https string - The HTTPS clone URL.
- clone
Ssh string - The SSH clone URL.
- description string
- What the description of the repo is.
- fork
Policy string - What the fork policy should be. Defaults to
allow_forks
. Valid values areallow_forks
,no_public_forks
,no_forks
. - forked
Repository stringId - has
Issues boolean - If this should have issues turned on or not.
- has
Wiki boolean - If this should have wiki turned on or not.
- is
Private boolean - If this should be private or not. Defaults to
true
. Note that if the parent repo hasno_public_forks
as its fork policy, the resource may fail to be created. - language string
- What the language of this repository should be.
- link
Forked
Repository Link - A set of links to a resource related to this object. See Link Below.
- name string
- The name of the repository.
- owner string
- The owner of this repository. Can be you or any team you have write access to.
- parent {[key: string]: string}
- The repository to fork from. See Parent below.
- pipelines
Enabled boolean - Turn on to enable pipelines support.
- project
Key string - If you want to have this repo associated with a project.
- scm string
- The SCM of the resource. Either
hg
orgit
. - slug string
- The slug of the repository.
- uuid string
- The uuid of the repository resource.
- website string
- URL of website associated with this repository.
- clone_
https str - The HTTPS clone URL.
- clone_
ssh str - The SSH clone URL.
- description str
- What the description of the repo is.
- fork_
policy str - What the fork policy should be. Defaults to
allow_forks
. Valid values areallow_forks
,no_public_forks
,no_forks
. - forked_
repository_ strid - has_
issues bool - If this should have issues turned on or not.
- has_
wiki bool - If this should have wiki turned on or not.
- is_
private bool - If this should be private or not. Defaults to
true
. Note that if the parent repo hasno_public_forks
as its fork policy, the resource may fail to be created. - language str
- What the language of this repository should be.
- link
Forked
Repository Link Args - A set of links to a resource related to this object. See Link Below.
- name str
- The name of the repository.
- owner str
- The owner of this repository. Can be you or any team you have write access to.
- parent Mapping[str, str]
- The repository to fork from. See Parent below.
- pipelines_
enabled bool - Turn on to enable pipelines support.
- project_
key str - If you want to have this repo associated with a project.
- scm str
- The SCM of the resource. Either
hg
orgit
. - slug str
- The slug of the repository.
- uuid str
- The uuid of the repository resource.
- website str
- URL of website associated with this repository.
- clone
Https String - The HTTPS clone URL.
- clone
Ssh String - The SSH clone URL.
- description String
- What the description of the repo is.
- fork
Policy String - What the fork policy should be. Defaults to
allow_forks
. Valid values areallow_forks
,no_public_forks
,no_forks
. - forked
Repository StringId - has
Issues Boolean - If this should have issues turned on or not.
- has
Wiki Boolean - If this should have wiki turned on or not.
- is
Private Boolean - If this should be private or not. Defaults to
true
. Note that if the parent repo hasno_public_forks
as its fork policy, the resource may fail to be created. - language String
- What the language of this repository should be.
- link Property Map
- A set of links to a resource related to this object. See Link Below.
- name String
- The name of the repository.
- owner String
- The owner of this repository. Can be you or any team you have write access to.
- parent Map<String>
- The repository to fork from. See Parent below.
- pipelines
Enabled Boolean - Turn on to enable pipelines support.
- project
Key String - If you want to have this repo associated with a project.
- scm String
- The SCM of the resource. Either
hg
orgit
. - slug String
- The slug of the repository.
- uuid String
- The uuid of the repository resource.
- website String
- URL of website associated with this repository.
Supporting Types
ForkedRepositoryLink, ForkedRepositoryLinkArgs
- Avatar
Forked
Repository Link Avatar - An avatar link to a resource related to this object. See Avatar Below.
- Avatar
Forked
Repository Link Avatar - An avatar link to a resource related to this object. See Avatar Below.
- avatar
Forked
Repository Link Avatar - An avatar link to a resource related to this object. See Avatar Below.
- avatar
Forked
Repository Link Avatar - An avatar link to a resource related to this object. See Avatar Below.
- avatar
Forked
Repository Link Avatar - An avatar link to a resource related to this object. See Avatar Below.
- avatar Property Map
- An avatar link to a resource related to this object. See Avatar Below.
ForkedRepositoryLinkAvatar, ForkedRepositoryLinkAvatarArgs
- Href string
- href of the avatar.
- Href string
- href of the avatar.
- href String
- href of the avatar.
- href string
- href of the avatar.
- href str
- href of the avatar.
- href String
- href of the avatar.
Import
Repositories can be imported using their owner/name
ID, e.g.
$ pulumi import bitbucket:index/forkedRepository:ForkedRepository my-repo my-account/my-repo
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- bitbucket drfaust92/terraform-provider-bitbucket
- License
- Notes
- This Pulumi package is based on the
bitbucket
Terraform Provider.