diff --git a/.github/workflows/upgrade-provider.yml b/.github/workflows/upgrade-provider.yml index f922a69..0b7cb56 100644 --- a/.github/workflows/upgrade-provider.yml +++ b/.github/workflows/upgrade-provider.yml @@ -3,9 +3,9 @@ on: workflow_dispatch: issues: types: - - opened + - opened schedule: - - cron: '0 5 * * *' + - cron: "0 5 * * *" env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} jobs: @@ -13,8 +13,8 @@ jobs: name: upgrade-provider runs-on: ubuntu-latest steps: - - name: Call upgrade provider action - uses: pulumi/pulumi-upgrade-provider-action@main - with: - username: omercnet - kind: bridge + - name: Call upgrade provider action + uses: pulumi/pulumi-upgrade-provider-action@main + with: + username: omercnet + kind: bridge diff --git a/.goreleaser.yml b/.goreleaser.yml index d023435..70ea1ca 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -3,12 +3,13 @@ archives: name_template: "{{ .Binary }}-{{ .Tag }}-{{ .Os }}-{{ .Arch }}" before: hooks: - - make tfgen + - make provider builds: - binary: pulumi-resource-vercel dir: provider env: - CGO_ENABLED=0 + - GO111MODULE=on goarch: - amd64 - arm64 @@ -17,13 +18,13 @@ builds: - windows - linux ldflags: - # The line below MUST align with the module in current provider/go.mod - - -X github.com/omercnet/pulumi-vercel/provider/pkg/version.Version={{.Tag }} + - -s + - -w + - -X github.com/pulumiverse/pulumi-vercel/provider/pkg/version.Version={{.Tag}} main: ./cmd/pulumi-resource-vercel/ changelog: skip: true release: disable: false - prerelease: auto snapshot: name_template: "{{ .Tag }}-SNAPSHOT" diff --git a/Makefile b/Makefile index 08022b2..1533cf6 100644 --- a/Makefile +++ b/Makefile @@ -2,9 +2,9 @@ PROJECT_NAME := vercel Package SHELL := /bin/bash PACK := vercel -ORG := omercnet +ORG := pulumiverse PROJECT := github.com/${ORG}/pulumi-${PACK} -NODE_MODULE_NAME := @pulumi/${PACK} +NODE_MODULE_NAME := @pulumiverse/${PACK} TF_NAME := ${PACK} PROVIDER_PATH := provider VERSION_PATH := ${PROVIDER_PATH}/pkg/version.Version diff --git a/README.md b/README.md index 5e798d6..59bf15d 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ pip install pulumi_vercel To use from Go, use `go get` to grab the latest version of the library: ```bash -go get github.com/omercnet/pulumi-vercel/sdk/go/... +go get github.com/pulumiverse/pulumi-vercel/sdk/go/... ``` ### .NET diff --git a/examples/examples_test.go b/examples/examples_test.go index 77bcaa9..9810e75 100644 --- a/examples/examples_test.go +++ b/examples/examples_test.go @@ -20,6 +20,5 @@ func getBaseOptions() integration.ProgramTestOptions { return integration.ProgramTestOptions{ RunUpdateTest: false, ExpectRefreshChanges: true, - ch } } diff --git a/examples/go.mod b/examples/go.mod index 3e26e0f..25b77c9 100644 --- a/examples/go.mod +++ b/examples/go.mod @@ -1,4 +1,4 @@ -module github.com/omercnet/pulumi-vercel/examples +module github.com/pulumiverse/pulumi-vercel/examples go 1.19 diff --git a/examples/vercel/ts/index.ts b/examples/vercel/ts/index.ts index a22a523..ad65394 100644 --- a/examples/vercel/ts/index.ts +++ b/examples/vercel/ts/index.ts @@ -1,4 +1,4 @@ -import * as vercel from "@pulumi/vercel"; +import * as vercel from "@pulumiverse/vercel"; const project = new vercel.Project("pulumi-vercel", { rootDirectory: "src", diff --git a/provider/cmd/pulumi-resource-vercel/bridge-metadata.json b/provider/cmd/pulumi-resource-vercel/bridge-metadata.json index 298a2ae..cd2148b 100644 --- a/provider/cmd/pulumi-resource-vercel/bridge-metadata.json +++ b/provider/cmd/pulumi-resource-vercel/bridge-metadata.json @@ -165,7 +165,7 @@ } }, "vercel:index/getFile:getFile": { - "description": "Provides information about a file on disk.\n\nThis will read a single file, providing metadata for use with a `vercel.Deployment`.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as vercel from \"@pulumi/vercel\";\n\nconst exampleFile = vercel.getFile({\n path: \"index.html\",\n});\nconst exampleProject = vercel.getProject({\n name: \"my-project\",\n});\nconst exampleDeployment = new vercel.Deployment(\"exampleDeployment\", {\n projectId: exampleProject.then(exampleProject =\u003e exampleProject.id),\n files: exampleFile.then(exampleFile =\u003e exampleFile.file),\n});\n```\n```python\nimport pulumi\nimport pulumi_vercel as vercel\n\nexample_file = vercel.get_file(path=\"index.html\")\nexample_project = vercel.get_project(name=\"my-project\")\nexample_deployment = vercel.Deployment(\"exampleDeployment\",\n project_id=example_project.id,\n files=example_file.file)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Vercel = Pulumi.Vercel;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleFile = Vercel.GetFile.Invoke(new()\n {\n Path = \"index.html\",\n });\n\n var exampleProject = Vercel.GetProject.Invoke(new()\n {\n Name = \"my-project\",\n });\n\n var exampleDeployment = new Vercel.Deployment(\"exampleDeployment\", new()\n {\n ProjectId = exampleProject.Apply(getProjectResult =\u003e getProjectResult.Id),\n Files = exampleFile.Apply(getFileResult =\u003e getFileResult.File),\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/omercnet/pulumi-vercel/sdk/go/vercel\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleFile, err := vercel.GetFile(ctx, \u0026vercel.GetFileArgs{\n\t\t\tPath: \"index.html\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleProject, err := vercel.LookupProject(ctx, \u0026vercel.LookupProjectArgs{\n\t\t\tName: \"my-project\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = vercel.NewDeployment(ctx, \"exampleDeployment\", \u0026vercel.DeploymentArgs{\n\t\t\tProjectId: *pulumi.String(exampleProject.Id),\n\t\t\tFiles: interface{}(exampleFile.File),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.vercel.VercelFunctions;\nimport com.pulumi.vercel.inputs.GetFileArgs;\nimport com.pulumi.vercel.inputs.GetProjectArgs;\nimport com.pulumi.vercel.Deployment;\nimport com.pulumi.vercel.DeploymentArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var exampleFile = VercelFunctions.getFile(GetFileArgs.builder()\n .path(\"index.html\")\n .build());\n\n final var exampleProject = VercelFunctions.getProject(GetProjectArgs.builder()\n .name(\"my-project\")\n .build());\n\n var exampleDeployment = new Deployment(\"exampleDeployment\", DeploymentArgs.builder() \n .projectId(exampleProject.applyValue(getProjectResult -\u003e getProjectResult.id()))\n .files(exampleFile.applyValue(getFileResult -\u003e getFileResult.file()))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleDeployment:\n type: vercel:Deployment\n properties:\n projectId: ${exampleProject.id}\n files: ${exampleFile.file}\nvariables:\n exampleFile:\n fn::invoke:\n Function: vercel:getFile\n Arguments:\n path: index.html\n exampleProject:\n fn::invoke:\n Function: vercel:getProject\n Arguments:\n name: my-project\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Provides information about a file on disk.\n\nThis will read a single file, providing metadata for use with a `vercel.Deployment`.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as vercel from \"@pulumi/vercel\";\n\nconst exampleFile = vercel.getFile({\n path: \"index.html\",\n});\nconst exampleProject = vercel.getProject({\n name: \"my-project\",\n});\nconst exampleDeployment = new vercel.Deployment(\"exampleDeployment\", {\n projectId: exampleProject.then(exampleProject =\u003e exampleProject.id),\n files: exampleFile.then(exampleFile =\u003e exampleFile.file),\n});\n```\n```python\nimport pulumi\nimport pulumi_vercel as vercel\n\nexample_file = vercel.get_file(path=\"index.html\")\nexample_project = vercel.get_project(name=\"my-project\")\nexample_deployment = vercel.Deployment(\"exampleDeployment\",\n project_id=example_project.id,\n files=example_file.file)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Vercel = Pulumi.Vercel;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleFile = Vercel.GetFile.Invoke(new()\n {\n Path = \"index.html\",\n });\n\n var exampleProject = Vercel.GetProject.Invoke(new()\n {\n Name = \"my-project\",\n });\n\n var exampleDeployment = new Vercel.Deployment(\"exampleDeployment\", new()\n {\n ProjectId = exampleProject.Apply(getProjectResult =\u003e getProjectResult.Id),\n Files = exampleFile.Apply(getFileResult =\u003e getFileResult.File),\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumiverse/pulumi-vercel/sdk/go/vercel\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleFile, err := vercel.GetFile(ctx, \u0026vercel.GetFileArgs{\n\t\t\tPath: \"index.html\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleProject, err := vercel.LookupProject(ctx, \u0026vercel.LookupProjectArgs{\n\t\t\tName: \"my-project\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = vercel.NewDeployment(ctx, \"exampleDeployment\", \u0026vercel.DeploymentArgs{\n\t\t\tProjectId: *pulumi.String(exampleProject.Id),\n\t\t\tFiles: interface{}(exampleFile.File),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.vercel.VercelFunctions;\nimport com.pulumi.vercel.inputs.GetFileArgs;\nimport com.pulumi.vercel.inputs.GetProjectArgs;\nimport com.pulumi.vercel.Deployment;\nimport com.pulumi.vercel.DeploymentArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var exampleFile = VercelFunctions.getFile(GetFileArgs.builder()\n .path(\"index.html\")\n .build());\n\n final var exampleProject = VercelFunctions.getProject(GetProjectArgs.builder()\n .name(\"my-project\")\n .build());\n\n var exampleDeployment = new Deployment(\"exampleDeployment\", DeploymentArgs.builder() \n .projectId(exampleProject.applyValue(getProjectResult -\u003e getProjectResult.id()))\n .files(exampleFile.applyValue(getFileResult -\u003e getFileResult.file()))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleDeployment:\n type: vercel:Deployment\n properties:\n projectId: ${exampleProject.id}\n files: ${exampleFile.file}\nvariables:\n exampleFile:\n fn::invoke:\n Function: vercel:getFile\n Arguments:\n path: index.html\n exampleProject:\n fn::invoke:\n Function: vercel:getProject\n Arguments:\n name: my-project\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getFile.\n", "properties": { @@ -244,7 +244,7 @@ } }, "vercel:index/getProject:getProject": { - "description": "Provides information about an existing project within Vercel.\n\nA Project groups deployments and custom domains. To deploy on Vercel, you need a Project.\n\nFor more detailed information, please see the [Vercel documentation](https://vercel.com/docs/concepts/projects/overview).\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as vercel from \"@pulumi/vercel\";\n\nconst foo = vercel.getProject({\n name: \"my-existing-project\",\n});\nexport const projectId = foo.then(foo =\u003e foo.id);\n```\n```python\nimport pulumi\nimport pulumi_vercel as vercel\n\nfoo = vercel.get_project(name=\"my-existing-project\")\npulumi.export(\"projectId\", foo.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Vercel = Pulumi.Vercel;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Vercel.GetProject.Invoke(new()\n {\n Name = \"my-existing-project\",\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"projectId\"] = foo.Apply(getProjectResult =\u003e getProjectResult.Id),\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/omercnet/pulumi-vercel/sdk/go/vercel\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tfoo, err := vercel.LookupProject(ctx, \u0026vercel.LookupProjectArgs{\n\t\t\tName: \"my-existing-project\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"projectId\", foo.Id)\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.vercel.VercelFunctions;\nimport com.pulumi.vercel.inputs.GetProjectArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo = VercelFunctions.getProject(GetProjectArgs.builder()\n .name(\"my-existing-project\")\n .build());\n\n ctx.export(\"projectId\", foo.applyValue(getProjectResult -\u003e getProjectResult.id()));\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: vercel:getProject\n Arguments:\n name: my-existing-project\noutputs:\n # Outputs prj_xxxxxx\n projectId: ${foo.id}\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Provides information about an existing project within Vercel.\n\nA Project groups deployments and custom domains. To deploy on Vercel, you need a Project.\n\nFor more detailed information, please see the [Vercel documentation](https://vercel.com/docs/concepts/projects/overview).\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as vercel from \"@pulumi/vercel\";\n\nconst foo = vercel.getProject({\n name: \"my-existing-project\",\n});\nexport const projectId = foo.then(foo =\u003e foo.id);\n```\n```python\nimport pulumi\nimport pulumi_vercel as vercel\n\nfoo = vercel.get_project(name=\"my-existing-project\")\npulumi.export(\"projectId\", foo.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Vercel = Pulumi.Vercel;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Vercel.GetProject.Invoke(new()\n {\n Name = \"my-existing-project\",\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"projectId\"] = foo.Apply(getProjectResult =\u003e getProjectResult.Id),\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumiverse/pulumi-vercel/sdk/go/vercel\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tfoo, err := vercel.LookupProject(ctx, \u0026vercel.LookupProjectArgs{\n\t\t\tName: \"my-existing-project\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"projectId\", foo.Id)\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.vercel.VercelFunctions;\nimport com.pulumi.vercel.inputs.GetProjectArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo = VercelFunctions.getProject(GetProjectArgs.builder()\n .name(\"my-existing-project\")\n .build());\n\n ctx.export(\"projectId\", foo.applyValue(getProjectResult -\u003e getProjectResult.id()));\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: vercel:getProject\n Arguments:\n name: my-existing-project\noutputs:\n # Outputs prj_xxxxxx\n projectId: ${foo.id}\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getProject.\n", "properties": { @@ -414,7 +414,7 @@ "go": { "generateExtraInputTypes": true, "generateResourceContainerTypes": true, - "importBasePath": "github.com/omercnet/pulumi-vercel/sdk/go/vercel" + "importBasePath": "github.com/pulumiverse/pulumi-vercel/sdk/go/vercel" }, "nodejs": { "compatibility": "tfbridge20", @@ -428,12 +428,12 @@ "disableUnionOutputTypes": true, "packageDescription": "A Pulumi package for creating and managing vercel cloud resources.", "packageName": "", - "readme": "\u003e This provider is a derived work of the [Terraform Provider](https://github.com/vercel/terraform-provider-vercel)\n\u003e distributed under [MPL 2.0](https://www.mozilla.org/en-US/MPL/2.0/). If you encounter a bug or missing feature,\n\u003e first check the [`pulumi-vercel` repo](https://github.com/omercnet/pulumi-vercel/issues); however, if that doesn't turn up anything,\n\u003e please consult the source [`terraform-provider-vercel` repo](https://github.com/vercel/terraform-provider-vercel/issues).", + "readme": "\u003e This provider is a derived work of the [Terraform Provider](https://github.com/vercel/terraform-provider-vercel)\n\u003e distributed under [MPL 2.0](https://www.mozilla.org/en-US/MPL/2.0/). If you encounter a bug or missing feature,\n\u003e first check the [`pulumi-vercel` repo](https://github.com/pulumiverse/pulumi-vercel/issues); however, if that doesn't turn up anything,\n\u003e please consult the source [`terraform-provider-vercel` repo](https://github.com/vercel/terraform-provider-vercel/issues).", "typescriptVersion": "" }, "python": { "compatibility": "tfbridge20", - "readme": "\u003e This provider is a derived work of the [Terraform Provider](https://github.com/vercel/terraform-provider-vercel)\n\u003e distributed under [MPL 2.0](https://www.mozilla.org/en-US/MPL/2.0/). If you encounter a bug or missing feature,\n\u003e first check the [`pulumi-vercel` repo](https://github.com/omercnet/pulumi-vercel/issues); however, if that doesn't turn up anything,\n\u003e please consult the source [`terraform-provider-vercel` repo](https://github.com/vercel/terraform-provider-vercel/issues).", + "readme": "\u003e This provider is a derived work of the [Terraform Provider](https://github.com/vercel/terraform-provider-vercel)\n\u003e distributed under [MPL 2.0](https://www.mozilla.org/en-US/MPL/2.0/). If you encounter a bug or missing feature,\n\u003e first check the [`pulumi-vercel` repo](https://github.com/pulumiverse/pulumi-vercel/issues); however, if that doesn't turn up anything,\n\u003e please consult the source [`terraform-provider-vercel` repo](https://github.com/vercel/terraform-provider-vercel/issues).", "requires": { "pulumi": "\u003e=3.0.0,\u003c4.0.0" } @@ -596,7 +596,7 @@ "apiToken": "api_token" } }, - "repository": "https://github.com/omercnet/pulumi-vercel", + "repository": "https://github.com/pulumiverse/pulumi-vercel", "resources": { "vercel:index/alias:Alias": { "description": "Provides an Alias resource.\n\nAn Alias allows a `vercel.Deployment` to be accessed through a different URL.\n", @@ -842,7 +842,7 @@ } }, "vercel:index/dnsRecord:DnsRecord": { - "description": "Provides a DNS Record resource.\n\nDNS records are instructions that live in authoritative DNS servers and provide information about a domain.\n\n\u003e The `value` field must be specified on all DNS record types except `SRV`. When using `SRV` DNS records, the `srv` field must be specified.\n\nFor more detailed information, please see the [Vercel documentation](https://vercel.com/docs/concepts/projects/custom-domains#dns-records)\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as vercel from \"@pulumi/vercel\";\n\nconst dnsRecord = new vercel.DnsRecord(\"dnsRecord\", {\n domain: \"example.com\",\n ttl: 60,\n type: \"A\",\n value: \"192.168.0.1\",\n});\nconst aaaa = new vercel.DnsRecord(\"aaaa\", {\n domain: \"example.com\",\n ttl: 60,\n type: \"AAAA\",\n value: \"::0\",\n});\nconst alias = new vercel.DnsRecord(\"alias\", {\n domain: \"example.com\",\n ttl: 60,\n type: \"ALIAS\",\n value: \"example2.com.\",\n});\nconst caa = new vercel.DnsRecord(\"caa\", {\n domain: \"example.com\",\n ttl: 60,\n type: \"CAA\",\n value: \"1 issue \\\"letsencrypt.org\\\"\",\n});\nconst cname = new vercel.DnsRecord(\"cname\", {\n domain: \"example.com\",\n ttl: 60,\n type: \"CNAME\",\n value: \"example2.com.\",\n});\nconst mx = new vercel.DnsRecord(\"mx\", {\n domain: \"example.com\",\n mxPriority: 333,\n ttl: 60,\n type: \"MX\",\n value: \"example2.com.\",\n});\nconst srv = new vercel.DnsRecord(\"srv\", {\n domain: \"example.com\",\n srv: {\n port: 6000,\n priority: 127,\n target: \"example2.com.\",\n weight: 60,\n },\n ttl: 60,\n type: \"SRV\",\n});\nconst txt = new vercel.DnsRecord(\"txt\", {\n domain: \"example.com\",\n ttl: 60,\n type: \"TXT\",\n value: \"some text value\",\n});\n```\n```python\nimport pulumi\nimport pulumi_vercel as vercel\n\ndns_record = vercel.DnsRecord(\"dnsRecord\",\n domain=\"example.com\",\n ttl=60,\n type=\"A\",\n value=\"192.168.0.1\")\naaaa = vercel.DnsRecord(\"aaaa\",\n domain=\"example.com\",\n ttl=60,\n type=\"AAAA\",\n value=\"::0\")\nalias = vercel.DnsRecord(\"alias\",\n domain=\"example.com\",\n ttl=60,\n type=\"ALIAS\",\n value=\"example2.com.\")\ncaa = vercel.DnsRecord(\"caa\",\n domain=\"example.com\",\n ttl=60,\n type=\"CAA\",\n value=\"1 issue \\\"letsencrypt.org\\\"\")\ncname = vercel.DnsRecord(\"cname\",\n domain=\"example.com\",\n ttl=60,\n type=\"CNAME\",\n value=\"example2.com.\")\nmx = vercel.DnsRecord(\"mx\",\n domain=\"example.com\",\n mx_priority=333,\n ttl=60,\n type=\"MX\",\n value=\"example2.com.\")\nsrv = vercel.DnsRecord(\"srv\",\n domain=\"example.com\",\n srv=vercel.DnsRecordSrvArgs(\n port=6000,\n priority=127,\n target=\"example2.com.\",\n weight=60,\n ),\n ttl=60,\n type=\"SRV\")\ntxt = vercel.DnsRecord(\"txt\",\n domain=\"example.com\",\n ttl=60,\n type=\"TXT\",\n value=\"some text value\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Vercel = Pulumi.Vercel;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var dnsRecord = new Vercel.DnsRecord(\"dnsRecord\", new()\n {\n Domain = \"example.com\",\n Ttl = 60,\n Type = \"A\",\n Value = \"192.168.0.1\",\n });\n\n var aaaa = new Vercel.DnsRecord(\"aaaa\", new()\n {\n Domain = \"example.com\",\n Ttl = 60,\n Type = \"AAAA\",\n Value = \"::0\",\n });\n\n var @alias = new Vercel.DnsRecord(\"alias\", new()\n {\n Domain = \"example.com\",\n Ttl = 60,\n Type = \"ALIAS\",\n Value = \"example2.com.\",\n });\n\n var caa = new Vercel.DnsRecord(\"caa\", new()\n {\n Domain = \"example.com\",\n Ttl = 60,\n Type = \"CAA\",\n Value = \"1 issue \\\"letsencrypt.org\\\"\",\n });\n\n var cname = new Vercel.DnsRecord(\"cname\", new()\n {\n Domain = \"example.com\",\n Ttl = 60,\n Type = \"CNAME\",\n Value = \"example2.com.\",\n });\n\n var mx = new Vercel.DnsRecord(\"mx\", new()\n {\n Domain = \"example.com\",\n MxPriority = 333,\n Ttl = 60,\n Type = \"MX\",\n Value = \"example2.com.\",\n });\n\n var srv = new Vercel.DnsRecord(\"srv\", new()\n {\n Domain = \"example.com\",\n Srv = new Vercel.Inputs.DnsRecordSrvArgs\n {\n Port = 6000,\n Priority = 127,\n Target = \"example2.com.\",\n Weight = 60,\n },\n Ttl = 60,\n Type = \"SRV\",\n });\n\n var txt = new Vercel.DnsRecord(\"txt\", new()\n {\n Domain = \"example.com\",\n Ttl = 60,\n Type = \"TXT\",\n Value = \"some text value\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/omercnet/pulumi-vercel/sdk/go/vercel\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := vercel.NewDnsRecord(ctx, \"dnsRecord\", \u0026vercel.DnsRecordArgs{\n\t\t\tDomain: pulumi.String(\"example.com\"),\n\t\t\tTtl: pulumi.Int(60),\n\t\t\tType: pulumi.String(\"A\"),\n\t\t\tValue: pulumi.String(\"192.168.0.1\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = vercel.NewDnsRecord(ctx, \"aaaa\", \u0026vercel.DnsRecordArgs{\n\t\t\tDomain: pulumi.String(\"example.com\"),\n\t\t\tTtl: pulumi.Int(60),\n\t\t\tType: pulumi.String(\"AAAA\"),\n\t\t\tValue: pulumi.String(\"::0\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = vercel.NewDnsRecord(ctx, \"alias\", \u0026vercel.DnsRecordArgs{\n\t\t\tDomain: pulumi.String(\"example.com\"),\n\t\t\tTtl: pulumi.Int(60),\n\t\t\tType: pulumi.String(\"ALIAS\"),\n\t\t\tValue: pulumi.String(\"example2.com.\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = vercel.NewDnsRecord(ctx, \"caa\", \u0026vercel.DnsRecordArgs{\n\t\t\tDomain: pulumi.String(\"example.com\"),\n\t\t\tTtl: pulumi.Int(60),\n\t\t\tType: pulumi.String(\"CAA\"),\n\t\t\tValue: pulumi.String(\"1 issue \\\"letsencrypt.org\\\"\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = vercel.NewDnsRecord(ctx, \"cname\", \u0026vercel.DnsRecordArgs{\n\t\t\tDomain: pulumi.String(\"example.com\"),\n\t\t\tTtl: pulumi.Int(60),\n\t\t\tType: pulumi.String(\"CNAME\"),\n\t\t\tValue: pulumi.String(\"example2.com.\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = vercel.NewDnsRecord(ctx, \"mx\", \u0026vercel.DnsRecordArgs{\n\t\t\tDomain: pulumi.String(\"example.com\"),\n\t\t\tMxPriority: pulumi.Int(333),\n\t\t\tTtl: pulumi.Int(60),\n\t\t\tType: pulumi.String(\"MX\"),\n\t\t\tValue: pulumi.String(\"example2.com.\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = vercel.NewDnsRecord(ctx, \"srv\", \u0026vercel.DnsRecordArgs{\n\t\t\tDomain: pulumi.String(\"example.com\"),\n\t\t\tSrv: \u0026vercel.DnsRecordSrvArgs{\n\t\t\t\tPort: pulumi.Int(6000),\n\t\t\t\tPriority: pulumi.Int(127),\n\t\t\t\tTarget: pulumi.String(\"example2.com.\"),\n\t\t\t\tWeight: pulumi.Int(60),\n\t\t\t},\n\t\t\tTtl: pulumi.Int(60),\n\t\t\tType: pulumi.String(\"SRV\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = vercel.NewDnsRecord(ctx, \"txt\", \u0026vercel.DnsRecordArgs{\n\t\t\tDomain: pulumi.String(\"example.com\"),\n\t\t\tTtl: pulumi.Int(60),\n\t\t\tType: pulumi.String(\"TXT\"),\n\t\t\tValue: pulumi.String(\"some text value\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.vercel.DnsRecord;\nimport com.pulumi.vercel.DnsRecordArgs;\nimport com.pulumi.vercel.inputs.DnsRecordSrvArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var dnsRecord = new DnsRecord(\"dnsRecord\", DnsRecordArgs.builder() \n .domain(\"example.com\")\n .ttl(60)\n .type(\"A\")\n .value(\"192.168.0.1\")\n .build());\n\n var aaaa = new DnsRecord(\"aaaa\", DnsRecordArgs.builder() \n .domain(\"example.com\")\n .ttl(60)\n .type(\"AAAA\")\n .value(\"::0\")\n .build());\n\n var alias = new DnsRecord(\"alias\", DnsRecordArgs.builder() \n .domain(\"example.com\")\n .ttl(60)\n .type(\"ALIAS\")\n .value(\"example2.com.\")\n .build());\n\n var caa = new DnsRecord(\"caa\", DnsRecordArgs.builder() \n .domain(\"example.com\")\n .ttl(60)\n .type(\"CAA\")\n .value(\"1 issue \\\"letsencrypt.org\\\"\")\n .build());\n\n var cname = new DnsRecord(\"cname\", DnsRecordArgs.builder() \n .domain(\"example.com\")\n .ttl(60)\n .type(\"CNAME\")\n .value(\"example2.com.\")\n .build());\n\n var mx = new DnsRecord(\"mx\", DnsRecordArgs.builder() \n .domain(\"example.com\")\n .mxPriority(333)\n .ttl(60)\n .type(\"MX\")\n .value(\"example2.com.\")\n .build());\n\n var srv = new DnsRecord(\"srv\", DnsRecordArgs.builder() \n .domain(\"example.com\")\n .srv(DnsRecordSrvArgs.builder()\n .port(6000)\n .priority(127)\n .target(\"example2.com.\")\n .weight(60)\n .build())\n .ttl(60)\n .type(\"SRV\")\n .build());\n\n var txt = new DnsRecord(\"txt\", DnsRecordArgs.builder() \n .domain(\"example.com\")\n .ttl(60)\n .type(\"TXT\")\n .value(\"some text value\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n dnsRecord:\n type: vercel:DnsRecord\n properties:\n domain: example.com\n # for subdomain.example.com\n ttl: 60\n type: A\n value: 192.168.0.1\n aaaa:\n type: vercel:DnsRecord\n properties:\n domain: example.com\n ttl: 60\n type: AAAA\n value: ::0\n alias:\n type: vercel:DnsRecord\n properties:\n domain: example.com\n ttl: 60\n type: ALIAS\n value: example2.com.\n caa:\n type: vercel:DnsRecord\n properties:\n domain: example.com\n ttl: 60\n type: CAA\n value: 1 issue \"letsencrypt.org\"\n cname:\n type: vercel:DnsRecord\n properties:\n domain: example.com\n ttl: 60\n type: CNAME\n value: example2.com.\n mx:\n type: vercel:DnsRecord\n properties:\n domain: example.com\n mxPriority: 333\n ttl: 60\n type: MX\n value: example2.com.\n srv:\n type: vercel:DnsRecord\n properties:\n domain: example.com\n srv:\n port: 6000\n priority: 127\n target: example2.com.\n weight: 60\n ttl: 60\n type: SRV\n txt:\n type: vercel:DnsRecord\n properties:\n domain: example.com\n ttl: 60\n type: TXT\n value: some text value\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nIf importing into a personal account, or with a team configured on the provider, simply use the record id. - record_id can be taken from the network tab on the domains page.\n\n```sh\n $ pulumi import vercel:index/dnsRecord:DnsRecord example rec_xxxxxxxxxxxxxxxxxxxxxxxxxxxx\n```\n\n Alternatively, you can import via the team_id and record_id. - team_id can be found in the team `settings` tab in the Vercel UI. - record_id can be taken from the network tab on the domains page.\n\n```sh\n $ pulumi import vercel:index/dnsRecord:DnsRecord example team_xxxxxxxxxxxxxxxxxxxxxxxx/rec_xxxxxxxxxxxxxxxxxxxxxxxxxxxx\n```\n\n ", + "description": "Provides a DNS Record resource.\n\nDNS records are instructions that live in authoritative DNS servers and provide information about a domain.\n\n\u003e The `value` field must be specified on all DNS record types except `SRV`. When using `SRV` DNS records, the `srv` field must be specified.\n\nFor more detailed information, please see the [Vercel documentation](https://vercel.com/docs/concepts/projects/custom-domains#dns-records)\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as vercel from \"@pulumi/vercel\";\n\nconst dnsRecord = new vercel.DnsRecord(\"dnsRecord\", {\n domain: \"example.com\",\n ttl: 60,\n type: \"A\",\n value: \"192.168.0.1\",\n});\nconst aaaa = new vercel.DnsRecord(\"aaaa\", {\n domain: \"example.com\",\n ttl: 60,\n type: \"AAAA\",\n value: \"::0\",\n});\nconst alias = new vercel.DnsRecord(\"alias\", {\n domain: \"example.com\",\n ttl: 60,\n type: \"ALIAS\",\n value: \"example2.com.\",\n});\nconst caa = new vercel.DnsRecord(\"caa\", {\n domain: \"example.com\",\n ttl: 60,\n type: \"CAA\",\n value: \"1 issue \\\"letsencrypt.org\\\"\",\n});\nconst cname = new vercel.DnsRecord(\"cname\", {\n domain: \"example.com\",\n ttl: 60,\n type: \"CNAME\",\n value: \"example2.com.\",\n});\nconst mx = new vercel.DnsRecord(\"mx\", {\n domain: \"example.com\",\n mxPriority: 333,\n ttl: 60,\n type: \"MX\",\n value: \"example2.com.\",\n});\nconst srv = new vercel.DnsRecord(\"srv\", {\n domain: \"example.com\",\n srv: {\n port: 6000,\n priority: 127,\n target: \"example2.com.\",\n weight: 60,\n },\n ttl: 60,\n type: \"SRV\",\n});\nconst txt = new vercel.DnsRecord(\"txt\", {\n domain: \"example.com\",\n ttl: 60,\n type: \"TXT\",\n value: \"some text value\",\n});\n```\n```python\nimport pulumi\nimport pulumi_vercel as vercel\n\ndns_record = vercel.DnsRecord(\"dnsRecord\",\n domain=\"example.com\",\n ttl=60,\n type=\"A\",\n value=\"192.168.0.1\")\naaaa = vercel.DnsRecord(\"aaaa\",\n domain=\"example.com\",\n ttl=60,\n type=\"AAAA\",\n value=\"::0\")\nalias = vercel.DnsRecord(\"alias\",\n domain=\"example.com\",\n ttl=60,\n type=\"ALIAS\",\n value=\"example2.com.\")\ncaa = vercel.DnsRecord(\"caa\",\n domain=\"example.com\",\n ttl=60,\n type=\"CAA\",\n value=\"1 issue \\\"letsencrypt.org\\\"\")\ncname = vercel.DnsRecord(\"cname\",\n domain=\"example.com\",\n ttl=60,\n type=\"CNAME\",\n value=\"example2.com.\")\nmx = vercel.DnsRecord(\"mx\",\n domain=\"example.com\",\n mx_priority=333,\n ttl=60,\n type=\"MX\",\n value=\"example2.com.\")\nsrv = vercel.DnsRecord(\"srv\",\n domain=\"example.com\",\n srv=vercel.DnsRecordSrvArgs(\n port=6000,\n priority=127,\n target=\"example2.com.\",\n weight=60,\n ),\n ttl=60,\n type=\"SRV\")\ntxt = vercel.DnsRecord(\"txt\",\n domain=\"example.com\",\n ttl=60,\n type=\"TXT\",\n value=\"some text value\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Vercel = Pulumi.Vercel;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var dnsRecord = new Vercel.DnsRecord(\"dnsRecord\", new()\n {\n Domain = \"example.com\",\n Ttl = 60,\n Type = \"A\",\n Value = \"192.168.0.1\",\n });\n\n var aaaa = new Vercel.DnsRecord(\"aaaa\", new()\n {\n Domain = \"example.com\",\n Ttl = 60,\n Type = \"AAAA\",\n Value = \"::0\",\n });\n\n var @alias = new Vercel.DnsRecord(\"alias\", new()\n {\n Domain = \"example.com\",\n Ttl = 60,\n Type = \"ALIAS\",\n Value = \"example2.com.\",\n });\n\n var caa = new Vercel.DnsRecord(\"caa\", new()\n {\n Domain = \"example.com\",\n Ttl = 60,\n Type = \"CAA\",\n Value = \"1 issue \\\"letsencrypt.org\\\"\",\n });\n\n var cname = new Vercel.DnsRecord(\"cname\", new()\n {\n Domain = \"example.com\",\n Ttl = 60,\n Type = \"CNAME\",\n Value = \"example2.com.\",\n });\n\n var mx = new Vercel.DnsRecord(\"mx\", new()\n {\n Domain = \"example.com\",\n MxPriority = 333,\n Ttl = 60,\n Type = \"MX\",\n Value = \"example2.com.\",\n });\n\n var srv = new Vercel.DnsRecord(\"srv\", new()\n {\n Domain = \"example.com\",\n Srv = new Vercel.Inputs.DnsRecordSrvArgs\n {\n Port = 6000,\n Priority = 127,\n Target = \"example2.com.\",\n Weight = 60,\n },\n Ttl = 60,\n Type = \"SRV\",\n });\n\n var txt = new Vercel.DnsRecord(\"txt\", new()\n {\n Domain = \"example.com\",\n Ttl = 60,\n Type = \"TXT\",\n Value = \"some text value\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumiverse/pulumi-vercel/sdk/go/vercel\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := vercel.NewDnsRecord(ctx, \"dnsRecord\", \u0026vercel.DnsRecordArgs{\n\t\t\tDomain: pulumi.String(\"example.com\"),\n\t\t\tTtl: pulumi.Int(60),\n\t\t\tType: pulumi.String(\"A\"),\n\t\t\tValue: pulumi.String(\"192.168.0.1\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = vercel.NewDnsRecord(ctx, \"aaaa\", \u0026vercel.DnsRecordArgs{\n\t\t\tDomain: pulumi.String(\"example.com\"),\n\t\t\tTtl: pulumi.Int(60),\n\t\t\tType: pulumi.String(\"AAAA\"),\n\t\t\tValue: pulumi.String(\"::0\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = vercel.NewDnsRecord(ctx, \"alias\", \u0026vercel.DnsRecordArgs{\n\t\t\tDomain: pulumi.String(\"example.com\"),\n\t\t\tTtl: pulumi.Int(60),\n\t\t\tType: pulumi.String(\"ALIAS\"),\n\t\t\tValue: pulumi.String(\"example2.com.\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = vercel.NewDnsRecord(ctx, \"caa\", \u0026vercel.DnsRecordArgs{\n\t\t\tDomain: pulumi.String(\"example.com\"),\n\t\t\tTtl: pulumi.Int(60),\n\t\t\tType: pulumi.String(\"CAA\"),\n\t\t\tValue: pulumi.String(\"1 issue \\\"letsencrypt.org\\\"\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = vercel.NewDnsRecord(ctx, \"cname\", \u0026vercel.DnsRecordArgs{\n\t\t\tDomain: pulumi.String(\"example.com\"),\n\t\t\tTtl: pulumi.Int(60),\n\t\t\tType: pulumi.String(\"CNAME\"),\n\t\t\tValue: pulumi.String(\"example2.com.\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = vercel.NewDnsRecord(ctx, \"mx\", \u0026vercel.DnsRecordArgs{\n\t\t\tDomain: pulumi.String(\"example.com\"),\n\t\t\tMxPriority: pulumi.Int(333),\n\t\t\tTtl: pulumi.Int(60),\n\t\t\tType: pulumi.String(\"MX\"),\n\t\t\tValue: pulumi.String(\"example2.com.\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = vercel.NewDnsRecord(ctx, \"srv\", \u0026vercel.DnsRecordArgs{\n\t\t\tDomain: pulumi.String(\"example.com\"),\n\t\t\tSrv: \u0026vercel.DnsRecordSrvArgs{\n\t\t\t\tPort: pulumi.Int(6000),\n\t\t\t\tPriority: pulumi.Int(127),\n\t\t\t\tTarget: pulumi.String(\"example2.com.\"),\n\t\t\t\tWeight: pulumi.Int(60),\n\t\t\t},\n\t\t\tTtl: pulumi.Int(60),\n\t\t\tType: pulumi.String(\"SRV\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = vercel.NewDnsRecord(ctx, \"txt\", \u0026vercel.DnsRecordArgs{\n\t\t\tDomain: pulumi.String(\"example.com\"),\n\t\t\tTtl: pulumi.Int(60),\n\t\t\tType: pulumi.String(\"TXT\"),\n\t\t\tValue: pulumi.String(\"some text value\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.vercel.DnsRecord;\nimport com.pulumi.vercel.DnsRecordArgs;\nimport com.pulumi.vercel.inputs.DnsRecordSrvArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var dnsRecord = new DnsRecord(\"dnsRecord\", DnsRecordArgs.builder() \n .domain(\"example.com\")\n .ttl(60)\n .type(\"A\")\n .value(\"192.168.0.1\")\n .build());\n\n var aaaa = new DnsRecord(\"aaaa\", DnsRecordArgs.builder() \n .domain(\"example.com\")\n .ttl(60)\n .type(\"AAAA\")\n .value(\"::0\")\n .build());\n\n var alias = new DnsRecord(\"alias\", DnsRecordArgs.builder() \n .domain(\"example.com\")\n .ttl(60)\n .type(\"ALIAS\")\n .value(\"example2.com.\")\n .build());\n\n var caa = new DnsRecord(\"caa\", DnsRecordArgs.builder() \n .domain(\"example.com\")\n .ttl(60)\n .type(\"CAA\")\n .value(\"1 issue \\\"letsencrypt.org\\\"\")\n .build());\n\n var cname = new DnsRecord(\"cname\", DnsRecordArgs.builder() \n .domain(\"example.com\")\n .ttl(60)\n .type(\"CNAME\")\n .value(\"example2.com.\")\n .build());\n\n var mx = new DnsRecord(\"mx\", DnsRecordArgs.builder() \n .domain(\"example.com\")\n .mxPriority(333)\n .ttl(60)\n .type(\"MX\")\n .value(\"example2.com.\")\n .build());\n\n var srv = new DnsRecord(\"srv\", DnsRecordArgs.builder() \n .domain(\"example.com\")\n .srv(DnsRecordSrvArgs.builder()\n .port(6000)\n .priority(127)\n .target(\"example2.com.\")\n .weight(60)\n .build())\n .ttl(60)\n .type(\"SRV\")\n .build());\n\n var txt = new DnsRecord(\"txt\", DnsRecordArgs.builder() \n .domain(\"example.com\")\n .ttl(60)\n .type(\"TXT\")\n .value(\"some text value\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n dnsRecord:\n type: vercel:DnsRecord\n properties:\n domain: example.com\n # for subdomain.example.com\n ttl: 60\n type: A\n value: 192.168.0.1\n aaaa:\n type: vercel:DnsRecord\n properties:\n domain: example.com\n ttl: 60\n type: AAAA\n value: ::0\n alias:\n type: vercel:DnsRecord\n properties:\n domain: example.com\n ttl: 60\n type: ALIAS\n value: example2.com.\n caa:\n type: vercel:DnsRecord\n properties:\n domain: example.com\n ttl: 60\n type: CAA\n value: 1 issue \"letsencrypt.org\"\n cname:\n type: vercel:DnsRecord\n properties:\n domain: example.com\n ttl: 60\n type: CNAME\n value: example2.com.\n mx:\n type: vercel:DnsRecord\n properties:\n domain: example.com\n mxPriority: 333\n ttl: 60\n type: MX\n value: example2.com.\n srv:\n type: vercel:DnsRecord\n properties:\n domain: example.com\n srv:\n port: 6000\n priority: 127\n target: example2.com.\n weight: 60\n ttl: 60\n type: SRV\n txt:\n type: vercel:DnsRecord\n properties:\n domain: example.com\n ttl: 60\n type: TXT\n value: some text value\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nIf importing into a personal account, or with a team configured on the provider, simply use the record id. - record_id can be taken from the network tab on the domains page.\n\n```sh\n $ pulumi import vercel:index/dnsRecord:DnsRecord example rec_xxxxxxxxxxxxxxxxxxxxxxxxxxxx\n```\n\n Alternatively, you can import via the team_id and record_id. - team_id can be found in the team `settings` tab in the Vercel UI. - record_id can be taken from the network tab on the domains page.\n\n```sh\n $ pulumi import vercel:index/dnsRecord:DnsRecord example team_xxxxxxxxxxxxxxxxxxxxxxxx/rec_xxxxxxxxxxxxxxxxxxxxxxxxxxxx\n```\n\n ", "properties": { "domain": { "type": "string", @@ -962,7 +962,7 @@ } }, "vercel:index/project:Project": { - "description": "{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as vercel from \"@pulumi/vercel\";\n\n// A project that is connected to a git repository.\n// Deployments will be created automatically\n// on every branch push and merges onto the Production Branch.\nconst withGit = new vercel.Project(\"withGit\", {\n framework: \"nextjs\",\n gitRepository: {\n repo: \"vercel/some-repo\",\n type: \"github\",\n },\n});\n// A project that is not connected to a git repository.\n// Deployments will need to be created manually through\n// terraform, or via the vercel CLI.\nconst example = new vercel.Project(\"example\", {framework: \"nextjs\"});\n```\n```python\nimport pulumi\nimport pulumi_vercel as vercel\n\n# A project that is connected to a git repository.\n# Deployments will be created automatically\n# on every branch push and merges onto the Production Branch.\nwith_git = vercel.Project(\"withGit\",\n framework=\"nextjs\",\n git_repository=vercel.ProjectGitRepositoryArgs(\n repo=\"vercel/some-repo\",\n type=\"github\",\n ))\n# A project that is not connected to a git repository.\n# Deployments will need to be created manually through\n# terraform, or via the vercel CLI.\nexample = vercel.Project(\"example\", framework=\"nextjs\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Vercel = Pulumi.Vercel;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // A project that is connected to a git repository.\n // Deployments will be created automatically\n // on every branch push and merges onto the Production Branch.\n var withGit = new Vercel.Project(\"withGit\", new()\n {\n Framework = \"nextjs\",\n GitRepository = new Vercel.Inputs.ProjectGitRepositoryArgs\n {\n Repo = \"vercel/some-repo\",\n Type = \"github\",\n },\n });\n\n // A project that is not connected to a git repository.\n // Deployments will need to be created manually through\n // terraform, or via the vercel CLI.\n var example = new Vercel.Project(\"example\", new()\n {\n Framework = \"nextjs\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/omercnet/pulumi-vercel/sdk/go/vercel\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := vercel.NewProject(ctx, \"withGit\", \u0026vercel.ProjectArgs{\n\t\t\tFramework: pulumi.String(\"nextjs\"),\n\t\t\tGitRepository: \u0026vercel.ProjectGitRepositoryArgs{\n\t\t\t\tRepo: pulumi.String(\"vercel/some-repo\"),\n\t\t\t\tType: pulumi.String(\"github\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = vercel.NewProject(ctx, \"example\", \u0026vercel.ProjectArgs{\n\t\t\tFramework: pulumi.String(\"nextjs\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.vercel.Project;\nimport com.pulumi.vercel.ProjectArgs;\nimport com.pulumi.vercel.inputs.ProjectGitRepositoryArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var withGit = new Project(\"withGit\", ProjectArgs.builder() \n .framework(\"nextjs\")\n .gitRepository(ProjectGitRepositoryArgs.builder()\n .repo(\"vercel/some-repo\")\n .type(\"github\")\n .build())\n .build());\n\n var example = new Project(\"example\", ProjectArgs.builder() \n .framework(\"nextjs\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # A project that is connected to a git repository.\n # // Deployments will be created automatically\n # // on every branch push and merges onto the Production Branch.\n withGit:\n type: vercel:Project\n properties:\n framework: nextjs\n gitRepository:\n repo: vercel/some-repo\n type: github\n # A project that is not connected to a git repository.\n # // Deployments will need to be created manually through\n # // terraform, or via the vercel CLI.\n example:\n type: vercel:Project\n properties:\n framework: nextjs\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nIf importing into a personal account, or with a team configured on the provider, simply use the project ID. - project_id can be found in the project `settings` tab in the Vercel UI.\n\n```sh\n $ pulumi import vercel:index/project:Project example prj_xxxxxxxxxxxxxxxxxxxxxxxxxxxx\n```\n\n Alternatively, you can import via the team_id and project_id. - team_id can be found in the team `settings` tab in the Vercel UI. - project_id can be found in the project `settings` tab in the Vercel UI.\n\n```sh\n $ pulumi import vercel:index/project:Project example team_xxxxxxxxxxxxxxxxxxxxxxxx/prj_xxxxxxxxxxxxxxxxxxxxxxxxxxxx\n```\n\n ", + "description": "{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as vercel from \"@pulumi/vercel\";\n\n// A project that is connected to a git repository.\n// Deployments will be created automatically\n// on every branch push and merges onto the Production Branch.\nconst withGit = new vercel.Project(\"withGit\", {\n framework: \"nextjs\",\n gitRepository: {\n repo: \"vercel/some-repo\",\n type: \"github\",\n },\n});\n// A project that is not connected to a git repository.\n// Deployments will need to be created manually through\n// terraform, or via the vercel CLI.\nconst example = new vercel.Project(\"example\", {framework: \"nextjs\"});\n```\n```python\nimport pulumi\nimport pulumi_vercel as vercel\n\n# A project that is connected to a git repository.\n# Deployments will be created automatically\n# on every branch push and merges onto the Production Branch.\nwith_git = vercel.Project(\"withGit\",\n framework=\"nextjs\",\n git_repository=vercel.ProjectGitRepositoryArgs(\n repo=\"vercel/some-repo\",\n type=\"github\",\n ))\n# A project that is not connected to a git repository.\n# Deployments will need to be created manually through\n# terraform, or via the vercel CLI.\nexample = vercel.Project(\"example\", framework=\"nextjs\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Vercel = Pulumi.Vercel;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // A project that is connected to a git repository.\n // Deployments will be created automatically\n // on every branch push and merges onto the Production Branch.\n var withGit = new Vercel.Project(\"withGit\", new()\n {\n Framework = \"nextjs\",\n GitRepository = new Vercel.Inputs.ProjectGitRepositoryArgs\n {\n Repo = \"vercel/some-repo\",\n Type = \"github\",\n },\n });\n\n // A project that is not connected to a git repository.\n // Deployments will need to be created manually through\n // terraform, or via the vercel CLI.\n var example = new Vercel.Project(\"example\", new()\n {\n Framework = \"nextjs\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumiverse/pulumi-vercel/sdk/go/vercel\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := vercel.NewProject(ctx, \"withGit\", \u0026vercel.ProjectArgs{\n\t\t\tFramework: pulumi.String(\"nextjs\"),\n\t\t\tGitRepository: \u0026vercel.ProjectGitRepositoryArgs{\n\t\t\t\tRepo: pulumi.String(\"vercel/some-repo\"),\n\t\t\t\tType: pulumi.String(\"github\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = vercel.NewProject(ctx, \"example\", \u0026vercel.ProjectArgs{\n\t\t\tFramework: pulumi.String(\"nextjs\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.vercel.Project;\nimport com.pulumi.vercel.ProjectArgs;\nimport com.pulumi.vercel.inputs.ProjectGitRepositoryArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var withGit = new Project(\"withGit\", ProjectArgs.builder() \n .framework(\"nextjs\")\n .gitRepository(ProjectGitRepositoryArgs.builder()\n .repo(\"vercel/some-repo\")\n .type(\"github\")\n .build())\n .build());\n\n var example = new Project(\"example\", ProjectArgs.builder() \n .framework(\"nextjs\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # A project that is connected to a git repository.\n # // Deployments will be created automatically\n # // on every branch push and merges onto the Production Branch.\n withGit:\n type: vercel:Project\n properties:\n framework: nextjs\n gitRepository:\n repo: vercel/some-repo\n type: github\n # A project that is not connected to a git repository.\n # // Deployments will need to be created manually through\n # // terraform, or via the vercel CLI.\n example:\n type: vercel:Project\n properties:\n framework: nextjs\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nIf importing into a personal account, or with a team configured on the provider, simply use the project ID. - project_id can be found in the project `settings` tab in the Vercel UI.\n\n```sh\n $ pulumi import vercel:index/project:Project example prj_xxxxxxxxxxxxxxxxxxxxxxxxxxxx\n```\n\n Alternatively, you can import via the team_id and project_id. - team_id can be found in the team `settings` tab in the Vercel UI. - project_id can be found in the project `settings` tab in the Vercel UI.\n\n```sh\n $ pulumi import vercel:index/project:Project example team_xxxxxxxxxxxxxxxxxxxxxxxx/prj_xxxxxxxxxxxxxxxxxxxxxxxxxxxx\n```\n\n ", "properties": { "buildCommand": { "type": "string", @@ -1169,7 +1169,7 @@ } }, "vercel:index/projectDomain:ProjectDomain": { - "description": "Provides a Project Domain resource.\n\nA Project Domain is used to associate a domain name with a `vercel.Project`.\n\nBy default, Project Domains will be automatically applied to any `production` deployments.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as vercel from \"@pulumi/vercel\";\n\nconst exampleProject = new vercel.Project(\"exampleProject\", {});\n// A simple domain that will be automatically\n// applied to each production deployment\nconst exampleProjectDomain = new vercel.ProjectDomain(\"exampleProjectDomain\", {\n projectId: exampleProject.id,\n domain: \"i-love.vercel.app\",\n});\n// A redirect of a domain name to a second domain name.\n// The status_code can optionally be controlled.\nconst exampleRedirect = new vercel.ProjectDomain(\"exampleRedirect\", {\n projectId: exampleProject.id,\n domain: \"i-also-love.vercel.app\",\n redirect: exampleProjectDomain.domain,\n redirectStatusCode: 307,\n});\n```\n```python\nimport pulumi\nimport pulumi_vercel as vercel\n\nexample_project = vercel.Project(\"exampleProject\")\n# A simple domain that will be automatically\n# applied to each production deployment\nexample_project_domain = vercel.ProjectDomain(\"exampleProjectDomain\",\n project_id=example_project.id,\n domain=\"i-love.vercel.app\")\n# A redirect of a domain name to a second domain name.\n# The status_code can optionally be controlled.\nexample_redirect = vercel.ProjectDomain(\"exampleRedirect\",\n project_id=example_project.id,\n domain=\"i-also-love.vercel.app\",\n redirect=example_project_domain.domain,\n redirect_status_code=307)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Vercel = Pulumi.Vercel;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleProject = new Vercel.Project(\"exampleProject\");\n\n // A simple domain that will be automatically\n // applied to each production deployment\n var exampleProjectDomain = new Vercel.ProjectDomain(\"exampleProjectDomain\", new()\n {\n ProjectId = exampleProject.Id,\n Domain = \"i-love.vercel.app\",\n });\n\n // A redirect of a domain name to a second domain name.\n // The status_code can optionally be controlled.\n var exampleRedirect = new Vercel.ProjectDomain(\"exampleRedirect\", new()\n {\n ProjectId = exampleProject.Id,\n Domain = \"i-also-love.vercel.app\",\n Redirect = exampleProjectDomain.Domain,\n RedirectStatusCode = 307,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/omercnet/pulumi-vercel/sdk/go/vercel\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleProject, err := vercel.NewProject(ctx, \"exampleProject\", nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleProjectDomain, err := vercel.NewProjectDomain(ctx, \"exampleProjectDomain\", \u0026vercel.ProjectDomainArgs{\n\t\t\tProjectId: exampleProject.ID(),\n\t\t\tDomain: pulumi.String(\"i-love.vercel.app\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = vercel.NewProjectDomain(ctx, \"exampleRedirect\", \u0026vercel.ProjectDomainArgs{\n\t\t\tProjectId: exampleProject.ID(),\n\t\t\tDomain: pulumi.String(\"i-also-love.vercel.app\"),\n\t\t\tRedirect: exampleProjectDomain.Domain,\n\t\t\tRedirectStatusCode: pulumi.Int(307),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.vercel.Project;\nimport com.pulumi.vercel.ProjectDomain;\nimport com.pulumi.vercel.ProjectDomainArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var exampleProject = new Project(\"exampleProject\");\n\n var exampleProjectDomain = new ProjectDomain(\"exampleProjectDomain\", ProjectDomainArgs.builder() \n .projectId(exampleProject.id())\n .domain(\"i-love.vercel.app\")\n .build());\n\n var exampleRedirect = new ProjectDomain(\"exampleRedirect\", ProjectDomainArgs.builder() \n .projectId(exampleProject.id())\n .domain(\"i-also-love.vercel.app\")\n .redirect(exampleProjectDomain.domain())\n .redirectStatusCode(307)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleProject:\n type: vercel:Project\n # A simple domain that will be automatically\n # applied to each production deployment\n exampleProjectDomain:\n type: vercel:ProjectDomain\n properties:\n projectId: ${exampleProject.id}\n domain: i-love.vercel.app\n # A redirect of a domain name to a second domain name.\n # The status_code can optionally be controlled.\n exampleRedirect:\n type: vercel:ProjectDomain\n properties:\n projectId: ${exampleProject.id}\n domain: i-also-love.vercel.app\n redirect: ${exampleProjectDomain.domain}\n redirectStatusCode: 307\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nIf importing into a personal account, or with a team configured on the provider, simply use the project ID and domain. - project_id can be found in the project `settings` tab in the Vercel UI.\n\n```sh\n $ pulumi import vercel:index/projectDomain:ProjectDomain example prj_xxxxxxxxxxxxxxxxxxxxxxxxxxxx/example.com\n```\n\n Alternatively, you can import via the team_id, project_id and domain name. - team_id can be found in the team `settings` tab in the Vercel UI. - project_id can be found in the project `settings` tab in the Vercel UI.\n\n```sh\n $ pulumi import vercel:index/projectDomain:ProjectDomain example team_xxxxxxxxxxxxxxxxxxxxxxxx/prj_xxxxxxxxxxxxxxxxxxxxxxxxxxxx/example.com\n```\n\n ", + "description": "Provides a Project Domain resource.\n\nA Project Domain is used to associate a domain name with a `vercel.Project`.\n\nBy default, Project Domains will be automatically applied to any `production` deployments.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as vercel from \"@pulumi/vercel\";\n\nconst exampleProject = new vercel.Project(\"exampleProject\", {});\n// A simple domain that will be automatically\n// applied to each production deployment\nconst exampleProjectDomain = new vercel.ProjectDomain(\"exampleProjectDomain\", {\n projectId: exampleProject.id,\n domain: \"i-love.vercel.app\",\n});\n// A redirect of a domain name to a second domain name.\n// The status_code can optionally be controlled.\nconst exampleRedirect = new vercel.ProjectDomain(\"exampleRedirect\", {\n projectId: exampleProject.id,\n domain: \"i-also-love.vercel.app\",\n redirect: exampleProjectDomain.domain,\n redirectStatusCode: 307,\n});\n```\n```python\nimport pulumi\nimport pulumi_vercel as vercel\n\nexample_project = vercel.Project(\"exampleProject\")\n# A simple domain that will be automatically\n# applied to each production deployment\nexample_project_domain = vercel.ProjectDomain(\"exampleProjectDomain\",\n project_id=example_project.id,\n domain=\"i-love.vercel.app\")\n# A redirect of a domain name to a second domain name.\n# The status_code can optionally be controlled.\nexample_redirect = vercel.ProjectDomain(\"exampleRedirect\",\n project_id=example_project.id,\n domain=\"i-also-love.vercel.app\",\n redirect=example_project_domain.domain,\n redirect_status_code=307)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Vercel = Pulumi.Vercel;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleProject = new Vercel.Project(\"exampleProject\");\n\n // A simple domain that will be automatically\n // applied to each production deployment\n var exampleProjectDomain = new Vercel.ProjectDomain(\"exampleProjectDomain\", new()\n {\n ProjectId = exampleProject.Id,\n Domain = \"i-love.vercel.app\",\n });\n\n // A redirect of a domain name to a second domain name.\n // The status_code can optionally be controlled.\n var exampleRedirect = new Vercel.ProjectDomain(\"exampleRedirect\", new()\n {\n ProjectId = exampleProject.Id,\n Domain = \"i-also-love.vercel.app\",\n Redirect = exampleProjectDomain.Domain,\n RedirectStatusCode = 307,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumiverse/pulumi-vercel/sdk/go/vercel\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleProject, err := vercel.NewProject(ctx, \"exampleProject\", nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleProjectDomain, err := vercel.NewProjectDomain(ctx, \"exampleProjectDomain\", \u0026vercel.ProjectDomainArgs{\n\t\t\tProjectId: exampleProject.ID(),\n\t\t\tDomain: pulumi.String(\"i-love.vercel.app\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = vercel.NewProjectDomain(ctx, \"exampleRedirect\", \u0026vercel.ProjectDomainArgs{\n\t\t\tProjectId: exampleProject.ID(),\n\t\t\tDomain: pulumi.String(\"i-also-love.vercel.app\"),\n\t\t\tRedirect: exampleProjectDomain.Domain,\n\t\t\tRedirectStatusCode: pulumi.Int(307),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.vercel.Project;\nimport com.pulumi.vercel.ProjectDomain;\nimport com.pulumi.vercel.ProjectDomainArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var exampleProject = new Project(\"exampleProject\");\n\n var exampleProjectDomain = new ProjectDomain(\"exampleProjectDomain\", ProjectDomainArgs.builder() \n .projectId(exampleProject.id())\n .domain(\"i-love.vercel.app\")\n .build());\n\n var exampleRedirect = new ProjectDomain(\"exampleRedirect\", ProjectDomainArgs.builder() \n .projectId(exampleProject.id())\n .domain(\"i-also-love.vercel.app\")\n .redirect(exampleProjectDomain.domain())\n .redirectStatusCode(307)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleProject:\n type: vercel:Project\n # A simple domain that will be automatically\n # applied to each production deployment\n exampleProjectDomain:\n type: vercel:ProjectDomain\n properties:\n projectId: ${exampleProject.id}\n domain: i-love.vercel.app\n # A redirect of a domain name to a second domain name.\n # The status_code can optionally be controlled.\n exampleRedirect:\n type: vercel:ProjectDomain\n properties:\n projectId: ${exampleProject.id}\n domain: i-also-love.vercel.app\n redirect: ${exampleProjectDomain.domain}\n redirectStatusCode: 307\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nIf importing into a personal account, or with a team configured on the provider, simply use the project ID and domain. - project_id can be found in the project `settings` tab in the Vercel UI.\n\n```sh\n $ pulumi import vercel:index/projectDomain:ProjectDomain example prj_xxxxxxxxxxxxxxxxxxxxxxxxxxxx/example.com\n```\n\n Alternatively, you can import via the team_id, project_id and domain name. - team_id can be found in the team `settings` tab in the Vercel UI. - project_id can be found in the project `settings` tab in the Vercel UI.\n\n```sh\n $ pulumi import vercel:index/projectDomain:ProjectDomain example team_xxxxxxxxxxxxxxxxxxxxxxxx/prj_xxxxxxxxxxxxxxxxxxxxxxxxxxxx/example.com\n```\n\n ", "properties": { "domain": { "type": "string", @@ -1263,7 +1263,7 @@ } }, "vercel:index/projectEnvironmentVariable:ProjectEnvironmentVariable": { - "description": "{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as vercel from \"@pulumi/vercel\";\n\nconst exampleProject = new vercel.Project(\"exampleProject\", {gitRepository: {\n type: \"github\",\n repo: \"vercel/some-repo\",\n}});\n// An environment variable that will be created\n// for this project for the \"production\" environment.\nconst exampleProjectEnvironmentVariable = new vercel.ProjectEnvironmentVariable(\"exampleProjectEnvironmentVariable\", {\n projectId: exampleProject.id,\n key: \"foo\",\n value: \"bar\",\n targets: [\"production\"],\n});\n// An environment variable that will be created\n// for this project for the \"preview\" environment when the branch is \"staging\".\nconst exampleGitBranch = new vercel.ProjectEnvironmentVariable(\"exampleGitBranch\", {\n projectId: exampleProject.id,\n key: \"foo\",\n value: \"bar-staging\",\n targets: [\"preview\"],\n gitBranch: \"staging\",\n});\n```\n```python\nimport pulumi\nimport pulumi_vercel as vercel\n\nexample_project = vercel.Project(\"exampleProject\", git_repository=vercel.ProjectGitRepositoryArgs(\n type=\"github\",\n repo=\"vercel/some-repo\",\n))\n# An environment variable that will be created\n# for this project for the \"production\" environment.\nexample_project_environment_variable = vercel.ProjectEnvironmentVariable(\"exampleProjectEnvironmentVariable\",\n project_id=example_project.id,\n key=\"foo\",\n value=\"bar\",\n targets=[\"production\"])\n# An environment variable that will be created\n# for this project for the \"preview\" environment when the branch is \"staging\".\nexample_git_branch = vercel.ProjectEnvironmentVariable(\"exampleGitBranch\",\n project_id=example_project.id,\n key=\"foo\",\n value=\"bar-staging\",\n targets=[\"preview\"],\n git_branch=\"staging\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Vercel = Pulumi.Vercel;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleProject = new Vercel.Project(\"exampleProject\", new()\n {\n GitRepository = new Vercel.Inputs.ProjectGitRepositoryArgs\n {\n Type = \"github\",\n Repo = \"vercel/some-repo\",\n },\n });\n\n // An environment variable that will be created\n // for this project for the \"production\" environment.\n var exampleProjectEnvironmentVariable = new Vercel.ProjectEnvironmentVariable(\"exampleProjectEnvironmentVariable\", new()\n {\n ProjectId = exampleProject.Id,\n Key = \"foo\",\n Value = \"bar\",\n Targets = new[]\n {\n \"production\",\n },\n });\n\n // An environment variable that will be created\n // for this project for the \"preview\" environment when the branch is \"staging\".\n var exampleGitBranch = new Vercel.ProjectEnvironmentVariable(\"exampleGitBranch\", new()\n {\n ProjectId = exampleProject.Id,\n Key = \"foo\",\n Value = \"bar-staging\",\n Targets = new[]\n {\n \"preview\",\n },\n GitBranch = \"staging\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/omercnet/pulumi-vercel/sdk/go/vercel\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleProject, err := vercel.NewProject(ctx, \"exampleProject\", \u0026vercel.ProjectArgs{\n\t\t\tGitRepository: \u0026vercel.ProjectGitRepositoryArgs{\n\t\t\t\tType: pulumi.String(\"github\"),\n\t\t\t\tRepo: pulumi.String(\"vercel/some-repo\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = vercel.NewProjectEnvironmentVariable(ctx, \"exampleProjectEnvironmentVariable\", \u0026vercel.ProjectEnvironmentVariableArgs{\n\t\t\tProjectId: exampleProject.ID(),\n\t\t\tKey: pulumi.String(\"foo\"),\n\t\t\tValue: pulumi.String(\"bar\"),\n\t\t\tTargets: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"production\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = vercel.NewProjectEnvironmentVariable(ctx, \"exampleGitBranch\", \u0026vercel.ProjectEnvironmentVariableArgs{\n\t\t\tProjectId: exampleProject.ID(),\n\t\t\tKey: pulumi.String(\"foo\"),\n\t\t\tValue: pulumi.String(\"bar-staging\"),\n\t\t\tTargets: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"preview\"),\n\t\t\t},\n\t\t\tGitBranch: pulumi.String(\"staging\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.vercel.Project;\nimport com.pulumi.vercel.ProjectArgs;\nimport com.pulumi.vercel.inputs.ProjectGitRepositoryArgs;\nimport com.pulumi.vercel.ProjectEnvironmentVariable;\nimport com.pulumi.vercel.ProjectEnvironmentVariableArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var exampleProject = new Project(\"exampleProject\", ProjectArgs.builder() \n .gitRepository(ProjectGitRepositoryArgs.builder()\n .type(\"github\")\n .repo(\"vercel/some-repo\")\n .build())\n .build());\n\n var exampleProjectEnvironmentVariable = new ProjectEnvironmentVariable(\"exampleProjectEnvironmentVariable\", ProjectEnvironmentVariableArgs.builder() \n .projectId(exampleProject.id())\n .key(\"foo\")\n .value(\"bar\")\n .targets(\"production\")\n .build());\n\n var exampleGitBranch = new ProjectEnvironmentVariable(\"exampleGitBranch\", ProjectEnvironmentVariableArgs.builder() \n .projectId(exampleProject.id())\n .key(\"foo\")\n .value(\"bar-staging\")\n .targets(\"preview\")\n .gitBranch(\"staging\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleProject:\n type: vercel:Project\n properties:\n gitRepository:\n type: github\n repo: vercel/some-repo\n # An environment variable that will be created\n # for this project for the \"production\" environment.\n exampleProjectEnvironmentVariable:\n type: vercel:ProjectEnvironmentVariable\n properties:\n projectId: ${exampleProject.id}\n key: foo\n value: bar\n targets:\n - production\n # An environment variable that will be created\n # for this project for the \"preview\" environment when the branch is \"staging\".\n exampleGitBranch:\n type: vercel:ProjectEnvironmentVariable\n properties:\n projectId: ${exampleProject.id}\n key: foo\n value: bar-staging\n targets:\n - preview\n gitBranch: staging\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nIf importing into a personal account, or with a team configured on the provider, simply use the project_id and environment variable id. - project_id can be found in the project `settings` tab in the Vercel UI. - environment variable id can be taken from the network tab on the project page.\n\n```sh\n $ pulumi import vercel:index/projectEnvironmentVariable:ProjectEnvironmentVariable example prj_xxxxxxxxxxxxxxxxxxxxxxxxxxxx/FdT2e1E5Of6Cihmt\n```\n\n Alternatively, you can import via the team_id, project_id and environment variable id. - team_id can be found in the team `settings` tab in the Vercel UI. - project_id can be found in the project `settings` tab in the Vercel UI. - environment variable id can be taken from the network tab on the project page.\n\n```sh\n $ pulumi import vercel:index/projectEnvironmentVariable:ProjectEnvironmentVariable example team_xxxxxxxxxxxxxxxxxxxxxxxx/prj_xxxxxxxxxxxxxxxxxxxxxxxxxxxx/FdT2e1E5Of6Cihmt\n```\n\n ", + "description": "{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as vercel from \"@pulumi/vercel\";\n\nconst exampleProject = new vercel.Project(\"exampleProject\", {gitRepository: {\n type: \"github\",\n repo: \"vercel/some-repo\",\n}});\n// An environment variable that will be created\n// for this project for the \"production\" environment.\nconst exampleProjectEnvironmentVariable = new vercel.ProjectEnvironmentVariable(\"exampleProjectEnvironmentVariable\", {\n projectId: exampleProject.id,\n key: \"foo\",\n value: \"bar\",\n targets: [\"production\"],\n});\n// An environment variable that will be created\n// for this project for the \"preview\" environment when the branch is \"staging\".\nconst exampleGitBranch = new vercel.ProjectEnvironmentVariable(\"exampleGitBranch\", {\n projectId: exampleProject.id,\n key: \"foo\",\n value: \"bar-staging\",\n targets: [\"preview\"],\n gitBranch: \"staging\",\n});\n```\n```python\nimport pulumi\nimport pulumi_vercel as vercel\n\nexample_project = vercel.Project(\"exampleProject\", git_repository=vercel.ProjectGitRepositoryArgs(\n type=\"github\",\n repo=\"vercel/some-repo\",\n))\n# An environment variable that will be created\n# for this project for the \"production\" environment.\nexample_project_environment_variable = vercel.ProjectEnvironmentVariable(\"exampleProjectEnvironmentVariable\",\n project_id=example_project.id,\n key=\"foo\",\n value=\"bar\",\n targets=[\"production\"])\n# An environment variable that will be created\n# for this project for the \"preview\" environment when the branch is \"staging\".\nexample_git_branch = vercel.ProjectEnvironmentVariable(\"exampleGitBranch\",\n project_id=example_project.id,\n key=\"foo\",\n value=\"bar-staging\",\n targets=[\"preview\"],\n git_branch=\"staging\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Vercel = Pulumi.Vercel;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleProject = new Vercel.Project(\"exampleProject\", new()\n {\n GitRepository = new Vercel.Inputs.ProjectGitRepositoryArgs\n {\n Type = \"github\",\n Repo = \"vercel/some-repo\",\n },\n });\n\n // An environment variable that will be created\n // for this project for the \"production\" environment.\n var exampleProjectEnvironmentVariable = new Vercel.ProjectEnvironmentVariable(\"exampleProjectEnvironmentVariable\", new()\n {\n ProjectId = exampleProject.Id,\n Key = \"foo\",\n Value = \"bar\",\n Targets = new[]\n {\n \"production\",\n },\n });\n\n // An environment variable that will be created\n // for this project for the \"preview\" environment when the branch is \"staging\".\n var exampleGitBranch = new Vercel.ProjectEnvironmentVariable(\"exampleGitBranch\", new()\n {\n ProjectId = exampleProject.Id,\n Key = \"foo\",\n Value = \"bar-staging\",\n Targets = new[]\n {\n \"preview\",\n },\n GitBranch = \"staging\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumiverse/pulumi-vercel/sdk/go/vercel\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleProject, err := vercel.NewProject(ctx, \"exampleProject\", \u0026vercel.ProjectArgs{\n\t\t\tGitRepository: \u0026vercel.ProjectGitRepositoryArgs{\n\t\t\t\tType: pulumi.String(\"github\"),\n\t\t\t\tRepo: pulumi.String(\"vercel/some-repo\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = vercel.NewProjectEnvironmentVariable(ctx, \"exampleProjectEnvironmentVariable\", \u0026vercel.ProjectEnvironmentVariableArgs{\n\t\t\tProjectId: exampleProject.ID(),\n\t\t\tKey: pulumi.String(\"foo\"),\n\t\t\tValue: pulumi.String(\"bar\"),\n\t\t\tTargets: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"production\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = vercel.NewProjectEnvironmentVariable(ctx, \"exampleGitBranch\", \u0026vercel.ProjectEnvironmentVariableArgs{\n\t\t\tProjectId: exampleProject.ID(),\n\t\t\tKey: pulumi.String(\"foo\"),\n\t\t\tValue: pulumi.String(\"bar-staging\"),\n\t\t\tTargets: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"preview\"),\n\t\t\t},\n\t\t\tGitBranch: pulumi.String(\"staging\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.vercel.Project;\nimport com.pulumi.vercel.ProjectArgs;\nimport com.pulumi.vercel.inputs.ProjectGitRepositoryArgs;\nimport com.pulumi.vercel.ProjectEnvironmentVariable;\nimport com.pulumi.vercel.ProjectEnvironmentVariableArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var exampleProject = new Project(\"exampleProject\", ProjectArgs.builder() \n .gitRepository(ProjectGitRepositoryArgs.builder()\n .type(\"github\")\n .repo(\"vercel/some-repo\")\n .build())\n .build());\n\n var exampleProjectEnvironmentVariable = new ProjectEnvironmentVariable(\"exampleProjectEnvironmentVariable\", ProjectEnvironmentVariableArgs.builder() \n .projectId(exampleProject.id())\n .key(\"foo\")\n .value(\"bar\")\n .targets(\"production\")\n .build());\n\n var exampleGitBranch = new ProjectEnvironmentVariable(\"exampleGitBranch\", ProjectEnvironmentVariableArgs.builder() \n .projectId(exampleProject.id())\n .key(\"foo\")\n .value(\"bar-staging\")\n .targets(\"preview\")\n .gitBranch(\"staging\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleProject:\n type: vercel:Project\n properties:\n gitRepository:\n type: github\n repo: vercel/some-repo\n # An environment variable that will be created\n # for this project for the \"production\" environment.\n exampleProjectEnvironmentVariable:\n type: vercel:ProjectEnvironmentVariable\n properties:\n projectId: ${exampleProject.id}\n key: foo\n value: bar\n targets:\n - production\n # An environment variable that will be created\n # for this project for the \"preview\" environment when the branch is \"staging\".\n exampleGitBranch:\n type: vercel:ProjectEnvironmentVariable\n properties:\n projectId: ${exampleProject.id}\n key: foo\n value: bar-staging\n targets:\n - preview\n gitBranch: staging\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nIf importing into a personal account, or with a team configured on the provider, simply use the project_id and environment variable id. - project_id can be found in the project `settings` tab in the Vercel UI. - environment variable id can be taken from the network tab on the project page.\n\n```sh\n $ pulumi import vercel:index/projectEnvironmentVariable:ProjectEnvironmentVariable example prj_xxxxxxxxxxxxxxxxxxxxxxxxxxxx/FdT2e1E5Of6Cihmt\n```\n\n Alternatively, you can import via the team_id, project_id and environment variable id. - team_id can be found in the team `settings` tab in the Vercel UI. - project_id can be found in the project `settings` tab in the Vercel UI. - environment variable id can be taken from the network tab on the project page.\n\n```sh\n $ pulumi import vercel:index/projectEnvironmentVariable:ProjectEnvironmentVariable example team_xxxxxxxxxxxxxxxxxxxxxxxx/prj_xxxxxxxxxxxxxxxxxxxxxxxxxxxx/FdT2e1E5Of6Cihmt\n```\n\n ", "properties": { "gitBranch": { "type": "string", @@ -1373,7 +1373,7 @@ } }, "vercel:index/sharedEnvironmentVariable:SharedEnvironmentVariable": { - "description": "Provides a Shared Environment Variable resource.\n\nA Shared Environment Variable resource defines an Environment Variable that can be shared between multiple Vercel Projects.\n\nFor more detailed information, please see the [Vercel documentation](https://vercel.com/docs/concepts/projects/environment-variables/shared-environment-variables).\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as vercel from \"@pulumi/vercel\";\n\nconst exampleProject = new vercel.Project(\"exampleProject\", {gitRepository: {\n type: \"github\",\n repo: \"vercel/some-repo\",\n}});\n// A shared environment variable that will be created\n// and associated with the \"example\" project.\nconst exampleSharedEnvironmentVariable = new vercel.SharedEnvironmentVariable(\"exampleSharedEnvironmentVariable\", {\n key: \"EXAMPLE\",\n value: \"some_value\",\n targets: [\"production\"],\n projectIds: [exampleProject.id],\n});\n```\n```python\nimport pulumi\nimport pulumi_vercel as vercel\n\nexample_project = vercel.Project(\"exampleProject\", git_repository=vercel.ProjectGitRepositoryArgs(\n type=\"github\",\n repo=\"vercel/some-repo\",\n))\n# A shared environment variable that will be created\n# and associated with the \"example\" project.\nexample_shared_environment_variable = vercel.SharedEnvironmentVariable(\"exampleSharedEnvironmentVariable\",\n key=\"EXAMPLE\",\n value=\"some_value\",\n targets=[\"production\"],\n project_ids=[example_project.id])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Vercel = Pulumi.Vercel;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleProject = new Vercel.Project(\"exampleProject\", new()\n {\n GitRepository = new Vercel.Inputs.ProjectGitRepositoryArgs\n {\n Type = \"github\",\n Repo = \"vercel/some-repo\",\n },\n });\n\n // A shared environment variable that will be created\n // and associated with the \"example\" project.\n var exampleSharedEnvironmentVariable = new Vercel.SharedEnvironmentVariable(\"exampleSharedEnvironmentVariable\", new()\n {\n Key = \"EXAMPLE\",\n Value = \"some_value\",\n Targets = new[]\n {\n \"production\",\n },\n ProjectIds = new[]\n {\n exampleProject.Id,\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/omercnet/pulumi-vercel/sdk/go/vercel\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleProject, err := vercel.NewProject(ctx, \"exampleProject\", \u0026vercel.ProjectArgs{\n\t\t\tGitRepository: \u0026vercel.ProjectGitRepositoryArgs{\n\t\t\t\tType: pulumi.String(\"github\"),\n\t\t\t\tRepo: pulumi.String(\"vercel/some-repo\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = vercel.NewSharedEnvironmentVariable(ctx, \"exampleSharedEnvironmentVariable\", \u0026vercel.SharedEnvironmentVariableArgs{\n\t\t\tKey: pulumi.String(\"EXAMPLE\"),\n\t\t\tValue: pulumi.String(\"some_value\"),\n\t\t\tTargets: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"production\"),\n\t\t\t},\n\t\t\tProjectIds: pulumi.StringArray{\n\t\t\t\texampleProject.ID(),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.vercel.Project;\nimport com.pulumi.vercel.ProjectArgs;\nimport com.pulumi.vercel.inputs.ProjectGitRepositoryArgs;\nimport com.pulumi.vercel.SharedEnvironmentVariable;\nimport com.pulumi.vercel.SharedEnvironmentVariableArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var exampleProject = new Project(\"exampleProject\", ProjectArgs.builder() \n .gitRepository(ProjectGitRepositoryArgs.builder()\n .type(\"github\")\n .repo(\"vercel/some-repo\")\n .build())\n .build());\n\n var exampleSharedEnvironmentVariable = new SharedEnvironmentVariable(\"exampleSharedEnvironmentVariable\", SharedEnvironmentVariableArgs.builder() \n .key(\"EXAMPLE\")\n .value(\"some_value\")\n .targets(\"production\")\n .projectIds(exampleProject.id())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleProject:\n type: vercel:Project\n properties:\n gitRepository:\n type: github\n repo: vercel/some-repo\n # A shared environment variable that will be created\n # and associated with the \"example\" project.\n exampleSharedEnvironmentVariable:\n type: vercel:SharedEnvironmentVariable\n properties:\n key: EXAMPLE\n value: some_value\n targets:\n - production\n projectIds:\n - ${exampleProject.id}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nYou can import via the team_id and environment variable id. - team_id can be found in the team `settings` tab in the Vercel UI. - environment variable id can be taken from the network tab on the shared environment variable page.\n\n```sh\n $ pulumi import vercel:index/sharedEnvironmentVariable:SharedEnvironmentVariable example team_xxxxxxxxxxxxxxxxxxxxxxxx/env_yyyyyyyyyyyyy\n```\n\n ", + "description": "Provides a Shared Environment Variable resource.\n\nA Shared Environment Variable resource defines an Environment Variable that can be shared between multiple Vercel Projects.\n\nFor more detailed information, please see the [Vercel documentation](https://vercel.com/docs/concepts/projects/environment-variables/shared-environment-variables).\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as vercel from \"@pulumi/vercel\";\n\nconst exampleProject = new vercel.Project(\"exampleProject\", {gitRepository: {\n type: \"github\",\n repo: \"vercel/some-repo\",\n}});\n// A shared environment variable that will be created\n// and associated with the \"example\" project.\nconst exampleSharedEnvironmentVariable = new vercel.SharedEnvironmentVariable(\"exampleSharedEnvironmentVariable\", {\n key: \"EXAMPLE\",\n value: \"some_value\",\n targets: [\"production\"],\n projectIds: [exampleProject.id],\n});\n```\n```python\nimport pulumi\nimport pulumi_vercel as vercel\n\nexample_project = vercel.Project(\"exampleProject\", git_repository=vercel.ProjectGitRepositoryArgs(\n type=\"github\",\n repo=\"vercel/some-repo\",\n))\n# A shared environment variable that will be created\n# and associated with the \"example\" project.\nexample_shared_environment_variable = vercel.SharedEnvironmentVariable(\"exampleSharedEnvironmentVariable\",\n key=\"EXAMPLE\",\n value=\"some_value\",\n targets=[\"production\"],\n project_ids=[example_project.id])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Vercel = Pulumi.Vercel;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleProject = new Vercel.Project(\"exampleProject\", new()\n {\n GitRepository = new Vercel.Inputs.ProjectGitRepositoryArgs\n {\n Type = \"github\",\n Repo = \"vercel/some-repo\",\n },\n });\n\n // A shared environment variable that will be created\n // and associated with the \"example\" project.\n var exampleSharedEnvironmentVariable = new Vercel.SharedEnvironmentVariable(\"exampleSharedEnvironmentVariable\", new()\n {\n Key = \"EXAMPLE\",\n Value = \"some_value\",\n Targets = new[]\n {\n \"production\",\n },\n ProjectIds = new[]\n {\n exampleProject.Id,\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumiverse/pulumi-vercel/sdk/go/vercel\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleProject, err := vercel.NewProject(ctx, \"exampleProject\", \u0026vercel.ProjectArgs{\n\t\t\tGitRepository: \u0026vercel.ProjectGitRepositoryArgs{\n\t\t\t\tType: pulumi.String(\"github\"),\n\t\t\t\tRepo: pulumi.String(\"vercel/some-repo\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = vercel.NewSharedEnvironmentVariable(ctx, \"exampleSharedEnvironmentVariable\", \u0026vercel.SharedEnvironmentVariableArgs{\n\t\t\tKey: pulumi.String(\"EXAMPLE\"),\n\t\t\tValue: pulumi.String(\"some_value\"),\n\t\t\tTargets: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"production\"),\n\t\t\t},\n\t\t\tProjectIds: pulumi.StringArray{\n\t\t\t\texampleProject.ID(),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.vercel.Project;\nimport com.pulumi.vercel.ProjectArgs;\nimport com.pulumi.vercel.inputs.ProjectGitRepositoryArgs;\nimport com.pulumi.vercel.SharedEnvironmentVariable;\nimport com.pulumi.vercel.SharedEnvironmentVariableArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var exampleProject = new Project(\"exampleProject\", ProjectArgs.builder() \n .gitRepository(ProjectGitRepositoryArgs.builder()\n .type(\"github\")\n .repo(\"vercel/some-repo\")\n .build())\n .build());\n\n var exampleSharedEnvironmentVariable = new SharedEnvironmentVariable(\"exampleSharedEnvironmentVariable\", SharedEnvironmentVariableArgs.builder() \n .key(\"EXAMPLE\")\n .value(\"some_value\")\n .targets(\"production\")\n .projectIds(exampleProject.id())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleProject:\n type: vercel:Project\n properties:\n gitRepository:\n type: github\n repo: vercel/some-repo\n # A shared environment variable that will be created\n # and associated with the \"example\" project.\n exampleSharedEnvironmentVariable:\n type: vercel:SharedEnvironmentVariable\n properties:\n key: EXAMPLE\n value: some_value\n targets:\n - production\n projectIds:\n - ${exampleProject.id}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nYou can import via the team_id and environment variable id. - team_id can be found in the team `settings` tab in the Vercel UI. - environment variable id can be taken from the network tab on the shared environment variable page.\n\n```sh\n $ pulumi import vercel:index/sharedEnvironmentVariable:SharedEnvironmentVariable example team_xxxxxxxxxxxxxxxxxxxxxxxx/env_yyyyyyyyyyyyy\n```\n\n ", "properties": { "key": { "type": "string", diff --git a/provider/cmd/pulumi-resource-vercel/main.go b/provider/cmd/pulumi-resource-vercel/main.go index 6a52842..3c27bf1 100644 --- a/provider/cmd/pulumi-resource-vercel/main.go +++ b/provider/cmd/pulumi-resource-vercel/main.go @@ -20,8 +20,8 @@ import ( "context" _ "embed" - vercel "github.com/omercnet/pulumi-vercel/provider" "github.com/pulumi/pulumi-terraform-bridge/pf/tfbridge" + vercel "github.com/pulumiverse/pulumi-vercel/provider" ) //go:embed schema-embed.json diff --git a/provider/cmd/pulumi-resource-vercel/schema.json b/provider/cmd/pulumi-resource-vercel/schema.json index 1f68e09..53bf7cf 100644 --- a/provider/cmd/pulumi-resource-vercel/schema.json +++ b/provider/cmd/pulumi-resource-vercel/schema.json @@ -1,6 +1,8 @@ { "name": "vercel", "attribution": "This Pulumi package is based on the [`vercel` Terraform Provider](https://github.com/terraform-providers/terraform-provider-vercel).", + "pluginDownloadURL": "github://api.github.com/pulumiverse", + "publisher": "Pulumiverse", "meta": { "moduleFormat": "(.*)(?:/[^/]*)" }, @@ -10,21 +12,43 @@ "namespaces": null, "packageReferences": { "Pulumi": "3.*" - } + }, + "rootNamespace": "Pulumiverse" }, "go": { "generateExtraInputTypes": true, "generateResourceContainerTypes": true, - "importBasePath": "github.com/omercnet/pulumi-vercel/sdk/go/vercel" + "importBasePath": "github.com/pulumiverse/pulumi-vercel/sdk/go/vercel" + }, + "java": { + "basePackage": "com.pulumiverse", + "buildFiles": "", + "gradleNexusPublishPluginVersion": "" }, "nodejs": { "compatibility": "tfbridge20", + "dependencies": { + "@pulumi/pulumi": "^3.0.0" + }, + "devDependencies": { + "@types/mime": "^2.0.0", + "@types/node": "^10.0.0" + }, "disableUnionOutputTypes": true, - "readme": "\u003e This provider is a derived work of the [Terraform Provider](https://github.com/terraform-providers/terraform-provider-vercel)\n\u003e distributed under [MPL 2.0](https://www.mozilla.org/en-US/MPL/2.0/). If you encounter a bug or missing feature,\n\u003e first check the [`pulumi-vercel` repo](/issues); however, if that doesn't turn up anything,\n\u003e please consult the source [`terraform-provider-vercel` repo](https://github.com/terraform-providers/terraform-provider-vercel/issues)." + "packageDescription": "", + "packageName": "@pulumiverse/vercel", + "pluginName": "", + "pluginVersion": "", + "readme": "\u003e This provider is a derived work of the [Terraform Provider](https://github.com/terraform-providers/terraform-provider-vercel)\n\u003e distributed under [MPL 2.0](https://www.mozilla.org/en-US/MPL/2.0/). If you encounter a bug or missing feature,\n\u003e first check the [`pulumi-vercel` repo](/issues); however, if that doesn't turn up anything,\n\u003e please consult the source [`terraform-provider-vercel` repo](https://github.com/terraform-providers/terraform-provider-vercel/issues).", + "typescriptVersion": "" }, "python": { "compatibility": "tfbridge20", - "readme": "\u003e This provider is a derived work of the [Terraform Provider](https://github.com/terraform-providers/terraform-provider-vercel)\n\u003e distributed under [MPL 2.0](https://www.mozilla.org/en-US/MPL/2.0/). If you encounter a bug or missing feature,\n\u003e first check the [`pulumi-vercel` repo](/issues); however, if that doesn't turn up anything,\n\u003e please consult the source [`terraform-provider-vercel` repo](https://github.com/terraform-providers/terraform-provider-vercel/issues)." + "packageName": "pulumiverse_vercel", + "readme": "\u003e This provider is a derived work of the [Terraform Provider](https://github.com/terraform-providers/terraform-provider-vercel)\n\u003e distributed under [MPL 2.0](https://www.mozilla.org/en-US/MPL/2.0/). If you encounter a bug or missing feature,\n\u003e first check the [`pulumi-vercel` repo](/issues); however, if that doesn't turn up anything,\n\u003e please consult the source [`terraform-provider-vercel` repo](https://github.com/terraform-providers/terraform-provider-vercel/issues).", + "requires": { + "pulumi": "\u003e=3.0.0,\u003c4.0.0" + } } }, "config": { diff --git a/provider/cmd/pulumi-tfgen-vercel/main.go b/provider/cmd/pulumi-tfgen-vercel/main.go index 58cb76e..84ac329 100644 --- a/provider/cmd/pulumi-tfgen-vercel/main.go +++ b/provider/cmd/pulumi-tfgen-vercel/main.go @@ -15,8 +15,8 @@ package main import ( - vercel "github.com/omercnet/pulumi-vercel/provider" "github.com/pulumi/pulumi-terraform-bridge/pf/tfgen" + vercel "github.com/pulumiverse/pulumi-vercel/provider" ) func main() { diff --git a/provider/go.mod b/provider/go.mod index 2592029..95e017b 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -1,4 +1,4 @@ -module github.com/omercnet/pulumi-vercel/provider +module github.com/pulumiverse/pulumi-vercel/provider go 1.20 @@ -6,6 +6,7 @@ require ( github.com/pulumi/pulumi-terraform-bridge/pf v0.14.1 github.com/pulumi/pulumi-terraform-bridge/v3 v3.54.3 github.com/vercel/terraform-provider-vercel v0.15.0 + golang.org/x/text v0.10.0 ) require github.com/Masterminds/semver v1.5.0 // indirect @@ -220,7 +221,6 @@ require ( golang.org/x/sync v0.2.0 // indirect golang.org/x/sys v0.9.0 // indirect golang.org/x/term v0.9.0 // indirect - golang.org/x/text v0.10.0 // indirect golang.org/x/time v0.3.0 // indirect golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect google.golang.org/api v0.114.0 // indirect diff --git a/provider/resources.go b/provider/resources.go index eea7b08..09ac11a 100644 --- a/provider/resources.go +++ b/provider/resources.go @@ -19,10 +19,12 @@ import ( "fmt" "path/filepath" - "github.com/omercnet/pulumi-vercel/provider/pkg/version" pf "github.com/pulumi/pulumi-terraform-bridge/pf/tfbridge" "github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfbridge" "github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfbridge/tokens" + "github.com/pulumiverse/pulumi-vercel/provider/pkg/version" + "golang.org/x/text/cases" + "golang.org/x/text/language" "github.com/vercel/terraform-provider-vercel/vercel" ) @@ -33,7 +35,8 @@ const ( // registries for nodejs and python: mainPkg = "vercel" // modules: - mainMod = "index" // the vercel module + mainMod = "index" // the vercel module + publisher = "pulumiverse" ) //go:embed cmd/pulumi-resource-vercel/bridge-metadata.json @@ -44,14 +47,15 @@ func Provider() tfbridge.ProviderInfo { // Instantiate the Terraform provider p := pf.ShimProvider(vercel.New()) + caser := cases.Title(language.English) + // Create a Pulumi provider mapping prov := tfbridge.ProviderInfo{ - P: p, - Name: mainPkg, - Version: version.Version, - // PluginDownloadURL is an optional URL used to download the Provider - // for use in Pulumi programs - // e.g https://github.com/org/pulumi-provider-name/releases/ + P: p, + Name: mainPkg, + Version: version.Version, + Publisher: caser.String(publisher), + PluginDownloadURL: "github://api.github.com/pulumiverse", Resources: map[string]*tfbridge.ResourceInfo{ "vercel_alias": {Tok: tfbridge.MakeResource(mainPkg, mainMod, "Alias"), Fields: map[string]*tfbridge.SchemaInfo{ @@ -61,9 +65,25 @@ func Provider() tfbridge.ProviderInfo { }, }, }, + JavaScript: &tfbridge.JavaScriptInfo{ + PackageName: fmt.Sprintf("@%s/%s", publisher, mainPkg), + Dependencies: map[string]string{ + "@pulumi/pulumi": "^3.0.0", + }, + DevDependencies: map[string]string{ + "@types/node": "^10.0.0", // so we can access strongly typed node definitions. + "@types/mime": "^2.0.0", + }, + }, + Python: &tfbridge.PythonInfo{ + PackageName: fmt.Sprintf("%s_%s", publisher, mainPkg), + Requires: map[string]string{ + "pulumi": ">=3.0.0,<4.0.0", + }, + }, Golang: &tfbridge.GolangInfo{ ImportBasePath: filepath.Join( - fmt.Sprintf("github.com/omercnet/pulumi-%[1]s/sdk/", mainPkg), + fmt.Sprintf("github.com/pulumiverse/pulumi-%[1]s/sdk/", mainPkg), tfbridge.GetModuleMajorVersion(version.Version), "go", mainPkg, @@ -71,10 +91,14 @@ func Provider() tfbridge.ProviderInfo { GenerateResourceContainerTypes: true, }, CSharp: &tfbridge.CSharpInfo{ + RootNamespace: caser.String(publisher), PackageReferences: map[string]string{ "Pulumi": "3.*", }, }, + Java: &tfbridge.JavaInfo{ + BasePackage: "com.pulumiverse", + }, MetadataInfo: tfbridge.NewProviderMetadata(bridgeMetadata), } diff --git a/sdk/dotnet/Alias.cs b/sdk/dotnet/Alias.cs index 71749c9..acad8f9 100644 --- a/sdk/dotnet/Alias.cs +++ b/sdk/dotnet/Alias.cs @@ -6,8 +6,9 @@ using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; +using Pulumi; -namespace Pulumi.Vercel +namespace Pulumiverse.Vercel { [VercelResourceType("vercel:index/alias:Alias")] public partial class Alias : global::Pulumi.CustomResource @@ -54,6 +55,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, + PluginDownloadURL = "github://api.github.com/pulumiverse", }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. diff --git a/sdk/dotnet/Config/Config.cs b/sdk/dotnet/Config/Config.cs index 6151d73..9882d06 100644 --- a/sdk/dotnet/Config/Config.cs +++ b/sdk/dotnet/Config/Config.cs @@ -4,7 +4,7 @@ using System; using System.Collections.Immutable; -namespace Pulumi.Vercel +namespace Pulumiverse.Vercel { public static class Config { diff --git a/sdk/dotnet/Deployment.cs b/sdk/dotnet/Deployment.cs index 75e4443..b8038d3 100644 --- a/sdk/dotnet/Deployment.cs +++ b/sdk/dotnet/Deployment.cs @@ -6,8 +6,9 @@ using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; +using Pulumi; -namespace Pulumi.Vercel +namespace Pulumiverse.Vercel { [VercelResourceType("vercel:index/deployment:Deployment")] public partial class Deployment : global::Pulumi.CustomResource @@ -108,6 +109,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, + PluginDownloadURL = "github://api.github.com/pulumiverse", }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. diff --git a/sdk/dotnet/DnsRecord.cs b/sdk/dotnet/DnsRecord.cs index 051c384..62bf6bb 100644 --- a/sdk/dotnet/DnsRecord.cs +++ b/sdk/dotnet/DnsRecord.cs @@ -6,8 +6,9 @@ using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; +using Pulumi; -namespace Pulumi.Vercel +namespace Pulumiverse.Vercel { [VercelResourceType("vercel:index/dnsRecord:DnsRecord")] public partial class DnsRecord : global::Pulumi.CustomResource @@ -90,6 +91,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, + PluginDownloadURL = "github://api.github.com/pulumiverse", }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. diff --git a/sdk/dotnet/GetAlias.cs b/sdk/dotnet/GetAlias.cs index 55391bb..226fad1 100644 --- a/sdk/dotnet/GetAlias.cs +++ b/sdk/dotnet/GetAlias.cs @@ -6,8 +6,9 @@ using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; +using Pulumi; -namespace Pulumi.Vercel +namespace Pulumiverse.Vercel { public static class GetAlias { diff --git a/sdk/dotnet/GetFile.cs b/sdk/dotnet/GetFile.cs index ff124be..9c40077 100644 --- a/sdk/dotnet/GetFile.cs +++ b/sdk/dotnet/GetFile.cs @@ -6,8 +6,9 @@ using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; +using Pulumi; -namespace Pulumi.Vercel +namespace Pulumiverse.Vercel { public static class GetFile { diff --git a/sdk/dotnet/GetPrebuiltProject.cs b/sdk/dotnet/GetPrebuiltProject.cs index e7a7f75..281eece 100644 --- a/sdk/dotnet/GetPrebuiltProject.cs +++ b/sdk/dotnet/GetPrebuiltProject.cs @@ -6,8 +6,9 @@ using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; +using Pulumi; -namespace Pulumi.Vercel +namespace Pulumiverse.Vercel { public static class GetPrebuiltProject { diff --git a/sdk/dotnet/GetProject.cs b/sdk/dotnet/GetProject.cs index d850918..9e36a12 100644 --- a/sdk/dotnet/GetProject.cs +++ b/sdk/dotnet/GetProject.cs @@ -6,8 +6,9 @@ using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; +using Pulumi; -namespace Pulumi.Vercel +namespace Pulumiverse.Vercel { public static class GetProject { diff --git a/sdk/dotnet/GetProjectDirectory.cs b/sdk/dotnet/GetProjectDirectory.cs index 455a090..53808f4 100644 --- a/sdk/dotnet/GetProjectDirectory.cs +++ b/sdk/dotnet/GetProjectDirectory.cs @@ -6,8 +6,9 @@ using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; +using Pulumi; -namespace Pulumi.Vercel +namespace Pulumiverse.Vercel { public static class GetProjectDirectory { diff --git a/sdk/dotnet/Inputs/DeploymentProjectSettingsArgs.cs b/sdk/dotnet/Inputs/DeploymentProjectSettingsArgs.cs index b11f241..dbc0a8d 100644 --- a/sdk/dotnet/Inputs/DeploymentProjectSettingsArgs.cs +++ b/sdk/dotnet/Inputs/DeploymentProjectSettingsArgs.cs @@ -6,8 +6,9 @@ using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; +using Pulumi; -namespace Pulumi.Vercel.Inputs +namespace Pulumiverse.Vercel.Inputs { public sealed class DeploymentProjectSettingsArgs : global::Pulumi.ResourceArgs diff --git a/sdk/dotnet/Inputs/DeploymentProjectSettingsGetArgs.cs b/sdk/dotnet/Inputs/DeploymentProjectSettingsGetArgs.cs index 0ab205a..1a1f3f1 100644 --- a/sdk/dotnet/Inputs/DeploymentProjectSettingsGetArgs.cs +++ b/sdk/dotnet/Inputs/DeploymentProjectSettingsGetArgs.cs @@ -6,8 +6,9 @@ using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; +using Pulumi; -namespace Pulumi.Vercel.Inputs +namespace Pulumiverse.Vercel.Inputs { public sealed class DeploymentProjectSettingsGetArgs : global::Pulumi.ResourceArgs diff --git a/sdk/dotnet/Inputs/DnsRecordSrvArgs.cs b/sdk/dotnet/Inputs/DnsRecordSrvArgs.cs index c4decb0..d389485 100644 --- a/sdk/dotnet/Inputs/DnsRecordSrvArgs.cs +++ b/sdk/dotnet/Inputs/DnsRecordSrvArgs.cs @@ -6,8 +6,9 @@ using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; +using Pulumi; -namespace Pulumi.Vercel.Inputs +namespace Pulumiverse.Vercel.Inputs { public sealed class DnsRecordSrvArgs : global::Pulumi.ResourceArgs diff --git a/sdk/dotnet/Inputs/DnsRecordSrvGetArgs.cs b/sdk/dotnet/Inputs/DnsRecordSrvGetArgs.cs index 38a3dba..ca79529 100644 --- a/sdk/dotnet/Inputs/DnsRecordSrvGetArgs.cs +++ b/sdk/dotnet/Inputs/DnsRecordSrvGetArgs.cs @@ -6,8 +6,9 @@ using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; +using Pulumi; -namespace Pulumi.Vercel.Inputs +namespace Pulumiverse.Vercel.Inputs { public sealed class DnsRecordSrvGetArgs : global::Pulumi.ResourceArgs diff --git a/sdk/dotnet/Inputs/GetProjectPasswordProtection.cs b/sdk/dotnet/Inputs/GetProjectPasswordProtection.cs index 1e2955e..e35874d 100644 --- a/sdk/dotnet/Inputs/GetProjectPasswordProtection.cs +++ b/sdk/dotnet/Inputs/GetProjectPasswordProtection.cs @@ -6,8 +6,9 @@ using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; +using Pulumi; -namespace Pulumi.Vercel.Inputs +namespace Pulumiverse.Vercel.Inputs { public sealed class GetProjectPasswordProtectionArgs : global::Pulumi.InvokeArgs diff --git a/sdk/dotnet/Inputs/GetProjectPasswordProtectionArgs.cs b/sdk/dotnet/Inputs/GetProjectPasswordProtectionArgs.cs index ace0193..b88a7bf 100644 --- a/sdk/dotnet/Inputs/GetProjectPasswordProtectionArgs.cs +++ b/sdk/dotnet/Inputs/GetProjectPasswordProtectionArgs.cs @@ -6,8 +6,9 @@ using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; +using Pulumi; -namespace Pulumi.Vercel.Inputs +namespace Pulumiverse.Vercel.Inputs { public sealed class GetProjectPasswordProtectionInputArgs : global::Pulumi.ResourceArgs diff --git a/sdk/dotnet/Inputs/ProjectEnvironmentArgs.cs b/sdk/dotnet/Inputs/ProjectEnvironmentArgs.cs index 2bb860f..2c3767b 100644 --- a/sdk/dotnet/Inputs/ProjectEnvironmentArgs.cs +++ b/sdk/dotnet/Inputs/ProjectEnvironmentArgs.cs @@ -6,8 +6,9 @@ using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; +using Pulumi; -namespace Pulumi.Vercel.Inputs +namespace Pulumiverse.Vercel.Inputs { public sealed class ProjectEnvironmentArgs : global::Pulumi.ResourceArgs diff --git a/sdk/dotnet/Inputs/ProjectEnvironmentGetArgs.cs b/sdk/dotnet/Inputs/ProjectEnvironmentGetArgs.cs index b7ba422..3daff0d 100644 --- a/sdk/dotnet/Inputs/ProjectEnvironmentGetArgs.cs +++ b/sdk/dotnet/Inputs/ProjectEnvironmentGetArgs.cs @@ -6,8 +6,9 @@ using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; +using Pulumi; -namespace Pulumi.Vercel.Inputs +namespace Pulumiverse.Vercel.Inputs { public sealed class ProjectEnvironmentGetArgs : global::Pulumi.ResourceArgs diff --git a/sdk/dotnet/Inputs/ProjectGitRepositoryArgs.cs b/sdk/dotnet/Inputs/ProjectGitRepositoryArgs.cs index a622496..a541dee 100644 --- a/sdk/dotnet/Inputs/ProjectGitRepositoryArgs.cs +++ b/sdk/dotnet/Inputs/ProjectGitRepositoryArgs.cs @@ -6,8 +6,9 @@ using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; +using Pulumi; -namespace Pulumi.Vercel.Inputs +namespace Pulumiverse.Vercel.Inputs { public sealed class ProjectGitRepositoryArgs : global::Pulumi.ResourceArgs diff --git a/sdk/dotnet/Inputs/ProjectGitRepositoryGetArgs.cs b/sdk/dotnet/Inputs/ProjectGitRepositoryGetArgs.cs index fada1d6..8e0d04d 100644 --- a/sdk/dotnet/Inputs/ProjectGitRepositoryGetArgs.cs +++ b/sdk/dotnet/Inputs/ProjectGitRepositoryGetArgs.cs @@ -6,8 +6,9 @@ using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; +using Pulumi; -namespace Pulumi.Vercel.Inputs +namespace Pulumiverse.Vercel.Inputs { public sealed class ProjectGitRepositoryGetArgs : global::Pulumi.ResourceArgs diff --git a/sdk/dotnet/Inputs/ProjectPasswordProtectionArgs.cs b/sdk/dotnet/Inputs/ProjectPasswordProtectionArgs.cs index 05a26b8..f950aa1 100644 --- a/sdk/dotnet/Inputs/ProjectPasswordProtectionArgs.cs +++ b/sdk/dotnet/Inputs/ProjectPasswordProtectionArgs.cs @@ -6,8 +6,9 @@ using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; +using Pulumi; -namespace Pulumi.Vercel.Inputs +namespace Pulumiverse.Vercel.Inputs { public sealed class ProjectPasswordProtectionArgs : global::Pulumi.ResourceArgs diff --git a/sdk/dotnet/Inputs/ProjectPasswordProtectionGetArgs.cs b/sdk/dotnet/Inputs/ProjectPasswordProtectionGetArgs.cs index d968fc7..465f39c 100644 --- a/sdk/dotnet/Inputs/ProjectPasswordProtectionGetArgs.cs +++ b/sdk/dotnet/Inputs/ProjectPasswordProtectionGetArgs.cs @@ -6,8 +6,9 @@ using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; +using Pulumi; -namespace Pulumi.Vercel.Inputs +namespace Pulumiverse.Vercel.Inputs { public sealed class ProjectPasswordProtectionGetArgs : global::Pulumi.ResourceArgs diff --git a/sdk/dotnet/Inputs/ProjectVercelAuthenticationArgs.cs b/sdk/dotnet/Inputs/ProjectVercelAuthenticationArgs.cs index d53ee03..b2d811f 100644 --- a/sdk/dotnet/Inputs/ProjectVercelAuthenticationArgs.cs +++ b/sdk/dotnet/Inputs/ProjectVercelAuthenticationArgs.cs @@ -6,8 +6,9 @@ using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; +using Pulumi; -namespace Pulumi.Vercel.Inputs +namespace Pulumiverse.Vercel.Inputs { public sealed class ProjectVercelAuthenticationArgs : global::Pulumi.ResourceArgs diff --git a/sdk/dotnet/Inputs/ProjectVercelAuthenticationGetArgs.cs b/sdk/dotnet/Inputs/ProjectVercelAuthenticationGetArgs.cs index b285990..95550ba 100644 --- a/sdk/dotnet/Inputs/ProjectVercelAuthenticationGetArgs.cs +++ b/sdk/dotnet/Inputs/ProjectVercelAuthenticationGetArgs.cs @@ -6,8 +6,9 @@ using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; +using Pulumi; -namespace Pulumi.Vercel.Inputs +namespace Pulumiverse.Vercel.Inputs { public sealed class ProjectVercelAuthenticationGetArgs : global::Pulumi.ResourceArgs diff --git a/sdk/dotnet/Outputs/DeploymentProjectSettings.cs b/sdk/dotnet/Outputs/DeploymentProjectSettings.cs index 7930347..2ffa941 100644 --- a/sdk/dotnet/Outputs/DeploymentProjectSettings.cs +++ b/sdk/dotnet/Outputs/DeploymentProjectSettings.cs @@ -6,8 +6,9 @@ using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; +using Pulumi; -namespace Pulumi.Vercel.Outputs +namespace Pulumiverse.Vercel.Outputs { [OutputType] diff --git a/sdk/dotnet/Outputs/DnsRecordSrv.cs b/sdk/dotnet/Outputs/DnsRecordSrv.cs index c5f7523..dc297b5 100644 --- a/sdk/dotnet/Outputs/DnsRecordSrv.cs +++ b/sdk/dotnet/Outputs/DnsRecordSrv.cs @@ -6,8 +6,9 @@ using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; +using Pulumi; -namespace Pulumi.Vercel.Outputs +namespace Pulumiverse.Vercel.Outputs { [OutputType] diff --git a/sdk/dotnet/Outputs/GetProjectEnvironmentResult.cs b/sdk/dotnet/Outputs/GetProjectEnvironmentResult.cs index 0f02e70..b341d7e 100644 --- a/sdk/dotnet/Outputs/GetProjectEnvironmentResult.cs +++ b/sdk/dotnet/Outputs/GetProjectEnvironmentResult.cs @@ -6,8 +6,9 @@ using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; +using Pulumi; -namespace Pulumi.Vercel.Outputs +namespace Pulumiverse.Vercel.Outputs { [OutputType] diff --git a/sdk/dotnet/Outputs/GetProjectGitRepositoryResult.cs b/sdk/dotnet/Outputs/GetProjectGitRepositoryResult.cs index c6ded26..521392b 100644 --- a/sdk/dotnet/Outputs/GetProjectGitRepositoryResult.cs +++ b/sdk/dotnet/Outputs/GetProjectGitRepositoryResult.cs @@ -6,8 +6,9 @@ using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; +using Pulumi; -namespace Pulumi.Vercel.Outputs +namespace Pulumiverse.Vercel.Outputs { [OutputType] diff --git a/sdk/dotnet/Outputs/GetProjectPasswordProtectionResult.cs b/sdk/dotnet/Outputs/GetProjectPasswordProtectionResult.cs index 9f9c97b..97652ff 100644 --- a/sdk/dotnet/Outputs/GetProjectPasswordProtectionResult.cs +++ b/sdk/dotnet/Outputs/GetProjectPasswordProtectionResult.cs @@ -6,8 +6,9 @@ using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; +using Pulumi; -namespace Pulumi.Vercel.Outputs +namespace Pulumiverse.Vercel.Outputs { [OutputType] diff --git a/sdk/dotnet/Outputs/GetProjectVercelAuthenticationResult.cs b/sdk/dotnet/Outputs/GetProjectVercelAuthenticationResult.cs index 2b676e8..b0f4d13 100644 --- a/sdk/dotnet/Outputs/GetProjectVercelAuthenticationResult.cs +++ b/sdk/dotnet/Outputs/GetProjectVercelAuthenticationResult.cs @@ -6,8 +6,9 @@ using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; +using Pulumi; -namespace Pulumi.Vercel.Outputs +namespace Pulumiverse.Vercel.Outputs { [OutputType] diff --git a/sdk/dotnet/Outputs/ProjectEnvironment.cs b/sdk/dotnet/Outputs/ProjectEnvironment.cs index c1f46e3..1a9c175 100644 --- a/sdk/dotnet/Outputs/ProjectEnvironment.cs +++ b/sdk/dotnet/Outputs/ProjectEnvironment.cs @@ -6,8 +6,9 @@ using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; +using Pulumi; -namespace Pulumi.Vercel.Outputs +namespace Pulumiverse.Vercel.Outputs { [OutputType] diff --git a/sdk/dotnet/Outputs/ProjectGitRepository.cs b/sdk/dotnet/Outputs/ProjectGitRepository.cs index 25c4f68..ff7d27d 100644 --- a/sdk/dotnet/Outputs/ProjectGitRepository.cs +++ b/sdk/dotnet/Outputs/ProjectGitRepository.cs @@ -6,8 +6,9 @@ using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; +using Pulumi; -namespace Pulumi.Vercel.Outputs +namespace Pulumiverse.Vercel.Outputs { [OutputType] diff --git a/sdk/dotnet/Outputs/ProjectPasswordProtection.cs b/sdk/dotnet/Outputs/ProjectPasswordProtection.cs index 0b4dfa6..f77a18b 100644 --- a/sdk/dotnet/Outputs/ProjectPasswordProtection.cs +++ b/sdk/dotnet/Outputs/ProjectPasswordProtection.cs @@ -6,8 +6,9 @@ using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; +using Pulumi; -namespace Pulumi.Vercel.Outputs +namespace Pulumiverse.Vercel.Outputs { [OutputType] diff --git a/sdk/dotnet/Outputs/ProjectVercelAuthentication.cs b/sdk/dotnet/Outputs/ProjectVercelAuthentication.cs index d633711..105486b 100644 --- a/sdk/dotnet/Outputs/ProjectVercelAuthentication.cs +++ b/sdk/dotnet/Outputs/ProjectVercelAuthentication.cs @@ -6,8 +6,9 @@ using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; +using Pulumi; -namespace Pulumi.Vercel.Outputs +namespace Pulumiverse.Vercel.Outputs { [OutputType] diff --git a/sdk/dotnet/Project.cs b/sdk/dotnet/Project.cs index 08146dd..1c062be 100644 --- a/sdk/dotnet/Project.cs +++ b/sdk/dotnet/Project.cs @@ -6,8 +6,9 @@ using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; +using Pulumi; -namespace Pulumi.Vercel +namespace Pulumiverse.Vercel { [VercelResourceType("vercel:index/project:Project")] public partial class Project : global::Pulumi.CustomResource @@ -153,6 +154,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, + PluginDownloadURL = "github://api.github.com/pulumiverse", }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. diff --git a/sdk/dotnet/ProjectDomain.cs b/sdk/dotnet/ProjectDomain.cs index 793df87..ac2160d 100644 --- a/sdk/dotnet/ProjectDomain.cs +++ b/sdk/dotnet/ProjectDomain.cs @@ -6,8 +6,9 @@ using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; +using Pulumi; -namespace Pulumi.Vercel +namespace Pulumiverse.Vercel { [VercelResourceType("vercel:index/projectDomain:ProjectDomain")] public partial class ProjectDomain : global::Pulumi.CustomResource @@ -72,6 +73,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, + PluginDownloadURL = "github://api.github.com/pulumiverse", }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. diff --git a/sdk/dotnet/ProjectEnvironmentVariable.cs b/sdk/dotnet/ProjectEnvironmentVariable.cs index a018d2f..df83e1a 100644 --- a/sdk/dotnet/ProjectEnvironmentVariable.cs +++ b/sdk/dotnet/ProjectEnvironmentVariable.cs @@ -6,8 +6,9 @@ using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; +using Pulumi; -namespace Pulumi.Vercel +namespace Pulumiverse.Vercel { [VercelResourceType("vercel:index/projectEnvironmentVariable:ProjectEnvironmentVariable")] public partial class ProjectEnvironmentVariable : global::Pulumi.CustomResource @@ -72,6 +73,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, + PluginDownloadURL = "github://api.github.com/pulumiverse", AdditionalSecretOutputs = { "value", diff --git a/sdk/dotnet/Provider.cs b/sdk/dotnet/Provider.cs index c6543f8..b4e404e 100644 --- a/sdk/dotnet/Provider.cs +++ b/sdk/dotnet/Provider.cs @@ -6,8 +6,9 @@ using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; +using Pulumi; -namespace Pulumi.Vercel +namespace Pulumiverse.Vercel { /// /// The provider type for the vercel package. By default, resources use package-wide configuration @@ -50,6 +51,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, + PluginDownloadURL = "github://api.github.com/pulumiverse", AdditionalSecretOutputs = { "apiToken", diff --git a/sdk/dotnet/Pulumi.Vercel.csproj b/sdk/dotnet/Pulumiverse.Vercel.csproj similarity index 96% rename from sdk/dotnet/Pulumi.Vercel.csproj rename to sdk/dotnet/Pulumiverse.Vercel.csproj index 781b2b3..61e918b 100644 --- a/sdk/dotnet/Pulumi.Vercel.csproj +++ b/sdk/dotnet/Pulumiverse.Vercel.csproj @@ -2,8 +2,8 @@ true - Pulumi Corp. - Pulumi Corp. + Pulumiverse + Pulumiverse diff --git a/sdk/dotnet/SharedEnvironmentVariable.cs b/sdk/dotnet/SharedEnvironmentVariable.cs index a761d36..81647f2 100644 --- a/sdk/dotnet/SharedEnvironmentVariable.cs +++ b/sdk/dotnet/SharedEnvironmentVariable.cs @@ -6,8 +6,9 @@ using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; +using Pulumi; -namespace Pulumi.Vercel +namespace Pulumiverse.Vercel { [VercelResourceType("vercel:index/sharedEnvironmentVariable:SharedEnvironmentVariable")] public partial class SharedEnvironmentVariable : global::Pulumi.CustomResource @@ -66,6 +67,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, + PluginDownloadURL = "github://api.github.com/pulumiverse", AdditionalSecretOutputs = { "value", diff --git a/sdk/dotnet/Utilities.cs b/sdk/dotnet/Utilities.cs index 5a2b158..4806aa9 100644 --- a/sdk/dotnet/Utilities.cs +++ b/sdk/dotnet/Utilities.cs @@ -1,7 +1,7 @@ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** -namespace Pulumi.Vercel +namespace Pulumiverse.Vercel { static class Utilities { @@ -53,6 +53,7 @@ static class Utilities { var dst = src ?? new global::Pulumi.InvokeOptions{}; dst.Version = src?.Version ?? Version; + dst.PluginDownloadURL = src?.PluginDownloadURL ?? "github://api.github.com/pulumiverse"; return dst; } @@ -62,7 +63,7 @@ static class Utilities static Utilities() { var assembly = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(Utilities)).Assembly; - using var stream = assembly.GetManifestResourceStream("Pulumi.Vercel.version.txt"); + using var stream = assembly.GetManifestResourceStream("Pulumiverse.Vercel.version.txt"); using var reader = new global::System.IO.StreamReader(stream ?? throw new global::System.NotSupportedException("Missing embedded version.txt file")); version = reader.ReadToEnd().Trim(); var parts = version.Split("\n"); diff --git a/sdk/dotnet/pulumi-plugin.json b/sdk/dotnet/pulumi-plugin.json index 33c9941..8bf76dc 100644 --- a/sdk/dotnet/pulumi-plugin.json +++ b/sdk/dotnet/pulumi-plugin.json @@ -1,4 +1,5 @@ { "resource": true, - "name": "vercel" + "name": "vercel", + "server": "github://api.github.com/pulumiverse" } diff --git a/sdk/go.mod b/sdk/go.mod index b1b3ba1..9d938b5 100644 --- a/sdk/go.mod +++ b/sdk/go.mod @@ -1,4 +1,4 @@ -module github.com/omercnet/pulumi-vercel/sdk +module github.com/pulumiverse/pulumi-vercel/sdk go 1.19 diff --git a/sdk/go/vercel/alias.go b/sdk/go/vercel/alias.go index 2038f06..13d3f47 100644 --- a/sdk/go/vercel/alias.go +++ b/sdk/go/vercel/alias.go @@ -8,8 +8,8 @@ import ( "reflect" "errors" - "github.com/omercnet/pulumi-vercel/sdk/go/vercel/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" + "github.com/pulumiverse/pulumi-vercel/sdk/go/vercel/internal" ) type Alias struct { diff --git a/sdk/go/vercel/config/config.go b/sdk/go/vercel/config/config.go index 69e4f51..af8eaad 100644 --- a/sdk/go/vercel/config/config.go +++ b/sdk/go/vercel/config/config.go @@ -4,9 +4,9 @@ package config import ( - "github.com/omercnet/pulumi-vercel/sdk/go/vercel/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/pulumi/pulumi/sdk/v3/go/pulumi/config" + "github.com/pulumiverse/pulumi-vercel/sdk/go/vercel/internal" ) var _ = internal.GetEnvOrDefault diff --git a/sdk/go/vercel/deployment.go b/sdk/go/vercel/deployment.go index ec6ca0a..3325098 100644 --- a/sdk/go/vercel/deployment.go +++ b/sdk/go/vercel/deployment.go @@ -8,8 +8,8 @@ import ( "reflect" "errors" - "github.com/omercnet/pulumi-vercel/sdk/go/vercel/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" + "github.com/pulumiverse/pulumi-vercel/sdk/go/vercel/internal" ) type Deployment struct { diff --git a/sdk/go/vercel/dnsRecord.go b/sdk/go/vercel/dnsRecord.go index 77fc361..614efb4 100644 --- a/sdk/go/vercel/dnsRecord.go +++ b/sdk/go/vercel/dnsRecord.go @@ -8,8 +8,8 @@ import ( "reflect" "errors" - "github.com/omercnet/pulumi-vercel/sdk/go/vercel/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" + "github.com/pulumiverse/pulumi-vercel/sdk/go/vercel/internal" ) type DnsRecord struct { diff --git a/sdk/go/vercel/getAlias.go b/sdk/go/vercel/getAlias.go index 4d43a7d..5460abc 100644 --- a/sdk/go/vercel/getAlias.go +++ b/sdk/go/vercel/getAlias.go @@ -7,8 +7,8 @@ import ( "context" "reflect" - "github.com/omercnet/pulumi-vercel/sdk/go/vercel/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" + "github.com/pulumiverse/pulumi-vercel/sdk/go/vercel/internal" ) func LookupAlias(ctx *pulumi.Context, args *LookupAliasArgs, opts ...pulumi.InvokeOption) (*LookupAliasResult, error) { diff --git a/sdk/go/vercel/getFile.go b/sdk/go/vercel/getFile.go index 90d1ba7..560692c 100644 --- a/sdk/go/vercel/getFile.go +++ b/sdk/go/vercel/getFile.go @@ -7,8 +7,8 @@ import ( "context" "reflect" - "github.com/omercnet/pulumi-vercel/sdk/go/vercel/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" + "github.com/pulumiverse/pulumi-vercel/sdk/go/vercel/internal" ) func GetFile(ctx *pulumi.Context, args *GetFileArgs, opts ...pulumi.InvokeOption) (*GetFileResult, error) { diff --git a/sdk/go/vercel/getPrebuiltProject.go b/sdk/go/vercel/getPrebuiltProject.go index c4ef055..13b20a3 100644 --- a/sdk/go/vercel/getPrebuiltProject.go +++ b/sdk/go/vercel/getPrebuiltProject.go @@ -7,8 +7,8 @@ import ( "context" "reflect" - "github.com/omercnet/pulumi-vercel/sdk/go/vercel/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" + "github.com/pulumiverse/pulumi-vercel/sdk/go/vercel/internal" ) func GetPrebuiltProject(ctx *pulumi.Context, args *GetPrebuiltProjectArgs, opts ...pulumi.InvokeOption) (*GetPrebuiltProjectResult, error) { diff --git a/sdk/go/vercel/getProject.go b/sdk/go/vercel/getProject.go index 32326d7..61d6f35 100644 --- a/sdk/go/vercel/getProject.go +++ b/sdk/go/vercel/getProject.go @@ -7,8 +7,8 @@ import ( "context" "reflect" - "github.com/omercnet/pulumi-vercel/sdk/go/vercel/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" + "github.com/pulumiverse/pulumi-vercel/sdk/go/vercel/internal" ) func LookupProject(ctx *pulumi.Context, args *LookupProjectArgs, opts ...pulumi.InvokeOption) (*LookupProjectResult, error) { diff --git a/sdk/go/vercel/getProjectDirectory.go b/sdk/go/vercel/getProjectDirectory.go index 7ecd7f8..d7b1d03 100644 --- a/sdk/go/vercel/getProjectDirectory.go +++ b/sdk/go/vercel/getProjectDirectory.go @@ -7,8 +7,8 @@ import ( "context" "reflect" - "github.com/omercnet/pulumi-vercel/sdk/go/vercel/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" + "github.com/pulumiverse/pulumi-vercel/sdk/go/vercel/internal" ) func GetProjectDirectory(ctx *pulumi.Context, args *GetProjectDirectoryArgs, opts ...pulumi.InvokeOption) (*GetProjectDirectoryResult, error) { diff --git a/sdk/go/vercel/init.go b/sdk/go/vercel/init.go index b52fc64..3898b08 100644 --- a/sdk/go/vercel/init.go +++ b/sdk/go/vercel/init.go @@ -7,8 +7,8 @@ import ( "fmt" "github.com/blang/semver" - "github.com/omercnet/pulumi-vercel/sdk/go/vercel/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" + "github.com/pulumiverse/pulumi-vercel/sdk/go/vercel/internal" ) type module struct { diff --git a/sdk/go/vercel/internal/pulumiUtilities.go b/sdk/go/vercel/internal/pulumiUtilities.go index 75d39e7..ac4cdcd 100644 --- a/sdk/go/vercel/internal/pulumiUtilities.go +++ b/sdk/go/vercel/internal/pulumiUtilities.go @@ -93,7 +93,7 @@ func IsZero(v interface{}) bool { // PkgResourceDefaultOpts provides package level defaults to pulumi.OptionResource. func PkgResourceDefaultOpts(opts []pulumi.ResourceOption) []pulumi.ResourceOption { defaults := []pulumi.ResourceOption{} - + defaults = append(defaults, pulumi.PluginDownloadURL("github://api.github.com/pulumiverse")) version := SdkVersion if !version.Equals(semver.Version{}) { defaults = append(defaults, pulumi.Version(version.String())) @@ -104,7 +104,7 @@ func PkgResourceDefaultOpts(opts []pulumi.ResourceOption) []pulumi.ResourceOptio // PkgInvokeDefaultOpts provides package level defaults to pulumi.OptionInvoke. func PkgInvokeDefaultOpts(opts []pulumi.InvokeOption) []pulumi.InvokeOption { defaults := []pulumi.InvokeOption{} - + defaults = append(defaults, pulumi.PluginDownloadURL("github://api.github.com/pulumiverse")) version := SdkVersion if !version.Equals(semver.Version{}) { defaults = append(defaults, pulumi.Version(version.String())) diff --git a/sdk/go/vercel/project.go b/sdk/go/vercel/project.go index 626b10c..2e1ebb1 100644 --- a/sdk/go/vercel/project.go +++ b/sdk/go/vercel/project.go @@ -7,8 +7,8 @@ import ( "context" "reflect" - "github.com/omercnet/pulumi-vercel/sdk/go/vercel/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" + "github.com/pulumiverse/pulumi-vercel/sdk/go/vercel/internal" ) type Project struct { diff --git a/sdk/go/vercel/projectDomain.go b/sdk/go/vercel/projectDomain.go index a35de2f..b5a3eb9 100644 --- a/sdk/go/vercel/projectDomain.go +++ b/sdk/go/vercel/projectDomain.go @@ -8,8 +8,8 @@ import ( "reflect" "errors" - "github.com/omercnet/pulumi-vercel/sdk/go/vercel/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" + "github.com/pulumiverse/pulumi-vercel/sdk/go/vercel/internal" ) type ProjectDomain struct { diff --git a/sdk/go/vercel/projectEnvironmentVariable.go b/sdk/go/vercel/projectEnvironmentVariable.go index a11c2e4..f04551f 100644 --- a/sdk/go/vercel/projectEnvironmentVariable.go +++ b/sdk/go/vercel/projectEnvironmentVariable.go @@ -8,8 +8,8 @@ import ( "reflect" "errors" - "github.com/omercnet/pulumi-vercel/sdk/go/vercel/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" + "github.com/pulumiverse/pulumi-vercel/sdk/go/vercel/internal" ) type ProjectEnvironmentVariable struct { diff --git a/sdk/go/vercel/provider.go b/sdk/go/vercel/provider.go index 0e5e1ef..eb83d03 100644 --- a/sdk/go/vercel/provider.go +++ b/sdk/go/vercel/provider.go @@ -7,8 +7,8 @@ import ( "context" "reflect" - "github.com/omercnet/pulumi-vercel/sdk/go/vercel/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" + "github.com/pulumiverse/pulumi-vercel/sdk/go/vercel/internal" ) // The provider type for the vercel package. By default, resources use package-wide configuration diff --git a/sdk/go/vercel/pulumi-plugin.json b/sdk/go/vercel/pulumi-plugin.json index 33c9941..8bf76dc 100644 --- a/sdk/go/vercel/pulumi-plugin.json +++ b/sdk/go/vercel/pulumi-plugin.json @@ -1,4 +1,5 @@ { "resource": true, - "name": "vercel" + "name": "vercel", + "server": "github://api.github.com/pulumiverse" } diff --git a/sdk/go/vercel/pulumiTypes.go b/sdk/go/vercel/pulumiTypes.go index 09f1d24..ce0f366 100644 --- a/sdk/go/vercel/pulumiTypes.go +++ b/sdk/go/vercel/pulumiTypes.go @@ -7,8 +7,8 @@ import ( "context" "reflect" - "github.com/omercnet/pulumi-vercel/sdk/go/vercel/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" + "github.com/pulumiverse/pulumi-vercel/sdk/go/vercel/internal" ) var _ = internal.GetEnvOrDefault diff --git a/sdk/go/vercel/sharedEnvironmentVariable.go b/sdk/go/vercel/sharedEnvironmentVariable.go index 3d2c549..835f361 100644 --- a/sdk/go/vercel/sharedEnvironmentVariable.go +++ b/sdk/go/vercel/sharedEnvironmentVariable.go @@ -8,8 +8,8 @@ import ( "reflect" "errors" - "github.com/omercnet/pulumi-vercel/sdk/go/vercel/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" + "github.com/pulumiverse/pulumi-vercel/sdk/go/vercel/internal" ) type SharedEnvironmentVariable struct { diff --git a/sdk/nodejs/package.json b/sdk/nodejs/package.json index 9862a3c..d6370c2 100644 --- a/sdk/nodejs/package.json +++ b/sdk/nodejs/package.json @@ -1,19 +1,21 @@ { - "name": "@pulumi/vercel", + "name": "@pulumiverse/vercel", "version": "${VERSION}", "scripts": { "build": "tsc", "install": "node scripts/install-pulumi-plugin.js resource vercel ${VERSION}" }, "dependencies": { - "@pulumi/pulumi": "^3.42.0" + "@pulumi/pulumi": "^3.0.0" }, "devDependencies": { - "@types/node": "^14", + "@types/mime": "^2.0.0", + "@types/node": "^10.0.0", "typescript": "^4.3.5" }, "pulumi": { "resource": true, - "name": "vercel" + "name": "vercel", + "server": "github://api.github.com/pulumiverse" } } diff --git a/sdk/nodejs/scripts/install-pulumi-plugin.js b/sdk/nodejs/scripts/install-pulumi-plugin.js index fefc6e0..a4c1667 100644 --- a/sdk/nodejs/scripts/install-pulumi-plugin.js +++ b/sdk/nodejs/scripts/install-pulumi-plugin.js @@ -7,7 +7,7 @@ if (args.indexOf("${VERSION}") !== -1) { process.exit(0); } -var res = childProcess.spawnSync("pulumi", ["plugin", "install"].concat(args), { +var res = childProcess.spawnSync("pulumi", ["plugin", "install", "--server", "github://api.github.com/pulumiverse"].concat(args), { stdio: ["ignore", "inherit", "inherit"] }); diff --git a/sdk/nodejs/utilities.ts b/sdk/nodejs/utilities.ts index 2580a64..ff05d49 100644 --- a/sdk/nodejs/utilities.ts +++ b/sdk/nodejs/utilities.ts @@ -50,7 +50,7 @@ export function getVersion(): string { /** @internal */ export function resourceOptsDefaults(): any { - return { version: getVersion() }; + return { version: getVersion(), pluginDownloadURL: "github://api.github.com/pulumiverse" }; } /** @internal */ diff --git a/sdk/python/README.md b/sdk/python/README.md index 5e798d6..59bf15d 100644 --- a/sdk/python/README.md +++ b/sdk/python/README.md @@ -33,7 +33,7 @@ pip install pulumi_vercel To use from Go, use `go get` to grab the latest version of the library: ```bash -go get github.com/omercnet/pulumi-vercel/sdk/go/... +go get github.com/pulumiverse/pulumi-vercel/sdk/go/... ``` ### .NET diff --git a/sdk/python/pulumi_vercel/pulumi-plugin.json b/sdk/python/pulumi_vercel/pulumi-plugin.json deleted file mode 100644 index 33c9941..0000000 --- a/sdk/python/pulumi_vercel/pulumi-plugin.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "resource": true, - "name": "vercel" -} diff --git a/sdk/python/pulumi_vercel/README.md b/sdk/python/pulumiverse_vercel/README.md similarity index 100% rename from sdk/python/pulumi_vercel/README.md rename to sdk/python/pulumiverse_vercel/README.md diff --git a/sdk/python/pulumi_vercel/__init__.py b/sdk/python/pulumiverse_vercel/__init__.py similarity index 84% rename from sdk/python/pulumi_vercel/__init__.py rename to sdk/python/pulumiverse_vercel/__init__.py index 73e76fc..2e5ca7e 100644 --- a/sdk/python/pulumi_vercel/__init__.py +++ b/sdk/python/pulumiverse_vercel/__init__.py @@ -23,10 +23,10 @@ # Make subpackages available: if typing.TYPE_CHECKING: - import pulumi_vercel.config as __config + import pulumiverse_vercel.config as __config config = __config else: - config = _utilities.lazy_import('pulumi_vercel.config') + config = _utilities.lazy_import('pulumiverse_vercel.config') _utilities.register( resource_modules=""" @@ -34,7 +34,7 @@ { "pkg": "vercel", "mod": "index/alias", - "fqn": "pulumi_vercel", + "fqn": "pulumiverse_vercel", "classes": { "vercel:index/alias:Alias": "Alias" } @@ -42,7 +42,7 @@ { "pkg": "vercel", "mod": "index/deployment", - "fqn": "pulumi_vercel", + "fqn": "pulumiverse_vercel", "classes": { "vercel:index/deployment:Deployment": "Deployment" } @@ -50,7 +50,7 @@ { "pkg": "vercel", "mod": "index/dnsRecord", - "fqn": "pulumi_vercel", + "fqn": "pulumiverse_vercel", "classes": { "vercel:index/dnsRecord:DnsRecord": "DnsRecord" } @@ -58,7 +58,7 @@ { "pkg": "vercel", "mod": "index/project", - "fqn": "pulumi_vercel", + "fqn": "pulumiverse_vercel", "classes": { "vercel:index/project:Project": "Project" } @@ -66,7 +66,7 @@ { "pkg": "vercel", "mod": "index/projectDomain", - "fqn": "pulumi_vercel", + "fqn": "pulumiverse_vercel", "classes": { "vercel:index/projectDomain:ProjectDomain": "ProjectDomain" } @@ -74,7 +74,7 @@ { "pkg": "vercel", "mod": "index/projectEnvironmentVariable", - "fqn": "pulumi_vercel", + "fqn": "pulumiverse_vercel", "classes": { "vercel:index/projectEnvironmentVariable:ProjectEnvironmentVariable": "ProjectEnvironmentVariable" } @@ -82,7 +82,7 @@ { "pkg": "vercel", "mod": "index/sharedEnvironmentVariable", - "fqn": "pulumi_vercel", + "fqn": "pulumiverse_vercel", "classes": { "vercel:index/sharedEnvironmentVariable:SharedEnvironmentVariable": "SharedEnvironmentVariable" } @@ -94,7 +94,7 @@ { "pkg": "vercel", "token": "pulumi:providers:vercel", - "fqn": "pulumi_vercel", + "fqn": "pulumiverse_vercel", "class": "Provider" } ] diff --git a/sdk/python/pulumi_vercel/_inputs.py b/sdk/python/pulumiverse_vercel/_inputs.py similarity index 100% rename from sdk/python/pulumi_vercel/_inputs.py rename to sdk/python/pulumiverse_vercel/_inputs.py diff --git a/sdk/python/pulumi_vercel/_utilities.py b/sdk/python/pulumiverse_vercel/_utilities.py similarity index 99% rename from sdk/python/pulumi_vercel/_utilities.py rename to sdk/python/pulumiverse_vercel/_utilities.py index 2d9a3c8..0bb35cf 100644 --- a/sdk/python/pulumi_vercel/_utilities.py +++ b/sdk/python/pulumiverse_vercel/_utilities.py @@ -247,4 +247,4 @@ def lifted_func(*args, opts=None, **kwargs): return (lambda _: lifted_func) def get_plugin_download_url(): - return None + return "github://api.github.com/pulumiverse" diff --git a/sdk/python/pulumi_vercel/alias.py b/sdk/python/pulumiverse_vercel/alias.py similarity index 100% rename from sdk/python/pulumi_vercel/alias.py rename to sdk/python/pulumiverse_vercel/alias.py diff --git a/sdk/python/pulumi_vercel/config/__init__.py b/sdk/python/pulumiverse_vercel/config/__init__.py similarity index 100% rename from sdk/python/pulumi_vercel/config/__init__.py rename to sdk/python/pulumiverse_vercel/config/__init__.py diff --git a/sdk/python/pulumi_vercel/config/__init__.pyi b/sdk/python/pulumiverse_vercel/config/__init__.pyi similarity index 100% rename from sdk/python/pulumi_vercel/config/__init__.pyi rename to sdk/python/pulumiverse_vercel/config/__init__.pyi diff --git a/sdk/python/pulumi_vercel/config/vars.py b/sdk/python/pulumiverse_vercel/config/vars.py similarity index 100% rename from sdk/python/pulumi_vercel/config/vars.py rename to sdk/python/pulumiverse_vercel/config/vars.py diff --git a/sdk/python/pulumi_vercel/deployment.py b/sdk/python/pulumiverse_vercel/deployment.py similarity index 100% rename from sdk/python/pulumi_vercel/deployment.py rename to sdk/python/pulumiverse_vercel/deployment.py diff --git a/sdk/python/pulumi_vercel/dns_record.py b/sdk/python/pulumiverse_vercel/dns_record.py similarity index 100% rename from sdk/python/pulumi_vercel/dns_record.py rename to sdk/python/pulumiverse_vercel/dns_record.py diff --git a/sdk/python/pulumi_vercel/get_alias.py b/sdk/python/pulumiverse_vercel/get_alias.py similarity index 100% rename from sdk/python/pulumi_vercel/get_alias.py rename to sdk/python/pulumiverse_vercel/get_alias.py diff --git a/sdk/python/pulumi_vercel/get_file.py b/sdk/python/pulumiverse_vercel/get_file.py similarity index 100% rename from sdk/python/pulumi_vercel/get_file.py rename to sdk/python/pulumiverse_vercel/get_file.py diff --git a/sdk/python/pulumi_vercel/get_prebuilt_project.py b/sdk/python/pulumiverse_vercel/get_prebuilt_project.py similarity index 100% rename from sdk/python/pulumi_vercel/get_prebuilt_project.py rename to sdk/python/pulumiverse_vercel/get_prebuilt_project.py diff --git a/sdk/python/pulumi_vercel/get_project.py b/sdk/python/pulumiverse_vercel/get_project.py similarity index 100% rename from sdk/python/pulumi_vercel/get_project.py rename to sdk/python/pulumiverse_vercel/get_project.py diff --git a/sdk/python/pulumi_vercel/get_project_directory.py b/sdk/python/pulumiverse_vercel/get_project_directory.py similarity index 100% rename from sdk/python/pulumi_vercel/get_project_directory.py rename to sdk/python/pulumiverse_vercel/get_project_directory.py diff --git a/sdk/python/pulumi_vercel/outputs.py b/sdk/python/pulumiverse_vercel/outputs.py similarity index 100% rename from sdk/python/pulumi_vercel/outputs.py rename to sdk/python/pulumiverse_vercel/outputs.py diff --git a/sdk/python/pulumi_vercel/project.py b/sdk/python/pulumiverse_vercel/project.py similarity index 100% rename from sdk/python/pulumi_vercel/project.py rename to sdk/python/pulumiverse_vercel/project.py diff --git a/sdk/python/pulumi_vercel/project_domain.py b/sdk/python/pulumiverse_vercel/project_domain.py similarity index 100% rename from sdk/python/pulumi_vercel/project_domain.py rename to sdk/python/pulumiverse_vercel/project_domain.py diff --git a/sdk/python/pulumi_vercel/project_environment_variable.py b/sdk/python/pulumiverse_vercel/project_environment_variable.py similarity index 100% rename from sdk/python/pulumi_vercel/project_environment_variable.py rename to sdk/python/pulumiverse_vercel/project_environment_variable.py diff --git a/sdk/python/pulumi_vercel/provider.py b/sdk/python/pulumiverse_vercel/provider.py similarity index 100% rename from sdk/python/pulumi_vercel/provider.py rename to sdk/python/pulumiverse_vercel/provider.py diff --git a/sdk/python/pulumiverse_vercel/pulumi-plugin.json b/sdk/python/pulumiverse_vercel/pulumi-plugin.json new file mode 100644 index 0000000..8bf76dc --- /dev/null +++ b/sdk/python/pulumiverse_vercel/pulumi-plugin.json @@ -0,0 +1,5 @@ +{ + "resource": true, + "name": "vercel", + "server": "github://api.github.com/pulumiverse" +} diff --git a/sdk/python/pulumi_vercel/py.typed b/sdk/python/pulumiverse_vercel/py.typed similarity index 100% rename from sdk/python/pulumi_vercel/py.typed rename to sdk/python/pulumiverse_vercel/py.typed diff --git a/sdk/python/pulumi_vercel/shared_environment_variable.py b/sdk/python/pulumiverse_vercel/shared_environment_variable.py similarity index 100% rename from sdk/python/pulumi_vercel/shared_environment_variable.py rename to sdk/python/pulumiverse_vercel/shared_environment_variable.py diff --git a/sdk/python/setup.py b/sdk/python/setup.py index b2bc464..ea6a45b 100644 --- a/sdk/python/setup.py +++ b/sdk/python/setup.py @@ -15,7 +15,7 @@ class InstallPluginCommand(install): def run(self): install.run(self) try: - check_call(['pulumi', 'plugin', 'install', 'resource', 'vercel', PLUGIN_VERSION]) + check_call(['pulumi', 'plugin', 'install', 'resource', 'vercel', PLUGIN_VERSION, '--server', 'github://api.github.com/pulumiverse']) except OSError as error: if error.errno == errno.ENOENT: print(f""" @@ -37,7 +37,7 @@ def readme(): return "vercel Pulumi Package - Development Version" -setup(name='pulumi_vercel', +setup(name='pulumiverse_vercel', python_requires='>=3.7', version=VERSION, long_description=readme(), @@ -47,14 +47,14 @@ def readme(): }, packages=find_packages(), package_data={ - 'pulumi_vercel': [ + 'pulumiverse_vercel': [ 'py.typed', 'pulumi-plugin.json', ] }, install_requires=[ 'parver>=0.2.1', - 'pulumi', + 'pulumi>=3.0.0,<4.0.0', 'semver>=2.8.1' ], zip_safe=False)