diff --git a/provider/cmd/pulumi-resource-spacelift/schema.json b/provider/cmd/pulumi-resource-spacelift/schema.json
index 86f1865..0c0d86b 100644
--- a/provider/cmd/pulumi-resource-spacelift/schema.json
+++ b/provider/cmd/pulumi-resource-spacelift/schema.json
@@ -118,6 +118,14 @@
},
"spacelift:index/ModuleAzureDevops:ModuleAzureDevops": {
"properties": {
+ "id": {
+ "type": "string",
+ "description": "ID of the Azure Devops integration. If not specified, the default integration will be used.\n"
+ },
+ "isDefault": {
+ "type": "boolean",
+ "description": "Indicates whether this is the default Azure DevOps integration\n"
+ },
"project": {
"type": "string",
"description": "The name of the Azure DevOps project\n"
@@ -126,10 +134,26 @@
"type": "object",
"required": [
"project"
- ]
+ ],
+ "language": {
+ "nodejs": {
+ "requiredOutputs": [
+ "isDefault",
+ "project"
+ ]
+ }
+ }
},
"spacelift:index/ModuleBitbucketCloud:ModuleBitbucketCloud": {
"properties": {
+ "id": {
+ "type": "string",
+ "description": "The ID of the Bitbucket Cloud integration. If not specified, the default integration will be used.\n"
+ },
+ "isDefault": {
+ "type": "boolean",
+ "description": "Indicates whether this is the default Bitbucket Cloud integration\n"
+ },
"namespace": {
"type": "string",
"description": "The Bitbucket project containing the repository\n"
@@ -138,10 +162,26 @@
"type": "object",
"required": [
"namespace"
- ]
+ ],
+ "language": {
+ "nodejs": {
+ "requiredOutputs": [
+ "isDefault",
+ "namespace"
+ ]
+ }
+ }
},
"spacelift:index/ModuleBitbucketDatacenter:ModuleBitbucketDatacenter": {
"properties": {
+ "id": {
+ "type": "string",
+ "description": "The ID of the Bitbucket Datacenter integration. If not specified, the default integration will be used.\n"
+ },
+ "isDefault": {
+ "type": "boolean",
+ "description": "Indicates whether this is the default Bitbucket Datacenter integration\n"
+ },
"namespace": {
"type": "string",
"description": "The Bitbucket project containing the repository\n"
@@ -150,10 +190,26 @@
"type": "object",
"required": [
"namespace"
- ]
+ ],
+ "language": {
+ "nodejs": {
+ "requiredOutputs": [
+ "isDefault",
+ "namespace"
+ ]
+ }
+ }
},
"spacelift:index/ModuleGithubEnterprise:ModuleGithubEnterprise": {
"properties": {
+ "id": {
+ "type": "string",
+ "description": "The ID of the GitHub Enterprise integration. If not specified, the default integration will be used.\n"
+ },
+ "isDefault": {
+ "type": "boolean",
+ "description": "Indicates whether this is the default GitHub Enterprise integration\n"
+ },
"namespace": {
"type": "string",
"description": "The GitHub organization / user the repository belongs to\n"
@@ -162,10 +218,26 @@
"type": "object",
"required": [
"namespace"
- ]
+ ],
+ "language": {
+ "nodejs": {
+ "requiredOutputs": [
+ "isDefault",
+ "namespace"
+ ]
+ }
+ }
},
"spacelift:index/ModuleGitlab:ModuleGitlab": {
"properties": {
+ "id": {
+ "type": "string",
+ "description": "ID of the Gitlab integration. If not specified, the default integration will be used.\n"
+ },
+ "isDefault": {
+ "type": "boolean",
+ "description": "Indicates whether this is the default GitLab integration\n"
+ },
"namespace": {
"type": "string",
"description": "The GitLab namespace containing the repository\n"
@@ -174,7 +246,15 @@
"type": "object",
"required": [
"namespace"
- ]
+ ],
+ "language": {
+ "nodejs": {
+ "requiredOutputs": [
+ "isDefault",
+ "namespace"
+ ]
+ }
+ }
},
"spacelift:index/StackAnsible:StackAnsible": {
"properties": {
@@ -190,6 +270,14 @@
},
"spacelift:index/StackAzureDevops:StackAzureDevops": {
"properties": {
+ "id": {
+ "type": "string",
+ "description": "The ID of the Azure Devops integration. If not specified, the default integration will be used.\n"
+ },
+ "isDefault": {
+ "type": "boolean",
+ "description": "Indicates whether this is the default Azure DevOps integration\n"
+ },
"project": {
"type": "string",
"description": "The name of the Azure DevOps project\n"
@@ -198,10 +286,26 @@
"type": "object",
"required": [
"project"
- ]
+ ],
+ "language": {
+ "nodejs": {
+ "requiredOutputs": [
+ "isDefault",
+ "project"
+ ]
+ }
+ }
},
"spacelift:index/StackBitbucketCloud:StackBitbucketCloud": {
"properties": {
+ "id": {
+ "type": "string",
+ "description": "The ID of the Bitbucket Cloud integration. If not specified, the default integration will be used.\n"
+ },
+ "isDefault": {
+ "type": "boolean",
+ "description": "Indicates whether this is the default Bitbucket Cloud integration\n"
+ },
"namespace": {
"type": "string",
"description": "The Bitbucket project containing the repository\n"
@@ -210,10 +314,26 @@
"type": "object",
"required": [
"namespace"
- ]
+ ],
+ "language": {
+ "nodejs": {
+ "requiredOutputs": [
+ "isDefault",
+ "namespace"
+ ]
+ }
+ }
},
"spacelift:index/StackBitbucketDatacenter:StackBitbucketDatacenter": {
"properties": {
+ "id": {
+ "type": "string",
+ "description": "The ID of the Bitbucket Datacenter integration. If not specified, the default integration will be used.\n"
+ },
+ "isDefault": {
+ "type": "boolean",
+ "description": "Indicates whether this is the default Bitbucket Datacenter integration\n"
+ },
"namespace": {
"type": "string",
"description": "The Bitbucket project containing the repository\n"
@@ -222,7 +342,15 @@
"type": "object",
"required": [
"namespace"
- ]
+ ],
+ "language": {
+ "nodejs": {
+ "requiredOutputs": [
+ "isDefault",
+ "namespace"
+ ]
+ }
+ }
},
"spacelift:index/StackCloudformation:StackCloudformation": {
"properties": {
@@ -253,6 +381,14 @@
},
"spacelift:index/StackGithubEnterprise:StackGithubEnterprise": {
"properties": {
+ "id": {
+ "type": "string",
+ "description": "The ID of the GitHub Enterprise integration. If not specified, the default integration will be used.\n"
+ },
+ "isDefault": {
+ "type": "boolean",
+ "description": "Indicates whether this is the default GitHub Enterprise integration\n"
+ },
"namespace": {
"type": "string",
"description": "The GitHub organization / user the repository belongs to\n"
@@ -261,10 +397,26 @@
"type": "object",
"required": [
"namespace"
- ]
+ ],
+ "language": {
+ "nodejs": {
+ "requiredOutputs": [
+ "isDefault",
+ "namespace"
+ ]
+ }
+ }
},
"spacelift:index/StackGitlab:StackGitlab": {
"properties": {
+ "id": {
+ "type": "string",
+ "description": "The ID of the Gitlab integration. If not specified, the default integration will be used.\n"
+ },
+ "isDefault": {
+ "type": "boolean",
+ "description": "Indicates whether this is the default GitLab integration\n"
+ },
"namespace": {
"type": "string",
"description": "The GitLab namespace containing the repository\n"
@@ -273,7 +425,15 @@
"type": "object",
"required": [
"namespace"
- ]
+ ],
+ "language": {
+ "nodejs": {
+ "requiredOutputs": [
+ "isDefault",
+ "namespace"
+ ]
+ }
+ }
},
"spacelift:index/StackKubernetes:StackKubernetes": {
"properties": {
@@ -537,12 +697,20 @@
},
"spacelift:index/getModuleAzureDevop:getModuleAzureDevop": {
"properties": {
+ "id": {
+ "type": "string"
+ },
+ "isDefault": {
+ "type": "boolean"
+ },
"project": {
"type": "string"
}
},
"type": "object",
"required": [
+ "id",
+ "isDefault",
"project"
],
"language": {
@@ -553,12 +721,20 @@
},
"spacelift:index/getModuleBitbucketCloud:getModuleBitbucketCloud": {
"properties": {
+ "id": {
+ "type": "string"
+ },
+ "isDefault": {
+ "type": "boolean"
+ },
"namespace": {
"type": "string"
}
},
"type": "object",
"required": [
+ "id",
+ "isDefault",
"namespace"
],
"language": {
@@ -569,12 +745,20 @@
},
"spacelift:index/getModuleBitbucketDatacenter:getModuleBitbucketDatacenter": {
"properties": {
+ "id": {
+ "type": "string"
+ },
+ "isDefault": {
+ "type": "boolean"
+ },
"namespace": {
"type": "string"
}
},
"type": "object",
"required": [
+ "id",
+ "isDefault",
"namespace"
],
"language": {
@@ -585,12 +769,20 @@
},
"spacelift:index/getModuleGithubEnterprise:getModuleGithubEnterprise": {
"properties": {
+ "id": {
+ "type": "string"
+ },
+ "isDefault": {
+ "type": "boolean"
+ },
"namespace": {
"type": "string"
}
},
"type": "object",
"required": [
+ "id",
+ "isDefault",
"namespace"
],
"language": {
@@ -601,12 +793,20 @@
},
"spacelift:index/getModuleGitlab:getModuleGitlab": {
"properties": {
+ "id": {
+ "type": "string"
+ },
+ "isDefault": {
+ "type": "boolean"
+ },
"namespace": {
"type": "string"
}
},
"type": "object",
"required": [
+ "id",
+ "isDefault",
"namespace"
],
"language": {
@@ -707,12 +907,20 @@
},
"spacelift:index/getStackAzureDevop:getStackAzureDevop": {
"properties": {
+ "id": {
+ "type": "string"
+ },
+ "isDefault": {
+ "type": "boolean"
+ },
"project": {
"type": "string"
}
},
"type": "object",
"required": [
+ "id",
+ "isDefault",
"project"
],
"language": {
@@ -723,12 +931,20 @@
},
"spacelift:index/getStackBitbucketCloud:getStackBitbucketCloud": {
"properties": {
+ "id": {
+ "type": "string"
+ },
+ "isDefault": {
+ "type": "boolean"
+ },
"namespace": {
"type": "string"
}
},
"type": "object",
"required": [
+ "id",
+ "isDefault",
"namespace"
],
"language": {
@@ -739,12 +955,20 @@
},
"spacelift:index/getStackBitbucketDatacenter:getStackBitbucketDatacenter": {
"properties": {
+ "id": {
+ "type": "string"
+ },
+ "isDefault": {
+ "type": "boolean"
+ },
"namespace": {
"type": "string"
}
},
"type": "object",
"required": [
+ "id",
+ "isDefault",
"namespace"
],
"language": {
@@ -783,12 +1007,20 @@
},
"spacelift:index/getStackGithubEnterprise:getStackGithubEnterprise": {
"properties": {
+ "id": {
+ "type": "string"
+ },
+ "isDefault": {
+ "type": "boolean"
+ },
"namespace": {
"type": "string"
}
},
"type": "object",
"required": [
+ "id",
+ "isDefault",
"namespace"
],
"language": {
@@ -799,12 +1031,20 @@
},
"spacelift:index/getStackGitlab:getStackGitlab": {
"properties": {
+ "id": {
+ "type": "string"
+ },
+ "isDefault": {
+ "type": "boolean"
+ },
"namespace": {
"type": "string"
}
},
"type": "object",
"required": [
+ "id",
+ "isDefault",
"namespace"
],
"language": {
@@ -991,6 +1231,12 @@
},
"spacelift:index/getStacksStack:getStacksStack": {
"properties": {
+ "additionalProjectGlobs": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
"administrative": {
"type": "boolean"
},
@@ -1263,12 +1509,20 @@
},
"spacelift:index/getStacksStackAzureDevop:getStacksStackAzureDevop": {
"properties": {
+ "id": {
+ "type": "string"
+ },
+ "isDefault": {
+ "type": "boolean"
+ },
"project": {
"type": "string"
}
},
"type": "object",
"required": [
+ "id",
+ "isDefault",
"project"
],
"language": {
@@ -1279,12 +1533,20 @@
},
"spacelift:index/getStacksStackBitbucketCloud:getStacksStackBitbucketCloud": {
"properties": {
+ "id": {
+ "type": "string"
+ },
+ "isDefault": {
+ "type": "boolean"
+ },
"namespace": {
"type": "string"
}
},
"type": "object",
"required": [
+ "id",
+ "isDefault",
"namespace"
],
"language": {
@@ -1295,12 +1557,20 @@
},
"spacelift:index/getStacksStackBitbucketDatacenter:getStacksStackBitbucketDatacenter": {
"properties": {
+ "id": {
+ "type": "string"
+ },
+ "isDefault": {
+ "type": "boolean"
+ },
"namespace": {
"type": "string"
}
},
"type": "object",
"required": [
+ "id",
+ "isDefault",
"namespace"
],
"language": {
@@ -1339,12 +1609,20 @@
},
"spacelift:index/getStacksStackGithubEnterprise:getStacksStackGithubEnterprise": {
"properties": {
+ "id": {
+ "type": "string"
+ },
+ "isDefault": {
+ "type": "boolean"
+ },
"namespace": {
"type": "string"
}
},
"type": "object",
"required": [
+ "id",
+ "isDefault",
"namespace"
],
"language": {
@@ -1355,12 +1633,20 @@
},
"spacelift:index/getStacksStackGitlab:getStacksStackGitlab": {
"properties": {
+ "id": {
+ "type": "string"
+ },
+ "isDefault": {
+ "type": "boolean"
+ },
"namespace": {
"type": "string"
}
},
"type": "object",
"required": [
+ "id",
+ "isDefault",
"namespace"
],
"language": {
@@ -1609,39 +1895,113 @@
}
},
"resources": {
- "spacelift:index/awsIntegration:AwsIntegration": {
- "description": "`spacelift.AwsIntegration` represents an integration with an AWS account. This integration is account-level and needs to be explicitly attached to individual stacks in order to take effect.\n\nNote: when assuming credentials for **shared workers**, Spacelift will use `$accountName@$integrationID@$stackID@$suffix` or `$accountName@$integrationID@$moduleID@$suffix` as [external ID](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-user_externalid.html) and `$runID@$stackID@$accountName` truncated to 64 characters as [session ID](https://docs.aws.amazon.com/STS/latest/APIReference/API_AssumeRole),$suffix will be `read` or `write`.\n\n\n## Import\n\n\n\n```sh\n $ pulumi import spacelift:index/awsIntegration:AwsIntegration read_write_integration $INTEGRATION_ID\n```\n\n ",
+ "spacelift:index/auditTrailWebhook:AuditTrailWebhook": {
+ "description": "`spacelift.AuditTrailWebhook` represents a webhook endpoint to which Spacelift sends POST requests about audit events.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as spacelift from \"@spacelift-io/pulumi-spacelift\";\n\nconst example = new spacelift.AuditTrailWebhook(\"example\", {\n enabled: true,\n endpoint: \"https://example.com\",\n secret: \"mysecretkey\",\n});\n```\n```python\nimport pulumi\nimport pulumi_spacelift as spacelift\n\nexample = spacelift.AuditTrailWebhook(\"example\",\n enabled=True,\n endpoint=\"https://example.com\",\n secret=\"mysecretkey\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Spacelift = Pulumi.Spacelift;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Spacelift.AuditTrailWebhook(\"example\", new()\n {\n Enabled = true,\n Endpoint = \"https://example.com\",\n Secret = \"mysecretkey\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/spacelift-io/pulumi-spacelift/sdk/v2/go/spacelift\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := spacelift.NewAuditTrailWebhook(ctx, \"example\", \u0026spacelift.AuditTrailWebhookArgs{\n\t\t\tEnabled: pulumi.Bool(true),\n\t\t\tEndpoint: pulumi.String(\"https://example.com\"),\n\t\t\tSecret: pulumi.String(\"mysecretkey\"),\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.spacelift.AuditTrailWebhook;\nimport com.pulumi.spacelift.AuditTrailWebhookArgs;\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 example = new AuditTrailWebhook(\"example\", AuditTrailWebhookArgs.builder() \n .enabled(true)\n .endpoint(\"https://example.com\")\n .secret(\"mysecretkey\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: spacelift:AuditTrailWebhook\n properties:\n enabled: true\n endpoint: https://example.com\n secret: mysecretkey\n```\n{{% /example %}}\n{{% /examples %}}",
"properties": {
- "durationSeconds": {
- "type": "integer",
- "description": "Duration in seconds for which the assumed role credentials should be valid. Defaults to `900`.\n"
- },
- "externalId": {
- "type": "string",
- "description": "Custom external ID (works only for private workers).\n"
- },
- "generateCredentialsInWorker": {
+ "enabled": {
"type": "boolean",
- "description": "Generate AWS credentials in the private worker. Defaults to `false`.\n"
- },
- "labels": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "Labels to set on the integration\n"
+ "description": "`enabled` determines whether the webhook is enabled. If it is not, Spacelift will not send any requests to the endpoint.\n"
},
- "name": {
+ "endpoint": {
"type": "string",
- "description": "The friendly name of the integration\n"
+ "description": "`endpoint` is the URL to which Spacelift will send POST requests about audit events.\n"
},
- "roleArn": {
- "type": "string",
- "description": "ARN of the AWS IAM role to attach\n"
+ "includeRuns": {
+ "type": "boolean",
+ "description": "`include_runs` determines whether the webhook should include information about the run that triggered the event.\n"
},
- "spaceId": {
+ "secret": {
"type": "string",
- "description": "ID (slug) of the space the integration is in\n"
+ "description": "`secret` is a secret that Spacelift will send with the request\n",
+ "secret": true
+ }
+ },
+ "required": [
+ "enabled",
+ "endpoint",
+ "secret"
+ ],
+ "inputProperties": {
+ "enabled": {
+ "type": "boolean",
+ "description": "`enabled` determines whether the webhook is enabled. If it is not, Spacelift will not send any requests to the endpoint.\n"
+ },
+ "endpoint": {
+ "type": "string",
+ "description": "`endpoint` is the URL to which Spacelift will send POST requests about audit events.\n"
+ },
+ "includeRuns": {
+ "type": "boolean",
+ "description": "`include_runs` determines whether the webhook should include information about the run that triggered the event.\n"
+ },
+ "secret": {
+ "type": "string",
+ "description": "`secret` is a secret that Spacelift will send with the request\n",
+ "secret": true
+ }
+ },
+ "requiredInputs": [
+ "enabled",
+ "endpoint",
+ "secret"
+ ],
+ "stateInputs": {
+ "description": "Input properties used for looking up and filtering AuditTrailWebhook resources.\n",
+ "properties": {
+ "enabled": {
+ "type": "boolean",
+ "description": "`enabled` determines whether the webhook is enabled. If it is not, Spacelift will not send any requests to the endpoint.\n"
+ },
+ "endpoint": {
+ "type": "string",
+ "description": "`endpoint` is the URL to which Spacelift will send POST requests about audit events.\n"
+ },
+ "includeRuns": {
+ "type": "boolean",
+ "description": "`include_runs` determines whether the webhook should include information about the run that triggered the event.\n"
+ },
+ "secret": {
+ "type": "string",
+ "description": "`secret` is a secret that Spacelift will send with the request\n",
+ "secret": true
+ }
+ },
+ "type": "object"
+ }
+ },
+ "spacelift:index/awsIntegration:AwsIntegration": {
+ "description": "`spacelift.AwsIntegration` represents an integration with an AWS account. This integration is account-level and needs to be explicitly attached to individual stacks in order to take effect.\n\nNote: when assuming credentials for **shared workers**, Spacelift will use `$accountName@$integrationID@$stackID@$suffix` or `$accountName@$integrationID@$moduleID@$suffix` as [external ID](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-user_externalid.html) and `$runID@$stackID@$accountName` truncated to 64 characters as [session ID](https://docs.aws.amazon.com/STS/latest/APIReference/API_AssumeRole),$suffix will be `read` or `write`.\n\n\n## Import\n\n\n\n```sh\n $ pulumi import spacelift:index/awsIntegration:AwsIntegration read_write_integration $INTEGRATION_ID\n```\n\n ",
+ "properties": {
+ "durationSeconds": {
+ "type": "integer",
+ "description": "Duration in seconds for which the assumed role credentials should be valid. Defaults to `900`.\n"
+ },
+ "externalId": {
+ "type": "string",
+ "description": "Custom external ID (works only for private workers).\n"
+ },
+ "generateCredentialsInWorker": {
+ "type": "boolean",
+ "description": "Generate AWS credentials in the private worker. Defaults to `false`.\n"
+ },
+ "labels": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "Labels to set on the integration\n"
+ },
+ "name": {
+ "type": "string",
+ "description": "The friendly name of the integration\n"
+ },
+ "roleArn": {
+ "type": "string",
+ "description": "ARN of the AWS IAM role to attach\n"
+ },
+ "spaceId": {
+ "type": "string",
+ "description": "ID (slug) of the space the integration is in\n"
}
},
"required": [
@@ -2254,6 +2614,83 @@
"spacelift:index/context:Context": {
"description": "`spacelift.Context` represents a Spacelift **context** - a collection of configuration elements (either environment variables or mounted files) that can be administratively attached to multiple stacks (`spacelift.Stack`) or modules (`spacelift.Module`) using a context attachment (`spacelift.ContextAttachment`)`\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as spacelift from \"@spacelift-io/pulumi-spacelift\";\n\nconst prod_k8s_ie = new spacelift.Context(\"prod-k8s-ie\", {description: \"Configuration details for the compute cluster in 🇮🇪\"});\n```\n```python\nimport pulumi\nimport pulumi_spacelift as spacelift\n\nprod_k8s_ie = spacelift.Context(\"prod-k8s-ie\", description=\"Configuration details for the compute cluster in 🇮🇪\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Spacelift = Pulumi.Spacelift;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var prod_k8s_ie = new Spacelift.Context(\"prod-k8s-ie\", new()\n {\n Description = \"Configuration details for the compute cluster in 🇮🇪\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/spacelift-io/pulumi-spacelift/sdk/v2/go/spacelift\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := spacelift.NewContext(ctx, \"prod-k8s-ie\", \u0026spacelift.ContextArgs{\n\t\t\tDescription: pulumi.String(\"Configuration details for the compute cluster in 🇮🇪\"),\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.spacelift.Context;\nimport com.pulumi.spacelift.ContextArgs;\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 prod_k8s_ie = new Context(\"prod-k8s-ie\", ContextArgs.builder() \n .description(\"Configuration details for the compute cluster in 🇮🇪\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n prod-k8s-ie:\n type: spacelift:Context\n properties:\n description: \"Configuration details for the compute cluster in \\U0001F1EE\\U0001F1EA\"\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\n\n\n```sh\n $ pulumi import spacelift:index/context:Context prod-k8s-ie $CONTEXT_ID\n```\n\n ",
"properties": {
+ "afterApplies": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of after-apply scripts\n"
+ },
+ "afterDestroys": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of after-destroy scripts\n"
+ },
+ "afterInits": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of after-init scripts\n"
+ },
+ "afterPerforms": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of after-perform scripts\n"
+ },
+ "afterPlans": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of after-plan scripts\n"
+ },
+ "afterRuns": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of after-run scripts\n"
+ },
+ "beforeApplies": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of before-apply scripts\n"
+ },
+ "beforeDestroys": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of before-destroy scripts\n"
+ },
+ "beforeInits": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of before-init scripts\n"
+ },
+ "beforePerforms": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of before-perform scripts\n"
+ },
+ "beforePlans": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of before-plan scripts\n"
+ },
"description": {
"type": "string",
"description": "Free-form context description for users\n"
@@ -2278,6 +2715,83 @@
"spaceId"
],
"inputProperties": {
+ "afterApplies": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of after-apply scripts\n"
+ },
+ "afterDestroys": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of after-destroy scripts\n"
+ },
+ "afterInits": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of after-init scripts\n"
+ },
+ "afterPerforms": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of after-perform scripts\n"
+ },
+ "afterPlans": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of after-plan scripts\n"
+ },
+ "afterRuns": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of after-run scripts\n"
+ },
+ "beforeApplies": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of before-apply scripts\n"
+ },
+ "beforeDestroys": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of before-destroy scripts\n"
+ },
+ "beforeInits": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of before-init scripts\n"
+ },
+ "beforePerforms": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of before-perform scripts\n"
+ },
+ "beforePlans": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of before-plan scripts\n"
+ },
"description": {
"type": "string",
"description": "Free-form context description for users\n"
@@ -2301,6 +2815,83 @@
"stateInputs": {
"description": "Input properties used for looking up and filtering Context resources.\n",
"properties": {
+ "afterApplies": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of after-apply scripts\n"
+ },
+ "afterDestroys": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of after-destroy scripts\n"
+ },
+ "afterInits": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of after-init scripts\n"
+ },
+ "afterPerforms": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of after-perform scripts\n"
+ },
+ "afterPlans": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of after-plan scripts\n"
+ },
+ "afterRuns": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of after-run scripts\n"
+ },
+ "beforeApplies": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of before-apply scripts\n"
+ },
+ "beforeDestroys": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of before-destroy scripts\n"
+ },
+ "beforeInits": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of before-init scripts\n"
+ },
+ "beforePerforms": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of before-perform scripts\n"
+ },
+ "beforePlans": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of before-plan scripts\n"
+ },
"description": {
"type": "string",
"description": "Free-form context description for users\n"
@@ -2604,7 +3195,7 @@
}
},
"spacelift:index/gcpServiceAccount:GcpServiceAccount": {
- "description": "{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as google from \"@pulumi/google\";\nimport * as spacelift from \"@spacelift-io/pulumi-spacelift\";\n\nconst k8s_coreStack = new spacelift.Stack(\"k8s-coreStack\", {\n branch: \"master\",\n repository: \"core-infra\",\n});\nconst k8s_coreGcpServiceAccount = new spacelift.GcpServiceAccount(\"k8s-coreGcpServiceAccount\", {\n stackId: k8s_coreStack.id,\n tokenScopes: [\n \"https://www.googleapis.com/auth/compute\",\n \"https://www.googleapis.com/auth/cloud-platform\",\n \"https://www.googleapis.com/auth/devstorage.full_control\",\n ],\n});\nconst k8s_coregoogle_project = new google.index.Google_project(\"k8s-coregoogle_project\", {\n name: \"Kubernetes code\",\n projectId: \"unicorn-k8s-core\",\n orgId: _var.gcp_organization_id,\n});\nconst k8s_coregoogle_project_iam_member = new google.index.Google_project_iam_member(\"k8s-coregoogle_project_iam_member\", {\n project: k8s_coregoogle_project.id,\n role: \"roles/owner\",\n member: `serviceAccount:${k8s_coreGcpServiceAccount.serviceAccountEmail}`,\n});\n```\n```python\nimport pulumi\nimport pulumi_google as google\nimport pulumi_spacelift as spacelift\n\nk8s_core_stack = spacelift.Stack(\"k8s-coreStack\",\n branch=\"master\",\n repository=\"core-infra\")\nk8s_core_gcp_service_account = spacelift.GcpServiceAccount(\"k8s-coreGcpServiceAccount\",\n stack_id=k8s_core_stack.id,\n token_scopes=[\n \"https://www.googleapis.com/auth/compute\",\n \"https://www.googleapis.com/auth/cloud-platform\",\n \"https://www.googleapis.com/auth/devstorage.full_control\",\n ])\nk8s_coregoogle_project = google.index.Google_project(\"k8s-coregoogle_project\",\n name=Kubernetes code,\n project_id=unicorn-k8s-core,\n org_id=var.gcp_organization_id)\nk8s_coregoogle_project_iam_member = google.index.Google_project_iam_member(\"k8s-coregoogle_project_iam_member\",\n project=k8s_coregoogle_project.id,\n role=roles/owner,\n member=fserviceAccount:{k8s_core_gcp_service_account.service_account_email})\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Google = Pulumi.Google;\nusing Spacelift = Pulumi.Spacelift;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var k8s_coreStack = new Spacelift.Stack(\"k8s-coreStack\", new()\n {\n Branch = \"master\",\n Repository = \"core-infra\",\n });\n\n var k8s_coreGcpServiceAccount = new Spacelift.GcpServiceAccount(\"k8s-coreGcpServiceAccount\", new()\n {\n StackId = k8s_coreStack.Id,\n TokenScopes = new[]\n {\n \"https://www.googleapis.com/auth/compute\",\n \"https://www.googleapis.com/auth/cloud-platform\",\n \"https://www.googleapis.com/auth/devstorage.full_control\",\n },\n });\n\n var k8s_coregoogle_project = new Google.Index.Google_project(\"k8s-coregoogle_project\", new()\n {\n Name = \"Kubernetes code\",\n ProjectId = \"unicorn-k8s-core\",\n OrgId = @var.Gcp_organization_id,\n });\n\n var k8s_coregoogle_project_iam_member = new Google.Index.Google_project_iam_member(\"k8s-coregoogle_project_iam_member\", new()\n {\n Project = k8s_coregoogle_project.Id,\n Role = \"roles/owner\",\n Member = $\"serviceAccount:{k8s_coreGcpServiceAccount.ServiceAccountEmail}\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/pulumi/pulumi-google/sdk/v1/go/google\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/spacelift-io/pulumi-spacelift/sdk/v2/go/spacelift\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := spacelift.NewStack(ctx, \"k8s-coreStack\", \u0026spacelift.StackArgs{\n\t\t\tBranch: pulumi.String(\"master\"),\n\t\t\tRepository: pulumi.String(\"core-infra\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = spacelift.NewGcpServiceAccount(ctx, \"k8s-coreGcpServiceAccount\", \u0026spacelift.GcpServiceAccountArgs{\n\t\t\tStackId: k8s_coreStack.ID(),\n\t\t\tTokenScopes: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"https://www.googleapis.com/auth/compute\"),\n\t\t\t\tpulumi.String(\"https://www.googleapis.com/auth/cloud-platform\"),\n\t\t\t\tpulumi.String(\"https://www.googleapis.com/auth/devstorage.full_control\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = index.NewGoogle_project(ctx, \"k8s-coregoogle_project\", \u0026index.Google_projectArgs{\n\t\t\tName: \"Kubernetes code\",\n\t\t\tProjectId: \"unicorn-k8s-core\",\n\t\t\tOrgId: _var.Gcp_organization_id,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = index.NewGoogle_project_iam_member(ctx, \"k8s-coregoogle_project_iam_member\", \u0026index.Google_project_iam_memberArgs{\n\t\t\tProject: k8s_coregoogle_project.Id,\n\t\t\tRole: \"roles/owner\",\n\t\t\tMember: pulumi.String(fmt.Sprintf(\"serviceAccount:%v\", k8s_coreGcpServiceAccount.ServiceAccountEmail)),\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.spacelift.Stack;\nimport com.pulumi.spacelift.StackArgs;\nimport com.pulumi.spacelift.GcpServiceAccount;\nimport com.pulumi.spacelift.GcpServiceAccountArgs;\nimport com.pulumi.google.google_project;\nimport com.pulumi.google.Google_projectArgs;\nimport com.pulumi.google.google_project_iam_member;\nimport com.pulumi.google.Google_project_iam_memberArgs;\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 k8s_coreStack = new Stack(\"k8s-coreStack\", StackArgs.builder() \n .branch(\"master\")\n .repository(\"core-infra\")\n .build());\n\n var k8s_coreGcpServiceAccount = new GcpServiceAccount(\"k8s-coreGcpServiceAccount\", GcpServiceAccountArgs.builder() \n .stackId(k8s_coreStack.id())\n .tokenScopes( \n \"https://www.googleapis.com/auth/compute\",\n \"https://www.googleapis.com/auth/cloud-platform\",\n \"https://www.googleapis.com/auth/devstorage.full_control\")\n .build());\n\n var k8s_coregoogle_project = new Google_project(\"k8s-coregoogle_project\", Google_projectArgs.builder() \n .name(\"Kubernetes code\")\n .projectId(\"unicorn-k8s-core\")\n .orgId(var_.gcp_organization_id())\n .build());\n\n var k8s_coregoogle_project_iam_member = new Google_project_iam_member(\"k8s-coregoogle_project_iam_member\", Google_project_iam_memberArgs.builder() \n .project(k8s_coregoogle_project.id())\n .role(\"roles/owner\")\n .member(k8s_coreGcpServiceAccount.serviceAccountEmail().applyValue(serviceAccountEmail -\u003e String.format(\"serviceAccount:%s\", serviceAccountEmail)))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n k8s-coreStack:\n type: spacelift:Stack\n properties:\n branch: master\n repository: core-infra\n k8s-coreGcpServiceAccount:\n type: spacelift:GcpServiceAccount\n properties:\n stackId: ${[\"k8s-coreStack\"].id}\n tokenScopes:\n - https://www.googleapis.com/auth/compute\n - https://www.googleapis.com/auth/cloud-platform\n - https://www.googleapis.com/auth/devstorage.full_control\n k8s-coregoogle_project:\n type: google:google_project\n properties:\n name: Kubernetes code\n projectId: unicorn-k8s-core\n orgId: ${var.gcp_organization_id}\n k8s-coregoogle_project_iam_member:\n type: google:google_project_iam_member\n properties:\n project: ${[\"k8s-coregoogle_project\"].id}\n role: roles/owner\n member: serviceAccount:${[\"k8s-coreGcpServiceAccount\"].serviceAccountEmail}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\n\n\n```sh\n $ pulumi import spacelift:index/gcpServiceAccount:GcpServiceAccount k8s-core stack/$STACK_ID\n```\n\n\n\n```sh\n $ pulumi import spacelift:index/gcpServiceAccount:GcpServiceAccount k8s-core module/$MODULE_ID\n```\n\n ",
+ "description": "{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as gcp from \"@pulumi/gcp\";\nimport * as spacelift from \"@spacelift-io/pulumi-spacelift\";\n\nconst k8s_coreStack = new spacelift.Stack(\"k8s-coreStack\", {\n branch: \"master\",\n repository: \"core-infra\",\n});\nconst k8s_coreGcpServiceAccount = new spacelift.GcpServiceAccount(\"k8s-coreGcpServiceAccount\", {\n stackId: k8s_coreStack.id,\n tokenScopes: [\n \"https://www.googleapis.com/auth/compute\",\n \"https://www.googleapis.com/auth/cloud-platform\",\n \"https://www.googleapis.com/auth/devstorage.full_control\",\n ],\n});\nconst k8s_coreProject = new gcp.organizations.Project(\"k8s-coreProject\", {\n projectId: \"unicorn-k8s-core\",\n orgId: _var.gcp_organization_id,\n});\nconst k8s_coreIAMMember = new gcp.projects.IAMMember(\"k8s-coreIAMMember\", {\n project: k8s_coreProject.id,\n role: \"roles/owner\",\n member: pulumi.interpolate`serviceAccount:${k8s_coreGcpServiceAccount.serviceAccountEmail}`,\n});\n```\n```python\nimport pulumi\nimport pulumi_gcp as gcp\nimport pulumi_spacelift as spacelift\n\nk8s_core_stack = spacelift.Stack(\"k8s-coreStack\",\n branch=\"master\",\n repository=\"core-infra\")\nk8s_core_gcp_service_account = spacelift.GcpServiceAccount(\"k8s-coreGcpServiceAccount\",\n stack_id=k8s_core_stack.id,\n token_scopes=[\n \"https://www.googleapis.com/auth/compute\",\n \"https://www.googleapis.com/auth/cloud-platform\",\n \"https://www.googleapis.com/auth/devstorage.full_control\",\n ])\nk8s_core_project = gcp.organizations.Project(\"k8s-coreProject\",\n project_id=\"unicorn-k8s-core\",\n org_id=var[\"gcp_organization_id\"])\nk8s_core_iam_member = gcp.projects.IAMMember(\"k8s-coreIAMMember\",\n project=k8s_core_project.id,\n role=\"roles/owner\",\n member=k8s_core_gcp_service_account.service_account_email.apply(lambda service_account_email: f\"serviceAccount:{service_account_email}\"))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Gcp = Pulumi.Gcp;\nusing Spacelift = Pulumi.Spacelift;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var k8s_coreStack = new Spacelift.Stack(\"k8s-coreStack\", new()\n {\n Branch = \"master\",\n Repository = \"core-infra\",\n });\n\n var k8s_coreGcpServiceAccount = new Spacelift.GcpServiceAccount(\"k8s-coreGcpServiceAccount\", new()\n {\n StackId = k8s_coreStack.Id,\n TokenScopes = new[]\n {\n \"https://www.googleapis.com/auth/compute\",\n \"https://www.googleapis.com/auth/cloud-platform\",\n \"https://www.googleapis.com/auth/devstorage.full_control\",\n },\n });\n\n var k8s_coreProject = new Gcp.Organizations.Project(\"k8s-coreProject\", new()\n {\n ProjectId = \"unicorn-k8s-core\",\n OrgId = @var.Gcp_organization_id,\n });\n\n var k8s_coreIAMMember = new Gcp.Projects.IAMMember(\"k8s-coreIAMMember\", new()\n {\n Project = k8s_coreProject.Id,\n Role = \"roles/owner\",\n Member = k8s_coreGcpServiceAccount.ServiceAccountEmail.Apply(serviceAccountEmail =\u003e $\"serviceAccount:{serviceAccountEmail}\"),\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/organizations\"\n\t\"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/projects\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/spacelift-io/pulumi-spacelift/sdk/v2/go/spacelift\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := spacelift.NewStack(ctx, \"k8s-coreStack\", \u0026spacelift.StackArgs{\n\t\t\tBranch: pulumi.String(\"master\"),\n\t\t\tRepository: pulumi.String(\"core-infra\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = spacelift.NewGcpServiceAccount(ctx, \"k8s-coreGcpServiceAccount\", \u0026spacelift.GcpServiceAccountArgs{\n\t\t\tStackId: k8s_coreStack.ID(),\n\t\t\tTokenScopes: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"https://www.googleapis.com/auth/compute\"),\n\t\t\t\tpulumi.String(\"https://www.googleapis.com/auth/cloud-platform\"),\n\t\t\t\tpulumi.String(\"https://www.googleapis.com/auth/devstorage.full_control\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = organizations.NewProject(ctx, \"k8s-coreProject\", \u0026organizations.ProjectArgs{\n\t\t\tProjectId: pulumi.String(\"unicorn-k8s-core\"),\n\t\t\tOrgId: pulumi.Any(_var.Gcp_organization_id),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = projects.NewIAMMember(ctx, \"k8s-coreIAMMember\", \u0026projects.IAMMemberArgs{\n\t\t\tProject: k8s_coreProject.ID(),\n\t\t\tRole: pulumi.String(\"roles/owner\"),\n\t\t\tMember: k8s_coreGcpServiceAccount.ServiceAccountEmail.ApplyT(func(serviceAccountEmail string) (string, error) {\n\t\t\t\treturn fmt.Sprintf(\"serviceAccount:%v\", serviceAccountEmail), nil\n\t\t\t}).(pulumi.StringOutput),\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.spacelift.Stack;\nimport com.pulumi.spacelift.StackArgs;\nimport com.pulumi.spacelift.GcpServiceAccount;\nimport com.pulumi.spacelift.GcpServiceAccountArgs;\nimport com.pulumi.gcp.organizations.Project;\nimport com.pulumi.gcp.organizations.ProjectArgs;\nimport com.pulumi.gcp.projects.IAMMember;\nimport com.pulumi.gcp.projects.IAMMemberArgs;\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 k8s_coreStack = new Stack(\"k8s-coreStack\", StackArgs.builder() \n .branch(\"master\")\n .repository(\"core-infra\")\n .build());\n\n var k8s_coreGcpServiceAccount = new GcpServiceAccount(\"k8s-coreGcpServiceAccount\", GcpServiceAccountArgs.builder() \n .stackId(k8s_coreStack.id())\n .tokenScopes( \n \"https://www.googleapis.com/auth/compute\",\n \"https://www.googleapis.com/auth/cloud-platform\",\n \"https://www.googleapis.com/auth/devstorage.full_control\")\n .build());\n\n var k8s_coreProject = new Project(\"k8s-coreProject\", ProjectArgs.builder() \n .projectId(\"unicorn-k8s-core\")\n .orgId(var_.gcp_organization_id())\n .build());\n\n var k8s_coreIAMMember = new IAMMember(\"k8s-coreIAMMember\", IAMMemberArgs.builder() \n .project(k8s_coreProject.id())\n .role(\"roles/owner\")\n .member(k8s_coreGcpServiceAccount.serviceAccountEmail().applyValue(serviceAccountEmail -\u003e String.format(\"serviceAccount:%s\", serviceAccountEmail)))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n k8s-coreStack:\n type: spacelift:Stack\n properties:\n branch: master\n repository: core-infra\n k8s-coreGcpServiceAccount:\n type: spacelift:GcpServiceAccount\n properties:\n stackId: ${[\"k8s-coreStack\"].id}\n tokenScopes:\n - https://www.googleapis.com/auth/compute\n - https://www.googleapis.com/auth/cloud-platform\n - https://www.googleapis.com/auth/devstorage.full_control\n k8s-coreProject:\n type: gcp:organizations:Project\n properties:\n projectId: unicorn-k8s-core\n orgId: ${var.gcp_organization_id}\n k8s-coreIAMMember:\n type: gcp:projects:IAMMember\n properties:\n project: ${[\"k8s-coreProject\"].id}\n role: roles/owner\n member: serviceAccount:${[\"k8s-coreGcpServiceAccount\"].serviceAccountEmail}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\n\n\n```sh\n $ pulumi import spacelift:index/gcpServiceAccount:GcpServiceAccount k8s-core stack/$STACK_ID\n```\n\n\n\n```sh\n $ pulumi import spacelift:index/gcpServiceAccount:GcpServiceAccount k8s-core module/$MODULE_ID\n```\n\n ",
"properties": {
"moduleId": {
"type": "string",
@@ -3719,8 +4310,39 @@
"type": "object"
}
},
+ "spacelift:index/securityEmail:SecurityEmail": {
+ "description": "`spacelift.SecurityEmail` represents an email address that receives notifications about security issues in Spacelift.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as spacelift from \"@spacelift-io/pulumi-spacelift\";\n\nconst example = new spacelift.SecurityEmail(\"example\", {email: \"user@example.com\"});\n```\n```python\nimport pulumi\nimport pulumi_spacelift as spacelift\n\nexample = spacelift.SecurityEmail(\"example\", email=\"user@example.com\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Spacelift = Pulumi.Spacelift;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Spacelift.SecurityEmail(\"example\", new()\n {\n Email = \"user@example.com\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/spacelift-io/pulumi-spacelift/sdk/v2/go/spacelift\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := spacelift.NewSecurityEmail(ctx, \"example\", \u0026spacelift.SecurityEmailArgs{\n\t\t\tEmail: pulumi.String(\"user@example.com\"),\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.spacelift.SecurityEmail;\nimport com.pulumi.spacelift.SecurityEmailArgs;\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 example = new SecurityEmail(\"example\", SecurityEmailArgs.builder() \n .email(\"user@example.com\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: spacelift:SecurityEmail\n properties:\n email: user@example.com\n```\n{{% /example %}}\n{{% /examples %}}",
+ "properties": {
+ "email": {
+ "type": "string",
+ "description": "Email address to which the security notifications are sent\n"
+ }
+ },
+ "required": [
+ "email"
+ ],
+ "inputProperties": {
+ "email": {
+ "type": "string",
+ "description": "Email address to which the security notifications are sent\n"
+ }
+ },
+ "requiredInputs": [
+ "email"
+ ],
+ "stateInputs": {
+ "description": "Input properties used for looking up and filtering SecurityEmail resources.\n",
+ "properties": {
+ "email": {
+ "type": "string",
+ "description": "Email address to which the security notifications are sent\n"
+ }
+ },
+ "type": "object"
+ }
+ },
"spacelift:index/space:Space": {
- "description": "`spacelift.Space` represents a Spacelift **space** - a collection of resources such as stacks, modules, policies, etc. Allows for more granular access control. Can have a parent space.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as spacelift from \"@spacelift-io/pulumi-spacelift\";\n\nconst development = new spacelift.Space(\"development\", {\n parentSpaceId: \"root\",\n description: \"This a child of the root space. It contains all the resources common to the development infrastructure.\",\n});\nconst development_frontend = new spacelift.Space(\"development-frontend\", {\n parentSpaceId: development.id,\n inheritEntities: true,\n});\n```\n```python\nimport pulumi\nimport pulumi_spacelift as spacelift\n\ndevelopment = spacelift.Space(\"development\",\n parent_space_id=\"root\",\n description=\"This a child of the root space. It contains all the resources common to the development infrastructure.\")\ndevelopment_frontend = spacelift.Space(\"development-frontend\",\n parent_space_id=development.id,\n inherit_entities=True)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Spacelift = Pulumi.Spacelift;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var development = new Spacelift.Space(\"development\", new()\n {\n ParentSpaceId = \"root\",\n Description = \"This a child of the root space. It contains all the resources common to the development infrastructure.\",\n });\n\n var development_frontend = new Spacelift.Space(\"development-frontend\", new()\n {\n ParentSpaceId = development.Id,\n InheritEntities = true,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/spacelift-io/pulumi-spacelift/sdk/v2/go/spacelift\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tdevelopment, err := spacelift.NewSpace(ctx, \"development\", \u0026spacelift.SpaceArgs{\n\t\t\tParentSpaceId: pulumi.String(\"root\"),\n\t\t\tDescription: pulumi.String(\"This a child of the root space. It contains all the resources common to the development infrastructure.\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = spacelift.NewSpace(ctx, \"development-frontend\", \u0026spacelift.SpaceArgs{\n\t\t\tParentSpaceId: development.ID(),\n\t\t\tInheritEntities: pulumi.Bool(true),\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.spacelift.Space;\nimport com.pulumi.spacelift.SpaceArgs;\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 development = new Space(\"development\", SpaceArgs.builder() \n .parentSpaceId(\"root\")\n .description(\"This a child of the root space. It contains all the resources common to the development infrastructure.\")\n .build());\n\n var development_frontend = new Space(\"development-frontend\", SpaceArgs.builder() \n .parentSpaceId(development.id())\n .inheritEntities(true)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n development:\n type: spacelift:Space\n properties:\n # Every account has a root space that serves as the root for the space tree.\n # # Except for the root space, all the other spaces must define their parents.\n parentSpaceId: root\n # An optional description of a space.\n description: This a child of the root space. It contains all the resources common to the development infrastructure.\n development-frontend:\n type: spacelift:Space\n properties:\n # This space will be a child of the development space.\n parentSpaceId: ${development.id}\n # An optional value, that gives this space a read access to all the entities that it's parent has access to.\n inheritEntities: true\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\n\n\n```sh\n $ pulumi import spacelift:index/space:Space development $SPACE_ID\n```\n\n ",
+ "description": "`spacelift.Space` represents a Spacelift **space** - a collection of resources such as stacks, modules, policies, etc. Allows for more granular access control. Can have a parent space.\n\n**Please note:** the `spacelift.Space` resource requires root Admin permissions, and can only be used by administrative stacks in the root space, or using an API key or user session that has root space access.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as spacelift from \"@spacelift-io/pulumi-spacelift\";\n\nconst development = new spacelift.Space(\"development\", {\n parentSpaceId: \"root\",\n description: \"This a child of the root space. It contains all the resources common to the development infrastructure.\",\n});\nconst development_frontend = new spacelift.Space(\"development-frontend\", {\n parentSpaceId: development.id,\n inheritEntities: true,\n});\n```\n```python\nimport pulumi\nimport pulumi_spacelift as spacelift\n\ndevelopment = spacelift.Space(\"development\",\n parent_space_id=\"root\",\n description=\"This a child of the root space. It contains all the resources common to the development infrastructure.\")\ndevelopment_frontend = spacelift.Space(\"development-frontend\",\n parent_space_id=development.id,\n inherit_entities=True)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Spacelift = Pulumi.Spacelift;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var development = new Spacelift.Space(\"development\", new()\n {\n ParentSpaceId = \"root\",\n Description = \"This a child of the root space. It contains all the resources common to the development infrastructure.\",\n });\n\n var development_frontend = new Spacelift.Space(\"development-frontend\", new()\n {\n ParentSpaceId = development.Id,\n InheritEntities = true,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/spacelift-io/pulumi-spacelift/sdk/v2/go/spacelift\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tdevelopment, err := spacelift.NewSpace(ctx, \"development\", \u0026spacelift.SpaceArgs{\n\t\t\tParentSpaceId: pulumi.String(\"root\"),\n\t\t\tDescription: pulumi.String(\"This a child of the root space. It contains all the resources common to the development infrastructure.\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = spacelift.NewSpace(ctx, \"development-frontend\", \u0026spacelift.SpaceArgs{\n\t\t\tParentSpaceId: development.ID(),\n\t\t\tInheritEntities: pulumi.Bool(true),\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.spacelift.Space;\nimport com.pulumi.spacelift.SpaceArgs;\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 development = new Space(\"development\", SpaceArgs.builder() \n .parentSpaceId(\"root\")\n .description(\"This a child of the root space. It contains all the resources common to the development infrastructure.\")\n .build());\n\n var development_frontend = new Space(\"development-frontend\", SpaceArgs.builder() \n .parentSpaceId(development.id())\n .inheritEntities(true)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n development:\n type: spacelift:Space\n properties:\n # Every account has a root space that serves as the root for the space tree.\n # # Except for the root space, all the other spaces must define their parents.\n parentSpaceId: root\n # An optional description of a space.\n description: This a child of the root space. It contains all the resources common to the development infrastructure.\n development-frontend:\n type: spacelift:Space\n properties:\n # This space will be a child of the development space.\n parentSpaceId: ${development.id}\n # An optional value, that gives this space a read access to all the entities that it's parent has access to.\n inheritEntities: true\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\n\n\n```sh\n $ pulumi import spacelift:index/space:Space development $SPACE_ID\n```\n\n ",
"properties": {
"description": {
"type": "string",
@@ -3807,6 +4429,13 @@
"spacelift:index/stack:Stack": {
"description": "`spacelift.Stack` combines source code and configuration to create a runtime environment where resources are managed. In this way it's similar to a stack in AWS CloudFormation, or a project on generic CI/CD platforms.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as spacelift from \"@spacelift-io/pulumi-spacelift\";\n\n// Terraform stack using Bitbucket Cloud as VCS\nconst k8s_cluster_bitbucket_cloud = new spacelift.Stack(\"k8s-cluster-bitbucket-cloud\", {\n administrative: true,\n autodeploy: true,\n bitbucketCloud: {\n namespace: \"SPACELIFT\",\n },\n branch: \"master\",\n description: \"Provisions a Kubernetes cluster\",\n projectRoot: \"cluster\",\n repository: \"core-infra\",\n terraformVersion: \"1.3.0\",\n});\n// Terraform stack using Bitbucket Data Center as VCS\nconst k8s_cluster_bitbucket_datacenter = new spacelift.Stack(\"k8s-cluster-bitbucket-datacenter\", {\n administrative: true,\n autodeploy: true,\n bitbucketDatacenter: {\n namespace: \"SPACELIFT\",\n },\n branch: \"master\",\n description: \"Provisions a Kubernetes cluster\",\n projectRoot: \"cluster\",\n repository: \"core-infra\",\n terraformVersion: \"1.3.0\",\n});\n// Terraform stack using a GitHub Custom Application. See the following page for more info: https://docs.spacelift.io/integrations/source-control/github#setting-up-the-custom-application\nconst k8s_cluster_github_enterprise = new spacelift.Stack(\"k8s-cluster-github-enterprise\", {\n administrative: true,\n autodeploy: true,\n branch: \"master\",\n description: \"Provisions a Kubernetes cluster\",\n githubEnterprise: {\n namespace: \"spacelift\",\n },\n projectRoot: \"cluster\",\n repository: \"core-infra\",\n terraformVersion: \"1.3.0\",\n});\n// Terraform stack using GitLab as VCS\nconst k8s_cluster_gitlab = new spacelift.Stack(\"k8s-cluster-gitlab\", {\n administrative: true,\n autodeploy: true,\n branch: \"master\",\n description: \"Provisions a Kubernetes cluster\",\n gitlab: {\n namespace: \"spacelift\",\n },\n projectRoot: \"cluster\",\n repository: \"core-infra\",\n terraformVersion: \"1.3.0\",\n});\n// Terraform stack using github.com as VCS and enabling external state access\nconst k8s_cluster = new spacelift.Stack(\"k8s-cluster\", {\n administrative: true,\n autodeploy: true,\n branch: \"master\",\n description: \"Provisions a Kubernetes cluster\",\n projectRoot: \"cluster\",\n repository: \"core-infra\",\n terraformExternalStateAccess: true,\n terraformVersion: \"1.3.0\",\n});\n// CloudFormation stack using github.com as VCS\nconst k8s_cluster_cloudformation = new spacelift.Stack(\"k8s-cluster-cloudformation\", {\n autodeploy: true,\n branch: \"master\",\n cloudformation: {\n entryTemplateFile: \"main.yaml\",\n region: \"eu-central-1\",\n stackName: \"k8s-cluster\",\n templateBucket: \"s3://bucket\",\n },\n description: \"Provisions a Kubernetes cluster\",\n projectRoot: \"cluster\",\n repository: \"core-infra\",\n});\n// Pulumi stack using github.com as VCS\nconst k8s_cluster_pulumi = new spacelift.Stack(\"k8s-cluster-pulumi\", {\n autodeploy: true,\n branch: \"master\",\n description: \"Provisions a Kubernetes cluster\",\n projectRoot: \"cluster\",\n pulumi: {\n loginUrl: \"s3://pulumi-state-bucket\",\n stackName: \"kubernetes-core-services\",\n },\n repository: \"core-infra\",\n runnerImage: \"public.ecr.aws/t0p9w2l5/runner-pulumi-javascript:latest\",\n});\n// Kubernetes stack using github.com as VCS\nconst k8s_core_kubernetes = new spacelift.Stack(\"k8s-core-kubernetes\", {\n autodeploy: true,\n beforeInits: [\"aws eks update-kubeconfig --region us-east-2 --name k8s-cluster\"],\n branch: \"master\",\n description: \"Shared cluster services (Datadog, Istio etc.)\",\n kubernetes: {\n kubectlVersion: \"1.26.1\",\n namespace: \"core\",\n },\n projectRoot: \"core-services\",\n repository: \"core-infra\",\n});\n// Ansible stack using github.com as VCS\nconst ansible_stack = new spacelift.Stack(\"ansible-stack\", {\n ansible: {\n playbook: \"main.yml\",\n },\n autodeploy: true,\n branch: \"master\",\n description: \"Provisioning EC2 machines\",\n repository: \"ansible-playbooks\",\n runnerImage: \"public.ecr.aws/spacelift/runner-ansible:latest\",\n});\n```\n```python\nimport pulumi\nimport pulumi_spacelift as spacelift\n\n# Terraform stack using Bitbucket Cloud as VCS\nk8s_cluster_bitbucket_cloud = spacelift.Stack(\"k8s-cluster-bitbucket-cloud\",\n administrative=True,\n autodeploy=True,\n bitbucket_cloud=spacelift.StackBitbucketCloudArgs(\n namespace=\"SPACELIFT\",\n ),\n branch=\"master\",\n description=\"Provisions a Kubernetes cluster\",\n project_root=\"cluster\",\n repository=\"core-infra\",\n terraform_version=\"1.3.0\")\n# Terraform stack using Bitbucket Data Center as VCS\nk8s_cluster_bitbucket_datacenter = spacelift.Stack(\"k8s-cluster-bitbucket-datacenter\",\n administrative=True,\n autodeploy=True,\n bitbucket_datacenter=spacelift.StackBitbucketDatacenterArgs(\n namespace=\"SPACELIFT\",\n ),\n branch=\"master\",\n description=\"Provisions a Kubernetes cluster\",\n project_root=\"cluster\",\n repository=\"core-infra\",\n terraform_version=\"1.3.0\")\n# Terraform stack using a GitHub Custom Application. See the following page for more info: https://docs.spacelift.io/integrations/source-control/github#setting-up-the-custom-application\nk8s_cluster_github_enterprise = spacelift.Stack(\"k8s-cluster-github-enterprise\",\n administrative=True,\n autodeploy=True,\n branch=\"master\",\n description=\"Provisions a Kubernetes cluster\",\n github_enterprise=spacelift.StackGithubEnterpriseArgs(\n namespace=\"spacelift\",\n ),\n project_root=\"cluster\",\n repository=\"core-infra\",\n terraform_version=\"1.3.0\")\n# Terraform stack using GitLab as VCS\nk8s_cluster_gitlab = spacelift.Stack(\"k8s-cluster-gitlab\",\n administrative=True,\n autodeploy=True,\n branch=\"master\",\n description=\"Provisions a Kubernetes cluster\",\n gitlab=spacelift.StackGitlabArgs(\n namespace=\"spacelift\",\n ),\n project_root=\"cluster\",\n repository=\"core-infra\",\n terraform_version=\"1.3.0\")\n# Terraform stack using github.com as VCS and enabling external state access\nk8s_cluster = spacelift.Stack(\"k8s-cluster\",\n administrative=True,\n autodeploy=True,\n branch=\"master\",\n description=\"Provisions a Kubernetes cluster\",\n project_root=\"cluster\",\n repository=\"core-infra\",\n terraform_external_state_access=True,\n terraform_version=\"1.3.0\")\n# CloudFormation stack using github.com as VCS\nk8s_cluster_cloudformation = spacelift.Stack(\"k8s-cluster-cloudformation\",\n autodeploy=True,\n branch=\"master\",\n cloudformation=spacelift.StackCloudformationArgs(\n entry_template_file=\"main.yaml\",\n region=\"eu-central-1\",\n stack_name=\"k8s-cluster\",\n template_bucket=\"s3://bucket\",\n ),\n description=\"Provisions a Kubernetes cluster\",\n project_root=\"cluster\",\n repository=\"core-infra\")\n# Pulumi stack using github.com as VCS\nk8s_cluster_pulumi = spacelift.Stack(\"k8s-cluster-pulumi\",\n autodeploy=True,\n branch=\"master\",\n description=\"Provisions a Kubernetes cluster\",\n project_root=\"cluster\",\n pulumi=spacelift.StackPulumiArgs(\n login_url=\"s3://pulumi-state-bucket\",\n stack_name=\"kubernetes-core-services\",\n ),\n repository=\"core-infra\",\n runner_image=\"public.ecr.aws/t0p9w2l5/runner-pulumi-javascript:latest\")\n# Kubernetes stack using github.com as VCS\nk8s_core_kubernetes = spacelift.Stack(\"k8s-core-kubernetes\",\n autodeploy=True,\n before_inits=[\"aws eks update-kubeconfig --region us-east-2 --name k8s-cluster\"],\n branch=\"master\",\n description=\"Shared cluster services (Datadog, Istio etc.)\",\n kubernetes=spacelift.StackKubernetesArgs(\n kubectl_version=\"1.26.1\",\n namespace=\"core\",\n ),\n project_root=\"core-services\",\n repository=\"core-infra\")\n# Ansible stack using github.com as VCS\nansible_stack = spacelift.Stack(\"ansible-stack\",\n ansible=spacelift.StackAnsibleArgs(\n playbook=\"main.yml\",\n ),\n autodeploy=True,\n branch=\"master\",\n description=\"Provisioning EC2 machines\",\n repository=\"ansible-playbooks\",\n runner_image=\"public.ecr.aws/spacelift/runner-ansible:latest\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Spacelift = Pulumi.Spacelift;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Terraform stack using Bitbucket Cloud as VCS\n var k8s_cluster_bitbucket_cloud = new Spacelift.Stack(\"k8s-cluster-bitbucket-cloud\", new()\n {\n Administrative = true,\n Autodeploy = true,\n BitbucketCloud = new Spacelift.Inputs.StackBitbucketCloudArgs\n {\n Namespace = \"SPACELIFT\",\n },\n Branch = \"master\",\n Description = \"Provisions a Kubernetes cluster\",\n ProjectRoot = \"cluster\",\n Repository = \"core-infra\",\n TerraformVersion = \"1.3.0\",\n });\n\n // Terraform stack using Bitbucket Data Center as VCS\n var k8s_cluster_bitbucket_datacenter = new Spacelift.Stack(\"k8s-cluster-bitbucket-datacenter\", new()\n {\n Administrative = true,\n Autodeploy = true,\n BitbucketDatacenter = new Spacelift.Inputs.StackBitbucketDatacenterArgs\n {\n Namespace = \"SPACELIFT\",\n },\n Branch = \"master\",\n Description = \"Provisions a Kubernetes cluster\",\n ProjectRoot = \"cluster\",\n Repository = \"core-infra\",\n TerraformVersion = \"1.3.0\",\n });\n\n // Terraform stack using a GitHub Custom Application. See the following page for more info: https://docs.spacelift.io/integrations/source-control/github#setting-up-the-custom-application\n var k8s_cluster_github_enterprise = new Spacelift.Stack(\"k8s-cluster-github-enterprise\", new()\n {\n Administrative = true,\n Autodeploy = true,\n Branch = \"master\",\n Description = \"Provisions a Kubernetes cluster\",\n GithubEnterprise = new Spacelift.Inputs.StackGithubEnterpriseArgs\n {\n Namespace = \"spacelift\",\n },\n ProjectRoot = \"cluster\",\n Repository = \"core-infra\",\n TerraformVersion = \"1.3.0\",\n });\n\n // Terraform stack using GitLab as VCS\n var k8s_cluster_gitlab = new Spacelift.Stack(\"k8s-cluster-gitlab\", new()\n {\n Administrative = true,\n Autodeploy = true,\n Branch = \"master\",\n Description = \"Provisions a Kubernetes cluster\",\n Gitlab = new Spacelift.Inputs.StackGitlabArgs\n {\n Namespace = \"spacelift\",\n },\n ProjectRoot = \"cluster\",\n Repository = \"core-infra\",\n TerraformVersion = \"1.3.0\",\n });\n\n // Terraform stack using github.com as VCS and enabling external state access\n var k8s_cluster = new Spacelift.Stack(\"k8s-cluster\", new()\n {\n Administrative = true,\n Autodeploy = true,\n Branch = \"master\",\n Description = \"Provisions a Kubernetes cluster\",\n ProjectRoot = \"cluster\",\n Repository = \"core-infra\",\n TerraformExternalStateAccess = true,\n TerraformVersion = \"1.3.0\",\n });\n\n // CloudFormation stack using github.com as VCS\n var k8s_cluster_cloudformation = new Spacelift.Stack(\"k8s-cluster-cloudformation\", new()\n {\n Autodeploy = true,\n Branch = \"master\",\n Cloudformation = new Spacelift.Inputs.StackCloudformationArgs\n {\n EntryTemplateFile = \"main.yaml\",\n Region = \"eu-central-1\",\n StackName = \"k8s-cluster\",\n TemplateBucket = \"s3://bucket\",\n },\n Description = \"Provisions a Kubernetes cluster\",\n ProjectRoot = \"cluster\",\n Repository = \"core-infra\",\n });\n\n // Pulumi stack using github.com as VCS\n var k8s_cluster_pulumi = new Spacelift.Stack(\"k8s-cluster-pulumi\", new()\n {\n Autodeploy = true,\n Branch = \"master\",\n Description = \"Provisions a Kubernetes cluster\",\n ProjectRoot = \"cluster\",\n Pulumi_backend = new Spacelift.Inputs.StackPulumiArgs\n {\n LoginUrl = \"s3://pulumi-state-bucket\",\n StackName = \"kubernetes-core-services\",\n },\n Repository = \"core-infra\",\n RunnerImage = \"public.ecr.aws/t0p9w2l5/runner-pulumi-javascript:latest\",\n });\n\n // Kubernetes stack using github.com as VCS\n var k8s_core_kubernetes = new Spacelift.Stack(\"k8s-core-kubernetes\", new()\n {\n Autodeploy = true,\n BeforeInits = new[]\n {\n \"aws eks update-kubeconfig --region us-east-2 --name k8s-cluster\",\n },\n Branch = \"master\",\n Description = \"Shared cluster services (Datadog, Istio etc.)\",\n Kubernetes = new Spacelift.Inputs.StackKubernetesArgs\n {\n KubectlVersion = \"1.26.1\",\n Namespace = \"core\",\n },\n ProjectRoot = \"core-services\",\n Repository = \"core-infra\",\n });\n\n // Ansible stack using github.com as VCS\n var ansible_stack = new Spacelift.Stack(\"ansible-stack\", new()\n {\n Ansible = new Spacelift.Inputs.StackAnsibleArgs\n {\n Playbook = \"main.yml\",\n },\n Autodeploy = true,\n Branch = \"master\",\n Description = \"Provisioning EC2 machines\",\n Repository = \"ansible-playbooks\",\n RunnerImage = \"public.ecr.aws/spacelift/runner-ansible:latest\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/spacelift-io/pulumi-spacelift/sdk/v2/go/spacelift\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := spacelift.NewStack(ctx, \"k8s-cluster-bitbucket-cloud\", \u0026spacelift.StackArgs{\n\t\t\tAdministrative: pulumi.Bool(true),\n\t\t\tAutodeploy: pulumi.Bool(true),\n\t\t\tBitbucketCloud: \u0026spacelift.StackBitbucketCloudArgs{\n\t\t\t\tNamespace: pulumi.String(\"SPACELIFT\"),\n\t\t\t},\n\t\t\tBranch: pulumi.String(\"master\"),\n\t\t\tDescription: pulumi.String(\"Provisions a Kubernetes cluster\"),\n\t\t\tProjectRoot: pulumi.String(\"cluster\"),\n\t\t\tRepository: pulumi.String(\"core-infra\"),\n\t\t\tTerraformVersion: pulumi.String(\"1.3.0\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = spacelift.NewStack(ctx, \"k8s-cluster-bitbucket-datacenter\", \u0026spacelift.StackArgs{\n\t\t\tAdministrative: pulumi.Bool(true),\n\t\t\tAutodeploy: pulumi.Bool(true),\n\t\t\tBitbucketDatacenter: \u0026spacelift.StackBitbucketDatacenterArgs{\n\t\t\t\tNamespace: pulumi.String(\"SPACELIFT\"),\n\t\t\t},\n\t\t\tBranch: pulumi.String(\"master\"),\n\t\t\tDescription: pulumi.String(\"Provisions a Kubernetes cluster\"),\n\t\t\tProjectRoot: pulumi.String(\"cluster\"),\n\t\t\tRepository: pulumi.String(\"core-infra\"),\n\t\t\tTerraformVersion: pulumi.String(\"1.3.0\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = spacelift.NewStack(ctx, \"k8s-cluster-github-enterprise\", \u0026spacelift.StackArgs{\n\t\t\tAdministrative: pulumi.Bool(true),\n\t\t\tAutodeploy: pulumi.Bool(true),\n\t\t\tBranch: pulumi.String(\"master\"),\n\t\t\tDescription: pulumi.String(\"Provisions a Kubernetes cluster\"),\n\t\t\tGithubEnterprise: \u0026spacelift.StackGithubEnterpriseArgs{\n\t\t\t\tNamespace: pulumi.String(\"spacelift\"),\n\t\t\t},\n\t\t\tProjectRoot: pulumi.String(\"cluster\"),\n\t\t\tRepository: pulumi.String(\"core-infra\"),\n\t\t\tTerraformVersion: pulumi.String(\"1.3.0\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = spacelift.NewStack(ctx, \"k8s-cluster-gitlab\", \u0026spacelift.StackArgs{\n\t\t\tAdministrative: pulumi.Bool(true),\n\t\t\tAutodeploy: pulumi.Bool(true),\n\t\t\tBranch: pulumi.String(\"master\"),\n\t\t\tDescription: pulumi.String(\"Provisions a Kubernetes cluster\"),\n\t\t\tGitlab: \u0026spacelift.StackGitlabArgs{\n\t\t\t\tNamespace: pulumi.String(\"spacelift\"),\n\t\t\t},\n\t\t\tProjectRoot: pulumi.String(\"cluster\"),\n\t\t\tRepository: pulumi.String(\"core-infra\"),\n\t\t\tTerraformVersion: pulumi.String(\"1.3.0\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = spacelift.NewStack(ctx, \"k8s-cluster\", \u0026spacelift.StackArgs{\n\t\t\tAdministrative: pulumi.Bool(true),\n\t\t\tAutodeploy: pulumi.Bool(true),\n\t\t\tBranch: pulumi.String(\"master\"),\n\t\t\tDescription: pulumi.String(\"Provisions a Kubernetes cluster\"),\n\t\t\tProjectRoot: pulumi.String(\"cluster\"),\n\t\t\tRepository: pulumi.String(\"core-infra\"),\n\t\t\tTerraformExternalStateAccess: pulumi.Bool(true),\n\t\t\tTerraformVersion: pulumi.String(\"1.3.0\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = spacelift.NewStack(ctx, \"k8s-cluster-cloudformation\", \u0026spacelift.StackArgs{\n\t\t\tAutodeploy: pulumi.Bool(true),\n\t\t\tBranch: pulumi.String(\"master\"),\n\t\t\tCloudformation: \u0026spacelift.StackCloudformationArgs{\n\t\t\t\tEntryTemplateFile: pulumi.String(\"main.yaml\"),\n\t\t\t\tRegion: pulumi.String(\"eu-central-1\"),\n\t\t\t\tStackName: pulumi.String(\"k8s-cluster\"),\n\t\t\t\tTemplateBucket: pulumi.String(\"s3://bucket\"),\n\t\t\t},\n\t\t\tDescription: pulumi.String(\"Provisions a Kubernetes cluster\"),\n\t\t\tProjectRoot: pulumi.String(\"cluster\"),\n\t\t\tRepository: pulumi.String(\"core-infra\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = spacelift.NewStack(ctx, \"k8s-cluster-pulumi\", \u0026spacelift.StackArgs{\n\t\t\tAutodeploy: pulumi.Bool(true),\n\t\t\tBranch: pulumi.String(\"master\"),\n\t\t\tDescription: pulumi.String(\"Provisions a Kubernetes cluster\"),\n\t\t\tProjectRoot: pulumi.String(\"cluster\"),\n\t\t\tPulumi: \u0026spacelift.StackPulumiArgs{\n\t\t\t\tLoginUrl: pulumi.String(\"s3://pulumi-state-bucket\"),\n\t\t\t\tStackName: pulumi.String(\"kubernetes-core-services\"),\n\t\t\t},\n\t\t\tRepository: pulumi.String(\"core-infra\"),\n\t\t\tRunnerImage: pulumi.String(\"public.ecr.aws/t0p9w2l5/runner-pulumi-javascript:latest\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = spacelift.NewStack(ctx, \"k8s-core-kubernetes\", \u0026spacelift.StackArgs{\n\t\t\tAutodeploy: pulumi.Bool(true),\n\t\t\tBeforeInits: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"aws eks update-kubeconfig --region us-east-2 --name k8s-cluster\"),\n\t\t\t},\n\t\t\tBranch: pulumi.String(\"master\"),\n\t\t\tDescription: pulumi.String(\"Shared cluster services (Datadog, Istio etc.)\"),\n\t\t\tKubernetes: \u0026spacelift.StackKubernetesArgs{\n\t\t\t\tKubectlVersion: pulumi.String(\"1.26.1\"),\n\t\t\t\tNamespace: pulumi.String(\"core\"),\n\t\t\t},\n\t\t\tProjectRoot: pulumi.String(\"core-services\"),\n\t\t\tRepository: pulumi.String(\"core-infra\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = spacelift.NewStack(ctx, \"ansible-stack\", \u0026spacelift.StackArgs{\n\t\t\tAnsible: \u0026spacelift.StackAnsibleArgs{\n\t\t\t\tPlaybook: pulumi.String(\"main.yml\"),\n\t\t\t},\n\t\t\tAutodeploy: pulumi.Bool(true),\n\t\t\tBranch: pulumi.String(\"master\"),\n\t\t\tDescription: pulumi.String(\"Provisioning EC2 machines\"),\n\t\t\tRepository: pulumi.String(\"ansible-playbooks\"),\n\t\t\tRunnerImage: pulumi.String(\"public.ecr.aws/spacelift/runner-ansible:latest\"),\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.spacelift.Stack;\nimport com.pulumi.spacelift.StackArgs;\nimport com.pulumi.spacelift.inputs.StackBitbucketCloudArgs;\nimport com.pulumi.spacelift.inputs.StackBitbucketDatacenterArgs;\nimport com.pulumi.spacelift.inputs.StackGithubEnterpriseArgs;\nimport com.pulumi.spacelift.inputs.StackGitlabArgs;\nimport com.pulumi.spacelift.inputs.StackCloudformationArgs;\nimport com.pulumi.spacelift.inputs.StackPulumiArgs;\nimport com.pulumi.spacelift.inputs.StackKubernetesArgs;\nimport com.pulumi.spacelift.inputs.StackAnsibleArgs;\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 k8s_cluster_bitbucket_cloud = new Stack(\"k8s-cluster-bitbucket-cloud\", StackArgs.builder() \n .administrative(true)\n .autodeploy(true)\n .bitbucketCloud(StackBitbucketCloudArgs.builder()\n .namespace(\"SPACELIFT\")\n .build())\n .branch(\"master\")\n .description(\"Provisions a Kubernetes cluster\")\n .projectRoot(\"cluster\")\n .repository(\"core-infra\")\n .terraformVersion(\"1.3.0\")\n .build());\n\n var k8s_cluster_bitbucket_datacenter = new Stack(\"k8s-cluster-bitbucket-datacenter\", StackArgs.builder() \n .administrative(true)\n .autodeploy(true)\n .bitbucketDatacenter(StackBitbucketDatacenterArgs.builder()\n .namespace(\"SPACELIFT\")\n .build())\n .branch(\"master\")\n .description(\"Provisions a Kubernetes cluster\")\n .projectRoot(\"cluster\")\n .repository(\"core-infra\")\n .terraformVersion(\"1.3.0\")\n .build());\n\n var k8s_cluster_github_enterprise = new Stack(\"k8s-cluster-github-enterprise\", StackArgs.builder() \n .administrative(true)\n .autodeploy(true)\n .branch(\"master\")\n .description(\"Provisions a Kubernetes cluster\")\n .githubEnterprise(StackGithubEnterpriseArgs.builder()\n .namespace(\"spacelift\")\n .build())\n .projectRoot(\"cluster\")\n .repository(\"core-infra\")\n .terraformVersion(\"1.3.0\")\n .build());\n\n var k8s_cluster_gitlab = new Stack(\"k8s-cluster-gitlab\", StackArgs.builder() \n .administrative(true)\n .autodeploy(true)\n .branch(\"master\")\n .description(\"Provisions a Kubernetes cluster\")\n .gitlab(StackGitlabArgs.builder()\n .namespace(\"spacelift\")\n .build())\n .projectRoot(\"cluster\")\n .repository(\"core-infra\")\n .terraformVersion(\"1.3.0\")\n .build());\n\n var k8s_cluster = new Stack(\"k8s-cluster\", StackArgs.builder() \n .administrative(true)\n .autodeploy(true)\n .branch(\"master\")\n .description(\"Provisions a Kubernetes cluster\")\n .projectRoot(\"cluster\")\n .repository(\"core-infra\")\n .terraformExternalStateAccess(true)\n .terraformVersion(\"1.3.0\")\n .build());\n\n var k8s_cluster_cloudformation = new Stack(\"k8s-cluster-cloudformation\", StackArgs.builder() \n .autodeploy(true)\n .branch(\"master\")\n .cloudformation(StackCloudformationArgs.builder()\n .entryTemplateFile(\"main.yaml\")\n .region(\"eu-central-1\")\n .stackName(\"k8s-cluster\")\n .templateBucket(\"s3://bucket\")\n .build())\n .description(\"Provisions a Kubernetes cluster\")\n .projectRoot(\"cluster\")\n .repository(\"core-infra\")\n .build());\n\n var k8s_cluster_pulumi = new Stack(\"k8s-cluster-pulumi\", StackArgs.builder() \n .autodeploy(true)\n .branch(\"master\")\n .description(\"Provisions a Kubernetes cluster\")\n .projectRoot(\"cluster\")\n .pulumi(StackPulumiArgs.builder()\n .loginUrl(\"s3://pulumi-state-bucket\")\n .stackName(\"kubernetes-core-services\")\n .build())\n .repository(\"core-infra\")\n .runnerImage(\"public.ecr.aws/t0p9w2l5/runner-pulumi-javascript:latest\")\n .build());\n\n var k8s_core_kubernetes = new Stack(\"k8s-core-kubernetes\", StackArgs.builder() \n .autodeploy(true)\n .beforeInits(\"aws eks update-kubeconfig --region us-east-2 --name k8s-cluster\")\n .branch(\"master\")\n .description(\"Shared cluster services (Datadog, Istio etc.)\")\n .kubernetes(StackKubernetesArgs.builder()\n .kubectlVersion(\"1.26.1\")\n .namespace(\"core\")\n .build())\n .projectRoot(\"core-services\")\n .repository(\"core-infra\")\n .build());\n\n var ansible_stack = new Stack(\"ansible-stack\", StackArgs.builder() \n .ansible(StackAnsibleArgs.builder()\n .playbook(\"main.yml\")\n .build())\n .autodeploy(true)\n .branch(\"master\")\n .description(\"Provisioning EC2 machines\")\n .repository(\"ansible-playbooks\")\n .runnerImage(\"public.ecr.aws/spacelift/runner-ansible:latest\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Terraform stack using Bitbucket Cloud as VCS\n k8s-cluster-bitbucket-cloud:\n type: spacelift:Stack\n properties:\n administrative: true\n autodeploy: true\n bitbucketCloud:\n namespace: SPACELIFT\n branch: master\n description: Provisions a Kubernetes cluster\n projectRoot: cluster\n repository: core-infra\n terraformVersion: 1.3.0\n # Terraform stack using Bitbucket Data Center as VCS\n k8s-cluster-bitbucket-datacenter:\n type: spacelift:Stack\n properties:\n administrative: true\n autodeploy: true\n bitbucketDatacenter:\n namespace: SPACELIFT\n branch: master\n description: Provisions a Kubernetes cluster\n projectRoot: cluster\n repository: core-infra\n terraformVersion: 1.3.0\n # Terraform stack using a GitHub Custom Application. See the following page for more info: https://docs.spacelift.io/integrations/source-control/github#setting-up-the-custom-application\n k8s-cluster-github-enterprise:\n type: spacelift:Stack\n properties:\n administrative: true\n autodeploy: true\n branch: master\n description: Provisions a Kubernetes cluster\n githubEnterprise:\n namespace: spacelift\n projectRoot: cluster\n repository: core-infra\n terraformVersion: 1.3.0\n # Terraform stack using GitLab as VCS\n k8s-cluster-gitlab:\n type: spacelift:Stack\n properties:\n administrative: true\n autodeploy: true\n branch: master\n description: Provisions a Kubernetes cluster\n gitlab:\n namespace: spacelift\n projectRoot: cluster\n repository: core-infra\n terraformVersion: 1.3.0\n # Terraform stack using github.com as VCS and enabling external state access\n k8s-cluster:\n type: spacelift:Stack\n properties:\n administrative: true\n autodeploy: true\n branch: master\n description: Provisions a Kubernetes cluster\n projectRoot: cluster\n repository: core-infra\n terraformExternalStateAccess: true\n terraformVersion: 1.3.0\n # CloudFormation stack using github.com as VCS\n k8s-cluster-cloudformation:\n type: spacelift:Stack\n properties:\n autodeploy: true\n branch: master\n cloudformation:\n entryTemplateFile: main.yaml\n region: eu-central-1\n stackName: k8s-cluster\n templateBucket: s3://bucket\n description: Provisions a Kubernetes cluster\n projectRoot: cluster\n repository: core-infra\n # Pulumi stack using github.com as VCS\n k8s-cluster-pulumi:\n type: spacelift:Stack\n properties:\n autodeploy: true\n branch: master\n description: Provisions a Kubernetes cluster\n projectRoot: cluster\n pulumi:\n loginUrl: s3://pulumi-state-bucket\n stackName: kubernetes-core-services\n repository: core-infra\n runnerImage: public.ecr.aws/t0p9w2l5/runner-pulumi-javascript:latest\n # Kubernetes stack using github.com as VCS\n k8s-core-kubernetes:\n type: spacelift:Stack\n properties:\n autodeploy: true\n # You can use hooks to authenticate with your cluster\n beforeInits:\n - aws eks update-kubeconfig --region us-east-2 --name k8s-cluster\n branch: master\n description: Shared cluster services (Datadog, Istio etc.)\n kubernetes:\n kubectlVersion: 1.26.1\n namespace: core\n projectRoot: core-services\n repository: core-infra\n # Ansible stack using github.com as VCS\n ansible-stack:\n type: spacelift:Stack\n properties:\n ansible:\n playbook: main.yml\n autodeploy: true\n branch: master\n description: Provisioning EC2 machines\n repository: ansible-playbooks\n runnerImage: public.ecr.aws/spacelift/runner-ansible:latest\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\n\n\n```sh\n $ pulumi import spacelift:index/stack:Stack k8s_core $STACK_ID\n```\n\n ",
"properties": {
+ "additionalProjectGlobs": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "Project globs is an optional list of paths to track changes of in addition to the project root.\n"
+ },
"administrative": {
"type": "boolean",
"description": "Indicates whether this stack can manage others. Defaults to `false`.\n"
@@ -4050,6 +4679,13 @@
"terraformWorkflowTool"
],
"inputProperties": {
+ "additionalProjectGlobs": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "Project globs is an optional list of paths to track changes of in addition to the project root.\n"
+ },
"administrative": {
"type": "boolean",
"description": "Indicates whether this stack can manage others. Defaults to `false`.\n"
@@ -4288,6 +4924,13 @@
"stateInputs": {
"description": "Input properties used for looking up and filtering Stack resources.\n",
"properties": {
+ "additionalProjectGlobs": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "Project globs is an optional list of paths to track changes of in addition to the project root.\n"
+ },
"administrative": {
"type": "boolean",
"description": "Indicates whether this stack can manage others. Defaults to `false`.\n"
@@ -4821,7 +5464,7 @@
}
},
"spacelift:index/stackGcpServiceAccount:StackGcpServiceAccount": {
- "description": "{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as google from \"@pulumi/google\";\nimport * as spacelift from \"@spacelift-io/pulumi-spacelift\";\n\nconst k8s_coreStack = new spacelift.Stack(\"k8s-coreStack\", {\n branch: \"master\",\n repository: \"core-infra\",\n});\nconst k8s_coreStackGcpServiceAccount = new spacelift.StackGcpServiceAccount(\"k8s-coreStackGcpServiceAccount\", {\n stackId: k8s_coreStack.id,\n tokenScopes: [\n \"https://www.googleapis.com/auth/compute\",\n \"https://www.googleapis.com/auth/cloud-platform\",\n \"https://www.googleapis.com/auth/devstorage.full_control\",\n ],\n});\nconst k8s_coregoogle_project = new google.index.Google_project(\"k8s-coregoogle_project\", {\n name: \"Kubernetes code\",\n projectId: \"unicorn-k8s-core\",\n orgId: _var.gcp_organization_id,\n});\nconst k8s_coregoogle_project_iam_member = new google.index.Google_project_iam_member(\"k8s-coregoogle_project_iam_member\", {\n project: k8s_coregoogle_project.id,\n role: \"roles/owner\",\n member: `serviceAccount:${k8s_coreStackGcpServiceAccount.serviceAccountEmail}`,\n});\n```\n```python\nimport pulumi\nimport pulumi_google as google\nimport pulumi_spacelift as spacelift\n\nk8s_core_stack = spacelift.Stack(\"k8s-coreStack\",\n branch=\"master\",\n repository=\"core-infra\")\nk8s_core_stack_gcp_service_account = spacelift.StackGcpServiceAccount(\"k8s-coreStackGcpServiceAccount\",\n stack_id=k8s_core_stack.id,\n token_scopes=[\n \"https://www.googleapis.com/auth/compute\",\n \"https://www.googleapis.com/auth/cloud-platform\",\n \"https://www.googleapis.com/auth/devstorage.full_control\",\n ])\nk8s_coregoogle_project = google.index.Google_project(\"k8s-coregoogle_project\",\n name=Kubernetes code,\n project_id=unicorn-k8s-core,\n org_id=var.gcp_organization_id)\nk8s_coregoogle_project_iam_member = google.index.Google_project_iam_member(\"k8s-coregoogle_project_iam_member\",\n project=k8s_coregoogle_project.id,\n role=roles/owner,\n member=fserviceAccount:{k8s_core_stack_gcp_service_account.service_account_email})\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Google = Pulumi.Google;\nusing Spacelift = Pulumi.Spacelift;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var k8s_coreStack = new Spacelift.Stack(\"k8s-coreStack\", new()\n {\n Branch = \"master\",\n Repository = \"core-infra\",\n });\n\n var k8s_coreStackGcpServiceAccount = new Spacelift.StackGcpServiceAccount(\"k8s-coreStackGcpServiceAccount\", new()\n {\n StackId = k8s_coreStack.Id,\n TokenScopes = new[]\n {\n \"https://www.googleapis.com/auth/compute\",\n \"https://www.googleapis.com/auth/cloud-platform\",\n \"https://www.googleapis.com/auth/devstorage.full_control\",\n },\n });\n\n var k8s_coregoogle_project = new Google.Index.Google_project(\"k8s-coregoogle_project\", new()\n {\n Name = \"Kubernetes code\",\n ProjectId = \"unicorn-k8s-core\",\n OrgId = @var.Gcp_organization_id,\n });\n\n var k8s_coregoogle_project_iam_member = new Google.Index.Google_project_iam_member(\"k8s-coregoogle_project_iam_member\", new()\n {\n Project = k8s_coregoogle_project.Id,\n Role = \"roles/owner\",\n Member = $\"serviceAccount:{k8s_coreStackGcpServiceAccount.ServiceAccountEmail}\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/pulumi/pulumi-google/sdk/v1/go/google\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/spacelift-io/pulumi-spacelift/sdk/v2/go/spacelift\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := spacelift.NewStack(ctx, \"k8s-coreStack\", \u0026spacelift.StackArgs{\n\t\t\tBranch: pulumi.String(\"master\"),\n\t\t\tRepository: pulumi.String(\"core-infra\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = spacelift.NewStackGcpServiceAccount(ctx, \"k8s-coreStackGcpServiceAccount\", \u0026spacelift.StackGcpServiceAccountArgs{\n\t\t\tStackId: k8s_coreStack.ID(),\n\t\t\tTokenScopes: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"https://www.googleapis.com/auth/compute\"),\n\t\t\t\tpulumi.String(\"https://www.googleapis.com/auth/cloud-platform\"),\n\t\t\t\tpulumi.String(\"https://www.googleapis.com/auth/devstorage.full_control\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = index.NewGoogle_project(ctx, \"k8s-coregoogle_project\", \u0026index.Google_projectArgs{\n\t\t\tName: \"Kubernetes code\",\n\t\t\tProjectId: \"unicorn-k8s-core\",\n\t\t\tOrgId: _var.Gcp_organization_id,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = index.NewGoogle_project_iam_member(ctx, \"k8s-coregoogle_project_iam_member\", \u0026index.Google_project_iam_memberArgs{\n\t\t\tProject: k8s_coregoogle_project.Id,\n\t\t\tRole: \"roles/owner\",\n\t\t\tMember: pulumi.String(fmt.Sprintf(\"serviceAccount:%v\", k8s_coreStackGcpServiceAccount.ServiceAccountEmail)),\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.spacelift.Stack;\nimport com.pulumi.spacelift.StackArgs;\nimport com.pulumi.spacelift.StackGcpServiceAccount;\nimport com.pulumi.spacelift.StackGcpServiceAccountArgs;\nimport com.pulumi.google.google_project;\nimport com.pulumi.google.Google_projectArgs;\nimport com.pulumi.google.google_project_iam_member;\nimport com.pulumi.google.Google_project_iam_memberArgs;\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 k8s_coreStack = new Stack(\"k8s-coreStack\", StackArgs.builder() \n .branch(\"master\")\n .repository(\"core-infra\")\n .build());\n\n var k8s_coreStackGcpServiceAccount = new StackGcpServiceAccount(\"k8s-coreStackGcpServiceAccount\", StackGcpServiceAccountArgs.builder() \n .stackId(k8s_coreStack.id())\n .tokenScopes( \n \"https://www.googleapis.com/auth/compute\",\n \"https://www.googleapis.com/auth/cloud-platform\",\n \"https://www.googleapis.com/auth/devstorage.full_control\")\n .build());\n\n var k8s_coregoogle_project = new Google_project(\"k8s-coregoogle_project\", Google_projectArgs.builder() \n .name(\"Kubernetes code\")\n .projectId(\"unicorn-k8s-core\")\n .orgId(var_.gcp_organization_id())\n .build());\n\n var k8s_coregoogle_project_iam_member = new Google_project_iam_member(\"k8s-coregoogle_project_iam_member\", Google_project_iam_memberArgs.builder() \n .project(k8s_coregoogle_project.id())\n .role(\"roles/owner\")\n .member(k8s_coreStackGcpServiceAccount.serviceAccountEmail().applyValue(serviceAccountEmail -\u003e String.format(\"serviceAccount:%s\", serviceAccountEmail)))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n k8s-coreStack:\n type: spacelift:Stack\n properties:\n branch: master\n repository: core-infra\n k8s-coreStackGcpServiceAccount:\n type: spacelift:StackGcpServiceAccount\n properties:\n stackId: ${[\"k8s-coreStack\"].id}\n tokenScopes:\n - https://www.googleapis.com/auth/compute\n - https://www.googleapis.com/auth/cloud-platform\n - https://www.googleapis.com/auth/devstorage.full_control\n k8s-coregoogle_project:\n type: google:google_project\n properties:\n name: Kubernetes code\n projectId: unicorn-k8s-core\n orgId: ${var.gcp_organization_id}\n k8s-coregoogle_project_iam_member:\n type: google:google_project_iam_member\n properties:\n project: ${[\"k8s-coregoogle_project\"].id}\n role: roles/owner\n member: serviceAccount:${[\"k8s-coreStackGcpServiceAccount\"].serviceAccountEmail}\n```\n{{% /example %}}\n{{% /examples %}}",
+ "description": "{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as gcp from \"@pulumi/gcp\";\nimport * as spacelift from \"@spacelift-io/pulumi-spacelift\";\n\nconst k8s_coreStack = new spacelift.Stack(\"k8s-coreStack\", {\n branch: \"master\",\n repository: \"core-infra\",\n});\nconst k8s_coreStackGcpServiceAccount = new spacelift.StackGcpServiceAccount(\"k8s-coreStackGcpServiceAccount\", {\n stackId: k8s_coreStack.id,\n tokenScopes: [\n \"https://www.googleapis.com/auth/compute\",\n \"https://www.googleapis.com/auth/cloud-platform\",\n \"https://www.googleapis.com/auth/devstorage.full_control\",\n ],\n});\nconst k8s_coreProject = new gcp.organizations.Project(\"k8s-coreProject\", {\n projectId: \"unicorn-k8s-core\",\n orgId: _var.gcp_organization_id,\n});\nconst k8s_coreIAMMember = new gcp.projects.IAMMember(\"k8s-coreIAMMember\", {\n project: k8s_coreProject.id,\n role: \"roles/owner\",\n member: pulumi.interpolate`serviceAccount:${k8s_coreStackGcpServiceAccount.serviceAccountEmail}`,\n});\n```\n```python\nimport pulumi\nimport pulumi_gcp as gcp\nimport pulumi_spacelift as spacelift\n\nk8s_core_stack = spacelift.Stack(\"k8s-coreStack\",\n branch=\"master\",\n repository=\"core-infra\")\nk8s_core_stack_gcp_service_account = spacelift.StackGcpServiceAccount(\"k8s-coreStackGcpServiceAccount\",\n stack_id=k8s_core_stack.id,\n token_scopes=[\n \"https://www.googleapis.com/auth/compute\",\n \"https://www.googleapis.com/auth/cloud-platform\",\n \"https://www.googleapis.com/auth/devstorage.full_control\",\n ])\nk8s_core_project = gcp.organizations.Project(\"k8s-coreProject\",\n project_id=\"unicorn-k8s-core\",\n org_id=var[\"gcp_organization_id\"])\nk8s_core_iam_member = gcp.projects.IAMMember(\"k8s-coreIAMMember\",\n project=k8s_core_project.id,\n role=\"roles/owner\",\n member=k8s_core_stack_gcp_service_account.service_account_email.apply(lambda service_account_email: f\"serviceAccount:{service_account_email}\"))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Gcp = Pulumi.Gcp;\nusing Spacelift = Pulumi.Spacelift;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var k8s_coreStack = new Spacelift.Stack(\"k8s-coreStack\", new()\n {\n Branch = \"master\",\n Repository = \"core-infra\",\n });\n\n var k8s_coreStackGcpServiceAccount = new Spacelift.StackGcpServiceAccount(\"k8s-coreStackGcpServiceAccount\", new()\n {\n StackId = k8s_coreStack.Id,\n TokenScopes = new[]\n {\n \"https://www.googleapis.com/auth/compute\",\n \"https://www.googleapis.com/auth/cloud-platform\",\n \"https://www.googleapis.com/auth/devstorage.full_control\",\n },\n });\n\n var k8s_coreProject = new Gcp.Organizations.Project(\"k8s-coreProject\", new()\n {\n ProjectId = \"unicorn-k8s-core\",\n OrgId = @var.Gcp_organization_id,\n });\n\n var k8s_coreIAMMember = new Gcp.Projects.IAMMember(\"k8s-coreIAMMember\", new()\n {\n Project = k8s_coreProject.Id,\n Role = \"roles/owner\",\n Member = k8s_coreStackGcpServiceAccount.ServiceAccountEmail.Apply(serviceAccountEmail =\u003e $\"serviceAccount:{serviceAccountEmail}\"),\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/organizations\"\n\t\"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/projects\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/spacelift-io/pulumi-spacelift/sdk/v2/go/spacelift\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := spacelift.NewStack(ctx, \"k8s-coreStack\", \u0026spacelift.StackArgs{\n\t\t\tBranch: pulumi.String(\"master\"),\n\t\t\tRepository: pulumi.String(\"core-infra\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = spacelift.NewStackGcpServiceAccount(ctx, \"k8s-coreStackGcpServiceAccount\", \u0026spacelift.StackGcpServiceAccountArgs{\n\t\t\tStackId: k8s_coreStack.ID(),\n\t\t\tTokenScopes: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"https://www.googleapis.com/auth/compute\"),\n\t\t\t\tpulumi.String(\"https://www.googleapis.com/auth/cloud-platform\"),\n\t\t\t\tpulumi.String(\"https://www.googleapis.com/auth/devstorage.full_control\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = organizations.NewProject(ctx, \"k8s-coreProject\", \u0026organizations.ProjectArgs{\n\t\t\tProjectId: pulumi.String(\"unicorn-k8s-core\"),\n\t\t\tOrgId: pulumi.Any(_var.Gcp_organization_id),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = projects.NewIAMMember(ctx, \"k8s-coreIAMMember\", \u0026projects.IAMMemberArgs{\n\t\t\tProject: k8s_coreProject.ID(),\n\t\t\tRole: pulumi.String(\"roles/owner\"),\n\t\t\tMember: k8s_coreStackGcpServiceAccount.ServiceAccountEmail.ApplyT(func(serviceAccountEmail string) (string, error) {\n\t\t\t\treturn fmt.Sprintf(\"serviceAccount:%v\", serviceAccountEmail), nil\n\t\t\t}).(pulumi.StringOutput),\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.spacelift.Stack;\nimport com.pulumi.spacelift.StackArgs;\nimport com.pulumi.spacelift.StackGcpServiceAccount;\nimport com.pulumi.spacelift.StackGcpServiceAccountArgs;\nimport com.pulumi.gcp.organizations.Project;\nimport com.pulumi.gcp.organizations.ProjectArgs;\nimport com.pulumi.gcp.projects.IAMMember;\nimport com.pulumi.gcp.projects.IAMMemberArgs;\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 k8s_coreStack = new Stack(\"k8s-coreStack\", StackArgs.builder() \n .branch(\"master\")\n .repository(\"core-infra\")\n .build());\n\n var k8s_coreStackGcpServiceAccount = new StackGcpServiceAccount(\"k8s-coreStackGcpServiceAccount\", StackGcpServiceAccountArgs.builder() \n .stackId(k8s_coreStack.id())\n .tokenScopes( \n \"https://www.googleapis.com/auth/compute\",\n \"https://www.googleapis.com/auth/cloud-platform\",\n \"https://www.googleapis.com/auth/devstorage.full_control\")\n .build());\n\n var k8s_coreProject = new Project(\"k8s-coreProject\", ProjectArgs.builder() \n .projectId(\"unicorn-k8s-core\")\n .orgId(var_.gcp_organization_id())\n .build());\n\n var k8s_coreIAMMember = new IAMMember(\"k8s-coreIAMMember\", IAMMemberArgs.builder() \n .project(k8s_coreProject.id())\n .role(\"roles/owner\")\n .member(k8s_coreStackGcpServiceAccount.serviceAccountEmail().applyValue(serviceAccountEmail -\u003e String.format(\"serviceAccount:%s\", serviceAccountEmail)))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n k8s-coreStack:\n type: spacelift:Stack\n properties:\n branch: master\n repository: core-infra\n k8s-coreStackGcpServiceAccount:\n type: spacelift:StackGcpServiceAccount\n properties:\n stackId: ${[\"k8s-coreStack\"].id}\n tokenScopes:\n - https://www.googleapis.com/auth/compute\n - https://www.googleapis.com/auth/cloud-platform\n - https://www.googleapis.com/auth/devstorage.full_control\n k8s-coreProject:\n type: gcp:organizations:Project\n properties:\n projectId: unicorn-k8s-core\n orgId: ${var.gcp_organization_id}\n k8s-coreIAMMember:\n type: gcp:projects:IAMMember\n properties:\n project: ${[\"k8s-coreProject\"].id}\n role: roles/owner\n member: serviceAccount:${[\"k8s-coreStackGcpServiceAccount\"].serviceAccountEmail}\n```\n{{% /example %}}\n{{% /examples %}}",
"properties": {
"moduleId": {
"type": "string",
@@ -5705,28 +6348,70 @@
}
},
"spacelift:index/getAzureDevopsIntegration:getAzureDevopsIntegration": {
- "description": "`spacelift.getAzureDevopsIntegration` returns details about Azure DevOps integration\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as spacelift from \"@pulumi/spacelift\";\n\nconst azureDevopsIntegration = spacelift.getAzureDevopsIntegration({});\n```\n```python\nimport pulumi\nimport pulumi_spacelift as spacelift\n\nazure_devops_integration = spacelift.get_azure_devops_integration()\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Spacelift = Pulumi.Spacelift;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var azureDevopsIntegration = Spacelift.GetAzureDevopsIntegration.Invoke();\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/spacelift-io/pulumi-spacelift/sdk/v2/go/spacelift\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := spacelift.GetAzureDevopsIntegration(ctx, nil, nil)\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.spacelift.SpaceliftFunctions;\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 azureDevopsIntegration = SpaceliftFunctions.getAzureDevopsIntegration();\n\n }\n}\n```\n```yaml\nvariables:\n azureDevopsIntegration:\n fn::invoke:\n Function: spacelift:getAzureDevopsIntegration\n Arguments: {}\n```\n{{% /example %}}\n{{% /examples %}}",
+ "description": "`spacelift.getAzureDevopsIntegration` returns details about Azure DevOps integration\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as spacelift from \"@pulumi/spacelift\";\n\nconst azureDevopsIntegration = spacelift.getAzureDevopsIntegration({});\n```\n```python\nimport pulumi\nimport pulumi_spacelift as spacelift\n\nazure_devops_integration = spacelift.get_azure_devops_integration()\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Spacelift = Pulumi.Spacelift;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var azureDevopsIntegration = Spacelift.GetAzureDevopsIntegration.Invoke();\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/spacelift-io/pulumi-spacelift/sdk/v2/go/spacelift\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := spacelift.GetAzureDevopsIntegration(ctx, nil, nil)\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.spacelift.SpaceliftFunctions;\nimport com.pulumi.spacelift.inputs.GetAzureDevopsIntegrationArgs;\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 azureDevopsIntegration = SpaceliftFunctions.getAzureDevopsIntegration();\n\n }\n}\n```\n```yaml\nvariables:\n azureDevopsIntegration:\n fn::invoke:\n Function: spacelift:getAzureDevopsIntegration\n Arguments: {}\n```\n{{% /example %}}\n{{% /examples %}}",
+ "inputs": {
+ "description": "A collection of arguments for invoking getAzureDevopsIntegration.\n",
+ "properties": {
+ "id": {
+ "type": "string",
+ "description": "Azure DevOps integration id. If not provided, the default integration will be returned\n"
+ }
+ },
+ "type": "object"
+ },
"outputs": {
"description": "A collection of values returned by getAzureDevopsIntegration.\n",
"properties": {
+ "description": {
+ "type": "string",
+ "description": "Azure DevOps integration description\n"
+ },
"id": {
"type": "string",
- "description": "The provider-assigned unique ID for this managed resource.\n"
+ "description": "Azure DevOps integration id. If not provided, the default integration will be returned\n"
+ },
+ "isDefault": {
+ "type": "boolean",
+ "description": "Azure DevOps integration is default\n"
+ },
+ "labels": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "Azure DevOps integration labels\n"
+ },
+ "name": {
+ "type": "string",
+ "description": "Azure DevOps integration name\n"
},
"organizationUrl": {
"type": "string",
"description": "Azure DevOps integration organization url\n"
},
+ "spaceId": {
+ "type": "string",
+ "description": "Azure DevOps integration space id\n"
+ },
"webhookPassword": {
"type": "string",
"description": "Azure DevOps integration webhook password\n"
+ },
+ "webhookUrl": {
+ "type": "string",
+ "description": "Azure DevOps integration webhook url\n"
}
},
"type": "object",
"required": [
+ "description",
+ "isDefault",
+ "labels",
+ "name",
"organizationUrl",
+ "spaceId",
"webhookPassword",
- "id"
+ "webhookUrl"
]
}
},
@@ -5907,43 +6592,122 @@
}
},
"spacelift:index/getBitbucketCloudIntegration:getBitbucketCloudIntegration": {
- "description": "`spacelift.getBitbucketCloudIntegration` returns details about Bitbucket Cloud integration\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as spacelift from \"@pulumi/spacelift\";\n\nconst bitbucketCloudIntegration = spacelift.getBitbucketCloudIntegration({});\n```\n```python\nimport pulumi\nimport pulumi_spacelift as spacelift\n\nbitbucket_cloud_integration = spacelift.get_bitbucket_cloud_integration()\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Spacelift = Pulumi.Spacelift;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var bitbucketCloudIntegration = Spacelift.GetBitbucketCloudIntegration.Invoke();\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/spacelift-io/pulumi-spacelift/sdk/v2/go/spacelift\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := spacelift.GetBitbucketCloudIntegration(ctx, nil, nil)\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.spacelift.SpaceliftFunctions;\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 bitbucketCloudIntegration = SpaceliftFunctions.getBitbucketCloudIntegration();\n\n }\n}\n```\n```yaml\nvariables:\n bitbucketCloudIntegration:\n fn::invoke:\n Function: spacelift:getBitbucketCloudIntegration\n Arguments: {}\n```\n{{% /example %}}\n{{% /examples %}}",
+ "description": "`spacelift.getBitbucketCloudIntegration` returns details about Bitbucket Cloud integration\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as spacelift from \"@pulumi/spacelift\";\n\nconst bitbucketCloudIntegration = spacelift.getBitbucketCloudIntegration({});\n```\n```python\nimport pulumi\nimport pulumi_spacelift as spacelift\n\nbitbucket_cloud_integration = spacelift.get_bitbucket_cloud_integration()\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Spacelift = Pulumi.Spacelift;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var bitbucketCloudIntegration = Spacelift.GetBitbucketCloudIntegration.Invoke();\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/spacelift-io/pulumi-spacelift/sdk/v2/go/spacelift\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := spacelift.GetBitbucketCloudIntegration(ctx, nil, nil)\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.spacelift.SpaceliftFunctions;\nimport com.pulumi.spacelift.inputs.GetBitbucketCloudIntegrationArgs;\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 bitbucketCloudIntegration = SpaceliftFunctions.getBitbucketCloudIntegration();\n\n }\n}\n```\n```yaml\nvariables:\n bitbucketCloudIntegration:\n fn::invoke:\n Function: spacelift:getBitbucketCloudIntegration\n Arguments: {}\n```\n{{% /example %}}\n{{% /examples %}}",
+ "inputs": {
+ "description": "A collection of arguments for invoking getBitbucketCloudIntegration.\n",
+ "properties": {
+ "id": {
+ "type": "string",
+ "description": "Bitbucket Cloud integration id. If not provided, the default integration will be returned\n"
+ }
+ },
+ "type": "object"
+ },
"outputs": {
"description": "A collection of values returned by getBitbucketCloudIntegration.\n",
"properties": {
+ "description": {
+ "type": "string",
+ "description": "Bitbucket Cloud integration description\n"
+ },
"id": {
"type": "string",
- "description": "The provider-assigned unique ID for this managed resource.\n"
+ "description": "Bitbucket Cloud integration id. If not provided, the default integration will be returned\n"
+ },
+ "isDefault": {
+ "type": "boolean",
+ "description": "Bitbucket Cloud integration is default\n"
+ },
+ "labels": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "Bitbucket Cloud integration labels\n"
+ },
+ "name": {
+ "type": "string",
+ "description": "Bitbucket Cloud integration name\n"
+ },
+ "spaceId": {
+ "type": "string",
+ "description": "Bitbucket Cloud integration space id\n"
},
"username": {
"type": "string",
"description": "Bitbucket Cloud username\n"
+ },
+ "webhookUrl": {
+ "type": "string",
+ "description": "Bitbucket Cloud integration webhook URL\n"
}
},
"type": "object",
"required": [
+ "description",
+ "isDefault",
+ "labels",
+ "name",
+ "spaceId",
"username",
- "id"
+ "webhookUrl"
]
}
},
"spacelift:index/getBitbucketDatacenterIntegration:getBitbucketDatacenterIntegration": {
- "description": "`spacelift.getBitbucketDatacenterIntegration` returns details about Bitbucket Datacenter integration\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as spacelift from \"@pulumi/spacelift\";\n\nconst bitbucketDatacenterIntegration = spacelift.getBitbucketDatacenterIntegration({});\n```\n```python\nimport pulumi\nimport pulumi_spacelift as spacelift\n\nbitbucket_datacenter_integration = spacelift.get_bitbucket_datacenter_integration()\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Spacelift = Pulumi.Spacelift;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var bitbucketDatacenterIntegration = Spacelift.GetBitbucketDatacenterIntegration.Invoke();\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/spacelift-io/pulumi-spacelift/sdk/v2/go/spacelift\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := spacelift.GetBitbucketDatacenterIntegration(ctx, nil, nil)\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.spacelift.SpaceliftFunctions;\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 bitbucketDatacenterIntegration = SpaceliftFunctions.getBitbucketDatacenterIntegration();\n\n }\n}\n```\n```yaml\nvariables:\n bitbucketDatacenterIntegration:\n fn::invoke:\n Function: spacelift:getBitbucketDatacenterIntegration\n Arguments: {}\n```\n{{% /example %}}\n{{% /examples %}}",
+ "description": "`spacelift.getBitbucketDatacenterIntegration` returns details about Bitbucket Datacenter integration\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as spacelift from \"@pulumi/spacelift\";\n\nconst bitbucketDatacenterIntegration = spacelift.getBitbucketDatacenterIntegration({});\n```\n```python\nimport pulumi\nimport pulumi_spacelift as spacelift\n\nbitbucket_datacenter_integration = spacelift.get_bitbucket_datacenter_integration()\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Spacelift = Pulumi.Spacelift;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var bitbucketDatacenterIntegration = Spacelift.GetBitbucketDatacenterIntegration.Invoke();\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/spacelift-io/pulumi-spacelift/sdk/v2/go/spacelift\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := spacelift.GetBitbucketDatacenterIntegration(ctx, nil, nil)\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.spacelift.SpaceliftFunctions;\nimport com.pulumi.spacelift.inputs.GetBitbucketDatacenterIntegrationArgs;\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 bitbucketDatacenterIntegration = SpaceliftFunctions.getBitbucketDatacenterIntegration();\n\n }\n}\n```\n```yaml\nvariables:\n bitbucketDatacenterIntegration:\n fn::invoke:\n Function: spacelift:getBitbucketDatacenterIntegration\n Arguments: {}\n```\n{{% /example %}}\n{{% /examples %}}",
+ "inputs": {
+ "description": "A collection of arguments for invoking getBitbucketDatacenterIntegration.\n",
+ "properties": {
+ "id": {
+ "type": "string",
+ "description": "Bitbucket Datacenter integration id. If not provided, the default integration will be returned\n"
+ }
+ },
+ "type": "object"
+ },
"outputs": {
"description": "A collection of values returned by getBitbucketDatacenterIntegration.\n",
"properties": {
"apiHost": {
"type": "string",
- "description": "Bitbucket Datacenter integration api host\n"
+ "description": "Bitbucket Datacenter integration api host\n"
+ },
+ "description": {
+ "type": "string",
+ "description": "Bitbucket Datacenter integration description\n"
+ },
+ "id": {
+ "type": "string",
+ "description": "Bitbucket Datacenter integration id. If not provided, the default integration will be returned\n"
+ },
+ "isDefault": {
+ "type": "boolean",
+ "description": "Bitbucket Datacenter integration is default\n"
+ },
+ "labels": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "Bitbucket Datacenter integration labels\n"
+ },
+ "name": {
+ "type": "string",
+ "description": "Bitbucket Datacenter integration name\n"
},
- "id": {
+ "spaceId": {
"type": "string",
- "description": "The provider-assigned unique ID for this managed resource.\n"
+ "description": "Bitbucket Datacenter integration space id\n"
},
"userFacingHost": {
"type": "string",
"description": "Bitbucket Datacenter integration user facing host\n"
},
+ "username": {
+ "type": "string",
+ "description": "Bitbucket Datacenter username\n"
+ },
"webhookSecret": {
"type": "string",
"description": "Bitbucket Datacenter integration webhook secret\n"
@@ -5956,10 +6720,15 @@
"type": "object",
"required": [
"apiHost",
+ "description",
+ "isDefault",
+ "labels",
+ "name",
+ "spaceId",
"userFacingHost",
+ "username",
"webhookSecret",
- "webhookUrl",
- "id"
+ "webhookUrl"
]
}
},
@@ -5968,6 +6737,83 @@
"inputs": {
"description": "A collection of arguments for invoking getContext.\n",
"properties": {
+ "afterApplies": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of after-apply scripts\n"
+ },
+ "afterDestroys": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of after-destroy scripts\n"
+ },
+ "afterInits": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of after-init scripts\n"
+ },
+ "afterPerforms": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of after-perform scripts\n"
+ },
+ "afterPlans": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of after-plan scripts\n"
+ },
+ "afterRuns": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of after-run scripts\n"
+ },
+ "beforeApplies": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of before-apply scripts\n"
+ },
+ "beforeDestroys": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of before-destroy scripts\n"
+ },
+ "beforeInits": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of before-init scripts\n"
+ },
+ "beforePerforms": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of before-perform scripts\n"
+ },
+ "beforePlans": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of before-plan scripts\n"
+ },
"contextId": {
"type": "string",
"description": "immutable ID (slug) of the context\n"
@@ -5981,6 +6827,83 @@
"outputs": {
"description": "A collection of values returned by getContext.\n",
"properties": {
+ "afterApplies": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of after-apply scripts\n"
+ },
+ "afterDestroys": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of after-destroy scripts\n"
+ },
+ "afterInits": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of after-init scripts\n"
+ },
+ "afterPerforms": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of after-perform scripts\n"
+ },
+ "afterPlans": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of after-plan scripts\n"
+ },
+ "afterRuns": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of after-run scripts\n"
+ },
+ "beforeApplies": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of before-apply scripts\n"
+ },
+ "beforeDestroys": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of before-destroy scripts\n"
+ },
+ "beforeInits": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of before-init scripts\n"
+ },
+ "beforePerforms": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of before-perform scripts\n"
+ },
+ "beforePlans": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "List of before-plan scripts\n"
+ },
"contextId": {
"type": "string",
"description": "immutable ID (slug) of the context\n"
@@ -6010,6 +6933,16 @@
},
"type": "object",
"required": [
+ "afterApplies",
+ "afterDestroys",
+ "afterInits",
+ "afterPerforms",
+ "afterPlans",
+ "beforeApplies",
+ "beforeDestroys",
+ "beforeInits",
+ "beforePerforms",
+ "beforePlans",
"contextId",
"description",
"labels",
@@ -6334,7 +7267,17 @@
}
},
"spacelift:index/getGithubEnterpriseIntegration:getGithubEnterpriseIntegration": {
- "description": "`spacelift.getGithubEnterpriseIntegration` returns details about Github Enterprise integration\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as spacelift from \"@pulumi/spacelift\";\n\nconst githubEnterpriseIntegration = spacelift.getGithubEnterpriseIntegration({});\n```\n```python\nimport pulumi\nimport pulumi_spacelift as spacelift\n\ngithub_enterprise_integration = spacelift.get_github_enterprise_integration()\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Spacelift = Pulumi.Spacelift;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var githubEnterpriseIntegration = Spacelift.GetGithubEnterpriseIntegration.Invoke();\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/spacelift-io/pulumi-spacelift/sdk/v2/go/spacelift\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := spacelift.GetGithubEnterpriseIntegration(ctx, nil, nil)\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.spacelift.SpaceliftFunctions;\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 githubEnterpriseIntegration = SpaceliftFunctions.getGithubEnterpriseIntegration();\n\n }\n}\n```\n```yaml\nvariables:\n githubEnterpriseIntegration:\n fn::invoke:\n Function: spacelift:getGithubEnterpriseIntegration\n Arguments: {}\n```\n{{% /example %}}\n{{% /examples %}}",
+ "description": "`spacelift.getGithubEnterpriseIntegration` returns details about Github Enterprise integration\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as spacelift from \"@pulumi/spacelift\";\n\nconst githubEnterpriseIntegration = spacelift.getGithubEnterpriseIntegration({});\n```\n```python\nimport pulumi\nimport pulumi_spacelift as spacelift\n\ngithub_enterprise_integration = spacelift.get_github_enterprise_integration()\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Spacelift = Pulumi.Spacelift;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var githubEnterpriseIntegration = Spacelift.GetGithubEnterpriseIntegration.Invoke();\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/spacelift-io/pulumi-spacelift/sdk/v2/go/spacelift\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := spacelift.GetGithubEnterpriseIntegration(ctx, nil, nil)\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.spacelift.SpaceliftFunctions;\nimport com.pulumi.spacelift.inputs.GetGithubEnterpriseIntegrationArgs;\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 githubEnterpriseIntegration = SpaceliftFunctions.getGithubEnterpriseIntegration();\n\n }\n}\n```\n```yaml\nvariables:\n githubEnterpriseIntegration:\n fn::invoke:\n Function: spacelift:getGithubEnterpriseIntegration\n Arguments: {}\n```\n{{% /example %}}\n{{% /examples %}}",
+ "inputs": {
+ "description": "A collection of arguments for invoking getGithubEnterpriseIntegration.\n",
+ "properties": {
+ "id": {
+ "type": "string",
+ "description": "Github integration id. If not provided, the default integration will be returned\n"
+ }
+ },
+ "type": "object"
+ },
"outputs": {
"description": "A collection of values returned by getGithubEnterpriseIntegration.\n",
"properties": {
@@ -6346,26 +7289,68 @@
"type": "string",
"description": "Github integration app id\n"
},
+ "description": {
+ "type": "string",
+ "description": "Github integration description\n"
+ },
"id": {
"type": "string",
- "description": "The provider-assigned unique ID for this managed resource.\n"
+ "description": "Github integration id. If not provided, the default integration will be returned\n"
+ },
+ "isDefault": {
+ "type": "boolean",
+ "description": "Github integration is default\n"
+ },
+ "labels": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "Github integration labels\n"
+ },
+ "name": {
+ "type": "string",
+ "description": "Github integration name\n"
+ },
+ "spaceId": {
+ "type": "string",
+ "description": "Github integration space id\n"
},
"webhookSecret": {
"type": "string",
"description": "Github integration webhook secret\n"
+ },
+ "webhookUrl": {
+ "type": "string",
+ "description": "Github integration webhook url\n"
}
},
"type": "object",
"required": [
"apiHost",
"appId",
+ "description",
+ "isDefault",
+ "labels",
+ "name",
+ "spaceId",
"webhookSecret",
- "id"
+ "webhookUrl"
]
}
},
"spacelift:index/getGitlabIntegration:getGitlabIntegration": {
- "description": "`spacelift.getGitlabIntegration` returns details about Gitlab integration\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as spacelift from \"@pulumi/spacelift\";\n\nconst gitlabIntegration = spacelift.getGitlabIntegration({});\n```\n```python\nimport pulumi\nimport pulumi_spacelift as spacelift\n\ngitlab_integration = spacelift.get_gitlab_integration()\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Spacelift = Pulumi.Spacelift;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var gitlabIntegration = Spacelift.GetGitlabIntegration.Invoke();\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/spacelift-io/pulumi-spacelift/sdk/v2/go/spacelift\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := spacelift.GetGitlabIntegration(ctx, nil, nil)\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.spacelift.SpaceliftFunctions;\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 gitlabIntegration = SpaceliftFunctions.getGitlabIntegration();\n\n }\n}\n```\n```yaml\nvariables:\n gitlabIntegration:\n fn::invoke:\n Function: spacelift:getGitlabIntegration\n Arguments: {}\n```\n{{% /example %}}\n{{% /examples %}}",
+ "description": "`spacelift.getGitlabIntegration` returns details about Gitlab integration\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as spacelift from \"@pulumi/spacelift\";\n\nconst gitlabIntegration = spacelift.getGitlabIntegration({});\n```\n```python\nimport pulumi\nimport pulumi_spacelift as spacelift\n\ngitlab_integration = spacelift.get_gitlab_integration()\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Spacelift = Pulumi.Spacelift;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var gitlabIntegration = Spacelift.GetGitlabIntegration.Invoke();\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/spacelift-io/pulumi-spacelift/sdk/v2/go/spacelift\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := spacelift.GetGitlabIntegration(ctx, nil, nil)\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.spacelift.SpaceliftFunctions;\nimport com.pulumi.spacelift.inputs.GetGitlabIntegrationArgs;\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 gitlabIntegration = SpaceliftFunctions.getGitlabIntegration();\n\n }\n}\n```\n```yaml\nvariables:\n gitlabIntegration:\n fn::invoke:\n Function: spacelift:getGitlabIntegration\n Arguments: {}\n```\n{{% /example %}}\n{{% /examples %}}",
+ "inputs": {
+ "description": "A collection of arguments for invoking getGitlabIntegration.\n",
+ "properties": {
+ "id": {
+ "type": "string",
+ "description": "Gitlab integration id. If not provided, the default integration will be returned\n"
+ }
+ },
+ "type": "object"
+ },
"outputs": {
"description": "A collection of values returned by getGitlabIntegration.\n",
"properties": {
@@ -6373,20 +7358,52 @@
"type": "string",
"description": "Gitlab integration api host\n"
},
+ "description": {
+ "type": "string",
+ "description": "Gitlab integration description\n"
+ },
"id": {
"type": "string",
- "description": "The provider-assigned unique ID for this managed resource.\n"
+ "description": "Gitlab integration id. If not provided, the default integration will be returned\n"
+ },
+ "isDefault": {
+ "type": "boolean",
+ "description": "Gitlab integration is default\n"
+ },
+ "labels": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "Gitlab integration labels\n"
+ },
+ "name": {
+ "type": "string",
+ "description": "Gitlab integration name\n"
+ },
+ "spaceId": {
+ "type": "string",
+ "description": "Gitlab integration space id\n"
},
"webhookSecret": {
"type": "string",
"description": "Gitlab integration webhook secret\n"
+ },
+ "webhookUrl": {
+ "type": "string",
+ "description": "Gitlab integration webhook url\n"
}
},
"type": "object",
"required": [
"apiHost",
+ "description",
+ "isDefault",
+ "labels",
+ "name",
+ "spaceId",
"webhookSecret",
- "id"
+ "webhookUrl"
]
}
},
@@ -7120,6 +8137,13 @@
"inputs": {
"description": "A collection of arguments for invoking getStack.\n",
"properties": {
+ "additionalProjectGlobs": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "Project globs is an optional list of paths to track changes of in addition to the project root.\n"
+ },
"afterApplies": {
"type": "array",
"items": {
@@ -7210,6 +8234,13 @@
"outputs": {
"description": "A collection of values returned by getStack.\n",
"properties": {
+ "additionalProjectGlobs": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "Project globs is an optional list of paths to track changes of in addition to the project root.\n"
+ },
"administrative": {
"type": "boolean",
"description": "indicates whether this stack can administer others\n"
diff --git a/provider/go.mod b/provider/go.mod
index ecda0bb..76a94fd 100644
--- a/provider/go.mod
+++ b/provider/go.mod
@@ -10,7 +10,7 @@ replace (
require (
github.com/pulumi/pulumi-terraform-bridge/v3 v3.63.1
github.com/pulumi/pulumi/sdk/v3 v3.91.0
- github.com/spacelift-io/terraform-provider-spacelift v1.6.0
+ github.com/spacelift-io/terraform-provider-spacelift v1.9.3
)
require (
@@ -111,7 +111,7 @@ require (
github.com/hashicorp/go-immutable-radix v1.3.1 // indirect
github.com/hashicorp/go-multierror v1.1.1 // indirect
github.com/hashicorp/go-plugin v1.5.1 // indirect
- github.com/hashicorp/go-retryablehttp v0.7.1 // indirect
+ github.com/hashicorp/go-retryablehttp v0.7.4 // indirect
github.com/hashicorp/go-rootcerts v1.0.2 // indirect
github.com/hashicorp/go-safetemp v1.0.0 // indirect
github.com/hashicorp/go-secure-stdlib/mlock v0.1.2 // indirect
@@ -221,7 +221,7 @@ require (
golang.org/x/exp v0.0.0-20231006140011-7918f672742d // indirect
golang.org/x/mod v0.13.0 // indirect
golang.org/x/net v0.17.0 // indirect
- golang.org/x/oauth2 v0.8.0 // indirect
+ golang.org/x/oauth2 v0.13.0 // indirect
golang.org/x/sync v0.4.0 // indirect
golang.org/x/sys v0.15.0 // indirect
golang.org/x/term v0.15.0 // indirect
diff --git a/provider/go.sum b/provider/go.sum
index ab34b6f..2267f02 100644
--- a/provider/go.sum
+++ b/provider/go.sum
@@ -1574,8 +1574,9 @@ github.com/hashicorp/go-plugin v1.5.1 h1:oGm7cWBaYIp3lJpx1RUEfLWophprE2EV/KUeqBY
github.com/hashicorp/go-plugin v1.5.1/go.mod h1:w1sAEES3g3PuV/RzUrgow20W2uErMly84hhD3um1WL4=
github.com/hashicorp/go-retryablehttp v0.5.3/go.mod h1:9B5zBasrRhHXnJnui7y6sL7es7NDiJgTc6Er0maI1Xs=
github.com/hashicorp/go-retryablehttp v0.6.6/go.mod h1:vAew36LZh98gCBJNLH42IQ1ER/9wtLZZ8meHqQvEYWY=
-github.com/hashicorp/go-retryablehttp v0.7.1 h1:sUiuQAnLlbvmExtFQs72iFW/HXeUn8Z1aJLQ4LJJbTQ=
github.com/hashicorp/go-retryablehttp v0.7.1/go.mod h1:vAew36LZh98gCBJNLH42IQ1ER/9wtLZZ8meHqQvEYWY=
+github.com/hashicorp/go-retryablehttp v0.7.4 h1:ZQgVdpTdAL7WpMIwLzCfbalOcSUdkDZnpUv3/+BxzFA=
+github.com/hashicorp/go-retryablehttp v0.7.4/go.mod h1:Jy/gPYAdjqffZ/yFGCFV2doI5wjtH1ewM9u8iYVjtX8=
github.com/hashicorp/go-rootcerts v1.0.0/go.mod h1:K6zTfqpRlCUIjkwsN4Z+hiSfzSTQa6eBIzfwKfwNnHU=
github.com/hashicorp/go-rootcerts v1.0.2 h1:jzhAVGtqPKbwpyCPELlgNWhE1znq+qwJtW5Oi2viEzc=
github.com/hashicorp/go-rootcerts v1.0.2/go.mod h1:pqUvnprVnM5bf7AOirdbb01K4ccR319Vf4pU3K5EGc8=
@@ -2252,8 +2253,8 @@ github.com/soheilhy/cmux v0.1.5/go.mod h1:T7TcVDs9LWfQgPlPsdngu6I6QIoyIFZDDC6sNE
github.com/sony/gobreaker v0.4.1/go.mod h1:ZKptC7FHNvhBz7dN2LGjPVBz2sZJmc0/PkyDJOjmxWY=
github.com/spacelift-io/graphql v1.1.0 h1:LHVbHHPev1xCBAgJqVoo2t8XPgck4plq7TxlumVR+3Y=
github.com/spacelift-io/graphql v1.1.0/go.mod h1:38Gellz6DbdwPcYHLHByFDScgORYU7pVCOE7rFCg3bg=
-github.com/spacelift-io/terraform-provider-spacelift v1.6.0 h1:nCDQho6DnQ6DluQGl8AUiUaumUeYGktc13Dylw6Ljfk=
-github.com/spacelift-io/terraform-provider-spacelift v1.6.0/go.mod h1:wjWvyoM6Y8sUwxC/j1tMXekBxXYheh1yj/RYv1GZszA=
+github.com/spacelift-io/terraform-provider-spacelift v1.9.3 h1:jneOBNVWvd9wr6GmsB9/WUUwxTUMgI+j5PKF5t9lJgU=
+github.com/spacelift-io/terraform-provider-spacelift v1.9.3/go.mod h1:DfjA8XAXSDn1q9a2e3WGn6Uqv0R23/frf99TL12ZpkE=
github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA=
github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ=
github.com/spf13/afero v1.2.2/go.mod h1:9ZxEEn6pIJ8Rxe320qSDBk6AsU0r9pR7Q4OcevTdifk=
@@ -2746,8 +2747,8 @@ golang.org/x/oauth2 v0.4.0/go.mod h1:RznEsdpjGAINPTOF0UH/t+xJ75L18YO3Ho6Pyn+uRec
golang.org/x/oauth2 v0.5.0/go.mod h1:9/XBHVqLaWO3/BRHs5jbpYCnOZVjj5V0ndyaAM7KB4I=
golang.org/x/oauth2 v0.6.0/go.mod h1:ycmewcwgD4Rpr3eZJLSB4Kyyljb3qDh40vJ8STE5HKw=
golang.org/x/oauth2 v0.7.0/go.mod h1:hPLQkd9LyjfXTiRohC/41GhcFqxisoUQ99sCUOHO9x4=
-golang.org/x/oauth2 v0.8.0 h1:6dkIjl3j3LtZ/O3sTgZTMsLKSftL/B8Zgq4huOIIUu8=
-golang.org/x/oauth2 v0.8.0/go.mod h1:yr7u4HXZRm1R1kBWqr/xKNqewf0plRYoB7sla+BCIXE=
+golang.org/x/oauth2 v0.13.0 h1:jDDenyj+WgFtmV3zYVoi8aE2BwtXFLWOA67ZfNWftiY=
+golang.org/x/oauth2 v0.13.0/go.mod h1:/JMhi4ZRXAf4HG9LiNmxvk+45+96RUlVThiH8FzNBn0=
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
diff --git a/provider/resources.go b/provider/resources.go
index 07b8780..2720638 100644
--- a/provider/resources.go
+++ b/provider/resources.go
@@ -2,7 +2,6 @@ package spacelift
import (
"fmt"
-
"path/filepath"
"github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfbridge"
@@ -94,6 +93,7 @@ func Provider() tfbridge.ProviderInfo {
},
PreConfigureCallback: preConfigureCallback,
Resources: map[string]*tfbridge.ResourceInfo{
+ "spacelift_audit_trail_webhook": {Tok: tfbridge.MakeResource(mainPkg, mainMod, "AuditTrailWebhook")},
"spacelift_aws_integration": {Tok: tfbridge.MakeResource(mainPkg, mainMod, "AwsIntegration")},
"spacelift_aws_integration_attachment": {Tok: tfbridge.MakeResource(mainPkg, mainMod, "AwsIntegrationAttachment")},
"spacelift_aws_role": {Tok: tfbridge.MakeResource(mainPkg, mainMod, "AwsRole")},
@@ -115,6 +115,7 @@ func Provider() tfbridge.ProviderInfo {
"spacelift_run": {Tok: tfbridge.MakeResource(mainPkg, mainMod, "Run")},
"spacelift_scheduled_delete_stack": {Tok: tfbridge.MakeResource(mainPkg, mainMod, "ScheduledDeleteTask")},
"spacelift_scheduled_task": {Tok: tfbridge.MakeResource(mainPkg, mainMod, "ScheduledTask")},
+ "spacelift_security_email": {Tok: tfbridge.MakeResource(mainPkg, mainMod, "SecurityEmail")},
"spacelift_space": {Tok: tfbridge.MakeResource(mainPkg, mainMod, "Space")},
"spacelift_stack": {Tok: tfbridge.MakeResource(mainPkg, mainMod, "Stack"), Fields: map[string]*tfbridge.SchemaInfo{
"pulumi": {
diff --git a/sdk/dotnet/AuditTrailWebhook.cs b/sdk/dotnet/AuditTrailWebhook.cs
new file mode 100644
index 0000000..fb08eb3
--- /dev/null
+++ b/sdk/dotnet/AuditTrailWebhook.cs
@@ -0,0 +1,194 @@
+// *** 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! ***
+
+using System;
+using System.Collections.Generic;
+using System.Collections.Immutable;
+using System.Threading.Tasks;
+using Pulumi.Serialization;
+
+namespace Pulumi.Spacelift
+{
+ ///
+ /// `spacelift.AuditTrailWebhook` represents a webhook endpoint to which Spacelift sends POST requests about audit events.
+ ///
+ /// ## Example Usage
+ ///
+ /// ```csharp
+ /// using System.Collections.Generic;
+ /// using System.Linq;
+ /// using Pulumi;
+ /// using Spacelift = Pulumi.Spacelift;
+ ///
+ /// return await Deployment.RunAsync(() =>
+ /// {
+ /// var example = new Spacelift.AuditTrailWebhook("example", new()
+ /// {
+ /// Enabled = true,
+ /// Endpoint = "https://example.com",
+ /// Secret = "mysecretkey",
+ /// });
+ ///
+ /// });
+ /// ```
+ ///
+ [SpaceliftResourceType("spacelift:index/auditTrailWebhook:AuditTrailWebhook")]
+ public partial class AuditTrailWebhook : global::Pulumi.CustomResource
+ {
+ ///
+ /// `enabled` determines whether the webhook is enabled. If it is not, Spacelift will not send any requests to the endpoint.
+ ///
+ [Output("enabled")]
+ public Output Enabled { get; private set; } = null!;
+
+ ///
+ /// `endpoint` is the URL to which Spacelift will send POST requests about audit events.
+ ///
+ [Output("endpoint")]
+ public Output Endpoint { get; private set; } = null!;
+
+ ///
+ /// `include_runs` determines whether the webhook should include information about the run that triggered the event.
+ ///
+ [Output("includeRuns")]
+ public Output IncludeRuns { get; private set; } = null!;
+
+ ///
+ /// `secret` is a secret that Spacelift will send with the request
+ ///
+ [Output("secret")]
+ public Output Secret { get; private set; } = null!;
+
+
+ ///
+ /// Create a AuditTrailWebhook resource with the given unique name, arguments, and options.
+ ///
+ ///
+ /// The unique name of the resource
+ /// The arguments used to populate this resource's properties
+ /// A bag of options that control this resource's behavior
+ public AuditTrailWebhook(string name, AuditTrailWebhookArgs args, CustomResourceOptions? options = null)
+ : base("spacelift:index/auditTrailWebhook:AuditTrailWebhook", name, args ?? new AuditTrailWebhookArgs(), MakeResourceOptions(options, ""))
+ {
+ }
+
+ private AuditTrailWebhook(string name, Input id, AuditTrailWebhookState? state = null, CustomResourceOptions? options = null)
+ : base("spacelift:index/auditTrailWebhook:AuditTrailWebhook", name, state, MakeResourceOptions(options, id))
+ {
+ }
+
+ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id)
+ {
+ var defaultOptions = new CustomResourceOptions
+ {
+ Version = Utilities.Version,
+ PluginDownloadURL = "https://downloads.spacelift.io/pulumi-plugins",
+ AdditionalSecretOutputs =
+ {
+ "secret",
+ },
+ };
+ var merged = CustomResourceOptions.Merge(defaultOptions, options);
+ // Override the ID if one was specified for consistency with other language SDKs.
+ merged.Id = id ?? merged.Id;
+ return merged;
+ }
+ ///
+ /// Get an existing AuditTrailWebhook resource's state with the given name, ID, and optional extra
+ /// properties used to qualify the lookup.
+ ///
+ ///
+ /// The unique name of the resulting resource.
+ /// The unique provider ID of the resource to lookup.
+ /// Any extra arguments used during the lookup.
+ /// A bag of options that control this resource's behavior
+ public static AuditTrailWebhook Get(string name, Input id, AuditTrailWebhookState? state = null, CustomResourceOptions? options = null)
+ {
+ return new AuditTrailWebhook(name, id, state, options);
+ }
+ }
+
+ public sealed class AuditTrailWebhookArgs : global::Pulumi.ResourceArgs
+ {
+ ///
+ /// `enabled` determines whether the webhook is enabled. If it is not, Spacelift will not send any requests to the endpoint.
+ ///
+ [Input("enabled", required: true)]
+ public Input Enabled { get; set; } = null!;
+
+ ///
+ /// `endpoint` is the URL to which Spacelift will send POST requests about audit events.
+ ///
+ [Input("endpoint", required: true)]
+ public Input Endpoint { get; set; } = null!;
+
+ ///
+ /// `include_runs` determines whether the webhook should include information about the run that triggered the event.
+ ///
+ [Input("includeRuns")]
+ public Input? IncludeRuns { get; set; }
+
+ [Input("secret", required: true)]
+ private Input? _secret;
+
+ ///
+ /// `secret` is a secret that Spacelift will send with the request
+ ///
+ public Input? Secret
+ {
+ get => _secret;
+ set
+ {
+ var emptySecret = Output.CreateSecret(0);
+ _secret = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1);
+ }
+ }
+
+ public AuditTrailWebhookArgs()
+ {
+ }
+ public static new AuditTrailWebhookArgs Empty => new AuditTrailWebhookArgs();
+ }
+
+ public sealed class AuditTrailWebhookState : global::Pulumi.ResourceArgs
+ {
+ ///
+ /// `enabled` determines whether the webhook is enabled. If it is not, Spacelift will not send any requests to the endpoint.
+ ///
+ [Input("enabled")]
+ public Input? Enabled { get; set; }
+
+ ///
+ /// `endpoint` is the URL to which Spacelift will send POST requests about audit events.
+ ///
+ [Input("endpoint")]
+ public Input? Endpoint { get; set; }
+
+ ///
+ /// `include_runs` determines whether the webhook should include information about the run that triggered the event.
+ ///
+ [Input("includeRuns")]
+ public Input? IncludeRuns { get; set; }
+
+ [Input("secret")]
+ private Input? _secret;
+
+ ///
+ /// `secret` is a secret that Spacelift will send with the request
+ ///
+ public Input? Secret
+ {
+ get => _secret;
+ set
+ {
+ var emptySecret = Output.CreateSecret(0);
+ _secret = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1);
+ }
+ }
+
+ public AuditTrailWebhookState()
+ {
+ }
+ public static new AuditTrailWebhookState Empty => new AuditTrailWebhookState();
+ }
+}
diff --git a/sdk/dotnet/Context.cs b/sdk/dotnet/Context.cs
index f8b8a20..8398879 100644
--- a/sdk/dotnet/Context.cs
+++ b/sdk/dotnet/Context.cs
@@ -39,6 +39,72 @@ namespace Pulumi.Spacelift
[SpaceliftResourceType("spacelift:index/context:Context")]
public partial class Context : global::Pulumi.CustomResource
{
+ ///
+ /// List of after-apply scripts
+ ///
+ [Output("afterApplies")]
+ public Output> AfterApplies { get; private set; } = null!;
+
+ ///
+ /// List of after-destroy scripts
+ ///
+ [Output("afterDestroys")]
+ public Output> AfterDestroys { get; private set; } = null!;
+
+ ///
+ /// List of after-init scripts
+ ///
+ [Output("afterInits")]
+ public Output> AfterInits { get; private set; } = null!;
+
+ ///
+ /// List of after-perform scripts
+ ///
+ [Output("afterPerforms")]
+ public Output> AfterPerforms { get; private set; } = null!;
+
+ ///
+ /// List of after-plan scripts
+ ///
+ [Output("afterPlans")]
+ public Output> AfterPlans { get; private set; } = null!;
+
+ ///
+ /// List of after-run scripts
+ ///
+ [Output("afterRuns")]
+ public Output> AfterRuns { get; private set; } = null!;
+
+ ///
+ /// List of before-apply scripts
+ ///
+ [Output("beforeApplies")]
+ public Output> BeforeApplies { get; private set; } = null!;
+
+ ///
+ /// List of before-destroy scripts
+ ///
+ [Output("beforeDestroys")]
+ public Output> BeforeDestroys { get; private set; } = null!;
+
+ ///
+ /// List of before-init scripts
+ ///
+ [Output("beforeInits")]
+ public Output> BeforeInits { get; private set; } = null!;
+
+ ///
+ /// List of before-perform scripts
+ ///
+ [Output("beforePerforms")]
+ public Output> BeforePerforms { get; private set; } = null!;
+
+ ///
+ /// List of before-plan scripts
+ ///
+ [Output("beforePlans")]
+ public Output> BeforePlans { get; private set; } = null!;
+
///
/// Free-form context description for users
///
@@ -107,6 +173,138 @@ public static Context Get(string name, Input id, ContextState? state = n
public sealed class ContextArgs : global::Pulumi.ResourceArgs
{
+ [Input("afterApplies")]
+ private InputList? _afterApplies;
+
+ ///
+ /// List of after-apply scripts
+ ///
+ public InputList AfterApplies
+ {
+ get => _afterApplies ?? (_afterApplies = new InputList());
+ set => _afterApplies = value;
+ }
+
+ [Input("afterDestroys")]
+ private InputList? _afterDestroys;
+
+ ///
+ /// List of after-destroy scripts
+ ///
+ public InputList AfterDestroys
+ {
+ get => _afterDestroys ?? (_afterDestroys = new InputList());
+ set => _afterDestroys = value;
+ }
+
+ [Input("afterInits")]
+ private InputList? _afterInits;
+
+ ///
+ /// List of after-init scripts
+ ///
+ public InputList AfterInits
+ {
+ get => _afterInits ?? (_afterInits = new InputList());
+ set => _afterInits = value;
+ }
+
+ [Input("afterPerforms")]
+ private InputList? _afterPerforms;
+
+ ///
+ /// List of after-perform scripts
+ ///
+ public InputList AfterPerforms
+ {
+ get => _afterPerforms ?? (_afterPerforms = new InputList());
+ set => _afterPerforms = value;
+ }
+
+ [Input("afterPlans")]
+ private InputList? _afterPlans;
+
+ ///
+ /// List of after-plan scripts
+ ///
+ public InputList AfterPlans
+ {
+ get => _afterPlans ?? (_afterPlans = new InputList());
+ set => _afterPlans = value;
+ }
+
+ [Input("afterRuns")]
+ private InputList? _afterRuns;
+
+ ///
+ /// List of after-run scripts
+ ///
+ public InputList AfterRuns
+ {
+ get => _afterRuns ?? (_afterRuns = new InputList());
+ set => _afterRuns = value;
+ }
+
+ [Input("beforeApplies")]
+ private InputList? _beforeApplies;
+
+ ///
+ /// List of before-apply scripts
+ ///
+ public InputList BeforeApplies
+ {
+ get => _beforeApplies ?? (_beforeApplies = new InputList());
+ set => _beforeApplies = value;
+ }
+
+ [Input("beforeDestroys")]
+ private InputList? _beforeDestroys;
+
+ ///
+ /// List of before-destroy scripts
+ ///
+ public InputList BeforeDestroys
+ {
+ get => _beforeDestroys ?? (_beforeDestroys = new InputList());
+ set => _beforeDestroys = value;
+ }
+
+ [Input("beforeInits")]
+ private InputList? _beforeInits;
+
+ ///
+ /// List of before-init scripts
+ ///
+ public InputList BeforeInits
+ {
+ get => _beforeInits ?? (_beforeInits = new InputList());
+ set => _beforeInits = value;
+ }
+
+ [Input("beforePerforms")]
+ private InputList? _beforePerforms;
+
+ ///
+ /// List of before-perform scripts
+ ///
+ public InputList BeforePerforms
+ {
+ get => _beforePerforms ?? (_beforePerforms = new InputList());
+ set => _beforePerforms = value;
+ }
+
+ [Input("beforePlans")]
+ private InputList? _beforePlans;
+
+ ///
+ /// List of before-plan scripts
+ ///
+ public InputList BeforePlans
+ {
+ get => _beforePlans ?? (_beforePlans = new InputList());
+ set => _beforePlans = value;
+ }
+
///
/// Free-form context description for users
///
@@ -141,6 +339,138 @@ public ContextArgs()
public sealed class ContextState : global::Pulumi.ResourceArgs
{
+ [Input("afterApplies")]
+ private InputList? _afterApplies;
+
+ ///
+ /// List of after-apply scripts
+ ///
+ public InputList AfterApplies
+ {
+ get => _afterApplies ?? (_afterApplies = new InputList());
+ set => _afterApplies = value;
+ }
+
+ [Input("afterDestroys")]
+ private InputList? _afterDestroys;
+
+ ///
+ /// List of after-destroy scripts
+ ///
+ public InputList AfterDestroys
+ {
+ get => _afterDestroys ?? (_afterDestroys = new InputList());
+ set => _afterDestroys = value;
+ }
+
+ [Input("afterInits")]
+ private InputList? _afterInits;
+
+ ///
+ /// List of after-init scripts
+ ///
+ public InputList AfterInits
+ {
+ get => _afterInits ?? (_afterInits = new InputList());
+ set => _afterInits = value;
+ }
+
+ [Input("afterPerforms")]
+ private InputList? _afterPerforms;
+
+ ///
+ /// List of after-perform scripts
+ ///
+ public InputList AfterPerforms
+ {
+ get => _afterPerforms ?? (_afterPerforms = new InputList());
+ set => _afterPerforms = value;
+ }
+
+ [Input("afterPlans")]
+ private InputList? _afterPlans;
+
+ ///
+ /// List of after-plan scripts
+ ///
+ public InputList AfterPlans
+ {
+ get => _afterPlans ?? (_afterPlans = new InputList());
+ set => _afterPlans = value;
+ }
+
+ [Input("afterRuns")]
+ private InputList? _afterRuns;
+
+ ///
+ /// List of after-run scripts
+ ///
+ public InputList AfterRuns
+ {
+ get => _afterRuns ?? (_afterRuns = new InputList());
+ set => _afterRuns = value;
+ }
+
+ [Input("beforeApplies")]
+ private InputList? _beforeApplies;
+
+ ///
+ /// List of before-apply scripts
+ ///
+ public InputList BeforeApplies
+ {
+ get => _beforeApplies ?? (_beforeApplies = new InputList());
+ set => _beforeApplies = value;
+ }
+
+ [Input("beforeDestroys")]
+ private InputList? _beforeDestroys;
+
+ ///
+ /// List of before-destroy scripts
+ ///
+ public InputList BeforeDestroys
+ {
+ get => _beforeDestroys ?? (_beforeDestroys = new InputList());
+ set => _beforeDestroys = value;
+ }
+
+ [Input("beforeInits")]
+ private InputList? _beforeInits;
+
+ ///
+ /// List of before-init scripts
+ ///
+ public InputList BeforeInits
+ {
+ get => _beforeInits ?? (_beforeInits = new InputList());
+ set => _beforeInits = value;
+ }
+
+ [Input("beforePerforms")]
+ private InputList? _beforePerforms;
+
+ ///
+ /// List of before-perform scripts
+ ///
+ public InputList BeforePerforms
+ {
+ get => _beforePerforms ?? (_beforePerforms = new InputList());
+ set => _beforePerforms = value;
+ }
+
+ [Input("beforePlans")]
+ private InputList? _beforePlans;
+
+ ///
+ /// List of before-plan scripts
+ ///
+ public InputList BeforePlans
+ {
+ get => _beforePlans ?? (_beforePlans = new InputList());
+ set => _beforePlans = value;
+ }
+
///
/// Free-form context description for users
///
diff --git a/sdk/dotnet/GcpServiceAccount.cs b/sdk/dotnet/GcpServiceAccount.cs
index 181fdfe..c6719a5 100644
--- a/sdk/dotnet/GcpServiceAccount.cs
+++ b/sdk/dotnet/GcpServiceAccount.cs
@@ -16,7 +16,7 @@ namespace Pulumi.Spacelift
/// using System.Collections.Generic;
/// using System.Linq;
/// using Pulumi;
- /// using Google = Pulumi.Google;
+ /// using Gcp = Pulumi.Gcp;
/// using Spacelift = Pulumi.Spacelift;
///
/// return await Deployment.RunAsync(() =>
@@ -38,18 +38,17 @@ namespace Pulumi.Spacelift
/// },
/// });
///
- /// var k8s_coregoogle_project = new Google.Index.Google_project("k8s-coregoogle_project", new()
+ /// var k8s_coreProject = new Gcp.Organizations.Project("k8s-coreProject", new()
/// {
- /// Name = "Kubernetes code",
/// ProjectId = "unicorn-k8s-core",
/// OrgId = @var.Gcp_organization_id,
/// });
///
- /// var k8s_coregoogle_project_iam_member = new Google.Index.Google_project_iam_member("k8s-coregoogle_project_iam_member", new()
+ /// var k8s_coreIAMMember = new Gcp.Projects.IAMMember("k8s-coreIAMMember", new()
/// {
- /// Project = k8s_coregoogle_project.Id,
+ /// Project = k8s_coreProject.Id,
/// Role = "roles/owner",
- /// Member = $"serviceAccount:{k8s_coreGcpServiceAccount.ServiceAccountEmail}",
+ /// Member = k8s_coreGcpServiceAccount.ServiceAccountEmail.Apply(serviceAccountEmail => $"serviceAccount:{serviceAccountEmail}"),
/// });
///
/// });
diff --git a/sdk/dotnet/GetAzureDevopsIntegration.cs b/sdk/dotnet/GetAzureDevopsIntegration.cs
index 2c0f4b8..47a94f2 100644
--- a/sdk/dotnet/GetAzureDevopsIntegration.cs
+++ b/sdk/dotnet/GetAzureDevopsIntegration.cs
@@ -33,8 +33,8 @@ public static class GetAzureDevopsIntegration
/// {{% /example %}}
/// {{% /examples %}}
///
- public static Task InvokeAsync(InvokeOptions? options = null)
- => global::Pulumi.Deployment.Instance.InvokeAsync("spacelift:index/getAzureDevopsIntegration:getAzureDevopsIntegration", InvokeArgs.Empty, options.WithDefaults());
+ public static Task InvokeAsync(GetAzureDevopsIntegrationArgs? args = null, InvokeOptions? options = null)
+ => global::Pulumi.Deployment.Instance.InvokeAsync("spacelift:index/getAzureDevopsIntegration:getAzureDevopsIntegration", args ?? new GetAzureDevopsIntegrationArgs(), options.WithDefaults());
///
/// `spacelift.getAzureDevopsIntegration` returns details about Azure DevOps integration
@@ -58,8 +58,37 @@ public static Task InvokeAsync(InvokeOptions? o
/// {{% /example %}}
/// {{% /examples %}}
///
- public static Output Invoke(InvokeOptions? options = null)
- => global::Pulumi.Deployment.Instance.Invoke("spacelift:index/getAzureDevopsIntegration:getAzureDevopsIntegration", InvokeArgs.Empty, options.WithDefaults());
+ public static Output Invoke(GetAzureDevopsIntegrationInvokeArgs? args = null, InvokeOptions? options = null)
+ => global::Pulumi.Deployment.Instance.Invoke("spacelift:index/getAzureDevopsIntegration:getAzureDevopsIntegration", args ?? new GetAzureDevopsIntegrationInvokeArgs(), options.WithDefaults());
+ }
+
+
+ public sealed class GetAzureDevopsIntegrationArgs : global::Pulumi.InvokeArgs
+ {
+ ///
+ /// Azure DevOps integration id. If not provided, the default integration will be returned
+ ///
+ [Input("id")]
+ public string? Id { get; set; }
+
+ public GetAzureDevopsIntegrationArgs()
+ {
+ }
+ public static new GetAzureDevopsIntegrationArgs Empty => new GetAzureDevopsIntegrationArgs();
+ }
+
+ public sealed class GetAzureDevopsIntegrationInvokeArgs : global::Pulumi.InvokeArgs
+ {
+ ///
+ /// Azure DevOps integration id. If not provided, the default integration will be returned
+ ///
+ [Input("id")]
+ public Input? Id { get; set; }
+
+ public GetAzureDevopsIntegrationInvokeArgs()
+ {
+ }
+ public static new GetAzureDevopsIntegrationInvokeArgs Empty => new GetAzureDevopsIntegrationInvokeArgs();
}
@@ -67,29 +96,71 @@ public static Output Invoke(InvokeOptions? opti
public sealed class GetAzureDevopsIntegrationResult
{
///
- /// The provider-assigned unique ID for this managed resource.
+ /// Azure DevOps integration description
///
- public readonly string Id;
+ public readonly string Description;
+ ///
+ /// Azure DevOps integration id. If not provided, the default integration will be returned
+ ///
+ public readonly string? Id;
+ ///
+ /// Azure DevOps integration is default
+ ///
+ public readonly bool IsDefault;
+ ///
+ /// Azure DevOps integration labels
+ ///
+ public readonly ImmutableArray Labels;
+ ///
+ /// Azure DevOps integration name
+ ///
+ public readonly string Name;
///
/// Azure DevOps integration organization url
///
public readonly string OrganizationUrl;
///
+ /// Azure DevOps integration space id
+ ///
+ public readonly string SpaceId;
+ ///
/// Azure DevOps integration webhook password
///
public readonly string WebhookPassword;
+ ///
+ /// Azure DevOps integration webhook url
+ ///
+ public readonly string WebhookUrl;
[OutputConstructor]
private GetAzureDevopsIntegrationResult(
- string id,
+ string description,
+
+ string? id,
+
+ bool isDefault,
+
+ ImmutableArray labels,
+
+ string name,
string organizationUrl,
- string webhookPassword)
+ string spaceId,
+
+ string webhookPassword,
+
+ string webhookUrl)
{
+ Description = description;
Id = id;
+ IsDefault = isDefault;
+ Labels = labels;
+ Name = name;
OrganizationUrl = organizationUrl;
+ SpaceId = spaceId;
WebhookPassword = webhookPassword;
+ WebhookUrl = webhookUrl;
}
}
}
diff --git a/sdk/dotnet/GetBitbucketCloudIntegration.cs b/sdk/dotnet/GetBitbucketCloudIntegration.cs
index 7802a59..997f45e 100644
--- a/sdk/dotnet/GetBitbucketCloudIntegration.cs
+++ b/sdk/dotnet/GetBitbucketCloudIntegration.cs
@@ -33,8 +33,8 @@ public static class GetBitbucketCloudIntegration
/// {{% /example %}}
/// {{% /examples %}}
///
- public static Task InvokeAsync(InvokeOptions? options = null)
- => global::Pulumi.Deployment.Instance.InvokeAsync("spacelift:index/getBitbucketCloudIntegration:getBitbucketCloudIntegration", InvokeArgs.Empty, options.WithDefaults());
+ public static Task InvokeAsync(GetBitbucketCloudIntegrationArgs? args = null, InvokeOptions? options = null)
+ => global::Pulumi.Deployment.Instance.InvokeAsync("spacelift:index/getBitbucketCloudIntegration:getBitbucketCloudIntegration", args ?? new GetBitbucketCloudIntegrationArgs(), options.WithDefaults());
///
/// `spacelift.getBitbucketCloudIntegration` returns details about Bitbucket Cloud integration
@@ -58,8 +58,37 @@ public static Task InvokeAsync(InvokeOptions
/// {{% /example %}}
/// {{% /examples %}}
///
- public static Output Invoke(InvokeOptions? options = null)
- => global::Pulumi.Deployment.Instance.Invoke("spacelift:index/getBitbucketCloudIntegration:getBitbucketCloudIntegration", InvokeArgs.Empty, options.WithDefaults());
+ public static Output Invoke(GetBitbucketCloudIntegrationInvokeArgs? args = null, InvokeOptions? options = null)
+ => global::Pulumi.Deployment.Instance.Invoke("spacelift:index/getBitbucketCloudIntegration:getBitbucketCloudIntegration", args ?? new GetBitbucketCloudIntegrationInvokeArgs(), options.WithDefaults());
+ }
+
+
+ public sealed class GetBitbucketCloudIntegrationArgs : global::Pulumi.InvokeArgs
+ {
+ ///
+ /// Bitbucket Cloud integration id. If not provided, the default integration will be returned
+ ///
+ [Input("id")]
+ public string? Id { get; set; }
+
+ public GetBitbucketCloudIntegrationArgs()
+ {
+ }
+ public static new GetBitbucketCloudIntegrationArgs Empty => new GetBitbucketCloudIntegrationArgs();
+ }
+
+ public sealed class GetBitbucketCloudIntegrationInvokeArgs : global::Pulumi.InvokeArgs
+ {
+ ///
+ /// Bitbucket Cloud integration id. If not provided, the default integration will be returned
+ ///
+ [Input("id")]
+ public Input? Id { get; set; }
+
+ public GetBitbucketCloudIntegrationInvokeArgs()
+ {
+ }
+ public static new GetBitbucketCloudIntegrationInvokeArgs Empty => new GetBitbucketCloudIntegrationInvokeArgs();
}
@@ -67,22 +96,64 @@ public static Output Invoke(InvokeOptions? o
public sealed class GetBitbucketCloudIntegrationResult
{
///
- /// The provider-assigned unique ID for this managed resource.
+ /// Bitbucket Cloud integration description
///
- public readonly string Id;
+ public readonly string Description;
+ ///
+ /// Bitbucket Cloud integration id. If not provided, the default integration will be returned
+ ///
+ public readonly string? Id;
+ ///
+ /// Bitbucket Cloud integration is default
+ ///
+ public readonly bool IsDefault;
+ ///
+ /// Bitbucket Cloud integration labels
+ ///
+ public readonly ImmutableArray Labels;
+ ///
+ /// Bitbucket Cloud integration name
+ ///
+ public readonly string Name;
+ ///
+ /// Bitbucket Cloud integration space id
+ ///
+ public readonly string SpaceId;
///
/// Bitbucket Cloud username
///
public readonly string Username;
+ ///
+ /// Bitbucket Cloud integration webhook URL
+ ///
+ public readonly string WebhookUrl;
[OutputConstructor]
private GetBitbucketCloudIntegrationResult(
- string id,
+ string description,
+
+ string? id,
+
+ bool isDefault,
+
+ ImmutableArray labels,
+
+ string name,
+
+ string spaceId,
+
+ string username,
- string username)
+ string webhookUrl)
{
+ Description = description;
Id = id;
+ IsDefault = isDefault;
+ Labels = labels;
+ Name = name;
+ SpaceId = spaceId;
Username = username;
+ WebhookUrl = webhookUrl;
}
}
}
diff --git a/sdk/dotnet/GetBitbucketDatacenterIntegration.cs b/sdk/dotnet/GetBitbucketDatacenterIntegration.cs
index 94eaba9..00aac3a 100644
--- a/sdk/dotnet/GetBitbucketDatacenterIntegration.cs
+++ b/sdk/dotnet/GetBitbucketDatacenterIntegration.cs
@@ -33,8 +33,8 @@ public static class GetBitbucketDatacenterIntegration
/// {{% /example %}}
/// {{% /examples %}}
///
- public static Task InvokeAsync(InvokeOptions? options = null)
- => global::Pulumi.Deployment.Instance.InvokeAsync("spacelift:index/getBitbucketDatacenterIntegration:getBitbucketDatacenterIntegration", InvokeArgs.Empty, options.WithDefaults());
+ public static Task InvokeAsync(GetBitbucketDatacenterIntegrationArgs? args = null, InvokeOptions? options = null)
+ => global::Pulumi.Deployment.Instance.InvokeAsync("spacelift:index/getBitbucketDatacenterIntegration:getBitbucketDatacenterIntegration", args ?? new GetBitbucketDatacenterIntegrationArgs(), options.WithDefaults());
///
/// `spacelift.getBitbucketDatacenterIntegration` returns details about Bitbucket Datacenter integration
@@ -58,8 +58,37 @@ public static Task InvokeAsync(InvokeOp
/// {{% /example %}}
/// {{% /examples %}}
///
- public static Output Invoke(InvokeOptions? options = null)
- => global::Pulumi.Deployment.Instance.Invoke("spacelift:index/getBitbucketDatacenterIntegration:getBitbucketDatacenterIntegration", InvokeArgs.Empty, options.WithDefaults());
+ public static Output Invoke(GetBitbucketDatacenterIntegrationInvokeArgs? args = null, InvokeOptions? options = null)
+ => global::Pulumi.Deployment.Instance.Invoke("spacelift:index/getBitbucketDatacenterIntegration:getBitbucketDatacenterIntegration", args ?? new GetBitbucketDatacenterIntegrationInvokeArgs(), options.WithDefaults());
+ }
+
+
+ public sealed class GetBitbucketDatacenterIntegrationArgs : global::Pulumi.InvokeArgs
+ {
+ ///
+ /// Bitbucket Datacenter integration id. If not provided, the default integration will be returned
+ ///
+ [Input("id")]
+ public string? Id { get; set; }
+
+ public GetBitbucketDatacenterIntegrationArgs()
+ {
+ }
+ public static new GetBitbucketDatacenterIntegrationArgs Empty => new GetBitbucketDatacenterIntegrationArgs();
+ }
+
+ public sealed class GetBitbucketDatacenterIntegrationInvokeArgs : global::Pulumi.InvokeArgs
+ {
+ ///
+ /// Bitbucket Datacenter integration id. If not provided, the default integration will be returned
+ ///
+ [Input("id")]
+ public Input? Id { get; set; }
+
+ public GetBitbucketDatacenterIntegrationInvokeArgs()
+ {
+ }
+ public static new GetBitbucketDatacenterIntegrationInvokeArgs Empty => new GetBitbucketDatacenterIntegrationInvokeArgs();
}
@@ -71,14 +100,38 @@ public sealed class GetBitbucketDatacenterIntegrationResult
///
public readonly string ApiHost;
///
- /// The provider-assigned unique ID for this managed resource.
+ /// Bitbucket Datacenter integration description
///
- public readonly string Id;
+ public readonly string Description;
+ ///
+ /// Bitbucket Datacenter integration id. If not provided, the default integration will be returned
+ ///
+ public readonly string? Id;
+ ///
+ /// Bitbucket Datacenter integration is default
+ ///
+ public readonly bool IsDefault;
+ ///
+ /// Bitbucket Datacenter integration labels
+ ///
+ public readonly ImmutableArray Labels;
+ ///
+ /// Bitbucket Datacenter integration name
+ ///
+ public readonly string Name;
+ ///
+ /// Bitbucket Datacenter integration space id
+ ///
+ public readonly string SpaceId;
///
/// Bitbucket Datacenter integration user facing host
///
public readonly string UserFacingHost;
///
+ /// Bitbucket Datacenter username
+ ///
+ public readonly string Username;
+ ///
/// Bitbucket Datacenter integration webhook secret
///
public readonly string WebhookSecret;
@@ -91,17 +144,35 @@ public sealed class GetBitbucketDatacenterIntegrationResult
private GetBitbucketDatacenterIntegrationResult(
string apiHost,
- string id,
+ string description,
+
+ string? id,
+
+ bool isDefault,
+
+ ImmutableArray labels,
+
+ string name,
+
+ string spaceId,
string userFacingHost,
+ string username,
+
string webhookSecret,
string webhookUrl)
{
ApiHost = apiHost;
+ Description = description;
Id = id;
+ IsDefault = isDefault;
+ Labels = labels;
+ Name = name;
+ SpaceId = spaceId;
UserFacingHost = userFacingHost;
+ Username = username;
WebhookSecret = webhookSecret;
WebhookUrl = webhookUrl;
}
diff --git a/sdk/dotnet/GetContext.cs b/sdk/dotnet/GetContext.cs
index 76481fd..b6fd24b 100644
--- a/sdk/dotnet/GetContext.cs
+++ b/sdk/dotnet/GetContext.cs
@@ -71,6 +71,138 @@ public static Output Invoke(GetContextInvokeArgs args, InvokeO
public sealed class GetContextArgs : global::Pulumi.InvokeArgs
{
+ [Input("afterApplies")]
+ private List? _afterApplies;
+
+ ///
+ /// List of after-apply scripts
+ ///
+ public List AfterApplies
+ {
+ get => _afterApplies ?? (_afterApplies = new List());
+ set => _afterApplies = value;
+ }
+
+ [Input("afterDestroys")]
+ private List? _afterDestroys;
+
+ ///
+ /// List of after-destroy scripts
+ ///
+ public List AfterDestroys
+ {
+ get => _afterDestroys ?? (_afterDestroys = new List());
+ set => _afterDestroys = value;
+ }
+
+ [Input("afterInits")]
+ private List? _afterInits;
+
+ ///
+ /// List of after-init scripts
+ ///
+ public List AfterInits
+ {
+ get => _afterInits ?? (_afterInits = new List());
+ set => _afterInits = value;
+ }
+
+ [Input("afterPerforms")]
+ private List? _afterPerforms;
+
+ ///
+ /// List of after-perform scripts
+ ///
+ public List AfterPerforms
+ {
+ get => _afterPerforms ?? (_afterPerforms = new List());
+ set => _afterPerforms = value;
+ }
+
+ [Input("afterPlans")]
+ private List? _afterPlans;
+
+ ///
+ /// List of after-plan scripts
+ ///
+ public List AfterPlans
+ {
+ get => _afterPlans ?? (_afterPlans = new List());
+ set => _afterPlans = value;
+ }
+
+ [Input("afterRuns")]
+ private List? _afterRuns;
+
+ ///
+ /// List of after-run scripts
+ ///
+ public List AfterRuns
+ {
+ get => _afterRuns ?? (_afterRuns = new List());
+ set => _afterRuns = value;
+ }
+
+ [Input("beforeApplies")]
+ private List? _beforeApplies;
+
+ ///
+ /// List of before-apply scripts
+ ///
+ public List BeforeApplies
+ {
+ get => _beforeApplies ?? (_beforeApplies = new List());
+ set => _beforeApplies = value;
+ }
+
+ [Input("beforeDestroys")]
+ private List? _beforeDestroys;
+
+ ///
+ /// List of before-destroy scripts
+ ///
+ public List BeforeDestroys
+ {
+ get => _beforeDestroys ?? (_beforeDestroys = new List());
+ set => _beforeDestroys = value;
+ }
+
+ [Input("beforeInits")]
+ private List? _beforeInits;
+
+ ///
+ /// List of before-init scripts
+ ///
+ public List BeforeInits
+ {
+ get => _beforeInits ?? (_beforeInits = new List());
+ set => _beforeInits = value;
+ }
+
+ [Input("beforePerforms")]
+ private List? _beforePerforms;
+
+ ///
+ /// List of before-perform scripts
+ ///
+ public List BeforePerforms
+ {
+ get => _beforePerforms ?? (_beforePerforms = new List());
+ set => _beforePerforms = value;
+ }
+
+ [Input("beforePlans")]
+ private List? _beforePlans;
+
+ ///
+ /// List of before-plan scripts
+ ///
+ public List BeforePlans
+ {
+ get => _beforePlans ?? (_beforePlans = new List());
+ set => _beforePlans = value;
+ }
+
///
/// immutable ID (slug) of the context
///
@@ -85,6 +217,138 @@ public GetContextArgs()
public sealed class GetContextInvokeArgs : global::Pulumi.InvokeArgs
{
+ [Input("afterApplies")]
+ private InputList? _afterApplies;
+
+ ///
+ /// List of after-apply scripts
+ ///
+ public InputList AfterApplies
+ {
+ get => _afterApplies ?? (_afterApplies = new InputList());
+ set => _afterApplies = value;
+ }
+
+ [Input("afterDestroys")]
+ private InputList? _afterDestroys;
+
+ ///
+ /// List of after-destroy scripts
+ ///
+ public InputList AfterDestroys
+ {
+ get => _afterDestroys ?? (_afterDestroys = new InputList());
+ set => _afterDestroys = value;
+ }
+
+ [Input("afterInits")]
+ private InputList? _afterInits;
+
+ ///
+ /// List of after-init scripts
+ ///
+ public InputList AfterInits
+ {
+ get => _afterInits ?? (_afterInits = new InputList());
+ set => _afterInits = value;
+ }
+
+ [Input("afterPerforms")]
+ private InputList? _afterPerforms;
+
+ ///
+ /// List of after-perform scripts
+ ///
+ public InputList AfterPerforms
+ {
+ get => _afterPerforms ?? (_afterPerforms = new InputList());
+ set => _afterPerforms = value;
+ }
+
+ [Input("afterPlans")]
+ private InputList? _afterPlans;
+
+ ///
+ /// List of after-plan scripts
+ ///
+ public InputList AfterPlans
+ {
+ get => _afterPlans ?? (_afterPlans = new InputList());
+ set => _afterPlans = value;
+ }
+
+ [Input("afterRuns")]
+ private InputList? _afterRuns;
+
+ ///
+ /// List of after-run scripts
+ ///
+ public InputList AfterRuns
+ {
+ get => _afterRuns ?? (_afterRuns = new InputList());
+ set => _afterRuns = value;
+ }
+
+ [Input("beforeApplies")]
+ private InputList? _beforeApplies;
+
+ ///
+ /// List of before-apply scripts
+ ///
+ public InputList BeforeApplies
+ {
+ get => _beforeApplies ?? (_beforeApplies = new InputList());
+ set => _beforeApplies = value;
+ }
+
+ [Input("beforeDestroys")]
+ private InputList? _beforeDestroys;
+
+ ///
+ /// List of before-destroy scripts
+ ///
+ public InputList BeforeDestroys
+ {
+ get => _beforeDestroys ?? (_beforeDestroys = new InputList());
+ set => _beforeDestroys = value;
+ }
+
+ [Input("beforeInits")]
+ private InputList? _beforeInits;
+
+ ///
+ /// List of before-init scripts
+ ///
+ public InputList BeforeInits
+ {
+ get => _beforeInits ?? (_beforeInits = new InputList());
+ set => _beforeInits = value;
+ }
+
+ [Input("beforePerforms")]
+ private InputList? _beforePerforms;
+
+ ///
+ /// List of before-perform scripts
+ ///
+ public InputList BeforePerforms
+ {
+ get => _beforePerforms ?? (_beforePerforms = new InputList());
+ set => _beforePerforms = value;
+ }
+
+ [Input("beforePlans")]
+ private InputList? _beforePlans;
+
+ ///
+ /// List of before-plan scripts
+ ///
+ public InputList BeforePlans
+ {
+ get => _beforePlans ?? (_beforePlans = new InputList());
+ set => _beforePlans = value;
+ }
+
///
/// immutable ID (slug) of the context
///
@@ -101,6 +365,50 @@ public GetContextInvokeArgs()
[OutputType]
public sealed class GetContextResult
{
+ ///
+ /// List of after-apply scripts
+ ///
+ public readonly ImmutableArray AfterApplies;
+ ///
+ /// List of after-destroy scripts
+ ///
+ public readonly ImmutableArray AfterDestroys;
+ ///
+ /// List of after-init scripts
+ ///
+ public readonly ImmutableArray AfterInits;
+ ///
+ /// List of after-perform scripts
+ ///
+ public readonly ImmutableArray AfterPerforms;
+ ///
+ /// List of after-plan scripts
+ ///
+ public readonly ImmutableArray AfterPlans;
+ ///
+ /// List of after-run scripts
+ ///
+ public readonly ImmutableArray AfterRuns;
+ ///
+ /// List of before-apply scripts
+ ///
+ public readonly ImmutableArray BeforeApplies;
+ ///
+ /// List of before-destroy scripts
+ ///
+ public readonly ImmutableArray BeforeDestroys;
+ ///
+ /// List of before-init scripts
+ ///
+ public readonly ImmutableArray BeforeInits;
+ ///
+ /// List of before-perform scripts
+ ///
+ public readonly ImmutableArray BeforePerforms;
+ ///
+ /// List of before-plan scripts
+ ///
+ public readonly ImmutableArray BeforePlans;
///
/// immutable ID (slug) of the context
///
@@ -125,6 +433,28 @@ public sealed class GetContextResult
[OutputConstructor]
private GetContextResult(
+ ImmutableArray afterApplies,
+
+ ImmutableArray afterDestroys,
+
+ ImmutableArray afterInits,
+
+ ImmutableArray afterPerforms,
+
+ ImmutableArray afterPlans,
+
+ ImmutableArray afterRuns,
+
+ ImmutableArray beforeApplies,
+
+ ImmutableArray beforeDestroys,
+
+ ImmutableArray beforeInits,
+
+ ImmutableArray beforePerforms,
+
+ ImmutableArray beforePlans,
+
string contextId,
string description,
@@ -137,6 +467,17 @@ private GetContextResult(
string spaceId)
{
+ AfterApplies = afterApplies;
+ AfterDestroys = afterDestroys;
+ AfterInits = afterInits;
+ AfterPerforms = afterPerforms;
+ AfterPlans = afterPlans;
+ AfterRuns = afterRuns;
+ BeforeApplies = beforeApplies;
+ BeforeDestroys = beforeDestroys;
+ BeforeInits = beforeInits;
+ BeforePerforms = beforePerforms;
+ BeforePlans = beforePlans;
ContextId = contextId;
Description = description;
Id = id;
diff --git a/sdk/dotnet/GetGithubEnterpriseIntegration.cs b/sdk/dotnet/GetGithubEnterpriseIntegration.cs
index 3634cb5..ff2e2be 100644
--- a/sdk/dotnet/GetGithubEnterpriseIntegration.cs
+++ b/sdk/dotnet/GetGithubEnterpriseIntegration.cs
@@ -33,8 +33,8 @@ public static class GetGithubEnterpriseIntegration
/// {{% /example %}}
/// {{% /examples %}}
///
- public static Task InvokeAsync(InvokeOptions? options = null)
- => global::Pulumi.Deployment.Instance.InvokeAsync("spacelift:index/getGithubEnterpriseIntegration:getGithubEnterpriseIntegration", InvokeArgs.Empty, options.WithDefaults());
+ public static Task InvokeAsync(GetGithubEnterpriseIntegrationArgs? args = null, InvokeOptions? options = null)
+ => global::Pulumi.Deployment.Instance.InvokeAsync("spacelift:index/getGithubEnterpriseIntegration:getGithubEnterpriseIntegration", args ?? new GetGithubEnterpriseIntegrationArgs(), options.WithDefaults());
///
/// `spacelift.getGithubEnterpriseIntegration` returns details about Github Enterprise integration
@@ -58,8 +58,37 @@ public static Task InvokeAsync(InvokeOptio
/// {{% /example %}}
/// {{% /examples %}}
///
- public static Output Invoke(InvokeOptions? options = null)
- => global::Pulumi.Deployment.Instance.Invoke("spacelift:index/getGithubEnterpriseIntegration:getGithubEnterpriseIntegration", InvokeArgs.Empty, options.WithDefaults());
+ public static Output Invoke(GetGithubEnterpriseIntegrationInvokeArgs? args = null, InvokeOptions? options = null)
+ => global::Pulumi.Deployment.Instance.Invoke("spacelift:index/getGithubEnterpriseIntegration:getGithubEnterpriseIntegration", args ?? new GetGithubEnterpriseIntegrationInvokeArgs(), options.WithDefaults());
+ }
+
+
+ public sealed class GetGithubEnterpriseIntegrationArgs : global::Pulumi.InvokeArgs
+ {
+ ///
+ /// Github integration id. If not provided, the default integration will be returned
+ ///
+ [Input("id")]
+ public string? Id { get; set; }
+
+ public GetGithubEnterpriseIntegrationArgs()
+ {
+ }
+ public static new GetGithubEnterpriseIntegrationArgs Empty => new GetGithubEnterpriseIntegrationArgs();
+ }
+
+ public sealed class GetGithubEnterpriseIntegrationInvokeArgs : global::Pulumi.InvokeArgs
+ {
+ ///
+ /// Github integration id. If not provided, the default integration will be returned
+ ///
+ [Input("id")]
+ public Input? Id { get; set; }
+
+ public GetGithubEnterpriseIntegrationInvokeArgs()
+ {
+ }
+ public static new GetGithubEnterpriseIntegrationInvokeArgs Empty => new GetGithubEnterpriseIntegrationInvokeArgs();
}
@@ -75,13 +104,37 @@ public sealed class GetGithubEnterpriseIntegrationResult
///
public readonly string AppId;
///
- /// The provider-assigned unique ID for this managed resource.
+ /// Github integration description
///
- public readonly string Id;
+ public readonly string Description;
+ ///
+ /// Github integration id. If not provided, the default integration will be returned
+ ///
+ public readonly string? Id;
+ ///
+ /// Github integration is default
+ ///
+ public readonly bool IsDefault;
+ ///
+ /// Github integration labels
+ ///
+ public readonly ImmutableArray Labels;
+ ///
+ /// Github integration name
+ ///
+ public readonly string Name;
+ ///
+ /// Github integration space id
+ ///
+ public readonly string SpaceId;
///
/// Github integration webhook secret
///
public readonly string WebhookSecret;
+ ///
+ /// Github integration webhook url
+ ///
+ public readonly string WebhookUrl;
[OutputConstructor]
private GetGithubEnterpriseIntegrationResult(
@@ -89,14 +142,32 @@ private GetGithubEnterpriseIntegrationResult(
string appId,
- string id,
+ string description,
+
+ string? id,
+
+ bool isDefault,
+
+ ImmutableArray labels,
+
+ string name,
+
+ string spaceId,
+
+ string webhookSecret,
- string webhookSecret)
+ string webhookUrl)
{
ApiHost = apiHost;
AppId = appId;
+ Description = description;
Id = id;
+ IsDefault = isDefault;
+ Labels = labels;
+ Name = name;
+ SpaceId = spaceId;
WebhookSecret = webhookSecret;
+ WebhookUrl = webhookUrl;
}
}
}
diff --git a/sdk/dotnet/GetGitlabIntegration.cs b/sdk/dotnet/GetGitlabIntegration.cs
index f112e3f..7092422 100644
--- a/sdk/dotnet/GetGitlabIntegration.cs
+++ b/sdk/dotnet/GetGitlabIntegration.cs
@@ -33,8 +33,8 @@ public static class GetGitlabIntegration
/// {{% /example %}}
/// {{% /examples %}}
///
- public static Task InvokeAsync(InvokeOptions? options = null)
- => global::Pulumi.Deployment.Instance.InvokeAsync("spacelift:index/getGitlabIntegration:getGitlabIntegration", InvokeArgs.Empty, options.WithDefaults());
+ public static Task InvokeAsync(GetGitlabIntegrationArgs? args = null, InvokeOptions? options = null)
+ => global::Pulumi.Deployment.Instance.InvokeAsync("spacelift:index/getGitlabIntegration:getGitlabIntegration", args ?? new GetGitlabIntegrationArgs(), options.WithDefaults());
///
/// `spacelift.getGitlabIntegration` returns details about Gitlab integration
@@ -58,8 +58,37 @@ public static Task InvokeAsync(InvokeOptions? option
/// {{% /example %}}
/// {{% /examples %}}
///
- public static Output Invoke(InvokeOptions? options = null)
- => global::Pulumi.Deployment.Instance.Invoke("spacelift:index/getGitlabIntegration:getGitlabIntegration", InvokeArgs.Empty, options.WithDefaults());
+ public static Output Invoke(GetGitlabIntegrationInvokeArgs? args = null, InvokeOptions? options = null)
+ => global::Pulumi.Deployment.Instance.Invoke("spacelift:index/getGitlabIntegration:getGitlabIntegration", args ?? new GetGitlabIntegrationInvokeArgs(), options.WithDefaults());
+ }
+
+
+ public sealed class GetGitlabIntegrationArgs : global::Pulumi.InvokeArgs
+ {
+ ///
+ /// Gitlab integration id. If not provided, the default integration will be returned
+ ///
+ [Input("id")]
+ public string? Id { get; set; }
+
+ public GetGitlabIntegrationArgs()
+ {
+ }
+ public static new GetGitlabIntegrationArgs Empty => new GetGitlabIntegrationArgs();
+ }
+
+ public sealed class GetGitlabIntegrationInvokeArgs : global::Pulumi.InvokeArgs
+ {
+ ///
+ /// Gitlab integration id. If not provided, the default integration will be returned
+ ///
+ [Input("id")]
+ public Input? Id { get; set; }
+
+ public GetGitlabIntegrationInvokeArgs()
+ {
+ }
+ public static new GetGitlabIntegrationInvokeArgs Empty => new GetGitlabIntegrationInvokeArgs();
}
@@ -71,25 +100,67 @@ public sealed class GetGitlabIntegrationResult
///
public readonly string ApiHost;
///
- /// The provider-assigned unique ID for this managed resource.
+ /// Gitlab integration description
///
- public readonly string Id;
+ public readonly string Description;
+ ///
+ /// Gitlab integration id. If not provided, the default integration will be returned
+ ///
+ public readonly string? Id;
+ ///
+ /// Gitlab integration is default
+ ///
+ public readonly bool IsDefault;
+ ///
+ /// Gitlab integration labels
+ ///
+ public readonly ImmutableArray Labels;
+ ///
+ /// Gitlab integration name
+ ///
+ public readonly string Name;
+ ///
+ /// Gitlab integration space id
+ ///
+ public readonly string SpaceId;
///
/// Gitlab integration webhook secret
///
public readonly string WebhookSecret;
+ ///
+ /// Gitlab integration webhook url
+ ///
+ public readonly string WebhookUrl;
[OutputConstructor]
private GetGitlabIntegrationResult(
string apiHost,
- string id,
+ string description,
+
+ string? id,
+
+ bool isDefault,
+
+ ImmutableArray labels,
+
+ string name,
+
+ string spaceId,
+
+ string webhookSecret,
- string webhookSecret)
+ string webhookUrl)
{
ApiHost = apiHost;
+ Description = description;
Id = id;
+ IsDefault = isDefault;
+ Labels = labels;
+ Name = name;
+ SpaceId = spaceId;
WebhookSecret = webhookSecret;
+ WebhookUrl = webhookUrl;
}
}
}
diff --git a/sdk/dotnet/GetStack.cs b/sdk/dotnet/GetStack.cs
index 05501a4..294bd80 100644
--- a/sdk/dotnet/GetStack.cs
+++ b/sdk/dotnet/GetStack.cs
@@ -71,6 +71,18 @@ public static Output Invoke(GetStackInvokeArgs args, InvokeOptio
public sealed class GetStackArgs : global::Pulumi.InvokeArgs
{
+ [Input("additionalProjectGlobs")]
+ private List? _additionalProjectGlobs;
+
+ ///
+ /// Project globs is an optional list of paths to track changes of in addition to the project root.
+ ///
+ public List AdditionalProjectGlobs
+ {
+ get => _additionalProjectGlobs ?? (_additionalProjectGlobs = new List());
+ set => _additionalProjectGlobs = value;
+ }
+
[Input("afterApplies")]
private List? _afterApplies;
@@ -217,6 +229,18 @@ public GetStackArgs()
public sealed class GetStackInvokeArgs : global::Pulumi.InvokeArgs
{
+ [Input("additionalProjectGlobs")]
+ private InputList? _additionalProjectGlobs;
+
+ ///
+ /// Project globs is an optional list of paths to track changes of in addition to the project root.
+ ///
+ public InputList AdditionalProjectGlobs
+ {
+ get => _additionalProjectGlobs ?? (_additionalProjectGlobs = new InputList());
+ set => _additionalProjectGlobs = value;
+ }
+
[Input("afterApplies")]
private InputList? _afterApplies;
@@ -365,6 +389,10 @@ public GetStackInvokeArgs()
[OutputType]
public sealed class GetStackResult
{
+ ///
+ /// Project globs is an optional list of paths to track changes of in addition to the project root.
+ ///
+ public readonly ImmutableArray AdditionalProjectGlobs;
///
/// indicates whether this stack can administer others
///
@@ -536,6 +564,8 @@ public sealed class GetStackResult
[OutputConstructor]
private GetStackResult(
+ ImmutableArray additionalProjectGlobs,
+
bool administrative,
ImmutableArray afterApplies,
@@ -626,6 +656,7 @@ private GetStackResult(
string workerPoolId)
{
+ AdditionalProjectGlobs = additionalProjectGlobs;
Administrative = administrative;
AfterApplies = afterApplies;
AfterDestroys = afterDestroys;
diff --git a/sdk/dotnet/Inputs/ModuleAzureDevopsArgs.cs b/sdk/dotnet/Inputs/ModuleAzureDevopsArgs.cs
index 2e25683..5c15938 100644
--- a/sdk/dotnet/Inputs/ModuleAzureDevopsArgs.cs
+++ b/sdk/dotnet/Inputs/ModuleAzureDevopsArgs.cs
@@ -12,6 +12,18 @@ namespace Pulumi.Spacelift.Inputs
public sealed class ModuleAzureDevopsArgs : global::Pulumi.ResourceArgs
{
+ ///
+ /// ID of the Azure Devops integration. If not specified, the default integration will be used.
+ ///
+ [Input("id")]
+ public Input? Id { get; set; }
+
+ ///