From d2fa80f34955a725d8b76d0a140372f4a02aa3cb Mon Sep 17 00:00:00 2001 From: pulumi-bot Date: Tue, 3 Sep 2024 17:34:33 +0000 Subject: [PATCH 1/2] make tfgen --- examples/go.mod | 4 +- examples/go.sum | 8 ++-- .../cmd/pulumi-resource-nomad/schema.json | 48 +++++++++---------- provider/go.mod | 9 ++-- provider/go.sum | 17 ++++--- sdk/go.mod | 2 +- sdk/go.sum | 4 +- 7 files changed, 50 insertions(+), 42 deletions(-) diff --git a/examples/go.mod b/examples/go.mod index 82998ca..a39c064 100644 --- a/examples/go.mod +++ b/examples/go.mod @@ -2,7 +2,7 @@ module github.com/pulumi/pulumi-nomad/examples go 1.21 -require github.com/pulumi/pulumi/pkg/v3 v3.129.0 +require github.com/pulumi/pulumi/pkg/v3 v3.130.0 require ( cloud.google.com/go v0.112.1 // indirect @@ -123,7 +123,7 @@ require ( github.com/pmezard/go-difflib v1.0.0 // indirect github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 // indirect github.com/pulumi/esc v0.9.1 // indirect - github.com/pulumi/pulumi/sdk/v3 v3.129.0 // indirect + github.com/pulumi/pulumi/sdk/v3 v3.130.0 // indirect github.com/rivo/uniseg v0.4.4 // indirect github.com/rogpeppe/go-internal v1.12.0 // indirect github.com/ryanuber/go-glob v1.0.0 // indirect diff --git a/examples/go.sum b/examples/go.sum index d9d59af..1fc06cd 100644 --- a/examples/go.sum +++ b/examples/go.sum @@ -342,10 +342,10 @@ github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 h1:vkHw5I/plNdTr435 github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231/go.mod h1:murToZ2N9hNJzewjHBgfFdXhZKjY3z5cYC1VXk+lbFE= github.com/pulumi/esc v0.9.1 h1:HH5eEv8sgyxSpY5a8yePyqFXzA8cvBvapfH8457+mIs= github.com/pulumi/esc v0.9.1/go.mod h1:oEJ6bOsjYlQUpjf70GiX+CXn3VBmpwFDxUTlmtUN84c= -github.com/pulumi/pulumi/pkg/v3 v3.129.0 h1:n4Jd4ctlvw3eqyHglb/yJKDtRqjOvdkCBfG5T+orU30= -github.com/pulumi/pulumi/pkg/v3 v3.129.0/go.mod h1:W3c7JgO064kUH5IfyQMCgmsAr5iwr3PO6KEeIQiO0dY= -github.com/pulumi/pulumi/sdk/v3 v3.129.0 h1:uZpTTwWTx7Mk8UT9FgatzxzArim47vZ6hzNCKvgvX6A= -github.com/pulumi/pulumi/sdk/v3 v3.129.0/go.mod h1:p1U24en3zt51agx+WlNboSOV8eLlPWYAkxMzVEXKbnY= +github.com/pulumi/pulumi/pkg/v3 v3.130.0 h1:lS51XeCnhg72LXkMiw2FP1cGP+Y85wYD3quWhCPD5+M= +github.com/pulumi/pulumi/pkg/v3 v3.130.0/go.mod h1:jhZ1Ug5Rl1qivexgEWvmwSWYIT/jRnKSFhLwwv6PrZ0= +github.com/pulumi/pulumi/sdk/v3 v3.130.0 h1:gGJNd+akPqhZ+vrsZmAjSNJn6kGJkitjjkwrmIQMmn8= +github.com/pulumi/pulumi/sdk/v3 v3.130.0/go.mod h1:p1U24en3zt51agx+WlNboSOV8eLlPWYAkxMzVEXKbnY= github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.4.4 h1:8TfxU8dW6PdqD27gjM8MVNuicgxIjxpm4K7x4jp8sis= diff --git a/provider/cmd/pulumi-resource-nomad/schema.json b/provider/cmd/pulumi-resource-nomad/schema.json index c55c498..68a3976 100644 --- a/provider/cmd/pulumi-resource-nomad/schema.json +++ b/provider/cmd/pulumi-resource-nomad/schema.json @@ -179,11 +179,11 @@ "additionalProperties": { "type": "string" }, - "description": "Mappings of claims (key) that will be copied to a metadata field (value).\n" + "description": "`(map[string]string: \u003coptional\u003e)` - Mappings of claims (key)\nthat will be copied to a metadata field (value).\n" }, "clockSkewLeeway": { "type": "string", - "description": "`(string: \u003coptional\u003e)` - Duration of leeway when validating\nall claims in the form of a time duration such as \"5m\" or \"1h\".\n" + "description": "Duration of leeway when validating all claims in the form of a time duration such as \"5m\" or \"1h\".\n" }, "discoveryCaPems": { "type": "array", @@ -198,7 +198,7 @@ }, "jwksCaCert": { "type": "string", - "description": "`(string: \u003coptional\u003e)` - PEM encoded CA cert for use by the \nTLS client used to talk with the JWKS server.\n" + "description": "`(string: \u003coptional\u003e)` - PEM encoded CA cert for use by the\nTLS client used to talk with the JWKS server.\n" }, "jwksUrl": { "type": "string", @@ -209,18 +209,18 @@ "items": { "type": "string" }, - "description": "`([]string: \u003coptional\u003e)` - List of PEM-encoded \npublic keys to use to authenticate signatures locally.\n" + "description": "`([]string: \u003coptional\u003e)` - List of PEM-encoded\npublic keys to use to authenticate signatures locally.\n" }, "listClaimMappings": { "type": "object", "additionalProperties": { "type": "string" }, - "description": "Mappings of list claims (key) that will be copied to a metadata field (value).\n" + "description": "`(map[string]string: \u003coptional\u003e)` - Mappings of list\nclaims (key) that will be copied to a metadata field (value).\n" }, "notBeforeLeeway": { "type": "string", - "description": "`(string: \u003coptional\u003e)` - Duration of leeway when validating\nnot before values of a token in the form of a time duration such as \"5m\" or \"1h\".\n" + "description": "Duration of leeway when validating not before values of a token in the form of a time duration such as \"5m\" or \"1h\".\n" }, "oidcClientId": { "type": "string", @@ -1904,7 +1904,7 @@ }, "resources": { "nomad:index/aclAuthMethod:AclAuthMethod": { - "description": "Manages an ACL Auth Method in Nomad.\n\n## Example Usage\n\nCreating an ALC Auth Method:\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as nomad from \"@pulumi/nomad\";\n\nconst myNomadAclAuthMethod = new nomad.AclAuthMethod(\"my_nomad_acl_auth_method\", {\n name: \"my-nomad-acl-auth-method\",\n type: \"OIDC\",\n tokenLocality: \"global\",\n maxTokenTtl: \"10m0s\",\n tokenNameFormat: `${auth_method_type}-${value.user}`,\n \"default\": true,\n config: {\n oidcDiscoveryUrl: \"https://uk.auth0.com/\",\n oidcClientId: \"someclientid\",\n oidcClientSecret: \"someclientsecret-t\",\n boundAudiences: [\"someclientid\"],\n allowedRedirectUris: [\n \"http://localhost:4649/oidc/callback\",\n \"http://localhost:4646/ui/settings/tokens\",\n ],\n listClaimMappings: {\n \"http://nomad.internal/roles\": \"roles\",\n },\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_nomad as nomad\n\nmy_nomad_acl_auth_method = nomad.AclAuthMethod(\"my_nomad_acl_auth_method\",\n name=\"my-nomad-acl-auth-method\",\n type=\"OIDC\",\n token_locality=\"global\",\n max_token_ttl=\"10m0s\",\n token_name_format=\"${auth_method_type}-${value.user}\",\n default=True,\n config={\n \"oidc_discovery_url\": \"https://uk.auth0.com/\",\n \"oidc_client_id\": \"someclientid\",\n \"oidc_client_secret\": \"someclientsecret-t\",\n \"bound_audiences\": [\"someclientid\"],\n \"allowed_redirect_uris\": [\n \"http://localhost:4649/oidc/callback\",\n \"http://localhost:4646/ui/settings/tokens\",\n ],\n \"list_claim_mappings\": {\n \"http___nomad_internal_roles\": \"roles\",\n },\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Nomad = Pulumi.Nomad;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var myNomadAclAuthMethod = new Nomad.AclAuthMethod(\"my_nomad_acl_auth_method\", new()\n {\n Name = \"my-nomad-acl-auth-method\",\n Type = \"OIDC\",\n TokenLocality = \"global\",\n MaxTokenTtl = \"10m0s\",\n TokenNameFormat = \"${auth_method_type}-${value.user}\",\n Default = true,\n Config = new Nomad.Inputs.AclAuthMethodConfigArgs\n {\n OidcDiscoveryUrl = \"https://uk.auth0.com/\",\n OidcClientId = \"someclientid\",\n OidcClientSecret = \"someclientsecret-t\",\n BoundAudiences = new[]\n {\n \"someclientid\",\n },\n AllowedRedirectUris = new[]\n {\n \"http://localhost:4649/oidc/callback\",\n \"http://localhost:4646/ui/settings/tokens\",\n },\n ListClaimMappings = \n {\n { \"http://nomad.internal/roles\", \"roles\" },\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/pulumi/pulumi-nomad/sdk/v2/go/nomad\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := nomad.NewAclAuthMethod(ctx, \"my_nomad_acl_auth_method\", \u0026nomad.AclAuthMethodArgs{\n\t\t\tName: pulumi.String(\"my-nomad-acl-auth-method\"),\n\t\t\tType: pulumi.String(\"OIDC\"),\n\t\t\tTokenLocality: pulumi.String(\"global\"),\n\t\t\tMaxTokenTtl: pulumi.String(\"10m0s\"),\n\t\t\tTokenNameFormat: pulumi.Sprintf(\"${auth_method_type}-${value.user}\"),\n\t\t\tDefault: pulumi.Bool(true),\n\t\t\tConfig: \u0026nomad.AclAuthMethodConfigArgs{\n\t\t\t\tOidcDiscoveryUrl: pulumi.String(\"https://uk.auth0.com/\"),\n\t\t\t\tOidcClientId: pulumi.String(\"someclientid\"),\n\t\t\t\tOidcClientSecret: pulumi.String(\"someclientsecret-t\"),\n\t\t\t\tBoundAudiences: pulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"someclientid\"),\n\t\t\t\t},\n\t\t\t\tAllowedRedirectUris: pulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"http://localhost:4649/oidc/callback\"),\n\t\t\t\t\tpulumi.String(\"http://localhost:4646/ui/settings/tokens\"),\n\t\t\t\t},\n\t\t\t\tListClaimMappings: pulumi.StringMap{\n\t\t\t\t\t\"http://nomad.internal/roles\": pulumi.String(\"roles\"),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.nomad.AclAuthMethod;\nimport com.pulumi.nomad.AclAuthMethodArgs;\nimport com.pulumi.nomad.inputs.AclAuthMethodConfigArgs;\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 myNomadAclAuthMethod = new AclAuthMethod(\"myNomadAclAuthMethod\", AclAuthMethodArgs.builder()\n .name(\"my-nomad-acl-auth-method\")\n .type(\"OIDC\")\n .tokenLocality(\"global\")\n .maxTokenTtl(\"10m0s\")\n .tokenNameFormat(\"${auth_method_type}-${value.user}\")\n .default_(true)\n .config(AclAuthMethodConfigArgs.builder()\n .oidcDiscoveryUrl(\"https://uk.auth0.com/\")\n .oidcClientId(\"someclientid\")\n .oidcClientSecret(\"someclientsecret-t\")\n .boundAudiences(\"someclientid\")\n .allowedRedirectUris( \n \"http://localhost:4649/oidc/callback\",\n \"http://localhost:4646/ui/settings/tokens\")\n .listClaimMappings(Map.of(\"http://nomad.internal/roles\", \"roles\"))\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n myNomadAclAuthMethod:\n type: nomad:AclAuthMethod\n name: my_nomad_acl_auth_method\n properties:\n name: my-nomad-acl-auth-method\n type: OIDC\n tokenLocality: global\n maxTokenTtl: 10m0s\n tokenNameFormat: ${auth_method_type}-${value.user}\n default: true\n config:\n oidcDiscoveryUrl: https://uk.auth0.com/\n oidcClientId: someclientid\n oidcClientSecret: someclientsecret-t\n boundAudiences:\n - someclientid\n allowedRedirectUris:\n - http://localhost:4649/oidc/callback\n - http://localhost:4646/ui/settings/tokens\n listClaimMappings:\n http://nomad.internal/roles: roles\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "layout: \"nomad\"\npage_title: \"Nomad: nomad.AclAuthMethod\"\nsidebar_current: \"docs-nomad-resource-acl-auth-method\"\ndescription: |-\nManages an ACL Auth Method in Nomad.\n\u003c!-- yaml: line 6: could not find expected ':' --\u003e\n\n# nomad.AclAuthMethod\n\nManages an ACL Auth Method in Nomad.\n\n## Example Usage\n\nCreating an ALC Auth Method:\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as nomad from \"@pulumi/nomad\";\n\nconst myNomadAclAuthMethod = new nomad.AclAuthMethod(\"my_nomad_acl_auth_method\", {\n name: \"my-nomad-acl-auth-method\",\n type: \"OIDC\",\n tokenLocality: \"global\",\n maxTokenTtl: \"10m0s\",\n tokenNameFormat: `${auth_method_type}-${value.user}`,\n \"default\": true,\n config: {\n oidcDiscoveryUrl: \"https://uk.auth0.com/\",\n oidcClientId: \"someclientid\",\n oidcClientSecret: \"someclientsecret-t\",\n boundAudiences: [\"someclientid\"],\n allowedRedirectUris: [\n \"http://localhost:4649/oidc/callback\",\n \"http://localhost:4646/ui/settings/tokens\",\n ],\n listClaimMappings: {\n \"http://nomad.internal/roles\": \"roles\",\n },\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_nomad as nomad\n\nmy_nomad_acl_auth_method = nomad.AclAuthMethod(\"my_nomad_acl_auth_method\",\n name=\"my-nomad-acl-auth-method\",\n type=\"OIDC\",\n token_locality=\"global\",\n max_token_ttl=\"10m0s\",\n token_name_format=\"${auth_method_type}-${value.user}\",\n default=True,\n config={\n \"oidc_discovery_url\": \"https://uk.auth0.com/\",\n \"oidc_client_id\": \"someclientid\",\n \"oidc_client_secret\": \"someclientsecret-t\",\n \"bound_audiences\": [\"someclientid\"],\n \"allowed_redirect_uris\": [\n \"http://localhost:4649/oidc/callback\",\n \"http://localhost:4646/ui/settings/tokens\",\n ],\n \"list_claim_mappings\": {\n \"http___nomad_internal_roles\": \"roles\",\n },\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Nomad = Pulumi.Nomad;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var myNomadAclAuthMethod = new Nomad.AclAuthMethod(\"my_nomad_acl_auth_method\", new()\n {\n Name = \"my-nomad-acl-auth-method\",\n Type = \"OIDC\",\n TokenLocality = \"global\",\n MaxTokenTtl = \"10m0s\",\n TokenNameFormat = \"${auth_method_type}-${value.user}\",\n Default = true,\n Config = new Nomad.Inputs.AclAuthMethodConfigArgs\n {\n OidcDiscoveryUrl = \"https://uk.auth0.com/\",\n OidcClientId = \"someclientid\",\n OidcClientSecret = \"someclientsecret-t\",\n BoundAudiences = new[]\n {\n \"someclientid\",\n },\n AllowedRedirectUris = new[]\n {\n \"http://localhost:4649/oidc/callback\",\n \"http://localhost:4646/ui/settings/tokens\",\n },\n ListClaimMappings = \n {\n { \"http://nomad.internal/roles\", \"roles\" },\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/pulumi/pulumi-nomad/sdk/v2/go/nomad\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := nomad.NewAclAuthMethod(ctx, \"my_nomad_acl_auth_method\", \u0026nomad.AclAuthMethodArgs{\n\t\t\tName: pulumi.String(\"my-nomad-acl-auth-method\"),\n\t\t\tType: pulumi.String(\"OIDC\"),\n\t\t\tTokenLocality: pulumi.String(\"global\"),\n\t\t\tMaxTokenTtl: pulumi.String(\"10m0s\"),\n\t\t\tTokenNameFormat: pulumi.Sprintf(\"${auth_method_type}-${value.user}\"),\n\t\t\tDefault: pulumi.Bool(true),\n\t\t\tConfig: \u0026nomad.AclAuthMethodConfigArgs{\n\t\t\t\tOidcDiscoveryUrl: pulumi.String(\"https://uk.auth0.com/\"),\n\t\t\t\tOidcClientId: pulumi.String(\"someclientid\"),\n\t\t\t\tOidcClientSecret: pulumi.String(\"someclientsecret-t\"),\n\t\t\t\tBoundAudiences: pulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"someclientid\"),\n\t\t\t\t},\n\t\t\t\tAllowedRedirectUris: pulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"http://localhost:4649/oidc/callback\"),\n\t\t\t\t\tpulumi.String(\"http://localhost:4646/ui/settings/tokens\"),\n\t\t\t\t},\n\t\t\t\tListClaimMappings: pulumi.StringMap{\n\t\t\t\t\t\"http://nomad.internal/roles\": pulumi.String(\"roles\"),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.nomad.AclAuthMethod;\nimport com.pulumi.nomad.AclAuthMethodArgs;\nimport com.pulumi.nomad.inputs.AclAuthMethodConfigArgs;\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 myNomadAclAuthMethod = new AclAuthMethod(\"myNomadAclAuthMethod\", AclAuthMethodArgs.builder()\n .name(\"my-nomad-acl-auth-method\")\n .type(\"OIDC\")\n .tokenLocality(\"global\")\n .maxTokenTtl(\"10m0s\")\n .tokenNameFormat(\"${auth_method_type}-${value.user}\")\n .default_(true)\n .config(AclAuthMethodConfigArgs.builder()\n .oidcDiscoveryUrl(\"https://uk.auth0.com/\")\n .oidcClientId(\"someclientid\")\n .oidcClientSecret(\"someclientsecret-t\")\n .boundAudiences(\"someclientid\")\n .allowedRedirectUris( \n \"http://localhost:4649/oidc/callback\",\n \"http://localhost:4646/ui/settings/tokens\")\n .listClaimMappings(Map.of(\"http://nomad.internal/roles\", \"roles\"))\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n myNomadAclAuthMethod:\n type: nomad:AclAuthMethod\n name: my_nomad_acl_auth_method\n properties:\n name: my-nomad-acl-auth-method\n type: OIDC\n tokenLocality: global\n maxTokenTtl: 10m0s\n tokenNameFormat: ${auth_method_type}-${value.user}\n default: true\n config:\n oidcDiscoveryUrl: https://uk.auth0.com/\n oidcClientId: someclientid\n oidcClientSecret: someclientsecret-t\n boundAudiences:\n - someclientid\n allowedRedirectUris:\n - http://localhost:4649/oidc/callback\n - http://localhost:4646/ui/settings/tokens\n listClaimMappings:\n http://nomad.internal/roles: roles\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "properties": { "config": { "$ref": "#/types/nomad:index/AclAuthMethodConfig:AclAuthMethodConfig", @@ -2380,6 +2380,7 @@ } }, "nomad:index/csiVolume:CsiVolume": { + "description": "## Example Usage\n\nCreating a volume:\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as nomad from \"@pulumi/nomad\";\n\n// It can sometimes be helpful to wait for a particular plugin to be available\nconst ebs = nomad.getPlugin({\n pluginId: \"aws-ebs0\",\n waitForHealthy: true,\n});\nconst mysqlVolume = new nomad.CsiVolume(\"mysql_volume\", {\n pluginId: \"aws-ebs0\",\n volumeId: \"mysql_volume\",\n name: \"mysql_volume\",\n capacityMin: \"10GiB\",\n capacityMax: \"20GiB\",\n capabilities: [{\n accessMode: \"single-node-writer\",\n attachmentMode: \"file-system\",\n }],\n mountOptions: {\n fsType: \"ext4\",\n },\n topologyRequest: {\n required: {\n topologies: [\n {\n segments: {\n rack: \"R1\",\n zone: \"us-east-1a\",\n },\n },\n {\n segments: {\n rack: \"R2\",\n },\n },\n ],\n },\n },\n}, {\n dependsOn: [ebs],\n});\n```\n```python\nimport pulumi\nimport pulumi_nomad as nomad\n\n# It can sometimes be helpful to wait for a particular plugin to be available\nebs = nomad.get_plugin(plugin_id=\"aws-ebs0\",\n wait_for_healthy=True)\nmysql_volume = nomad.CsiVolume(\"mysql_volume\",\n plugin_id=\"aws-ebs0\",\n volume_id=\"mysql_volume\",\n name=\"mysql_volume\",\n capacity_min=\"10GiB\",\n capacity_max=\"20GiB\",\n capabilities=[{\n \"access_mode\": \"single-node-writer\",\n \"attachment_mode\": \"file-system\",\n }],\n mount_options={\n \"fs_type\": \"ext4\",\n },\n topology_request={\n \"required\": {\n \"topologies\": [\n {\n \"segments\": {\n \"rack\": \"R1\",\n \"zone\": \"us-east-1a\",\n },\n },\n {\n \"segments\": {\n \"rack\": \"R2\",\n },\n },\n ],\n },\n },\n opts = pulumi.ResourceOptions(depends_on=[ebs]))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Nomad = Pulumi.Nomad;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // It can sometimes be helpful to wait for a particular plugin to be available\n var ebs = Nomad.GetPlugin.Invoke(new()\n {\n PluginId = \"aws-ebs0\",\n WaitForHealthy = true,\n });\n\n var mysqlVolume = new Nomad.CsiVolume(\"mysql_volume\", new()\n {\n PluginId = \"aws-ebs0\",\n VolumeId = \"mysql_volume\",\n Name = \"mysql_volume\",\n CapacityMin = \"10GiB\",\n CapacityMax = \"20GiB\",\n Capabilities = new[]\n {\n new Nomad.Inputs.CsiVolumeCapabilityArgs\n {\n AccessMode = \"single-node-writer\",\n AttachmentMode = \"file-system\",\n },\n },\n MountOptions = new Nomad.Inputs.CsiVolumeMountOptionsArgs\n {\n FsType = \"ext4\",\n },\n TopologyRequest = new Nomad.Inputs.CsiVolumeTopologyRequestArgs\n {\n Required = new Nomad.Inputs.CsiVolumeTopologyRequestRequiredArgs\n {\n Topologies = new[]\n {\n new Nomad.Inputs.CsiVolumeTopologyRequestRequiredTopologyArgs\n {\n Segments = \n {\n { \"rack\", \"R1\" },\n { \"zone\", \"us-east-1a\" },\n },\n },\n new Nomad.Inputs.CsiVolumeTopologyRequestRequiredTopologyArgs\n {\n Segments = \n {\n { \"rack\", \"R2\" },\n },\n },\n },\n },\n },\n }, new CustomResourceOptions\n {\n DependsOn =\n {\n ebs,\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-nomad/sdk/v2/go/nomad\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t// It can sometimes be helpful to wait for a particular plugin to be available\n\t\tebs, err := nomad.GetPlugin(ctx, \u0026nomad.GetPluginArgs{\n\t\t\tPluginId: \"aws-ebs0\",\n\t\t\tWaitForHealthy: pulumi.BoolRef(true),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = nomad.NewCsiVolume(ctx, \"mysql_volume\", \u0026nomad.CsiVolumeArgs{\n\t\t\tPluginId: pulumi.String(\"aws-ebs0\"),\n\t\t\tVolumeId: pulumi.String(\"mysql_volume\"),\n\t\t\tName: pulumi.String(\"mysql_volume\"),\n\t\t\tCapacityMin: pulumi.String(\"10GiB\"),\n\t\t\tCapacityMax: pulumi.String(\"20GiB\"),\n\t\t\tCapabilities: nomad.CsiVolumeCapabilityArray{\n\t\t\t\t\u0026nomad.CsiVolumeCapabilityArgs{\n\t\t\t\t\tAccessMode: pulumi.String(\"single-node-writer\"),\n\t\t\t\t\tAttachmentMode: pulumi.String(\"file-system\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tMountOptions: \u0026nomad.CsiVolumeMountOptionsArgs{\n\t\t\t\tFsType: pulumi.String(\"ext4\"),\n\t\t\t},\n\t\t\tTopologyRequest: \u0026nomad.CsiVolumeTopologyRequestArgs{\n\t\t\t\tRequired: \u0026nomad.CsiVolumeTopologyRequestRequiredArgs{\n\t\t\t\t\tTopologies: nomad.CsiVolumeTopologyRequestRequiredTopologyArray{\n\t\t\t\t\t\t\u0026nomad.CsiVolumeTopologyRequestRequiredTopologyArgs{\n\t\t\t\t\t\t\tSegments: pulumi.StringMap{\n\t\t\t\t\t\t\t\t\"rack\": pulumi.String(\"R1\"),\n\t\t\t\t\t\t\t\t\"zone\": pulumi.String(\"us-east-1a\"),\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\u0026nomad.CsiVolumeTopologyRequestRequiredTopologyArgs{\n\t\t\t\t\t\t\tSegments: pulumi.StringMap{\n\t\t\t\t\t\t\t\t\"rack\": pulumi.String(\"R2\"),\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t}, pulumi.DependsOn([]pulumi.Resource{\n\t\t\tebs,\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.nomad.NomadFunctions;\nimport com.pulumi.nomad.inputs.GetPluginArgs;\nimport com.pulumi.nomad.CsiVolume;\nimport com.pulumi.nomad.CsiVolumeArgs;\nimport com.pulumi.nomad.inputs.CsiVolumeCapabilityArgs;\nimport com.pulumi.nomad.inputs.CsiVolumeMountOptionsArgs;\nimport com.pulumi.nomad.inputs.CsiVolumeTopologyRequestArgs;\nimport com.pulumi.nomad.inputs.CsiVolumeTopologyRequestRequiredArgs;\nimport com.pulumi.resources.CustomResourceOptions;\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 // It can sometimes be helpful to wait for a particular plugin to be available\n final var ebs = NomadFunctions.getPlugin(GetPluginArgs.builder()\n .pluginId(\"aws-ebs0\")\n .waitForHealthy(true)\n .build());\n\n var mysqlVolume = new CsiVolume(\"mysqlVolume\", CsiVolumeArgs.builder()\n .pluginId(\"aws-ebs0\")\n .volumeId(\"mysql_volume\")\n .name(\"mysql_volume\")\n .capacityMin(\"10GiB\")\n .capacityMax(\"20GiB\")\n .capabilities(CsiVolumeCapabilityArgs.builder()\n .accessMode(\"single-node-writer\")\n .attachmentMode(\"file-system\")\n .build())\n .mountOptions(CsiVolumeMountOptionsArgs.builder()\n .fsType(\"ext4\")\n .build())\n .topologyRequest(CsiVolumeTopologyRequestArgs.builder()\n .required(CsiVolumeTopologyRequestRequiredArgs.builder()\n .topologies( \n CsiVolumeTopologyRequestRequiredTopologyArgs.builder()\n .segments(Map.ofEntries(\n Map.entry(\"rack\", \"R1\"),\n Map.entry(\"zone\", \"us-east-1a\")\n ))\n .build(),\n CsiVolumeTopologyRequestRequiredTopologyArgs.builder()\n .segments(Map.of(\"rack\", \"R2\"))\n .build())\n .build())\n .build())\n .build(), CustomResourceOptions.builder()\n .dependsOn(ebs.applyValue(getPluginResult -\u003e getPluginResult))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n mysqlVolume:\n type: nomad:CsiVolume\n name: mysql_volume\n properties:\n pluginId: aws-ebs0\n volumeId: mysql_volume\n name: mysql_volume\n capacityMin: 10GiB\n capacityMax: 20GiB\n capabilities:\n - accessMode: single-node-writer\n attachmentMode: file-system\n mountOptions:\n fsType: ext4\n topologyRequest:\n required:\n topologies:\n - segments:\n rack: R1\n zone: us-east-1a\n - segments:\n rack: R2\n options:\n dependson:\n - ${ebs}\nvariables:\n # It can sometimes be helpful to wait for a particular plugin to be available\n ebs:\n fn::invoke:\n Function: nomad:getPlugin\n Arguments:\n pluginId: aws-ebs0\n waitForHealthy: true\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Importing CSI Volumes\n\nCSI volumes are imported using the pattern `\u003cvolume ID\u003e@\u003cnamespace\u003e` .\n\n```console\n$ terraform import nomad_csi_volume.mysql mysql@my-namespace\nnomad_csi_volume.mysql: Importing from ID \"mysql@my-namespace\"...\nnomad_csi_volume.mysql: Import prepared!\n Prepared nomad_csi_volume for import\nnomad_csi_volume.mysql: Refreshing state... [id=mysql@my-namespace]\n\nImport successful!\n\nThe resources that were imported are shown above. These resources are now in\nyour Terraform state and will henceforth be managed by Terraform.\n```\n", "properties": { "capabilities": { "type": "array", @@ -2702,6 +2703,7 @@ } }, "nomad:index/csiVolumeRegistration:CsiVolumeRegistration": { + "description": "## Example Usage\n\nRegistering a volume:\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as nomad from \"@pulumi/nomad\";\n\n// It can sometimes be helpful to wait for a particular plugin to be available\nconst ebs = nomad.getPlugin({\n pluginId: \"aws-ebs0\",\n waitForHealthy: true,\n});\nconst mysqlVolume = new nomad.CsiVolumeRegistration(\"mysql_volume\", {\n pluginId: \"aws-ebs0\",\n volumeId: \"mysql_volume\",\n name: \"mysql_volume\",\n externalId: hashistack.ebsTestVolumeId,\n capabilities: [{\n accessMode: \"single-node-writer\",\n attachmentMode: \"file-system\",\n }],\n mountOptions: {\n fsType: \"ext4\",\n },\n topologyRequest: {\n required: {\n topologies: [\n {\n segments: {\n rack: \"R1\",\n zone: \"us-east-1a\",\n },\n },\n {\n segments: {\n rack: \"R2\",\n },\n },\n ],\n },\n },\n}, {\n dependsOn: [ebs],\n});\n```\n```python\nimport pulumi\nimport pulumi_nomad as nomad\n\n# It can sometimes be helpful to wait for a particular plugin to be available\nebs = nomad.get_plugin(plugin_id=\"aws-ebs0\",\n wait_for_healthy=True)\nmysql_volume = nomad.CsiVolumeRegistration(\"mysql_volume\",\n plugin_id=\"aws-ebs0\",\n volume_id=\"mysql_volume\",\n name=\"mysql_volume\",\n external_id=hashistack[\"ebsTestVolumeId\"],\n capabilities=[{\n \"access_mode\": \"single-node-writer\",\n \"attachment_mode\": \"file-system\",\n }],\n mount_options={\n \"fs_type\": \"ext4\",\n },\n topology_request={\n \"required\": {\n \"topologies\": [\n {\n \"segments\": {\n \"rack\": \"R1\",\n \"zone\": \"us-east-1a\",\n },\n },\n {\n \"segments\": {\n \"rack\": \"R2\",\n },\n },\n ],\n },\n },\n opts = pulumi.ResourceOptions(depends_on=[ebs]))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Nomad = Pulumi.Nomad;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // It can sometimes be helpful to wait for a particular plugin to be available\n var ebs = Nomad.GetPlugin.Invoke(new()\n {\n PluginId = \"aws-ebs0\",\n WaitForHealthy = true,\n });\n\n var mysqlVolume = new Nomad.CsiVolumeRegistration(\"mysql_volume\", new()\n {\n PluginId = \"aws-ebs0\",\n VolumeId = \"mysql_volume\",\n Name = \"mysql_volume\",\n ExternalId = hashistack.EbsTestVolumeId,\n Capabilities = new[]\n {\n new Nomad.Inputs.CsiVolumeRegistrationCapabilityArgs\n {\n AccessMode = \"single-node-writer\",\n AttachmentMode = \"file-system\",\n },\n },\n MountOptions = new Nomad.Inputs.CsiVolumeRegistrationMountOptionsArgs\n {\n FsType = \"ext4\",\n },\n TopologyRequest = new Nomad.Inputs.CsiVolumeRegistrationTopologyRequestArgs\n {\n Required = new Nomad.Inputs.CsiVolumeRegistrationTopologyRequestRequiredArgs\n {\n Topologies = new[]\n {\n new Nomad.Inputs.CsiVolumeRegistrationTopologyRequestRequiredTopologyArgs\n {\n Segments = \n {\n { \"rack\", \"R1\" },\n { \"zone\", \"us-east-1a\" },\n },\n },\n new Nomad.Inputs.CsiVolumeRegistrationTopologyRequestRequiredTopologyArgs\n {\n Segments = \n {\n { \"rack\", \"R2\" },\n },\n },\n },\n },\n },\n }, new CustomResourceOptions\n {\n DependsOn =\n {\n ebs,\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-nomad/sdk/v2/go/nomad\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t// It can sometimes be helpful to wait for a particular plugin to be available\n\t\tebs, err := nomad.GetPlugin(ctx, \u0026nomad.GetPluginArgs{\n\t\t\tPluginId: \"aws-ebs0\",\n\t\t\tWaitForHealthy: pulumi.BoolRef(true),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = nomad.NewCsiVolumeRegistration(ctx, \"mysql_volume\", \u0026nomad.CsiVolumeRegistrationArgs{\n\t\t\tPluginId: pulumi.String(\"aws-ebs0\"),\n\t\t\tVolumeId: pulumi.String(\"mysql_volume\"),\n\t\t\tName: pulumi.String(\"mysql_volume\"),\n\t\t\tExternalId: pulumi.Any(hashistack.EbsTestVolumeId),\n\t\t\tCapabilities: nomad.CsiVolumeRegistrationCapabilityArray{\n\t\t\t\t\u0026nomad.CsiVolumeRegistrationCapabilityArgs{\n\t\t\t\t\tAccessMode: pulumi.String(\"single-node-writer\"),\n\t\t\t\t\tAttachmentMode: pulumi.String(\"file-system\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tMountOptions: \u0026nomad.CsiVolumeRegistrationMountOptionsArgs{\n\t\t\t\tFsType: pulumi.String(\"ext4\"),\n\t\t\t},\n\t\t\tTopologyRequest: \u0026nomad.CsiVolumeRegistrationTopologyRequestArgs{\n\t\t\t\tRequired: \u0026nomad.CsiVolumeRegistrationTopologyRequestRequiredArgs{\n\t\t\t\t\tTopologies: nomad.CsiVolumeRegistrationTopologyRequestRequiredTopologyArray{\n\t\t\t\t\t\t\u0026nomad.CsiVolumeRegistrationTopologyRequestRequiredTopologyArgs{\n\t\t\t\t\t\t\tSegments: pulumi.StringMap{\n\t\t\t\t\t\t\t\t\"rack\": pulumi.String(\"R1\"),\n\t\t\t\t\t\t\t\t\"zone\": pulumi.String(\"us-east-1a\"),\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\u0026nomad.CsiVolumeRegistrationTopologyRequestRequiredTopologyArgs{\n\t\t\t\t\t\t\tSegments: pulumi.StringMap{\n\t\t\t\t\t\t\t\t\"rack\": pulumi.String(\"R2\"),\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t}, pulumi.DependsOn([]pulumi.Resource{\n\t\t\tebs,\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.nomad.NomadFunctions;\nimport com.pulumi.nomad.inputs.GetPluginArgs;\nimport com.pulumi.nomad.CsiVolumeRegistration;\nimport com.pulumi.nomad.CsiVolumeRegistrationArgs;\nimport com.pulumi.nomad.inputs.CsiVolumeRegistrationCapabilityArgs;\nimport com.pulumi.nomad.inputs.CsiVolumeRegistrationMountOptionsArgs;\nimport com.pulumi.nomad.inputs.CsiVolumeRegistrationTopologyRequestArgs;\nimport com.pulumi.nomad.inputs.CsiVolumeRegistrationTopologyRequestRequiredArgs;\nimport com.pulumi.resources.CustomResourceOptions;\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 // It can sometimes be helpful to wait for a particular plugin to be available\n final var ebs = NomadFunctions.getPlugin(GetPluginArgs.builder()\n .pluginId(\"aws-ebs0\")\n .waitForHealthy(true)\n .build());\n\n var mysqlVolume = new CsiVolumeRegistration(\"mysqlVolume\", CsiVolumeRegistrationArgs.builder()\n .pluginId(\"aws-ebs0\")\n .volumeId(\"mysql_volume\")\n .name(\"mysql_volume\")\n .externalId(hashistack.ebsTestVolumeId())\n .capabilities(CsiVolumeRegistrationCapabilityArgs.builder()\n .accessMode(\"single-node-writer\")\n .attachmentMode(\"file-system\")\n .build())\n .mountOptions(CsiVolumeRegistrationMountOptionsArgs.builder()\n .fsType(\"ext4\")\n .build())\n .topologyRequest(CsiVolumeRegistrationTopologyRequestArgs.builder()\n .required(CsiVolumeRegistrationTopologyRequestRequiredArgs.builder()\n .topologies( \n CsiVolumeRegistrationTopologyRequestRequiredTopologyArgs.builder()\n .segments(Map.ofEntries(\n Map.entry(\"rack\", \"R1\"),\n Map.entry(\"zone\", \"us-east-1a\")\n ))\n .build(),\n CsiVolumeRegistrationTopologyRequestRequiredTopologyArgs.builder()\n .segments(Map.of(\"rack\", \"R2\"))\n .build())\n .build())\n .build())\n .build(), CustomResourceOptions.builder()\n .dependsOn(ebs.applyValue(getPluginResult -\u003e getPluginResult))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n mysqlVolume:\n type: nomad:CsiVolumeRegistration\n name: mysql_volume\n properties:\n pluginId: aws-ebs0\n volumeId: mysql_volume\n name: mysql_volume\n externalId: ${hashistack.ebsTestVolumeId}\n capabilities:\n - accessMode: single-node-writer\n attachmentMode: file-system\n mountOptions:\n fsType: ext4\n topologyRequest:\n required:\n topologies:\n - segments:\n rack: R1\n zone: us-east-1a\n - segments:\n rack: R2\n options:\n dependson:\n - ${ebs}\nvariables:\n # It can sometimes be helpful to wait for a particular plugin to be available\n ebs:\n fn::invoke:\n Function: nomad:getPlugin\n Arguments:\n pluginId: aws-ebs0\n waitForHealthy: true\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Importing CSI Volume Registrations\n\nCSI volume registrations are imported using the pattern\n`\u003cvolume ID\u003e@\u003cnamespace\u003e`.\n\n```console\n$ terraform import nomad_csi_volume.mysql mysql@my-namespace\nnomad_csi_volume_registration.mysql: Importing from ID \"mysql@my-namespace\"...\nnomad_csi_volume_registration.mysql: Import prepared!\n Prepared nomad_csi_volume_registration for import\nnomad_csi_volume_registration.mysql: Refreshing state... [id=mysql@my-namespace]\n\nImport successful!\n\nThe resources that were imported are shown above. These resources are now in\nyour Terraform state and will henceforth be managed by Terraform.\n```\n", "properties": { "capabilities": { "type": "array", @@ -3940,15 +3942,15 @@ } }, "nomad:index/sentinelPolicy:SentinelPolicy": { - "description": "Manages a Sentinel policy registered in Nomad.\n\n\u003e **Enterprise Only!** This API endpoint and functionality only exists in\n Nomad Enterprise. This is not present in the open source version of Nomad.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as nomad from \"@pulumi/nomad\";\n\nconst exec_only = new nomad.SentinelPolicy(\"exec-only\", {\n name: \"exec-only\",\n description: \"Only allow jobs that are based on an exec driver.\",\n policy: `main = rule { all_drivers_exec }\n\n# all_drivers_exec checks that all the drivers in use are exec\nall_drivers_exec = rule {\n all job.task_groups as tg {\n all tg.tasks as task {\n task.driver is \"exec\"\n }\n }\n}\n`,\n scope: \"submit-job\",\n enforcementLevel: \"soft-mandatory\",\n});\n```\n```python\nimport pulumi\nimport pulumi_nomad as nomad\n\nexec_only = nomad.SentinelPolicy(\"exec-only\",\n name=\"exec-only\",\n description=\"Only allow jobs that are based on an exec driver.\",\n policy=\"\"\"main = rule { all_drivers_exec }\n\n# all_drivers_exec checks that all the drivers in use are exec\nall_drivers_exec = rule {\n all job.task_groups as tg {\n all tg.tasks as task {\n task.driver is \"exec\"\n }\n }\n}\n\"\"\",\n scope=\"submit-job\",\n enforcement_level=\"soft-mandatory\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Nomad = Pulumi.Nomad;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exec_only = new Nomad.SentinelPolicy(\"exec-only\", new()\n {\n Name = \"exec-only\",\n Description = \"Only allow jobs that are based on an exec driver.\",\n Policy = @\"main = rule { all_drivers_exec }\n\n# all_drivers_exec checks that all the drivers in use are exec\nall_drivers_exec = rule {\n all job.task_groups as tg {\n all tg.tasks as task {\n task.driver is \"\"exec\"\"\n }\n }\n}\n\",\n Scope = \"submit-job\",\n EnforcementLevel = \"soft-mandatory\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-nomad/sdk/v2/go/nomad\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := nomad.NewSentinelPolicy(ctx, \"exec-only\", \u0026nomad.SentinelPolicyArgs{\n\t\t\tName: pulumi.String(\"exec-only\"),\n\t\t\tDescription: pulumi.String(\"Only allow jobs that are based on an exec driver.\"),\n\t\t\tPolicy: pulumi.String(`main = rule { all_drivers_exec }\n\n# all_drivers_exec checks that all the drivers in use are exec\nall_drivers_exec = rule {\n all job.task_groups as tg {\n all tg.tasks as task {\n task.driver is \"exec\"\n }\n }\n}\n`),\n\t\t\tScope: pulumi.String(\"submit-job\"),\n\t\t\tEnforcementLevel: pulumi.String(\"soft-mandatory\"),\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.nomad.SentinelPolicy;\nimport com.pulumi.nomad.SentinelPolicyArgs;\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 exec_only = new SentinelPolicy(\"exec-only\", SentinelPolicyArgs.builder()\n .name(\"exec-only\")\n .description(\"Only allow jobs that are based on an exec driver.\")\n .policy(\"\"\"\nmain = rule { all_drivers_exec }\n\n# all_drivers_exec checks that all the drivers in use are exec\nall_drivers_exec = rule {\n all job.task_groups as tg {\n all tg.tasks as task {\n task.driver is \"exec\"\n }\n }\n}\n \"\"\")\n .scope(\"submit-job\")\n .enforcementLevel(\"soft-mandatory\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exec-only:\n type: nomad:SentinelPolicy\n properties:\n name: exec-only\n description: Only allow jobs that are based on an exec driver.\n policy: |\n main = rule { all_drivers_exec }\n\n # all_drivers_exec checks that all the drivers in use are exec\n all_drivers_exec = rule {\n all job.task_groups as tg {\n all tg.tasks as task {\n task.driver is \"exec\"\n }\n }\n }\n scope: submit-job\n enforcementLevel: soft-mandatory\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "Manages a Sentinel policy registered in Nomad.\n\n\u003e **Enterprise Only!** This API endpoint and functionality only exists in\nNomad Enterprise. This is not present in the open source version of Nomad.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as nomad from \"@pulumi/nomad\";\n\nconst exec_only = new nomad.SentinelPolicy(\"exec-only\", {\n name: \"exec-only\",\n description: \"Only allow jobs that are based on an exec driver.\",\n policy: `main = rule { all_drivers_exec }\n\n# all_drivers_exec checks that all the drivers in use are exec\nall_drivers_exec = rule {\n all job.task_groups as tg {\n all tg.tasks as task {\n task.driver is \"exec\"\n }\n }\n}\n`,\n scope: \"submit-job\",\n enforcementLevel: \"soft-mandatory\",\n});\n```\n```python\nimport pulumi\nimport pulumi_nomad as nomad\n\nexec_only = nomad.SentinelPolicy(\"exec-only\",\n name=\"exec-only\",\n description=\"Only allow jobs that are based on an exec driver.\",\n policy=\"\"\"main = rule { all_drivers_exec }\n\n# all_drivers_exec checks that all the drivers in use are exec\nall_drivers_exec = rule {\n all job.task_groups as tg {\n all tg.tasks as task {\n task.driver is \"exec\"\n }\n }\n}\n\"\"\",\n scope=\"submit-job\",\n enforcement_level=\"soft-mandatory\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Nomad = Pulumi.Nomad;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exec_only = new Nomad.SentinelPolicy(\"exec-only\", new()\n {\n Name = \"exec-only\",\n Description = \"Only allow jobs that are based on an exec driver.\",\n Policy = @\"main = rule { all_drivers_exec }\n\n# all_drivers_exec checks that all the drivers in use are exec\nall_drivers_exec = rule {\n all job.task_groups as tg {\n all tg.tasks as task {\n task.driver is \"\"exec\"\"\n }\n }\n}\n\",\n Scope = \"submit-job\",\n EnforcementLevel = \"soft-mandatory\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-nomad/sdk/v2/go/nomad\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := nomad.NewSentinelPolicy(ctx, \"exec-only\", \u0026nomad.SentinelPolicyArgs{\n\t\t\tName: pulumi.String(\"exec-only\"),\n\t\t\tDescription: pulumi.String(\"Only allow jobs that are based on an exec driver.\"),\n\t\t\tPolicy: pulumi.String(`main = rule { all_drivers_exec }\n\n# all_drivers_exec checks that all the drivers in use are exec\nall_drivers_exec = rule {\n all job.task_groups as tg {\n all tg.tasks as task {\n task.driver is \"exec\"\n }\n }\n}\n`),\n\t\t\tScope: pulumi.String(\"submit-job\"),\n\t\t\tEnforcementLevel: pulumi.String(\"soft-mandatory\"),\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.nomad.SentinelPolicy;\nimport com.pulumi.nomad.SentinelPolicyArgs;\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 exec_only = new SentinelPolicy(\"exec-only\", SentinelPolicyArgs.builder()\n .name(\"exec-only\")\n .description(\"Only allow jobs that are based on an exec driver.\")\n .policy(\"\"\"\nmain = rule { all_drivers_exec }\n\n# all_drivers_exec checks that all the drivers in use are exec\nall_drivers_exec = rule {\n all job.task_groups as tg {\n all tg.tasks as task {\n task.driver is \"exec\"\n }\n }\n}\n \"\"\")\n .scope(\"submit-job\")\n .enforcementLevel(\"soft-mandatory\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exec-only:\n type: nomad:SentinelPolicy\n properties:\n name: exec-only\n description: Only allow jobs that are based on an exec driver.\n policy: |\n main = rule { all_drivers_exec }\n\n # all_drivers_exec checks that all the drivers in use are exec\n all_drivers_exec = rule {\n all job.task_groups as tg {\n all tg.tasks as task {\n task.driver is \"exec\"\n }\n }\n }\n scope: submit-job\n enforcementLevel: soft-mandatory\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "properties": { "description": { "type": "string", - "description": "`(string: \"\")` - A description of the policy.\n\n[scope]: https://www.nomadproject.io/guides/sentinel-policy.html#policy-scope\n[enforcement-level]: https://www.nomadproject.io/guides/sentinel-policy.html#enforcement-level\n" + "description": "`(string: \"\")` - A description of the policy.\n" }, "enforcementLevel": { "type": "string", - "description": "`(strings: \u003crequired\u003e)` - The [enforcement level][enforcement-level]\nfor this policy.\n" + "description": "`(strings: \u003crequired\u003e)` - The [enforcement level](https://www.nomadproject.io/guides/sentinel-policy.html#enforcement-level)\nfor this policy.\n" }, "name": { "type": "string", @@ -3960,7 +3962,7 @@ }, "scope": { "type": "string", - "description": "`(strings: \u003crequired\u003e)` - The [scope][scope] for this policy.\n" + "description": "`(strings: \u003crequired\u003e)` - The [scope](https://www.nomadproject.io/guides/sentinel-policy.html#policy-scope) for this policy.\n" } }, "required": [ @@ -3972,11 +3974,11 @@ "inputProperties": { "description": { "type": "string", - "description": "`(string: \"\")` - A description of the policy.\n\n[scope]: https://www.nomadproject.io/guides/sentinel-policy.html#policy-scope\n[enforcement-level]: https://www.nomadproject.io/guides/sentinel-policy.html#enforcement-level\n" + "description": "`(string: \"\")` - A description of the policy.\n" }, "enforcementLevel": { "type": "string", - "description": "`(strings: \u003crequired\u003e)` - The [enforcement level][enforcement-level]\nfor this policy.\n" + "description": "`(strings: \u003crequired\u003e)` - The [enforcement level](https://www.nomadproject.io/guides/sentinel-policy.html#enforcement-level)\nfor this policy.\n" }, "name": { "type": "string", @@ -3989,7 +3991,7 @@ }, "scope": { "type": "string", - "description": "`(strings: \u003crequired\u003e)` - The [scope][scope] for this policy.\n" + "description": "`(strings: \u003crequired\u003e)` - The [scope](https://www.nomadproject.io/guides/sentinel-policy.html#policy-scope) for this policy.\n" } }, "requiredInputs": [ @@ -4002,11 +4004,11 @@ "properties": { "description": { "type": "string", - "description": "`(string: \"\")` - A description of the policy.\n\n[scope]: https://www.nomadproject.io/guides/sentinel-policy.html#policy-scope\n[enforcement-level]: https://www.nomadproject.io/guides/sentinel-policy.html#enforcement-level\n" + "description": "`(string: \"\")` - A description of the policy.\n" }, "enforcementLevel": { "type": "string", - "description": "`(strings: \u003crequired\u003e)` - The [enforcement level][enforcement-level]\nfor this policy.\n" + "description": "`(strings: \u003crequired\u003e)` - The [enforcement level](https://www.nomadproject.io/guides/sentinel-policy.html#enforcement-level)\nfor this policy.\n" }, "name": { "type": "string", @@ -4019,7 +4021,7 @@ }, "scope": { "type": "string", - "description": "`(strings: \u003crequired\u003e)` - The [scope][scope] for this policy.\n" + "description": "`(strings: \u003crequired\u003e)` - The [scope](https://www.nomadproject.io/guides/sentinel-policy.html#policy-scope) for this policy.\n" } }, "type": "object" @@ -4512,7 +4514,7 @@ } }, "nomad:index/getAclRole:getAclRole": { - "description": "Get information on an ACL Role.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as nomad from \"@pulumi/nomad\";\n\nconst example = nomad.getAclRole({\n id: \"aa534e09-6a07-0a45-2295-a7f77063d429\",\n});\n```\n```python\nimport pulumi\nimport pulumi_nomad as nomad\n\nexample = nomad.get_acl_role(id=\"aa534e09-6a07-0a45-2295-a7f77063d429\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Nomad = Pulumi.Nomad;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Nomad.GetAclRole.Invoke(new()\n {\n Id = \"aa534e09-6a07-0a45-2295-a7f77063d429\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-nomad/sdk/v2/go/nomad\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := nomad.LookupAclRole(ctx, \u0026nomad.LookupAclRoleArgs{\n\t\t\tId: \"aa534e09-6a07-0a45-2295-a7f77063d429\",\n\t\t}, 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.nomad.NomadFunctions;\nimport com.pulumi.nomad.inputs.GetAclRoleArgs;\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 example = NomadFunctions.getAclRole(GetAclRoleArgs.builder()\n .id(\"aa534e09-6a07-0a45-2295-a7f77063d429\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n Function: nomad:getAclRole\n Arguments:\n id: aa534e09-6a07-0a45-2295-a7f77063d429\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "layout: \"nomad\"\npage_title: \"Nomad: nomad.AclRole\"\nsidebar_current: \"docs-nomad-datasource-acl-role\"\ndescription: |-\nGet information on an ACL Role.\n\u003c!-- yaml: line 6: could not find expected ':' --\u003e\n\n# nomad.AclRole\n\nGet information on an ACL Role.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as nomad from \"@pulumi/nomad\";\n\nconst example = nomad.getAclRole({\n id: \"aa534e09-6a07-0a45-2295-a7f77063d429\",\n});\n```\n```python\nimport pulumi\nimport pulumi_nomad as nomad\n\nexample = nomad.get_acl_role(id=\"aa534e09-6a07-0a45-2295-a7f77063d429\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Nomad = Pulumi.Nomad;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Nomad.GetAclRole.Invoke(new()\n {\n Id = \"aa534e09-6a07-0a45-2295-a7f77063d429\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-nomad/sdk/v2/go/nomad\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := nomad.LookupAclRole(ctx, \u0026nomad.LookupAclRoleArgs{\n\t\t\tId: \"aa534e09-6a07-0a45-2295-a7f77063d429\",\n\t\t}, 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.nomad.NomadFunctions;\nimport com.pulumi.nomad.inputs.GetAclRoleArgs;\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 example = NomadFunctions.getAclRole(GetAclRoleArgs.builder()\n .id(\"aa534e09-6a07-0a45-2295-a7f77063d429\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n Function: nomad:getAclRole\n Arguments:\n id: aa534e09-6a07-0a45-2295-a7f77063d429\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getAclRole.\n", "properties": { @@ -4559,7 +4561,7 @@ } }, "nomad:index/getAclRoles:getAclRoles": { - "description": "Retrieve a list of ACL Roles.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as nomad from \"@pulumi/nomad\";\n\nconst example = nomad.getAclRoles({\n prefix: \"a242\",\n});\n```\n```python\nimport pulumi\nimport pulumi_nomad as nomad\n\nexample = nomad.get_acl_roles(prefix=\"a242\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Nomad = Pulumi.Nomad;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Nomad.GetAclRoles.Invoke(new()\n {\n Prefix = \"a242\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-nomad/sdk/v2/go/nomad\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := nomad.GetAclRoles(ctx, \u0026nomad.GetAclRolesArgs{\n\t\t\tPrefix: pulumi.StringRef(\"a242\"),\n\t\t}, 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.nomad.NomadFunctions;\nimport com.pulumi.nomad.inputs.GetAclRolesArgs;\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 example = NomadFunctions.getAclRoles(GetAclRolesArgs.builder()\n .prefix(\"a242\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n Function: nomad:getAclRoles\n Arguments:\n prefix: a242\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "layout: \"nomad\"\npage_title: \"Nomad: nomad.getAclRoles\"\nsidebar_current: \"docs-nomad-datasource-acl_roles\"\ndescription: |-\nRetrieve a list of ACL Roles.\n\u003c!-- yaml: line 6: could not find expected ':' --\u003e\n\n# nomad.getAclRoles\n\nRetrieve a list of ACL Roles.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as nomad from \"@pulumi/nomad\";\n\nconst example = nomad.getAclRoles({\n prefix: \"a242\",\n});\n```\n```python\nimport pulumi\nimport pulumi_nomad as nomad\n\nexample = nomad.get_acl_roles(prefix=\"a242\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Nomad = Pulumi.Nomad;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Nomad.GetAclRoles.Invoke(new()\n {\n Prefix = \"a242\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-nomad/sdk/v2/go/nomad\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := nomad.GetAclRoles(ctx, \u0026nomad.GetAclRolesArgs{\n\t\t\tPrefix: pulumi.StringRef(\"a242\"),\n\t\t}, 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.nomad.NomadFunctions;\nimport com.pulumi.nomad.inputs.GetAclRolesArgs;\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 example = NomadFunctions.getAclRoles(GetAclRolesArgs.builder()\n .prefix(\"a242\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n Function: nomad:getAclRoles\n Arguments:\n prefix: a242\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getAclRoles.\n", "properties": { @@ -4629,7 +4631,7 @@ "type": "string" }, "global": { - "description": "`(bool)` Whether the token is replicated to all regions, or if it \nwill only be used in the region it was created.\n", + "description": "`(bool)` Whether the token is replicated to all regions, or if it\nwill only be used in the region it was created.\n", "type": "boolean" }, "id": { @@ -4723,8 +4725,7 @@ "description": "A collection of arguments for invoking getAllocations.\n", "properties": { "filter": { - "type": "string", - "description": "`(string: \u003coptional\u003e)` - Specifies the\n[expression][nomad_api_filter] used to filter the results.\n" + "type": "string" }, "namespace": { "type": "string", @@ -5215,8 +5216,7 @@ "description": "A collection of arguments for invoking getNodePools.\n", "properties": { "filter": { - "type": "string", - "description": "`(string)` - Specifies the [expression][nomad_api_filter] used to\nfilter the results.\n" + "type": "string" }, "prefix": { "type": "string", diff --git a/provider/go.mod b/provider/go.mod index 6aae903..4f569f5 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -24,8 +24,8 @@ replace ( require ( github.com/hashicorp/terraform-provider-nomad v1.4.21-0.20240813185622-c4cd3bb61873 - github.com/pulumi/pulumi-terraform-bridge/v3 v3.89.1 - github.com/pulumi/pulumi/sdk/v3 v3.129.0 + github.com/pulumi/pulumi-terraform-bridge/v3 v3.89.2-0.20240903170302-5a498cc99569 + github.com/pulumi/pulumi/sdk/v3 v3.130.0 ) require ( @@ -184,6 +184,7 @@ require ( github.com/muesli/termenv v0.15.2 // indirect github.com/natefinch/atomic v1.0.1 // indirect github.com/oklog/run v1.1.0 // indirect + github.com/olekukonko/tablewriter v0.0.5 // indirect github.com/opentracing/basictracer-go v1.1.0 // indirect github.com/opentracing/opentracing-go v1.2.0 // indirect github.com/pgavlin/fx v0.1.6 // indirect @@ -200,7 +201,7 @@ require ( github.com/pulumi/pulumi-java/pkg v0.14.0 // indirect github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.8 // indirect github.com/pulumi/pulumi-yaml v1.9.2 // indirect - github.com/pulumi/pulumi/pkg/v3 v3.129.0 // indirect + github.com/pulumi/pulumi/pkg/v3 v3.130.0 // indirect github.com/pulumi/schema-tools v0.1.2 // indirect github.com/pulumi/terraform-diff-reader v0.0.2 // indirect github.com/rivo/uniseg v0.4.4 // indirect @@ -233,6 +234,7 @@ require ( github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect github.com/xeipuuv/gojsonschema v1.2.0 // indirect github.com/yuin/goldmark v1.7.4 // indirect + github.com/yuin/goldmark-meta v1.1.0 // indirect github.com/zclconf/go-cty v1.14.4 // indirect github.com/zclconf/go-cty-yaml v1.0.3 // indirect go.opencensus.io v0.24.0 // indirect @@ -264,6 +266,7 @@ require ( google.golang.org/grpc v1.63.2 // indirect google.golang.org/protobuf v1.34.0 // indirect gopkg.in/warnings.v0 v0.1.2 // indirect + gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect lukechampine.com/frand v1.4.2 // indirect ) diff --git a/provider/go.sum b/provider/go.sum index dc02aa4..600da30 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -1794,6 +1794,7 @@ github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D github.com/mattn/go-localereader v0.0.1 h1:ygSAOl7ZXTx4RdPYinUpg6W99U8jWvWi9Ye2JC/oIi4= github.com/mattn/go-localereader v0.0.1/go.mod h1:8fBrzywKY7BI3czFoHkuzRoWE9C+EiG4R1k4Cjx5p88= github.com/mattn/go-runewidth v0.0.4/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= +github.com/mattn/go-runewidth v0.0.9/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI= github.com/mattn/go-runewidth v0.0.12/go.mod h1:RAqKPSqVFrSLVXbA8x7dzmKdmGzieGRCM46jaSJTDAk= github.com/mattn/go-runewidth v0.0.15 h1:UNAjwbU9l54TA3KzvqLGxwWjHmMgBUVhBiTjelZgg3U= github.com/mattn/go-runewidth v0.0.15/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w= @@ -1856,6 +1857,8 @@ github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+ github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA= github.com/oklog/run v1.1.0/go.mod h1:sVPdnTZT1zYwAJeCMu2Th4T21pA3FPOQRfWjQlk7DVU= +github.com/olekukonko/tablewriter v0.0.5 h1:P2Ga83D34wi1o9J6Wh1mRuqd4mF/x/lgBS7N7AbDhec= +github.com/olekukonko/tablewriter v0.0.5/go.mod h1:hPp6KlRPjbx+hW8ykQs1w3UBbZlj6HuIJcUGPhkA7kY= github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk= github.com/onsi/ginkgo v1.16.4/go.mod h1:dX+/inL/fNMqNlz0e9LfyB9TswhZpCVdJM/Z6Vvnwo0= @@ -1936,16 +1939,16 @@ github.com/pulumi/providertest v0.0.14 h1:5QlAPAAs82jkQraHsJvq1xgVfC7xtW8sFJwv2p github.com/pulumi/providertest v0.0.14/go.mod h1:GcsqEGgSngwaNOD+kICJPIUQlnA911fGBU8HDlJvVL0= github.com/pulumi/pulumi-java/pkg v0.14.0 h1:CKL7lLF81Fq6VRhA5TNFsSMnHraTNCUzIhqCzYX8Wzk= github.com/pulumi/pulumi-java/pkg v0.14.0/go.mod h1:VybuJMWJtJc9ZNbt1kcYH4TbpocMx9mEi7YWL2Co99c= -github.com/pulumi/pulumi-terraform-bridge/v3 v3.89.1 h1:FLQknb6r3r/uaj1XLbouFF88eF1Fk0h4JOVS9kHKDRY= -github.com/pulumi/pulumi-terraform-bridge/v3 v3.89.1/go.mod h1:JAxygKR/XGW6zIv6iOP6sHAYjZ7OCtqU7j6Od1lUk38= +github.com/pulumi/pulumi-terraform-bridge/v3 v3.89.2-0.20240903170302-5a498cc99569 h1:OKvGDfW1so7L7dNzpgiCmcUPsAWXPq7VpSfJg9kuNgU= +github.com/pulumi/pulumi-terraform-bridge/v3 v3.89.2-0.20240903170302-5a498cc99569/go.mod h1:rkGtIgybXg25KaxK90KxqoLatEzfwe6AqRRgTCvNeiw= github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.8 h1:mav2tSitA9BPJPLLahKgepHyYsMzwaTm4cvp0dcTMYw= github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.8/go.mod h1:qUYk2c9i/yqMGNj9/bQyXpS39BxNDSXYjVN1njnq0zY= github.com/pulumi/pulumi-yaml v1.9.2 h1:BCUuRPA1USmFXrExiHRU8yJ+OiphLYnroPxKRgGCJrs= github.com/pulumi/pulumi-yaml v1.9.2/go.mod h1:sIh/Oa/NLRGTojevh8D2/cPDPvo2j9iXegVDQIKKfw4= -github.com/pulumi/pulumi/pkg/v3 v3.129.0 h1:n4Jd4ctlvw3eqyHglb/yJKDtRqjOvdkCBfG5T+orU30= -github.com/pulumi/pulumi/pkg/v3 v3.129.0/go.mod h1:W3c7JgO064kUH5IfyQMCgmsAr5iwr3PO6KEeIQiO0dY= -github.com/pulumi/pulumi/sdk/v3 v3.129.0 h1:uZpTTwWTx7Mk8UT9FgatzxzArim47vZ6hzNCKvgvX6A= -github.com/pulumi/pulumi/sdk/v3 v3.129.0/go.mod h1:p1U24en3zt51agx+WlNboSOV8eLlPWYAkxMzVEXKbnY= +github.com/pulumi/pulumi/pkg/v3 v3.130.0 h1:lS51XeCnhg72LXkMiw2FP1cGP+Y85wYD3quWhCPD5+M= +github.com/pulumi/pulumi/pkg/v3 v3.130.0/go.mod h1:jhZ1Ug5Rl1qivexgEWvmwSWYIT/jRnKSFhLwwv6PrZ0= +github.com/pulumi/pulumi/sdk/v3 v3.130.0 h1:gGJNd+akPqhZ+vrsZmAjSNJn6kGJkitjjkwrmIQMmn8= +github.com/pulumi/pulumi/sdk/v3 v3.130.0/go.mod h1:p1U24en3zt51agx+WlNboSOV8eLlPWYAkxMzVEXKbnY= github.com/pulumi/schema-tools v0.1.2 h1:Fd9xvUjgck4NA+7/jSk7InqCUT4Kj940+EcnbQKpfZo= github.com/pulumi/schema-tools v0.1.2/go.mod h1:62lgj52Tzq11eqWTIaKd+EVyYAu5dEcDJxMhTjvMO/k= github.com/pulumi/terraform-diff-reader v0.0.2 h1:kTE4nEXU3/SYXESvAIem+wyHMI3abqkI3OhJ0G04LLI= @@ -2071,6 +2074,8 @@ github.com/yuin/goldmark v1.4.1/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1 github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= github.com/yuin/goldmark v1.7.4 h1:BDXOHExt+A7gwPCJgPIIq7ENvceR7we7rOS9TNoLZeg= github.com/yuin/goldmark v1.7.4/go.mod h1:uzxRWxtg69N339t3louHJ7+O03ezfj6PlliRlaOzY1E= +github.com/yuin/goldmark-meta v1.1.0 h1:pWw+JLHGZe8Rk0EGsMVssiNb/AaPMHfSRszZeUeiOUc= +github.com/yuin/goldmark-meta v1.1.0/go.mod h1:U4spWENafuA7Zyg+Lj5RqK/MF+ovMYtBvXi1lBb2VP0= github.com/zclconf/go-cty v1.0.0/go.mod h1:xnAOWiHeOqg2nWS62VtQ7pbOu17FtxJNW8RLEih+O3s= github.com/zclconf/go-cty v1.1.0/go.mod h1:xnAOWiHeOqg2nWS62VtQ7pbOu17FtxJNW8RLEih+O3s= github.com/zclconf/go-cty v1.2.0/go.mod h1:hOPWgoHbaTUnI5k4D2ld+GRpFJSCe6bCM7m1q/N4PQ8= diff --git a/sdk/go.mod b/sdk/go.mod index 3e67509..584d3d8 100644 --- a/sdk/go.mod +++ b/sdk/go.mod @@ -4,7 +4,7 @@ go 1.21 require ( github.com/blang/semver v3.5.1+incompatible - github.com/pulumi/pulumi/sdk/v3 v3.129.0 + github.com/pulumi/pulumi/sdk/v3 v3.130.0 ) require ( diff --git a/sdk/go.sum b/sdk/go.sum index fdd7dcf..06ce7f4 100644 --- a/sdk/go.sum +++ b/sdk/go.sum @@ -150,8 +150,8 @@ github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 h1:vkHw5I/plNdTr435 github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231/go.mod h1:murToZ2N9hNJzewjHBgfFdXhZKjY3z5cYC1VXk+lbFE= github.com/pulumi/esc v0.9.1 h1:HH5eEv8sgyxSpY5a8yePyqFXzA8cvBvapfH8457+mIs= github.com/pulumi/esc v0.9.1/go.mod h1:oEJ6bOsjYlQUpjf70GiX+CXn3VBmpwFDxUTlmtUN84c= -github.com/pulumi/pulumi/sdk/v3 v3.129.0 h1:uZpTTwWTx7Mk8UT9FgatzxzArim47vZ6hzNCKvgvX6A= -github.com/pulumi/pulumi/sdk/v3 v3.129.0/go.mod h1:p1U24en3zt51agx+WlNboSOV8eLlPWYAkxMzVEXKbnY= +github.com/pulumi/pulumi/sdk/v3 v3.130.0 h1:gGJNd+akPqhZ+vrsZmAjSNJn6kGJkitjjkwrmIQMmn8= +github.com/pulumi/pulumi/sdk/v3 v3.130.0/go.mod h1:p1U24en3zt51agx+WlNboSOV8eLlPWYAkxMzVEXKbnY= github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.4.4 h1:8TfxU8dW6PdqD27gjM8MVNuicgxIjxpm4K7x4jp8sis= From 8e68c577e1bdc1572caa675361cb15562780c58c Mon Sep 17 00:00:00 2001 From: pulumi-bot Date: Tue, 3 Sep 2024 17:35:49 +0000 Subject: [PATCH 2/2] make build_sdks --- sdk/dotnet/AclAuthMethod.cs | 9 ++ sdk/dotnet/CsiVolume.cs | 78 +++++++++++++++ sdk/dotnet/CsiVolumeRegistration.cs | 78 +++++++++++++++ sdk/dotnet/GetAclRole.cs | 18 ++++ sdk/dotnet/GetAclRoles.cs | 18 ++++ sdk/dotnet/GetAclToken.cs | 2 +- sdk/dotnet/GetAllocations.cs | 8 -- sdk/dotnet/GetNodePools.cs | 8 -- sdk/dotnet/Inputs/AclAuthMethodConfigArgs.cs | 16 +-- .../Inputs/AclAuthMethodConfigGetArgs.cs | 16 +-- sdk/dotnet/Outputs/AclAuthMethodConfig.cs | 16 +-- sdk/dotnet/SentinelPolicy.cs | 23 ++--- sdk/go/nomad/aclAuthMethod.go | 9 ++ sdk/go/nomad/csiVolume.go | 71 ++++++++++++++ sdk/go/nomad/csiVolumeRegistration.go | 71 ++++++++++++++ sdk/go/nomad/getAclRole.go | 9 ++ sdk/go/nomad/getAclRoles.go | 9 ++ sdk/go/nomad/getAllocations.go | 4 - sdk/go/nomad/getNodePools.go | 4 - sdk/go/nomad/pulumiTypes.go | 48 ++++----- sdk/go/nomad/sentinelPolicy.go | 45 +++------ .../java/com/pulumi/nomad/AclAuthMethod.java | 9 ++ .../main/java/com/pulumi/nomad/CsiVolume.java | 83 ++++++++++++++++ .../pulumi/nomad/CsiVolumeRegistration.java | 83 ++++++++++++++++ .../java/com/pulumi/nomad/NomadFunctions.java | 90 +++++++++++++++++ .../java/com/pulumi/nomad/SentinelPolicy.java | 16 +-- .../com/pulumi/nomad/SentinelPolicyArgs.java | 28 ++---- .../nomad/inputs/AclAuthMethodConfigArgs.java | 48 ++++----- .../nomad/inputs/GetAllocationsArgs.java | 24 ----- .../nomad/inputs/GetAllocationsPlainArgs.java | 17 ---- .../pulumi/nomad/inputs/GetNodePoolsArgs.java | 24 ----- .../nomad/inputs/GetNodePoolsPlainArgs.java | 17 ---- .../nomad/inputs/SentinelPolicyState.java | 28 ++---- .../nomad/outputs/AclAuthMethodConfig.java | 24 ++--- sdk/nodejs/aclAuthMethod.ts | 9 ++ sdk/nodejs/csiVolume.ts | 53 ++++++++++ sdk/nodejs/csiVolumeRegistration.ts | 53 ++++++++++ sdk/nodejs/getAclRole.ts | 18 ++++ sdk/nodejs/getAclRoles.ts | 18 ++++ sdk/nodejs/getAclToken.ts | 2 +- sdk/nodejs/getAllocations.ts | 8 -- sdk/nodejs/getNodePools.ts | 8 -- sdk/nodejs/sentinelPolicy.ts | 23 ++--- sdk/nodejs/types/input.ts | 16 +-- sdk/nodejs/types/output.ts | 16 +-- sdk/python/pulumi_nomad/_inputs.py | 32 +++--- sdk/python/pulumi_nomad/acl_auth_method.py | 18 ++++ sdk/python/pulumi_nomad/csi_volume.py | 98 ++++++++++++++++++- .../pulumi_nomad/csi_volume_registration.py | 98 ++++++++++++++++++- sdk/python/pulumi_nomad/get_acl_role.py | 18 ++++ sdk/python/pulumi_nomad/get_acl_roles.py | 18 ++++ sdk/python/pulumi_nomad/get_acl_token.py | 2 +- sdk/python/pulumi_nomad/get_allocations.py | 4 - sdk/python/pulumi_nomad/get_node_pools.py | 4 - sdk/python/pulumi_nomad/outputs.py | 32 +++--- sdk/python/pulumi_nomad/sentinel_policy.py | 53 +++------- 56 files changed, 1231 insertions(+), 421 deletions(-) diff --git a/sdk/dotnet/AclAuthMethod.cs b/sdk/dotnet/AclAuthMethod.cs index 9453863..36ccb34 100644 --- a/sdk/dotnet/AclAuthMethod.cs +++ b/sdk/dotnet/AclAuthMethod.cs @@ -10,6 +10,15 @@ namespace Pulumi.Nomad { /// + /// layout: "nomad" + /// page_title: "Nomad: nomad.AclAuthMethod" + /// sidebar_current: "docs-nomad-resource-acl-auth-method" + /// description: |- + /// Manages an ACL Auth Method in Nomad. + /// <!-- yaml: line 6: could not find expected ':' --> + /// + /// # nomad.AclAuthMethod + /// /// Manages an ACL Auth Method in Nomad. /// /// ## Example Usage diff --git a/sdk/dotnet/CsiVolume.cs b/sdk/dotnet/CsiVolume.cs index 6e3b10f..b653122 100644 --- a/sdk/dotnet/CsiVolume.cs +++ b/sdk/dotnet/CsiVolume.cs @@ -9,6 +9,84 @@ namespace Pulumi.Nomad { + /// + /// ## Example Usage + /// + /// Creating a volume: + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nomad = Pulumi.Nomad; + /// + /// return await Deployment.RunAsync(() => + /// { + /// // It can sometimes be helpful to wait for a particular plugin to be available + /// var ebs = Nomad.GetPlugin.Invoke(new() + /// { + /// PluginId = "aws-ebs0", + /// WaitForHealthy = true, + /// }); + /// + /// var mysqlVolume = new Nomad.CsiVolume("mysql_volume", new() + /// { + /// PluginId = "aws-ebs0", + /// VolumeId = "mysql_volume", + /// Name = "mysql_volume", + /// CapacityMin = "10GiB", + /// CapacityMax = "20GiB", + /// Capabilities = new[] + /// { + /// new Nomad.Inputs.CsiVolumeCapabilityArgs + /// { + /// AccessMode = "single-node-writer", + /// AttachmentMode = "file-system", + /// }, + /// }, + /// MountOptions = new Nomad.Inputs.CsiVolumeMountOptionsArgs + /// { + /// FsType = "ext4", + /// }, + /// TopologyRequest = new Nomad.Inputs.CsiVolumeTopologyRequestArgs + /// { + /// Required = new Nomad.Inputs.CsiVolumeTopologyRequestRequiredArgs + /// { + /// Topologies = new[] + /// { + /// new Nomad.Inputs.CsiVolumeTopologyRequestRequiredTopologyArgs + /// { + /// Segments = + /// { + /// { "rack", "R1" }, + /// { "zone", "us-east-1a" }, + /// }, + /// }, + /// new Nomad.Inputs.CsiVolumeTopologyRequestRequiredTopologyArgs + /// { + /// Segments = + /// { + /// { "rack", "R2" }, + /// }, + /// }, + /// }, + /// }, + /// }, + /// }, new CustomResourceOptions + /// { + /// DependsOn = + /// { + /// ebs, + /// }, + /// }); + /// + /// }); + /// ``` + /// + /// ## Importing CSI Volumes + /// + /// CSI volumes are imported using the pattern `<volume ID>@<namespace>` . + /// [NomadResourceType("nomad:index/csiVolume:CsiVolume")] public partial class CsiVolume : global::Pulumi.CustomResource { diff --git a/sdk/dotnet/CsiVolumeRegistration.cs b/sdk/dotnet/CsiVolumeRegistration.cs index c5db519..2f49403 100644 --- a/sdk/dotnet/CsiVolumeRegistration.cs +++ b/sdk/dotnet/CsiVolumeRegistration.cs @@ -9,6 +9,84 @@ namespace Pulumi.Nomad { + /// + /// ## Example Usage + /// + /// Registering a volume: + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Nomad = Pulumi.Nomad; + /// + /// return await Deployment.RunAsync(() => + /// { + /// // It can sometimes be helpful to wait for a particular plugin to be available + /// var ebs = Nomad.GetPlugin.Invoke(new() + /// { + /// PluginId = "aws-ebs0", + /// WaitForHealthy = true, + /// }); + /// + /// var mysqlVolume = new Nomad.CsiVolumeRegistration("mysql_volume", new() + /// { + /// PluginId = "aws-ebs0", + /// VolumeId = "mysql_volume", + /// Name = "mysql_volume", + /// ExternalId = hashistack.EbsTestVolumeId, + /// Capabilities = new[] + /// { + /// new Nomad.Inputs.CsiVolumeRegistrationCapabilityArgs + /// { + /// AccessMode = "single-node-writer", + /// AttachmentMode = "file-system", + /// }, + /// }, + /// MountOptions = new Nomad.Inputs.CsiVolumeRegistrationMountOptionsArgs + /// { + /// FsType = "ext4", + /// }, + /// TopologyRequest = new Nomad.Inputs.CsiVolumeRegistrationTopologyRequestArgs + /// { + /// Required = new Nomad.Inputs.CsiVolumeRegistrationTopologyRequestRequiredArgs + /// { + /// Topologies = new[] + /// { + /// new Nomad.Inputs.CsiVolumeRegistrationTopologyRequestRequiredTopologyArgs + /// { + /// Segments = + /// { + /// { "rack", "R1" }, + /// { "zone", "us-east-1a" }, + /// }, + /// }, + /// new Nomad.Inputs.CsiVolumeRegistrationTopologyRequestRequiredTopologyArgs + /// { + /// Segments = + /// { + /// { "rack", "R2" }, + /// }, + /// }, + /// }, + /// }, + /// }, + /// }, new CustomResourceOptions + /// { + /// DependsOn = + /// { + /// ebs, + /// }, + /// }); + /// + /// }); + /// ``` + /// + /// ## Importing CSI Volume Registrations + /// + /// CSI volume registrations are imported using the pattern + /// `<volume ID>@<namespace>`. + /// [NomadResourceType("nomad:index/csiVolumeRegistration:CsiVolumeRegistration")] public partial class CsiVolumeRegistration : global::Pulumi.CustomResource { diff --git a/sdk/dotnet/GetAclRole.cs b/sdk/dotnet/GetAclRole.cs index 05c5198..76ead9f 100644 --- a/sdk/dotnet/GetAclRole.cs +++ b/sdk/dotnet/GetAclRole.cs @@ -12,6 +12,15 @@ namespace Pulumi.Nomad public static class GetAclRole { /// + /// layout: "nomad" + /// page_title: "Nomad: nomad.AclRole" + /// sidebar_current: "docs-nomad-datasource-acl-role" + /// description: |- + /// Get information on an ACL Role. + /// <!-- yaml: line 6: could not find expected ':' --> + /// + /// # nomad.AclRole + /// /// Get information on an ACL Role. /// /// ## Example Usage @@ -36,6 +45,15 @@ public static Task InvokeAsync(GetAclRoleArgs args, InvokeOpti => global::Pulumi.Deployment.Instance.InvokeAsync("nomad:index/getAclRole:getAclRole", args ?? new GetAclRoleArgs(), options.WithDefaults()); /// + /// layout: "nomad" + /// page_title: "Nomad: nomad.AclRole" + /// sidebar_current: "docs-nomad-datasource-acl-role" + /// description: |- + /// Get information on an ACL Role. + /// <!-- yaml: line 6: could not find expected ':' --> + /// + /// # nomad.AclRole + /// /// Get information on an ACL Role. /// /// ## Example Usage diff --git a/sdk/dotnet/GetAclRoles.cs b/sdk/dotnet/GetAclRoles.cs index 3d86239..1e5e6c5 100644 --- a/sdk/dotnet/GetAclRoles.cs +++ b/sdk/dotnet/GetAclRoles.cs @@ -12,6 +12,15 @@ namespace Pulumi.Nomad public static class GetAclRoles { /// + /// layout: "nomad" + /// page_title: "Nomad: nomad.getAclRoles" + /// sidebar_current: "docs-nomad-datasource-acl_roles" + /// description: |- + /// Retrieve a list of ACL Roles. + /// <!-- yaml: line 6: could not find expected ':' --> + /// + /// # nomad.getAclRoles + /// /// Retrieve a list of ACL Roles. /// /// ## Example Usage @@ -36,6 +45,15 @@ public static Task InvokeAsync(GetAclRolesArgs? args = null, => global::Pulumi.Deployment.Instance.InvokeAsync("nomad:index/getAclRoles:getAclRoles", args ?? new GetAclRolesArgs(), options.WithDefaults()); /// + /// layout: "nomad" + /// page_title: "Nomad: nomad.getAclRoles" + /// sidebar_current: "docs-nomad-datasource-acl_roles" + /// description: |- + /// Retrieve a list of ACL Roles. + /// <!-- yaml: line 6: could not find expected ':' --> + /// + /// # nomad.getAclRoles + /// /// Retrieve a list of ACL Roles. /// /// ## Example Usage diff --git a/sdk/dotnet/GetAclToken.cs b/sdk/dotnet/GetAclToken.cs index f1d7a79..0a51e31 100644 --- a/sdk/dotnet/GetAclToken.cs +++ b/sdk/dotnet/GetAclToken.cs @@ -107,7 +107,7 @@ public sealed class GetAclTokenResult /// public readonly string ExpirationTtl; /// - /// `(bool)` Whether the token is replicated to all regions, or if it + /// `(bool)` Whether the token is replicated to all regions, or if it /// will only be used in the region it was created. /// public readonly bool Global; diff --git a/sdk/dotnet/GetAllocations.cs b/sdk/dotnet/GetAllocations.cs index 47ee684..3a55eaf 100644 --- a/sdk/dotnet/GetAllocations.cs +++ b/sdk/dotnet/GetAllocations.cs @@ -63,10 +63,6 @@ public static Output Invoke(GetAllocationsInvokeArgs? args public sealed class GetAllocationsArgs : global::Pulumi.InvokeArgs { - /// - /// `(string: <optional>)` - Specifies the - /// [expression][nomad_api_filter] used to filter the results. - /// [Input("filter")] public string? Filter { get; set; } @@ -92,10 +88,6 @@ public GetAllocationsArgs() public sealed class GetAllocationsInvokeArgs : global::Pulumi.InvokeArgs { - /// - /// `(string: <optional>)` - Specifies the - /// [expression][nomad_api_filter] used to filter the results. - /// [Input("filter")] public Input? Filter { get; set; } diff --git a/sdk/dotnet/GetNodePools.cs b/sdk/dotnet/GetNodePools.cs index 65fe153..531e0e2 100644 --- a/sdk/dotnet/GetNodePools.cs +++ b/sdk/dotnet/GetNodePools.cs @@ -63,10 +63,6 @@ public static Output Invoke(GetNodePoolsInvokeArgs? args = n public sealed class GetNodePoolsArgs : global::Pulumi.InvokeArgs { - /// - /// `(string)` - Specifies the [expression][nomad_api_filter] used to - /// filter the results. - /// [Input("filter")] public string? Filter { get; set; } @@ -85,10 +81,6 @@ public GetNodePoolsArgs() public sealed class GetNodePoolsInvokeArgs : global::Pulumi.InvokeArgs { - /// - /// `(string)` - Specifies the [expression][nomad_api_filter] used to - /// filter the results. - /// [Input("filter")] public Input? Filter { get; set; } diff --git a/sdk/dotnet/Inputs/AclAuthMethodConfigArgs.cs b/sdk/dotnet/Inputs/AclAuthMethodConfigArgs.cs index 3f35c77..84d9ac5 100644 --- a/sdk/dotnet/Inputs/AclAuthMethodConfigArgs.cs +++ b/sdk/dotnet/Inputs/AclAuthMethodConfigArgs.cs @@ -55,7 +55,8 @@ public InputList BoundIssuers private InputMap? _claimMappings; /// - /// Mappings of claims (key) that will be copied to a metadata field (value). + /// `(map[string]string: <optional>)` - Mappings of claims (key) + /// that will be copied to a metadata field (value). /// public InputMap ClaimMappings { @@ -64,8 +65,7 @@ public InputMap ClaimMappings } /// - /// `(string: <optional>)` - Duration of leeway when validating - /// all claims in the form of a time duration such as "5m" or "1h". + /// Duration of leeway when validating all claims in the form of a time duration such as "5m" or "1h". /// [Input("clockSkewLeeway")] public Input? ClockSkewLeeway { get; set; } @@ -91,7 +91,7 @@ public InputList DiscoveryCaPems public Input? ExpirationLeeway { get; set; } /// - /// `(string: <optional>)` - PEM encoded CA cert for use by the + /// `(string: <optional>)` - PEM encoded CA cert for use by the /// TLS client used to talk with the JWKS server. /// [Input("jwksCaCert")] @@ -108,7 +108,7 @@ public InputList DiscoveryCaPems private InputList? _jwtValidationPubKeys; /// - /// `([]string: <optional>)` - List of PEM-encoded + /// `([]string: <optional>)` - List of PEM-encoded /// public keys to use to authenticate signatures locally. /// public InputList JwtValidationPubKeys @@ -121,7 +121,8 @@ public InputList JwtValidationPubKeys private InputMap? _listClaimMappings; /// - /// Mappings of list claims (key) that will be copied to a metadata field (value). + /// `(map[string]string: <optional>)` - Mappings of list + /// claims (key) that will be copied to a metadata field (value). /// public InputMap ListClaimMappings { @@ -130,8 +131,7 @@ public InputMap ListClaimMappings } /// - /// `(string: <optional>)` - Duration of leeway when validating - /// not before values of a token in the form of a time duration such as "5m" or "1h". + /// Duration of leeway when validating not before values of a token in the form of a time duration such as "5m" or "1h". /// [Input("notBeforeLeeway")] public Input? NotBeforeLeeway { get; set; } diff --git a/sdk/dotnet/Inputs/AclAuthMethodConfigGetArgs.cs b/sdk/dotnet/Inputs/AclAuthMethodConfigGetArgs.cs index 1f7d5a6..305f66c 100644 --- a/sdk/dotnet/Inputs/AclAuthMethodConfigGetArgs.cs +++ b/sdk/dotnet/Inputs/AclAuthMethodConfigGetArgs.cs @@ -55,7 +55,8 @@ public InputList BoundIssuers private InputMap? _claimMappings; /// - /// Mappings of claims (key) that will be copied to a metadata field (value). + /// `(map[string]string: <optional>)` - Mappings of claims (key) + /// that will be copied to a metadata field (value). /// public InputMap ClaimMappings { @@ -64,8 +65,7 @@ public InputMap ClaimMappings } /// - /// `(string: <optional>)` - Duration of leeway when validating - /// all claims in the form of a time duration such as "5m" or "1h". + /// Duration of leeway when validating all claims in the form of a time duration such as "5m" or "1h". /// [Input("clockSkewLeeway")] public Input? ClockSkewLeeway { get; set; } @@ -91,7 +91,7 @@ public InputList DiscoveryCaPems public Input? ExpirationLeeway { get; set; } /// - /// `(string: <optional>)` - PEM encoded CA cert for use by the + /// `(string: <optional>)` - PEM encoded CA cert for use by the /// TLS client used to talk with the JWKS server. /// [Input("jwksCaCert")] @@ -108,7 +108,7 @@ public InputList DiscoveryCaPems private InputList? _jwtValidationPubKeys; /// - /// `([]string: <optional>)` - List of PEM-encoded + /// `([]string: <optional>)` - List of PEM-encoded /// public keys to use to authenticate signatures locally. /// public InputList JwtValidationPubKeys @@ -121,7 +121,8 @@ public InputList JwtValidationPubKeys private InputMap? _listClaimMappings; /// - /// Mappings of list claims (key) that will be copied to a metadata field (value). + /// `(map[string]string: <optional>)` - Mappings of list + /// claims (key) that will be copied to a metadata field (value). /// public InputMap ListClaimMappings { @@ -130,8 +131,7 @@ public InputMap ListClaimMappings } /// - /// `(string: <optional>)` - Duration of leeway when validating - /// not before values of a token in the form of a time duration such as "5m" or "1h". + /// Duration of leeway when validating not before values of a token in the form of a time duration such as "5m" or "1h". /// [Input("notBeforeLeeway")] public Input? NotBeforeLeeway { get; set; } diff --git a/sdk/dotnet/Outputs/AclAuthMethodConfig.cs b/sdk/dotnet/Outputs/AclAuthMethodConfig.cs index 7ba4bf8..db8d10b 100644 --- a/sdk/dotnet/Outputs/AclAuthMethodConfig.cs +++ b/sdk/dotnet/Outputs/AclAuthMethodConfig.cs @@ -29,12 +29,12 @@ public sealed class AclAuthMethodConfig /// public readonly ImmutableArray BoundIssuers; /// - /// Mappings of claims (key) that will be copied to a metadata field (value). + /// `(map[string]string: <optional>)` - Mappings of claims (key) + /// that will be copied to a metadata field (value). /// public readonly ImmutableDictionary? ClaimMappings; /// - /// `(string: <optional>)` - Duration of leeway when validating - /// all claims in the form of a time duration such as "5m" or "1h". + /// Duration of leeway when validating all claims in the form of a time duration such as "5m" or "1h". /// public readonly string? ClockSkewLeeway; /// @@ -48,7 +48,7 @@ public sealed class AclAuthMethodConfig /// public readonly string? ExpirationLeeway; /// - /// `(string: <optional>)` - PEM encoded CA cert for use by the + /// `(string: <optional>)` - PEM encoded CA cert for use by the /// TLS client used to talk with the JWKS server. /// public readonly string? JwksCaCert; @@ -58,17 +58,17 @@ public sealed class AclAuthMethodConfig /// public readonly string? JwksUrl; /// - /// `([]string: <optional>)` - List of PEM-encoded + /// `([]string: <optional>)` - List of PEM-encoded /// public keys to use to authenticate signatures locally. /// public readonly ImmutableArray JwtValidationPubKeys; /// - /// Mappings of list claims (key) that will be copied to a metadata field (value). + /// `(map[string]string: <optional>)` - Mappings of list + /// claims (key) that will be copied to a metadata field (value). /// public readonly ImmutableDictionary? ListClaimMappings; /// - /// `(string: <optional>)` - Duration of leeway when validating - /// not before values of a token in the form of a time duration such as "5m" or "1h". + /// Duration of leeway when validating not before values of a token in the form of a time duration such as "5m" or "1h". /// public readonly string? NotBeforeLeeway; /// diff --git a/sdk/dotnet/SentinelPolicy.cs b/sdk/dotnet/SentinelPolicy.cs index d1fc9a9..ac0b60c 100644 --- a/sdk/dotnet/SentinelPolicy.cs +++ b/sdk/dotnet/SentinelPolicy.cs @@ -13,7 +13,7 @@ namespace Pulumi.Nomad /// Manages a Sentinel policy registered in Nomad. /// /// > **Enterprise Only!** This API endpoint and functionality only exists in - /// Nomad Enterprise. This is not present in the open source version of Nomad. + /// Nomad Enterprise. This is not present in the open source version of Nomad. /// /// ## Example Usage /// @@ -52,15 +52,12 @@ public partial class SentinelPolicy : global::Pulumi.CustomResource { /// /// `(string: "")` - A description of the policy. - /// - /// [scope]: https://www.nomadproject.io/guides/sentinel-policy.html#policy-scope - /// [enforcement-level]: https://www.nomadproject.io/guides/sentinel-policy.html#enforcement-level /// [Output("description")] public Output Description { get; private set; } = null!; /// - /// `(strings: <required>)` - The [enforcement level][enforcement-level] + /// `(strings: <required>)` - The [enforcement level](https://www.nomadproject.io/guides/sentinel-policy.html#enforcement-level) /// for this policy. /// [Output("enforcementLevel")] @@ -79,7 +76,7 @@ public partial class SentinelPolicy : global::Pulumi.CustomResource public Output Policy { get; private set; } = null!; /// - /// `(strings: <required>)` - The [scope][scope] for this policy. + /// `(strings: <required>)` - The [scope](https://www.nomadproject.io/guides/sentinel-policy.html#policy-scope) for this policy. /// [Output("scope")] public Output Scope { get; private set; } = null!; @@ -132,15 +129,12 @@ public sealed class SentinelPolicyArgs : global::Pulumi.ResourceArgs { /// /// `(string: "")` - A description of the policy. - /// - /// [scope]: https://www.nomadproject.io/guides/sentinel-policy.html#policy-scope - /// [enforcement-level]: https://www.nomadproject.io/guides/sentinel-policy.html#enforcement-level /// [Input("description")] public Input? Description { get; set; } /// - /// `(strings: <required>)` - The [enforcement level][enforcement-level] + /// `(strings: <required>)` - The [enforcement level](https://www.nomadproject.io/guides/sentinel-policy.html#enforcement-level) /// for this policy. /// [Input("enforcementLevel", required: true)] @@ -159,7 +153,7 @@ public sealed class SentinelPolicyArgs : global::Pulumi.ResourceArgs public Input Policy { get; set; } = null!; /// - /// `(strings: <required>)` - The [scope][scope] for this policy. + /// `(strings: <required>)` - The [scope](https://www.nomadproject.io/guides/sentinel-policy.html#policy-scope) for this policy. /// [Input("scope", required: true)] public Input Scope { get; set; } = null!; @@ -174,15 +168,12 @@ public sealed class SentinelPolicyState : global::Pulumi.ResourceArgs { /// /// `(string: "")` - A description of the policy. - /// - /// [scope]: https://www.nomadproject.io/guides/sentinel-policy.html#policy-scope - /// [enforcement-level]: https://www.nomadproject.io/guides/sentinel-policy.html#enforcement-level /// [Input("description")] public Input? Description { get; set; } /// - /// `(strings: <required>)` - The [enforcement level][enforcement-level] + /// `(strings: <required>)` - The [enforcement level](https://www.nomadproject.io/guides/sentinel-policy.html#enforcement-level) /// for this policy. /// [Input("enforcementLevel")] @@ -201,7 +192,7 @@ public sealed class SentinelPolicyState : global::Pulumi.ResourceArgs public Input? Policy { get; set; } /// - /// `(strings: <required>)` - The [scope][scope] for this policy. + /// `(strings: <required>)` - The [scope](https://www.nomadproject.io/guides/sentinel-policy.html#policy-scope) for this policy. /// [Input("scope")] public Input? Scope { get; set; } diff --git a/sdk/go/nomad/aclAuthMethod.go b/sdk/go/nomad/aclAuthMethod.go index d46dfa4..6836755 100644 --- a/sdk/go/nomad/aclAuthMethod.go +++ b/sdk/go/nomad/aclAuthMethod.go @@ -12,6 +12,15 @@ import ( "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) +// layout: "nomad" +// page_title: "Nomad: AclAuthMethod" +// sidebar_current: "docs-nomad-resource-acl-auth-method" +// description: |- +// Manages an ACL Auth Method in Nomad. +// +// +// # AclAuthMethod +// // Manages an ACL Auth Method in Nomad. // // ## Example Usage diff --git a/sdk/go/nomad/csiVolume.go b/sdk/go/nomad/csiVolume.go index 58e3d52..338d607 100644 --- a/sdk/go/nomad/csiVolume.go +++ b/sdk/go/nomad/csiVolume.go @@ -12,6 +12,77 @@ import ( "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) +// ## Example Usage +// +// Creating a volume: +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi-nomad/sdk/v2/go/nomad" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// // It can sometimes be helpful to wait for a particular plugin to be available +// ebs, err := nomad.GetPlugin(ctx, &nomad.GetPluginArgs{ +// PluginId: "aws-ebs0", +// WaitForHealthy: pulumi.BoolRef(true), +// }, nil) +// if err != nil { +// return err +// } +// _, err = nomad.NewCsiVolume(ctx, "mysql_volume", &nomad.CsiVolumeArgs{ +// PluginId: pulumi.String("aws-ebs0"), +// VolumeId: pulumi.String("mysql_volume"), +// Name: pulumi.String("mysql_volume"), +// CapacityMin: pulumi.String("10GiB"), +// CapacityMax: pulumi.String("20GiB"), +// Capabilities: nomad.CsiVolumeCapabilityArray{ +// &nomad.CsiVolumeCapabilityArgs{ +// AccessMode: pulumi.String("single-node-writer"), +// AttachmentMode: pulumi.String("file-system"), +// }, +// }, +// MountOptions: &nomad.CsiVolumeMountOptionsArgs{ +// FsType: pulumi.String("ext4"), +// }, +// TopologyRequest: &nomad.CsiVolumeTopologyRequestArgs{ +// Required: &nomad.CsiVolumeTopologyRequestRequiredArgs{ +// Topologies: nomad.CsiVolumeTopologyRequestRequiredTopologyArray{ +// &nomad.CsiVolumeTopologyRequestRequiredTopologyArgs{ +// Segments: pulumi.StringMap{ +// "rack": pulumi.String("R1"), +// "zone": pulumi.String("us-east-1a"), +// }, +// }, +// &nomad.CsiVolumeTopologyRequestRequiredTopologyArgs{ +// Segments: pulumi.StringMap{ +// "rack": pulumi.String("R2"), +// }, +// }, +// }, +// }, +// }, +// }, pulumi.DependsOn([]pulumi.Resource{ +// ebs, +// })) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +// +// ## Importing CSI Volumes +// +// CSI volumes are imported using the pattern `@` . type CsiVolume struct { pulumi.CustomResourceState diff --git a/sdk/go/nomad/csiVolumeRegistration.go b/sdk/go/nomad/csiVolumeRegistration.go index b64b38a..b869f27 100644 --- a/sdk/go/nomad/csiVolumeRegistration.go +++ b/sdk/go/nomad/csiVolumeRegistration.go @@ -12,6 +12,77 @@ import ( "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) +// ## Example Usage +// +// Registering a volume: +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi-nomad/sdk/v2/go/nomad" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// // It can sometimes be helpful to wait for a particular plugin to be available +// ebs, err := nomad.GetPlugin(ctx, &nomad.GetPluginArgs{ +// PluginId: "aws-ebs0", +// WaitForHealthy: pulumi.BoolRef(true), +// }, nil) +// if err != nil { +// return err +// } +// _, err = nomad.NewCsiVolumeRegistration(ctx, "mysql_volume", &nomad.CsiVolumeRegistrationArgs{ +// PluginId: pulumi.String("aws-ebs0"), +// VolumeId: pulumi.String("mysql_volume"), +// Name: pulumi.String("mysql_volume"), +// ExternalId: pulumi.Any(hashistack.EbsTestVolumeId), +// Capabilities: nomad.CsiVolumeRegistrationCapabilityArray{ +// &nomad.CsiVolumeRegistrationCapabilityArgs{ +// AccessMode: pulumi.String("single-node-writer"), +// AttachmentMode: pulumi.String("file-system"), +// }, +// }, +// MountOptions: &nomad.CsiVolumeRegistrationMountOptionsArgs{ +// FsType: pulumi.String("ext4"), +// }, +// TopologyRequest: &nomad.CsiVolumeRegistrationTopologyRequestArgs{ +// Required: &nomad.CsiVolumeRegistrationTopologyRequestRequiredArgs{ +// Topologies: nomad.CsiVolumeRegistrationTopologyRequestRequiredTopologyArray{ +// &nomad.CsiVolumeRegistrationTopologyRequestRequiredTopologyArgs{ +// Segments: pulumi.StringMap{ +// "rack": pulumi.String("R1"), +// "zone": pulumi.String("us-east-1a"), +// }, +// }, +// &nomad.CsiVolumeRegistrationTopologyRequestRequiredTopologyArgs{ +// Segments: pulumi.StringMap{ +// "rack": pulumi.String("R2"), +// }, +// }, +// }, +// }, +// }, +// }, pulumi.DependsOn([]pulumi.Resource{ +// ebs, +// })) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +// +// ## Importing CSI Volume Registrations +// +// CSI volume registrations are imported using the pattern +// `@`. type CsiVolumeRegistration struct { pulumi.CustomResourceState diff --git a/sdk/go/nomad/getAclRole.go b/sdk/go/nomad/getAclRole.go index eb3cd04..0321ffb 100644 --- a/sdk/go/nomad/getAclRole.go +++ b/sdk/go/nomad/getAclRole.go @@ -11,6 +11,15 @@ import ( "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) +// layout: "nomad" +// page_title: "Nomad: AclRole" +// sidebar_current: "docs-nomad-datasource-acl-role" +// description: |- +// Get information on an ACL Role. +// +// +// # AclRole +// // Get information on an ACL Role. // // ## Example Usage diff --git a/sdk/go/nomad/getAclRoles.go b/sdk/go/nomad/getAclRoles.go index ccffc0f..4eb3ac2 100644 --- a/sdk/go/nomad/getAclRoles.go +++ b/sdk/go/nomad/getAclRoles.go @@ -11,6 +11,15 @@ import ( "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) +// layout: "nomad" +// page_title: "Nomad: getAclRoles" +// sidebar_current: "docs-nomad-datasource-acl_roles" +// description: |- +// Retrieve a list of ACL Roles. +// +// +// # getAclRoles +// // Retrieve a list of ACL Roles. // // ## Example Usage diff --git a/sdk/go/nomad/getAllocations.go b/sdk/go/nomad/getAllocations.go index 417154b..d3af374 100644 --- a/sdk/go/nomad/getAllocations.go +++ b/sdk/go/nomad/getAllocations.go @@ -50,8 +50,6 @@ func GetAllocations(ctx *pulumi.Context, args *GetAllocationsArgs, opts ...pulum // A collection of arguments for invoking getAllocations. type GetAllocationsArgs struct { - // `(string: )` - Specifies the - // [expression][nomadApiFilter] used to filter the results. Filter *string `pulumi:"filter"` // `(string: )` - Specifies the namespace to search for // allocations in. @@ -89,8 +87,6 @@ func GetAllocationsOutput(ctx *pulumi.Context, args GetAllocationsOutputArgs, op // A collection of arguments for invoking getAllocations. type GetAllocationsOutputArgs struct { - // `(string: )` - Specifies the - // [expression][nomadApiFilter] used to filter the results. Filter pulumi.StringPtrInput `pulumi:"filter"` // `(string: )` - Specifies the namespace to search for // allocations in. diff --git a/sdk/go/nomad/getNodePools.go b/sdk/go/nomad/getNodePools.go index c78b7d0..b5ef3d1 100644 --- a/sdk/go/nomad/getNodePools.go +++ b/sdk/go/nomad/getNodePools.go @@ -50,8 +50,6 @@ func GetNodePools(ctx *pulumi.Context, args *GetNodePoolsArgs, opts ...pulumi.In // A collection of arguments for invoking getNodePools. type GetNodePoolsArgs struct { - // `(string)` - Specifies the [expression][nomadApiFilter] used to - // filter the results. Filter *string `pulumi:"filter"` // `(string)` - Specifies a string to filter node pools based on a name // prefix. @@ -84,8 +82,6 @@ func GetNodePoolsOutput(ctx *pulumi.Context, args GetNodePoolsOutputArgs, opts . // A collection of arguments for invoking getNodePools. type GetNodePoolsOutputArgs struct { - // `(string)` - Specifies the [expression][nomadApiFilter] used to - // filter the results. Filter pulumi.StringPtrInput `pulumi:"filter"` // `(string)` - Specifies a string to filter node pools based on a name // prefix. diff --git a/sdk/go/nomad/pulumiTypes.go b/sdk/go/nomad/pulumiTypes.go index e7f8b1f..92c0421 100644 --- a/sdk/go/nomad/pulumiTypes.go +++ b/sdk/go/nomad/pulumiTypes.go @@ -23,10 +23,10 @@ type AclAuthMethodConfig struct { // `([]string: )` - The value against which to match // the iss claim in a JWT. BoundIssuers []string `pulumi:"boundIssuers"` - // Mappings of claims (key) that will be copied to a metadata field (value). + // `(map[string]string: )` - Mappings of claims (key) + // that will be copied to a metadata field (value). ClaimMappings map[string]string `pulumi:"claimMappings"` - // `(string: )` - Duration of leeway when validating - // all claims in the form of a time duration such as "5m" or "1h". + // Duration of leeway when validating all claims in the form of a time duration such as "5m" or "1h". ClockSkewLeeway *string `pulumi:"clockSkewLeeway"` // `([]string: )` - PEM encoded CA certs for use // by the TLS client used to talk with the OIDC Discovery URL. @@ -43,10 +43,10 @@ type AclAuthMethodConfig struct { // `([]string: )` - List of PEM-encoded // public keys to use to authenticate signatures locally. JwtValidationPubKeys []string `pulumi:"jwtValidationPubKeys"` - // Mappings of list claims (key) that will be copied to a metadata field (value). + // `(map[string]string: )` - Mappings of list + // claims (key) that will be copied to a metadata field (value). ListClaimMappings map[string]string `pulumi:"listClaimMappings"` - // `(string: )` - Duration of leeway when validating - // not before values of a token in the form of a time duration such as "5m" or "1h". + // Duration of leeway when validating not before values of a token in the form of a time duration such as "5m" or "1h". NotBeforeLeeway *string `pulumi:"notBeforeLeeway"` // `(string: )` - The OAuth Client ID configured // with the OIDC provider. @@ -90,10 +90,10 @@ type AclAuthMethodConfigArgs struct { // `([]string: )` - The value against which to match // the iss claim in a JWT. BoundIssuers pulumi.StringArrayInput `pulumi:"boundIssuers"` - // Mappings of claims (key) that will be copied to a metadata field (value). + // `(map[string]string: )` - Mappings of claims (key) + // that will be copied to a metadata field (value). ClaimMappings pulumi.StringMapInput `pulumi:"claimMappings"` - // `(string: )` - Duration of leeway when validating - // all claims in the form of a time duration such as "5m" or "1h". + // Duration of leeway when validating all claims in the form of a time duration such as "5m" or "1h". ClockSkewLeeway pulumi.StringPtrInput `pulumi:"clockSkewLeeway"` // `([]string: )` - PEM encoded CA certs for use // by the TLS client used to talk with the OIDC Discovery URL. @@ -110,10 +110,10 @@ type AclAuthMethodConfigArgs struct { // `([]string: )` - List of PEM-encoded // public keys to use to authenticate signatures locally. JwtValidationPubKeys pulumi.StringArrayInput `pulumi:"jwtValidationPubKeys"` - // Mappings of list claims (key) that will be copied to a metadata field (value). + // `(map[string]string: )` - Mappings of list + // claims (key) that will be copied to a metadata field (value). ListClaimMappings pulumi.StringMapInput `pulumi:"listClaimMappings"` - // `(string: )` - Duration of leeway when validating - // not before values of a token in the form of a time duration such as "5m" or "1h". + // Duration of leeway when validating not before values of a token in the form of a time duration such as "5m" or "1h". NotBeforeLeeway pulumi.StringPtrInput `pulumi:"notBeforeLeeway"` // `(string: )` - The OAuth Client ID configured // with the OIDC provider. @@ -231,13 +231,13 @@ func (o AclAuthMethodConfigOutput) BoundIssuers() pulumi.StringArrayOutput { return o.ApplyT(func(v AclAuthMethodConfig) []string { return v.BoundIssuers }).(pulumi.StringArrayOutput) } -// Mappings of claims (key) that will be copied to a metadata field (value). +// `(map[string]string: )` - Mappings of claims (key) +// that will be copied to a metadata field (value). func (o AclAuthMethodConfigOutput) ClaimMappings() pulumi.StringMapOutput { return o.ApplyT(func(v AclAuthMethodConfig) map[string]string { return v.ClaimMappings }).(pulumi.StringMapOutput) } -// `(string: )` - Duration of leeway when validating -// all claims in the form of a time duration such as "5m" or "1h". +// Duration of leeway when validating all claims in the form of a time duration such as "5m" or "1h". func (o AclAuthMethodConfigOutput) ClockSkewLeeway() pulumi.StringPtrOutput { return o.ApplyT(func(v AclAuthMethodConfig) *string { return v.ClockSkewLeeway }).(pulumi.StringPtrOutput) } @@ -272,13 +272,13 @@ func (o AclAuthMethodConfigOutput) JwtValidationPubKeys() pulumi.StringArrayOutp return o.ApplyT(func(v AclAuthMethodConfig) []string { return v.JwtValidationPubKeys }).(pulumi.StringArrayOutput) } -// Mappings of list claims (key) that will be copied to a metadata field (value). +// `(map[string]string: )` - Mappings of list +// claims (key) that will be copied to a metadata field (value). func (o AclAuthMethodConfigOutput) ListClaimMappings() pulumi.StringMapOutput { return o.ApplyT(func(v AclAuthMethodConfig) map[string]string { return v.ListClaimMappings }).(pulumi.StringMapOutput) } -// `(string: )` - Duration of leeway when validating -// not before values of a token in the form of a time duration such as "5m" or "1h". +// Duration of leeway when validating not before values of a token in the form of a time duration such as "5m" or "1h". func (o AclAuthMethodConfigOutput) NotBeforeLeeway() pulumi.StringPtrOutput { return o.ApplyT(func(v AclAuthMethodConfig) *string { return v.NotBeforeLeeway }).(pulumi.StringPtrOutput) } @@ -377,7 +377,8 @@ func (o AclAuthMethodConfigPtrOutput) BoundIssuers() pulumi.StringArrayOutput { }).(pulumi.StringArrayOutput) } -// Mappings of claims (key) that will be copied to a metadata field (value). +// `(map[string]string: )` - Mappings of claims (key) +// that will be copied to a metadata field (value). func (o AclAuthMethodConfigPtrOutput) ClaimMappings() pulumi.StringMapOutput { return o.ApplyT(func(v *AclAuthMethodConfig) map[string]string { if v == nil { @@ -387,8 +388,7 @@ func (o AclAuthMethodConfigPtrOutput) ClaimMappings() pulumi.StringMapOutput { }).(pulumi.StringMapOutput) } -// `(string: )` - Duration of leeway when validating -// all claims in the form of a time duration such as "5m" or "1h". +// Duration of leeway when validating all claims in the form of a time duration such as "5m" or "1h". func (o AclAuthMethodConfigPtrOutput) ClockSkewLeeway() pulumi.StringPtrOutput { return o.ApplyT(func(v *AclAuthMethodConfig) *string { if v == nil { @@ -453,7 +453,8 @@ func (o AclAuthMethodConfigPtrOutput) JwtValidationPubKeys() pulumi.StringArrayO }).(pulumi.StringArrayOutput) } -// Mappings of list claims (key) that will be copied to a metadata field (value). +// `(map[string]string: )` - Mappings of list +// claims (key) that will be copied to a metadata field (value). func (o AclAuthMethodConfigPtrOutput) ListClaimMappings() pulumi.StringMapOutput { return o.ApplyT(func(v *AclAuthMethodConfig) map[string]string { if v == nil { @@ -463,8 +464,7 @@ func (o AclAuthMethodConfigPtrOutput) ListClaimMappings() pulumi.StringMapOutput }).(pulumi.StringMapOutput) } -// `(string: )` - Duration of leeway when validating -// not before values of a token in the form of a time duration such as "5m" or "1h". +// Duration of leeway when validating not before values of a token in the form of a time duration such as "5m" or "1h". func (o AclAuthMethodConfigPtrOutput) NotBeforeLeeway() pulumi.StringPtrOutput { return o.ApplyT(func(v *AclAuthMethodConfig) *string { if v == nil { diff --git a/sdk/go/nomad/sentinelPolicy.go b/sdk/go/nomad/sentinelPolicy.go index 4f82f5e..7789ed3 100644 --- a/sdk/go/nomad/sentinelPolicy.go +++ b/sdk/go/nomad/sentinelPolicy.go @@ -15,8 +15,7 @@ import ( // Manages a Sentinel policy registered in Nomad. // // > **Enterprise Only!** This API endpoint and functionality only exists in -// -// Nomad Enterprise. This is not present in the open source version of Nomad. +// Nomad Enterprise. This is not present in the open source version of Nomad. // // ## Example Usage // @@ -64,18 +63,15 @@ type SentinelPolicy struct { pulumi.CustomResourceState // `(string: "")` - A description of the policy. - // - // [scope]: https://www.nomadproject.io/guides/sentinel-policy.html#policy-scope - // [enforcement-level]: https://www.nomadproject.io/guides/sentinel-policy.html#enforcement-level Description pulumi.StringPtrOutput `pulumi:"description"` - // `(strings: )` - The [enforcement level][enforcement-level] + // `(strings: )` - The [enforcement level](https://www.nomadproject.io/guides/sentinel-policy.html#enforcement-level) // for this policy. EnforcementLevel pulumi.StringOutput `pulumi:"enforcementLevel"` // `(string: )` - A unique name for the policy. Name pulumi.StringOutput `pulumi:"name"` // `(string: )` - The contents of the policy to register. Policy pulumi.StringOutput `pulumi:"policy"` - // `(strings: )` - The [scope][scope] for this policy. + // `(strings: )` - The [scope](https://www.nomadproject.io/guides/sentinel-policy.html#policy-scope) for this policy. Scope pulumi.StringOutput `pulumi:"scope"` } @@ -119,35 +115,29 @@ func GetSentinelPolicy(ctx *pulumi.Context, // Input properties used for looking up and filtering SentinelPolicy resources. type sentinelPolicyState struct { // `(string: "")` - A description of the policy. - // - // [scope]: https://www.nomadproject.io/guides/sentinel-policy.html#policy-scope - // [enforcement-level]: https://www.nomadproject.io/guides/sentinel-policy.html#enforcement-level Description *string `pulumi:"description"` - // `(strings: )` - The [enforcement level][enforcement-level] + // `(strings: )` - The [enforcement level](https://www.nomadproject.io/guides/sentinel-policy.html#enforcement-level) // for this policy. EnforcementLevel *string `pulumi:"enforcementLevel"` // `(string: )` - A unique name for the policy. Name *string `pulumi:"name"` // `(string: )` - The contents of the policy to register. Policy *string `pulumi:"policy"` - // `(strings: )` - The [scope][scope] for this policy. + // `(strings: )` - The [scope](https://www.nomadproject.io/guides/sentinel-policy.html#policy-scope) for this policy. Scope *string `pulumi:"scope"` } type SentinelPolicyState struct { // `(string: "")` - A description of the policy. - // - // [scope]: https://www.nomadproject.io/guides/sentinel-policy.html#policy-scope - // [enforcement-level]: https://www.nomadproject.io/guides/sentinel-policy.html#enforcement-level Description pulumi.StringPtrInput - // `(strings: )` - The [enforcement level][enforcement-level] + // `(strings: )` - The [enforcement level](https://www.nomadproject.io/guides/sentinel-policy.html#enforcement-level) // for this policy. EnforcementLevel pulumi.StringPtrInput // `(string: )` - A unique name for the policy. Name pulumi.StringPtrInput // `(string: )` - The contents of the policy to register. Policy pulumi.StringPtrInput - // `(strings: )` - The [scope][scope] for this policy. + // `(strings: )` - The [scope](https://www.nomadproject.io/guides/sentinel-policy.html#policy-scope) for this policy. Scope pulumi.StringPtrInput } @@ -157,36 +147,30 @@ func (SentinelPolicyState) ElementType() reflect.Type { type sentinelPolicyArgs struct { // `(string: "")` - A description of the policy. - // - // [scope]: https://www.nomadproject.io/guides/sentinel-policy.html#policy-scope - // [enforcement-level]: https://www.nomadproject.io/guides/sentinel-policy.html#enforcement-level Description *string `pulumi:"description"` - // `(strings: )` - The [enforcement level][enforcement-level] + // `(strings: )` - The [enforcement level](https://www.nomadproject.io/guides/sentinel-policy.html#enforcement-level) // for this policy. EnforcementLevel string `pulumi:"enforcementLevel"` // `(string: )` - A unique name for the policy. Name *string `pulumi:"name"` // `(string: )` - The contents of the policy to register. Policy string `pulumi:"policy"` - // `(strings: )` - The [scope][scope] for this policy. + // `(strings: )` - The [scope](https://www.nomadproject.io/guides/sentinel-policy.html#policy-scope) for this policy. Scope string `pulumi:"scope"` } // The set of arguments for constructing a SentinelPolicy resource. type SentinelPolicyArgs struct { // `(string: "")` - A description of the policy. - // - // [scope]: https://www.nomadproject.io/guides/sentinel-policy.html#policy-scope - // [enforcement-level]: https://www.nomadproject.io/guides/sentinel-policy.html#enforcement-level Description pulumi.StringPtrInput - // `(strings: )` - The [enforcement level][enforcement-level] + // `(strings: )` - The [enforcement level](https://www.nomadproject.io/guides/sentinel-policy.html#enforcement-level) // for this policy. EnforcementLevel pulumi.StringInput // `(string: )` - A unique name for the policy. Name pulumi.StringPtrInput // `(string: )` - The contents of the policy to register. Policy pulumi.StringInput - // `(strings: )` - The [scope][scope] for this policy. + // `(strings: )` - The [scope](https://www.nomadproject.io/guides/sentinel-policy.html#policy-scope) for this policy. Scope pulumi.StringInput } @@ -278,14 +262,11 @@ func (o SentinelPolicyOutput) ToSentinelPolicyOutputWithContext(ctx context.Cont } // `(string: "")` - A description of the policy. -// -// [scope]: https://www.nomadproject.io/guides/sentinel-policy.html#policy-scope -// [enforcement-level]: https://www.nomadproject.io/guides/sentinel-policy.html#enforcement-level func (o SentinelPolicyOutput) Description() pulumi.StringPtrOutput { return o.ApplyT(func(v *SentinelPolicy) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) } -// `(strings: )` - The [enforcement level][enforcement-level] +// `(strings: )` - The [enforcement level](https://www.nomadproject.io/guides/sentinel-policy.html#enforcement-level) // for this policy. func (o SentinelPolicyOutput) EnforcementLevel() pulumi.StringOutput { return o.ApplyT(func(v *SentinelPolicy) pulumi.StringOutput { return v.EnforcementLevel }).(pulumi.StringOutput) @@ -301,7 +282,7 @@ func (o SentinelPolicyOutput) Policy() pulumi.StringOutput { return o.ApplyT(func(v *SentinelPolicy) pulumi.StringOutput { return v.Policy }).(pulumi.StringOutput) } -// `(strings: )` - The [scope][scope] for this policy. +// `(strings: )` - The [scope](https://www.nomadproject.io/guides/sentinel-policy.html#policy-scope) for this policy. func (o SentinelPolicyOutput) Scope() pulumi.StringOutput { return o.ApplyT(func(v *SentinelPolicy) pulumi.StringOutput { return v.Scope }).(pulumi.StringOutput) } diff --git a/sdk/java/src/main/java/com/pulumi/nomad/AclAuthMethod.java b/sdk/java/src/main/java/com/pulumi/nomad/AclAuthMethod.java index 749793b..321062a 100644 --- a/sdk/java/src/main/java/com/pulumi/nomad/AclAuthMethod.java +++ b/sdk/java/src/main/java/com/pulumi/nomad/AclAuthMethod.java @@ -17,6 +17,15 @@ import javax.annotation.Nullable; /** + * layout: "nomad" + * page_title: "Nomad: nomad.AclAuthMethod" + * sidebar_current: "docs-nomad-resource-acl-auth-method" + * description: |- + * Manages an ACL Auth Method in Nomad. + * <!-- yaml: line 6: could not find expected ':' --> + * + * # nomad.AclAuthMethod + * * Manages an ACL Auth Method in Nomad. * * ## Example Usage diff --git a/sdk/java/src/main/java/com/pulumi/nomad/CsiVolume.java b/sdk/java/src/main/java/com/pulumi/nomad/CsiVolume.java index d003526..2faf28e 100644 --- a/sdk/java/src/main/java/com/pulumi/nomad/CsiVolume.java +++ b/sdk/java/src/main/java/com/pulumi/nomad/CsiVolume.java @@ -22,6 +22,89 @@ import java.util.Optional; import javax.annotation.Nullable; +/** + * ## Example Usage + * + * Creating a volume: + * + * <!--Start PulumiCodeChooser --> + *
+ * {@code
+ * package generated_program;
+ * 
+ * import com.pulumi.Context;
+ * import com.pulumi.Pulumi;
+ * import com.pulumi.core.Output;
+ * import com.pulumi.nomad.NomadFunctions;
+ * import com.pulumi.nomad.inputs.GetPluginArgs;
+ * import com.pulumi.nomad.CsiVolume;
+ * import com.pulumi.nomad.CsiVolumeArgs;
+ * import com.pulumi.nomad.inputs.CsiVolumeCapabilityArgs;
+ * import com.pulumi.nomad.inputs.CsiVolumeMountOptionsArgs;
+ * import com.pulumi.nomad.inputs.CsiVolumeTopologyRequestArgs;
+ * import com.pulumi.nomad.inputs.CsiVolumeTopologyRequestRequiredArgs;
+ * import com.pulumi.resources.CustomResourceOptions;
+ * import java.util.List;
+ * import java.util.ArrayList;
+ * import java.util.Map;
+ * import java.io.File;
+ * import java.nio.file.Files;
+ * import java.nio.file.Paths;
+ * 
+ * public class App {
+ *     public static void main(String[] args) {
+ *         Pulumi.run(App::stack);
+ *     }
+ * 
+ *     public static void stack(Context ctx) {
+ *         // It can sometimes be helpful to wait for a particular plugin to be available
+ *         final var ebs = NomadFunctions.getPlugin(GetPluginArgs.builder()
+ *             .pluginId("aws-ebs0")
+ *             .waitForHealthy(true)
+ *             .build());
+ * 
+ *         var mysqlVolume = new CsiVolume("mysqlVolume", CsiVolumeArgs.builder()
+ *             .pluginId("aws-ebs0")
+ *             .volumeId("mysql_volume")
+ *             .name("mysql_volume")
+ *             .capacityMin("10GiB")
+ *             .capacityMax("20GiB")
+ *             .capabilities(CsiVolumeCapabilityArgs.builder()
+ *                 .accessMode("single-node-writer")
+ *                 .attachmentMode("file-system")
+ *                 .build())
+ *             .mountOptions(CsiVolumeMountOptionsArgs.builder()
+ *                 .fsType("ext4")
+ *                 .build())
+ *             .topologyRequest(CsiVolumeTopologyRequestArgs.builder()
+ *                 .required(CsiVolumeTopologyRequestRequiredArgs.builder()
+ *                     .topologies(                    
+ *                         CsiVolumeTopologyRequestRequiredTopologyArgs.builder()
+ *                             .segments(Map.ofEntries(
+ *                                 Map.entry("rack", "R1"),
+ *                                 Map.entry("zone", "us-east-1a")
+ *                             ))
+ *                             .build(),
+ *                         CsiVolumeTopologyRequestRequiredTopologyArgs.builder()
+ *                             .segments(Map.of("rack", "R2"))
+ *                             .build())
+ *                     .build())
+ *                 .build())
+ *             .build(), CustomResourceOptions.builder()
+ *                 .dependsOn(ebs.applyValue(getPluginResult -> getPluginResult))
+ *                 .build());
+ * 
+ *     }
+ * }
+ * }
+ * 
+ * <!--End PulumiCodeChooser --> + * + * ## Importing CSI Volumes + * + * CSI volumes are imported using the pattern `<volume ID>{@literal @}<namespace>` . + * + */ @ResourceType(type="nomad:index/csiVolume:CsiVolume") public class CsiVolume extends com.pulumi.resources.CustomResource { /** diff --git a/sdk/java/src/main/java/com/pulumi/nomad/CsiVolumeRegistration.java b/sdk/java/src/main/java/com/pulumi/nomad/CsiVolumeRegistration.java index e8d84f4..d0501f5 100644 --- a/sdk/java/src/main/java/com/pulumi/nomad/CsiVolumeRegistration.java +++ b/sdk/java/src/main/java/com/pulumi/nomad/CsiVolumeRegistration.java @@ -22,6 +22,89 @@ import java.util.Optional; import javax.annotation.Nullable; +/** + * ## Example Usage + * + * Registering a volume: + * + * <!--Start PulumiCodeChooser --> + *
+ * {@code
+ * package generated_program;
+ * 
+ * import com.pulumi.Context;
+ * import com.pulumi.Pulumi;
+ * import com.pulumi.core.Output;
+ * import com.pulumi.nomad.NomadFunctions;
+ * import com.pulumi.nomad.inputs.GetPluginArgs;
+ * import com.pulumi.nomad.CsiVolumeRegistration;
+ * import com.pulumi.nomad.CsiVolumeRegistrationArgs;
+ * import com.pulumi.nomad.inputs.CsiVolumeRegistrationCapabilityArgs;
+ * import com.pulumi.nomad.inputs.CsiVolumeRegistrationMountOptionsArgs;
+ * import com.pulumi.nomad.inputs.CsiVolumeRegistrationTopologyRequestArgs;
+ * import com.pulumi.nomad.inputs.CsiVolumeRegistrationTopologyRequestRequiredArgs;
+ * import com.pulumi.resources.CustomResourceOptions;
+ * import java.util.List;
+ * import java.util.ArrayList;
+ * import java.util.Map;
+ * import java.io.File;
+ * import java.nio.file.Files;
+ * import java.nio.file.Paths;
+ * 
+ * public class App {
+ *     public static void main(String[] args) {
+ *         Pulumi.run(App::stack);
+ *     }
+ * 
+ *     public static void stack(Context ctx) {
+ *         // It can sometimes be helpful to wait for a particular plugin to be available
+ *         final var ebs = NomadFunctions.getPlugin(GetPluginArgs.builder()
+ *             .pluginId("aws-ebs0")
+ *             .waitForHealthy(true)
+ *             .build());
+ * 
+ *         var mysqlVolume = new CsiVolumeRegistration("mysqlVolume", CsiVolumeRegistrationArgs.builder()
+ *             .pluginId("aws-ebs0")
+ *             .volumeId("mysql_volume")
+ *             .name("mysql_volume")
+ *             .externalId(hashistack.ebsTestVolumeId())
+ *             .capabilities(CsiVolumeRegistrationCapabilityArgs.builder()
+ *                 .accessMode("single-node-writer")
+ *                 .attachmentMode("file-system")
+ *                 .build())
+ *             .mountOptions(CsiVolumeRegistrationMountOptionsArgs.builder()
+ *                 .fsType("ext4")
+ *                 .build())
+ *             .topologyRequest(CsiVolumeRegistrationTopologyRequestArgs.builder()
+ *                 .required(CsiVolumeRegistrationTopologyRequestRequiredArgs.builder()
+ *                     .topologies(                    
+ *                         CsiVolumeRegistrationTopologyRequestRequiredTopologyArgs.builder()
+ *                             .segments(Map.ofEntries(
+ *                                 Map.entry("rack", "R1"),
+ *                                 Map.entry("zone", "us-east-1a")
+ *                             ))
+ *                             .build(),
+ *                         CsiVolumeRegistrationTopologyRequestRequiredTopologyArgs.builder()
+ *                             .segments(Map.of("rack", "R2"))
+ *                             .build())
+ *                     .build())
+ *                 .build())
+ *             .build(), CustomResourceOptions.builder()
+ *                 .dependsOn(ebs.applyValue(getPluginResult -> getPluginResult))
+ *                 .build());
+ * 
+ *     }
+ * }
+ * }
+ * 
+ * <!--End PulumiCodeChooser --> + * + * ## Importing CSI Volume Registrations + * + * CSI volume registrations are imported using the pattern + * `<volume ID>{@literal @}<namespace>`. + * + */ @ResourceType(type="nomad:index/csiVolumeRegistration:CsiVolumeRegistration") public class CsiVolumeRegistration extends com.pulumi.resources.CustomResource { /** diff --git a/sdk/java/src/main/java/com/pulumi/nomad/NomadFunctions.java b/sdk/java/src/main/java/com/pulumi/nomad/NomadFunctions.java index 8814ea5..7efc5ea 100644 --- a/sdk/java/src/main/java/com/pulumi/nomad/NomadFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/nomad/NomadFunctions.java @@ -495,6 +495,15 @@ public static CompletableFuture getAclPolicyPlain(GetAclPoli return Deployment.getInstance().invokeAsync("nomad:index/getAclPolicy:getAclPolicy", TypeShape.of(GetAclPolicyResult.class), args, Utilities.withVersion(options)); } /** + * layout: "nomad" + * page_title: "Nomad: nomad.AclRole" + * sidebar_current: "docs-nomad-datasource-acl-role" + * description: |- + * Get information on an ACL Role. + * <!-- yaml: line 6: could not find expected ':' --> + * + * # nomad.AclRole + * * Get information on an ACL Role. * * ## Example Usage @@ -537,6 +546,15 @@ public static Output getAclRole(GetAclRoleArgs args) { return getAclRole(args, InvokeOptions.Empty); } /** + * layout: "nomad" + * page_title: "Nomad: nomad.AclRole" + * sidebar_current: "docs-nomad-datasource-acl-role" + * description: |- + * Get information on an ACL Role. + * <!-- yaml: line 6: could not find expected ':' --> + * + * # nomad.AclRole + * * Get information on an ACL Role. * * ## Example Usage @@ -579,6 +597,15 @@ public static CompletableFuture getAclRolePlain(GetAclRolePlai return getAclRolePlain(args, InvokeOptions.Empty); } /** + * layout: "nomad" + * page_title: "Nomad: nomad.AclRole" + * sidebar_current: "docs-nomad-datasource-acl-role" + * description: |- + * Get information on an ACL Role. + * <!-- yaml: line 6: could not find expected ':' --> + * + * # nomad.AclRole + * * Get information on an ACL Role. * * ## Example Usage @@ -621,6 +648,15 @@ public static Output getAclRole(GetAclRoleArgs args, InvokeOpt return Deployment.getInstance().invoke("nomad:index/getAclRole:getAclRole", TypeShape.of(GetAclRoleResult.class), args, Utilities.withVersion(options)); } /** + * layout: "nomad" + * page_title: "Nomad: nomad.AclRole" + * sidebar_current: "docs-nomad-datasource-acl-role" + * description: |- + * Get information on an ACL Role. + * <!-- yaml: line 6: could not find expected ':' --> + * + * # nomad.AclRole + * * Get information on an ACL Role. * * ## Example Usage @@ -663,6 +699,15 @@ public static CompletableFuture getAclRolePlain(GetAclRolePlai return Deployment.getInstance().invokeAsync("nomad:index/getAclRole:getAclRole", TypeShape.of(GetAclRoleResult.class), args, Utilities.withVersion(options)); } /** + * layout: "nomad" + * page_title: "Nomad: nomad.getAclRoles" + * sidebar_current: "docs-nomad-datasource-acl_roles" + * description: |- + * Retrieve a list of ACL Roles. + * <!-- yaml: line 6: could not find expected ':' --> + * + * # nomad.getAclRoles + * * Retrieve a list of ACL Roles. * * ## Example Usage @@ -705,6 +750,15 @@ public static Output getAclRoles() { return getAclRoles(GetAclRolesArgs.Empty, InvokeOptions.Empty); } /** + * layout: "nomad" + * page_title: "Nomad: nomad.getAclRoles" + * sidebar_current: "docs-nomad-datasource-acl_roles" + * description: |- + * Retrieve a list of ACL Roles. + * <!-- yaml: line 6: could not find expected ':' --> + * + * # nomad.getAclRoles + * * Retrieve a list of ACL Roles. * * ## Example Usage @@ -747,6 +801,15 @@ public static CompletableFuture getAclRolesPlain() { return getAclRolesPlain(GetAclRolesPlainArgs.Empty, InvokeOptions.Empty); } /** + * layout: "nomad" + * page_title: "Nomad: nomad.getAclRoles" + * sidebar_current: "docs-nomad-datasource-acl_roles" + * description: |- + * Retrieve a list of ACL Roles. + * <!-- yaml: line 6: could not find expected ':' --> + * + * # nomad.getAclRoles + * * Retrieve a list of ACL Roles. * * ## Example Usage @@ -789,6 +852,15 @@ public static Output getAclRoles(GetAclRolesArgs args) { return getAclRoles(args, InvokeOptions.Empty); } /** + * layout: "nomad" + * page_title: "Nomad: nomad.getAclRoles" + * sidebar_current: "docs-nomad-datasource-acl_roles" + * description: |- + * Retrieve a list of ACL Roles. + * <!-- yaml: line 6: could not find expected ':' --> + * + * # nomad.getAclRoles + * * Retrieve a list of ACL Roles. * * ## Example Usage @@ -831,6 +903,15 @@ public static CompletableFuture getAclRolesPlain(GetAclRolesP return getAclRolesPlain(args, InvokeOptions.Empty); } /** + * layout: "nomad" + * page_title: "Nomad: nomad.getAclRoles" + * sidebar_current: "docs-nomad-datasource-acl_roles" + * description: |- + * Retrieve a list of ACL Roles. + * <!-- yaml: line 6: could not find expected ':' --> + * + * # nomad.getAclRoles + * * Retrieve a list of ACL Roles. * * ## Example Usage @@ -873,6 +954,15 @@ public static Output getAclRoles(GetAclRolesArgs args, Invoke return Deployment.getInstance().invoke("nomad:index/getAclRoles:getAclRoles", TypeShape.of(GetAclRolesResult.class), args, Utilities.withVersion(options)); } /** + * layout: "nomad" + * page_title: "Nomad: nomad.getAclRoles" + * sidebar_current: "docs-nomad-datasource-acl_roles" + * description: |- + * Retrieve a list of ACL Roles. + * <!-- yaml: line 6: could not find expected ':' --> + * + * # nomad.getAclRoles + * * Retrieve a list of ACL Roles. * * ## Example Usage diff --git a/sdk/java/src/main/java/com/pulumi/nomad/SentinelPolicy.java b/sdk/java/src/main/java/com/pulumi/nomad/SentinelPolicy.java index 2c36a31..086d1ae 100644 --- a/sdk/java/src/main/java/com/pulumi/nomad/SentinelPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/nomad/SentinelPolicy.java @@ -18,7 +18,7 @@ * Manages a Sentinel policy registered in Nomad. * * > **Enterprise Only!** This API endpoint and functionality only exists in - * Nomad Enterprise. This is not present in the open source version of Nomad. + * Nomad Enterprise. This is not present in the open source version of Nomad. * * ## Example Usage * @@ -76,9 +76,6 @@ public class SentinelPolicy extends com.pulumi.resources.CustomResource { /** * `(string: "")` - A description of the policy. * - * [scope]: https://www.nomadproject.io/guides/sentinel-policy.html#policy-scope - * [enforcement-level]: https://www.nomadproject.io/guides/sentinel-policy.html#enforcement-level - * */ @Export(name="description", refs={String.class}, tree="[0]") private Output description; @@ -86,15 +83,12 @@ public class SentinelPolicy extends com.pulumi.resources.CustomResource { /** * @return `(string: "")` - A description of the policy. * - * [scope]: https://www.nomadproject.io/guides/sentinel-policy.html#policy-scope - * [enforcement-level]: https://www.nomadproject.io/guides/sentinel-policy.html#enforcement-level - * */ public Output> description() { return Codegen.optional(this.description); } /** - * `(strings: <required>)` - The [enforcement level][enforcement-level] + * `(strings: <required>)` - The [enforcement level](https://www.nomadproject.io/guides/sentinel-policy.html#enforcement-level) * for this policy. * */ @@ -102,7 +96,7 @@ public Output> description() { private Output enforcementLevel; /** - * @return `(strings: <required>)` - The [enforcement level][enforcement-level] + * @return `(strings: <required>)` - The [enforcement level](https://www.nomadproject.io/guides/sentinel-policy.html#enforcement-level) * for this policy. * */ @@ -138,14 +132,14 @@ public Output policy() { return this.policy; } /** - * `(strings: <required>)` - The [scope][scope] for this policy. + * `(strings: <required>)` - The [scope](https://www.nomadproject.io/guides/sentinel-policy.html#policy-scope) for this policy. * */ @Export(name="scope", refs={String.class}, tree="[0]") private Output scope; /** - * @return `(strings: <required>)` - The [scope][scope] for this policy. + * @return `(strings: <required>)` - The [scope](https://www.nomadproject.io/guides/sentinel-policy.html#policy-scope) for this policy. * */ public Output scope() { diff --git a/sdk/java/src/main/java/com/pulumi/nomad/SentinelPolicyArgs.java b/sdk/java/src/main/java/com/pulumi/nomad/SentinelPolicyArgs.java index d2dfe18..72738de 100644 --- a/sdk/java/src/main/java/com/pulumi/nomad/SentinelPolicyArgs.java +++ b/sdk/java/src/main/java/com/pulumi/nomad/SentinelPolicyArgs.java @@ -19,9 +19,6 @@ public final class SentinelPolicyArgs extends com.pulumi.resources.ResourceArgs /** * `(string: "")` - A description of the policy. * - * [scope]: https://www.nomadproject.io/guides/sentinel-policy.html#policy-scope - * [enforcement-level]: https://www.nomadproject.io/guides/sentinel-policy.html#enforcement-level - * */ @Import(name="description") private @Nullable Output description; @@ -29,16 +26,13 @@ public final class SentinelPolicyArgs extends com.pulumi.resources.ResourceArgs /** * @return `(string: "")` - A description of the policy. * - * [scope]: https://www.nomadproject.io/guides/sentinel-policy.html#policy-scope - * [enforcement-level]: https://www.nomadproject.io/guides/sentinel-policy.html#enforcement-level - * */ public Optional> description() { return Optional.ofNullable(this.description); } /** - * `(strings: <required>)` - The [enforcement level][enforcement-level] + * `(strings: <required>)` - The [enforcement level](https://www.nomadproject.io/guides/sentinel-policy.html#enforcement-level) * for this policy. * */ @@ -46,7 +40,7 @@ public Optional> description() { private Output enforcementLevel; /** - * @return `(strings: <required>)` - The [enforcement level][enforcement-level] + * @return `(strings: <required>)` - The [enforcement level](https://www.nomadproject.io/guides/sentinel-policy.html#enforcement-level) * for this policy. * */ @@ -85,14 +79,14 @@ public Output policy() { } /** - * `(strings: <required>)` - The [scope][scope] for this policy. + * `(strings: <required>)` - The [scope](https://www.nomadproject.io/guides/sentinel-policy.html#policy-scope) for this policy. * */ @Import(name="scope", required=true) private Output scope; /** - * @return `(strings: <required>)` - The [scope][scope] for this policy. + * @return `(strings: <required>)` - The [scope](https://www.nomadproject.io/guides/sentinel-policy.html#policy-scope) for this policy. * */ public Output scope() { @@ -130,9 +124,6 @@ public Builder(SentinelPolicyArgs defaults) { /** * @param description `(string: "")` - A description of the policy. * - * [scope]: https://www.nomadproject.io/guides/sentinel-policy.html#policy-scope - * [enforcement-level]: https://www.nomadproject.io/guides/sentinel-policy.html#enforcement-level - * * @return builder * */ @@ -144,9 +135,6 @@ public Builder description(@Nullable Output description) { /** * @param description `(string: "")` - A description of the policy. * - * [scope]: https://www.nomadproject.io/guides/sentinel-policy.html#policy-scope - * [enforcement-level]: https://www.nomadproject.io/guides/sentinel-policy.html#enforcement-level - * * @return builder * */ @@ -155,7 +143,7 @@ public Builder description(String description) { } /** - * @param enforcementLevel `(strings: <required>)` - The [enforcement level][enforcement-level] + * @param enforcementLevel `(strings: <required>)` - The [enforcement level](https://www.nomadproject.io/guides/sentinel-policy.html#enforcement-level) * for this policy. * * @return builder @@ -167,7 +155,7 @@ public Builder enforcementLevel(Output enforcementLevel) { } /** - * @param enforcementLevel `(strings: <required>)` - The [enforcement level][enforcement-level] + * @param enforcementLevel `(strings: <required>)` - The [enforcement level](https://www.nomadproject.io/guides/sentinel-policy.html#enforcement-level) * for this policy. * * @return builder @@ -220,7 +208,7 @@ public Builder policy(String policy) { } /** - * @param scope `(strings: <required>)` - The [scope][scope] for this policy. + * @param scope `(strings: <required>)` - The [scope](https://www.nomadproject.io/guides/sentinel-policy.html#policy-scope) for this policy. * * @return builder * @@ -231,7 +219,7 @@ public Builder scope(Output scope) { } /** - * @param scope `(strings: <required>)` - The [scope][scope] for this policy. + * @param scope `(strings: <required>)` - The [scope](https://www.nomadproject.io/guides/sentinel-policy.html#policy-scope) for this policy. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/nomad/inputs/AclAuthMethodConfigArgs.java b/sdk/java/src/main/java/com/pulumi/nomad/inputs/AclAuthMethodConfigArgs.java index 7b2ed7a..a59fdce 100644 --- a/sdk/java/src/main/java/com/pulumi/nomad/inputs/AclAuthMethodConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/nomad/inputs/AclAuthMethodConfigArgs.java @@ -70,14 +70,16 @@ public Optional>> boundIssuers() { } /** - * Mappings of claims (key) that will be copied to a metadata field (value). + * `(map[string]string: <optional>)` - Mappings of claims (key) + * that will be copied to a metadata field (value). * */ @Import(name="claimMappings") private @Nullable Output> claimMappings; /** - * @return Mappings of claims (key) that will be copied to a metadata field (value). + * @return `(map[string]string: <optional>)` - Mappings of claims (key) + * that will be copied to a metadata field (value). * */ public Optional>> claimMappings() { @@ -85,16 +87,14 @@ public Optional>> claimMappings() { } /** - * `(string: <optional>)` - Duration of leeway when validating - * all claims in the form of a time duration such as "5m" or "1h". + * Duration of leeway when validating all claims in the form of a time duration such as "5m" or "1h". * */ @Import(name="clockSkewLeeway") private @Nullable Output clockSkewLeeway; /** - * @return `(string: <optional>)` - Duration of leeway when validating - * all claims in the form of a time duration such as "5m" or "1h". + * @return Duration of leeway when validating all claims in the form of a time duration such as "5m" or "1h". * */ public Optional> clockSkewLeeway() { @@ -187,14 +187,16 @@ public Optional>> jwtValidationPubKeys() { } /** - * Mappings of list claims (key) that will be copied to a metadata field (value). + * `(map[string]string: <optional>)` - Mappings of list + * claims (key) that will be copied to a metadata field (value). * */ @Import(name="listClaimMappings") private @Nullable Output> listClaimMappings; /** - * @return Mappings of list claims (key) that will be copied to a metadata field (value). + * @return `(map[string]string: <optional>)` - Mappings of list + * claims (key) that will be copied to a metadata field (value). * */ public Optional>> listClaimMappings() { @@ -202,16 +204,14 @@ public Optional>> listClaimMappings() { } /** - * `(string: <optional>)` - Duration of leeway when validating - * not before values of a token in the form of a time duration such as "5m" or "1h". + * Duration of leeway when validating not before values of a token in the form of a time duration such as "5m" or "1h". * */ @Import(name="notBeforeLeeway") private @Nullable Output notBeforeLeeway; /** - * @return `(string: <optional>)` - Duration of leeway when validating - * not before values of a token in the form of a time duration such as "5m" or "1h". + * @return Duration of leeway when validating not before values of a token in the form of a time duration such as "5m" or "1h". * */ public Optional> notBeforeLeeway() { @@ -466,7 +466,8 @@ public Builder boundIssuers(String... boundIssuers) { } /** - * @param claimMappings Mappings of claims (key) that will be copied to a metadata field (value). + * @param claimMappings `(map[string]string: <optional>)` - Mappings of claims (key) + * that will be copied to a metadata field (value). * * @return builder * @@ -477,7 +478,8 @@ public Builder claimMappings(@Nullable Output> claimMappings) } /** - * @param claimMappings Mappings of claims (key) that will be copied to a metadata field (value). + * @param claimMappings `(map[string]string: <optional>)` - Mappings of claims (key) + * that will be copied to a metadata field (value). * * @return builder * @@ -487,8 +489,7 @@ public Builder claimMappings(Map claimMappings) { } /** - * @param clockSkewLeeway `(string: <optional>)` - Duration of leeway when validating - * all claims in the form of a time duration such as "5m" or "1h". + * @param clockSkewLeeway Duration of leeway when validating all claims in the form of a time duration such as "5m" or "1h". * * @return builder * @@ -499,8 +500,7 @@ public Builder clockSkewLeeway(@Nullable Output clockSkewLeeway) { } /** - * @param clockSkewLeeway `(string: <optional>)` - Duration of leeway when validating - * all claims in the form of a time duration such as "5m" or "1h". + * @param clockSkewLeeway Duration of leeway when validating all claims in the form of a time duration such as "5m" or "1h". * * @return builder * @@ -647,7 +647,8 @@ public Builder jwtValidationPubKeys(String... jwtValidationPubKeys) { } /** - * @param listClaimMappings Mappings of list claims (key) that will be copied to a metadata field (value). + * @param listClaimMappings `(map[string]string: <optional>)` - Mappings of list + * claims (key) that will be copied to a metadata field (value). * * @return builder * @@ -658,7 +659,8 @@ public Builder listClaimMappings(@Nullable Output> listClaimM } /** - * @param listClaimMappings Mappings of list claims (key) that will be copied to a metadata field (value). + * @param listClaimMappings `(map[string]string: <optional>)` - Mappings of list + * claims (key) that will be copied to a metadata field (value). * * @return builder * @@ -668,8 +670,7 @@ public Builder listClaimMappings(Map listClaimMappings) { } /** - * @param notBeforeLeeway `(string: <optional>)` - Duration of leeway when validating - * not before values of a token in the form of a time duration such as "5m" or "1h". + * @param notBeforeLeeway Duration of leeway when validating not before values of a token in the form of a time duration such as "5m" or "1h". * * @return builder * @@ -680,8 +681,7 @@ public Builder notBeforeLeeway(@Nullable Output notBeforeLeeway) { } /** - * @param notBeforeLeeway `(string: <optional>)` - Duration of leeway when validating - * not before values of a token in the form of a time duration such as "5m" or "1h". + * @param notBeforeLeeway Duration of leeway when validating not before values of a token in the form of a time duration such as "5m" or "1h". * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/nomad/inputs/GetAllocationsArgs.java b/sdk/java/src/main/java/com/pulumi/nomad/inputs/GetAllocationsArgs.java index 5cd6bf3..ebcec30 100644 --- a/sdk/java/src/main/java/com/pulumi/nomad/inputs/GetAllocationsArgs.java +++ b/sdk/java/src/main/java/com/pulumi/nomad/inputs/GetAllocationsArgs.java @@ -15,19 +15,9 @@ public final class GetAllocationsArgs extends com.pulumi.resources.InvokeArgs { public static final GetAllocationsArgs Empty = new GetAllocationsArgs(); - /** - * `(string: <optional>)` - Specifies the - * [expression][nomad_api_filter] used to filter the results. - * - */ @Import(name="filter") private @Nullable Output filter; - /** - * @return `(string: <optional>)` - Specifies the - * [expression][nomad_api_filter] used to filter the results. - * - */ public Optional> filter() { return Optional.ofNullable(this.filter); } @@ -92,25 +82,11 @@ public Builder(GetAllocationsArgs defaults) { $ = new GetAllocationsArgs(Objects.requireNonNull(defaults)); } - /** - * @param filter `(string: <optional>)` - Specifies the - * [expression][nomad_api_filter] used to filter the results. - * - * @return builder - * - */ public Builder filter(@Nullable Output filter) { $.filter = filter; return this; } - /** - * @param filter `(string: <optional>)` - Specifies the - * [expression][nomad_api_filter] used to filter the results. - * - * @return builder - * - */ public Builder filter(String filter) { return filter(Output.of(filter)); } diff --git a/sdk/java/src/main/java/com/pulumi/nomad/inputs/GetAllocationsPlainArgs.java b/sdk/java/src/main/java/com/pulumi/nomad/inputs/GetAllocationsPlainArgs.java index 70eba7d..c48c20f 100644 --- a/sdk/java/src/main/java/com/pulumi/nomad/inputs/GetAllocationsPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/nomad/inputs/GetAllocationsPlainArgs.java @@ -14,19 +14,9 @@ public final class GetAllocationsPlainArgs extends com.pulumi.resources.InvokeAr public static final GetAllocationsPlainArgs Empty = new GetAllocationsPlainArgs(); - /** - * `(string: <optional>)` - Specifies the - * [expression][nomad_api_filter] used to filter the results. - * - */ @Import(name="filter") private @Nullable String filter; - /** - * @return `(string: <optional>)` - Specifies the - * [expression][nomad_api_filter] used to filter the results. - * - */ public Optional filter() { return Optional.ofNullable(this.filter); } @@ -91,13 +81,6 @@ public Builder(GetAllocationsPlainArgs defaults) { $ = new GetAllocationsPlainArgs(Objects.requireNonNull(defaults)); } - /** - * @param filter `(string: <optional>)` - Specifies the - * [expression][nomad_api_filter] used to filter the results. - * - * @return builder - * - */ public Builder filter(@Nullable String filter) { $.filter = filter; return this; diff --git a/sdk/java/src/main/java/com/pulumi/nomad/inputs/GetNodePoolsArgs.java b/sdk/java/src/main/java/com/pulumi/nomad/inputs/GetNodePoolsArgs.java index 2bb8525..52876ab 100644 --- a/sdk/java/src/main/java/com/pulumi/nomad/inputs/GetNodePoolsArgs.java +++ b/sdk/java/src/main/java/com/pulumi/nomad/inputs/GetNodePoolsArgs.java @@ -15,19 +15,9 @@ public final class GetNodePoolsArgs extends com.pulumi.resources.InvokeArgs { public static final GetNodePoolsArgs Empty = new GetNodePoolsArgs(); - /** - * `(string)` - Specifies the [expression][nomad_api_filter] used to - * filter the results. - * - */ @Import(name="filter") private @Nullable Output filter; - /** - * @return `(string)` - Specifies the [expression][nomad_api_filter] used to - * filter the results. - * - */ public Optional> filter() { return Optional.ofNullable(this.filter); } @@ -74,25 +64,11 @@ public Builder(GetNodePoolsArgs defaults) { $ = new GetNodePoolsArgs(Objects.requireNonNull(defaults)); } - /** - * @param filter `(string)` - Specifies the [expression][nomad_api_filter] used to - * filter the results. - * - * @return builder - * - */ public Builder filter(@Nullable Output filter) { $.filter = filter; return this; } - /** - * @param filter `(string)` - Specifies the [expression][nomad_api_filter] used to - * filter the results. - * - * @return builder - * - */ public Builder filter(String filter) { return filter(Output.of(filter)); } diff --git a/sdk/java/src/main/java/com/pulumi/nomad/inputs/GetNodePoolsPlainArgs.java b/sdk/java/src/main/java/com/pulumi/nomad/inputs/GetNodePoolsPlainArgs.java index 19f0fc5..f3a43bf 100644 --- a/sdk/java/src/main/java/com/pulumi/nomad/inputs/GetNodePoolsPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/nomad/inputs/GetNodePoolsPlainArgs.java @@ -14,19 +14,9 @@ public final class GetNodePoolsPlainArgs extends com.pulumi.resources.InvokeArgs public static final GetNodePoolsPlainArgs Empty = new GetNodePoolsPlainArgs(); - /** - * `(string)` - Specifies the [expression][nomad_api_filter] used to - * filter the results. - * - */ @Import(name="filter") private @Nullable String filter; - /** - * @return `(string)` - Specifies the [expression][nomad_api_filter] used to - * filter the results. - * - */ public Optional filter() { return Optional.ofNullable(this.filter); } @@ -73,13 +63,6 @@ public Builder(GetNodePoolsPlainArgs defaults) { $ = new GetNodePoolsPlainArgs(Objects.requireNonNull(defaults)); } - /** - * @param filter `(string)` - Specifies the [expression][nomad_api_filter] used to - * filter the results. - * - * @return builder - * - */ public Builder filter(@Nullable String filter) { $.filter = filter; return this; diff --git a/sdk/java/src/main/java/com/pulumi/nomad/inputs/SentinelPolicyState.java b/sdk/java/src/main/java/com/pulumi/nomad/inputs/SentinelPolicyState.java index bb92d4d..a57a278 100644 --- a/sdk/java/src/main/java/com/pulumi/nomad/inputs/SentinelPolicyState.java +++ b/sdk/java/src/main/java/com/pulumi/nomad/inputs/SentinelPolicyState.java @@ -18,9 +18,6 @@ public final class SentinelPolicyState extends com.pulumi.resources.ResourceArgs /** * `(string: "")` - A description of the policy. * - * [scope]: https://www.nomadproject.io/guides/sentinel-policy.html#policy-scope - * [enforcement-level]: https://www.nomadproject.io/guides/sentinel-policy.html#enforcement-level - * */ @Import(name="description") private @Nullable Output description; @@ -28,16 +25,13 @@ public final class SentinelPolicyState extends com.pulumi.resources.ResourceArgs /** * @return `(string: "")` - A description of the policy. * - * [scope]: https://www.nomadproject.io/guides/sentinel-policy.html#policy-scope - * [enforcement-level]: https://www.nomadproject.io/guides/sentinel-policy.html#enforcement-level - * */ public Optional> description() { return Optional.ofNullable(this.description); } /** - * `(strings: <required>)` - The [enforcement level][enforcement-level] + * `(strings: <required>)` - The [enforcement level](https://www.nomadproject.io/guides/sentinel-policy.html#enforcement-level) * for this policy. * */ @@ -45,7 +39,7 @@ public Optional> description() { private @Nullable Output enforcementLevel; /** - * @return `(strings: <required>)` - The [enforcement level][enforcement-level] + * @return `(strings: <required>)` - The [enforcement level](https://www.nomadproject.io/guides/sentinel-policy.html#enforcement-level) * for this policy. * */ @@ -84,14 +78,14 @@ public Optional> policy() { } /** - * `(strings: <required>)` - The [scope][scope] for this policy. + * `(strings: <required>)` - The [scope](https://www.nomadproject.io/guides/sentinel-policy.html#policy-scope) for this policy. * */ @Import(name="scope") private @Nullable Output scope; /** - * @return `(strings: <required>)` - The [scope][scope] for this policy. + * @return `(strings: <required>)` - The [scope](https://www.nomadproject.io/guides/sentinel-policy.html#policy-scope) for this policy. * */ public Optional> scope() { @@ -129,9 +123,6 @@ public Builder(SentinelPolicyState defaults) { /** * @param description `(string: "")` - A description of the policy. * - * [scope]: https://www.nomadproject.io/guides/sentinel-policy.html#policy-scope - * [enforcement-level]: https://www.nomadproject.io/guides/sentinel-policy.html#enforcement-level - * * @return builder * */ @@ -143,9 +134,6 @@ public Builder description(@Nullable Output description) { /** * @param description `(string: "")` - A description of the policy. * - * [scope]: https://www.nomadproject.io/guides/sentinel-policy.html#policy-scope - * [enforcement-level]: https://www.nomadproject.io/guides/sentinel-policy.html#enforcement-level - * * @return builder * */ @@ -154,7 +142,7 @@ public Builder description(String description) { } /** - * @param enforcementLevel `(strings: <required>)` - The [enforcement level][enforcement-level] + * @param enforcementLevel `(strings: <required>)` - The [enforcement level](https://www.nomadproject.io/guides/sentinel-policy.html#enforcement-level) * for this policy. * * @return builder @@ -166,7 +154,7 @@ public Builder enforcementLevel(@Nullable Output enforcementLevel) { } /** - * @param enforcementLevel `(strings: <required>)` - The [enforcement level][enforcement-level] + * @param enforcementLevel `(strings: <required>)` - The [enforcement level](https://www.nomadproject.io/guides/sentinel-policy.html#enforcement-level) * for this policy. * * @return builder @@ -219,7 +207,7 @@ public Builder policy(String policy) { } /** - * @param scope `(strings: <required>)` - The [scope][scope] for this policy. + * @param scope `(strings: <required>)` - The [scope](https://www.nomadproject.io/guides/sentinel-policy.html#policy-scope) for this policy. * * @return builder * @@ -230,7 +218,7 @@ public Builder scope(@Nullable Output scope) { } /** - * @param scope `(strings: <required>)` - The [scope][scope] for this policy. + * @param scope `(strings: <required>)` - The [scope](https://www.nomadproject.io/guides/sentinel-policy.html#policy-scope) for this policy. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/nomad/outputs/AclAuthMethodConfig.java b/sdk/java/src/main/java/com/pulumi/nomad/outputs/AclAuthMethodConfig.java index de504aa..26fa0e3 100644 --- a/sdk/java/src/main/java/com/pulumi/nomad/outputs/AclAuthMethodConfig.java +++ b/sdk/java/src/main/java/com/pulumi/nomad/outputs/AclAuthMethodConfig.java @@ -33,13 +33,13 @@ public final class AclAuthMethodConfig { */ private @Nullable List boundIssuers; /** - * @return Mappings of claims (key) that will be copied to a metadata field (value). + * @return `(map[string]string: <optional>)` - Mappings of claims (key) + * that will be copied to a metadata field (value). * */ private @Nullable Map claimMappings; /** - * @return `(string: <optional>)` - Duration of leeway when validating - * all claims in the form of a time duration such as "5m" or "1h". + * @return Duration of leeway when validating all claims in the form of a time duration such as "5m" or "1h". * */ private @Nullable String clockSkewLeeway; @@ -74,13 +74,13 @@ public final class AclAuthMethodConfig { */ private @Nullable List jwtValidationPubKeys; /** - * @return Mappings of list claims (key) that will be copied to a metadata field (value). + * @return `(map[string]string: <optional>)` - Mappings of list + * claims (key) that will be copied to a metadata field (value). * */ private @Nullable Map listClaimMappings; /** - * @return `(string: <optional>)` - Duration of leeway when validating - * not before values of a token in the form of a time duration such as "5m" or "1h". + * @return Duration of leeway when validating not before values of a token in the form of a time duration such as "5m" or "1h". * */ private @Nullable String notBeforeLeeway; @@ -148,15 +148,15 @@ public List boundIssuers() { return this.boundIssuers == null ? List.of() : this.boundIssuers; } /** - * @return Mappings of claims (key) that will be copied to a metadata field (value). + * @return `(map[string]string: <optional>)` - Mappings of claims (key) + * that will be copied to a metadata field (value). * */ public Map claimMappings() { return this.claimMappings == null ? Map.of() : this.claimMappings; } /** - * @return `(string: <optional>)` - Duration of leeway when validating - * all claims in the form of a time duration such as "5m" or "1h". + * @return Duration of leeway when validating all claims in the form of a time duration such as "5m" or "1h". * */ public Optional clockSkewLeeway() { @@ -203,15 +203,15 @@ public List jwtValidationPubKeys() { return this.jwtValidationPubKeys == null ? List.of() : this.jwtValidationPubKeys; } /** - * @return Mappings of list claims (key) that will be copied to a metadata field (value). + * @return `(map[string]string: <optional>)` - Mappings of list + * claims (key) that will be copied to a metadata field (value). * */ public Map listClaimMappings() { return this.listClaimMappings == null ? Map.of() : this.listClaimMappings; } /** - * @return `(string: <optional>)` - Duration of leeway when validating - * not before values of a token in the form of a time duration such as "5m" or "1h". + * @return Duration of leeway when validating not before values of a token in the form of a time duration such as "5m" or "1h". * */ public Optional notBeforeLeeway() { diff --git a/sdk/nodejs/aclAuthMethod.ts b/sdk/nodejs/aclAuthMethod.ts index 44665d6..1cdde2d 100644 --- a/sdk/nodejs/aclAuthMethod.ts +++ b/sdk/nodejs/aclAuthMethod.ts @@ -7,6 +7,15 @@ import * as outputs from "./types/output"; import * as utilities from "./utilities"; /** + * layout: "nomad" + * page_title: "Nomad: nomad.AclAuthMethod" + * sidebar_current: "docs-nomad-resource-acl-auth-method" + * description: |- + * Manages an ACL Auth Method in Nomad. + * + * + * # nomad.AclAuthMethod + * * Manages an ACL Auth Method in Nomad. * * ## Example Usage diff --git a/sdk/nodejs/csiVolume.ts b/sdk/nodejs/csiVolume.ts index 5b4282d..d4ffd19 100644 --- a/sdk/nodejs/csiVolume.ts +++ b/sdk/nodejs/csiVolume.ts @@ -6,6 +6,59 @@ import * as inputs from "./types/input"; import * as outputs from "./types/output"; import * as utilities from "./utilities"; +/** + * ## Example Usage + * + * Creating a volume: + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as nomad from "@pulumi/nomad"; + * + * // It can sometimes be helpful to wait for a particular plugin to be available + * const ebs = nomad.getPlugin({ + * pluginId: "aws-ebs0", + * waitForHealthy: true, + * }); + * const mysqlVolume = new nomad.CsiVolume("mysql_volume", { + * pluginId: "aws-ebs0", + * volumeId: "mysql_volume", + * name: "mysql_volume", + * capacityMin: "10GiB", + * capacityMax: "20GiB", + * capabilities: [{ + * accessMode: "single-node-writer", + * attachmentMode: "file-system", + * }], + * mountOptions: { + * fsType: "ext4", + * }, + * topologyRequest: { + * required: { + * topologies: [ + * { + * segments: { + * rack: "R1", + * zone: "us-east-1a", + * }, + * }, + * { + * segments: { + * rack: "R2", + * }, + * }, + * ], + * }, + * }, + * }, { + * dependsOn: [ebs], + * }); + * ``` + * + * ## Importing CSI Volumes + * + * CSI volumes are imported using the pattern `@` . + */ export class CsiVolume extends pulumi.CustomResource { /** * Get an existing CsiVolume resource's state with the given name, ID, and optional extra diff --git a/sdk/nodejs/csiVolumeRegistration.ts b/sdk/nodejs/csiVolumeRegistration.ts index cbd4c96..5471cc5 100644 --- a/sdk/nodejs/csiVolumeRegistration.ts +++ b/sdk/nodejs/csiVolumeRegistration.ts @@ -6,6 +6,59 @@ import * as inputs from "./types/input"; import * as outputs from "./types/output"; import * as utilities from "./utilities"; +/** + * ## Example Usage + * + * Registering a volume: + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as nomad from "@pulumi/nomad"; + * + * // It can sometimes be helpful to wait for a particular plugin to be available + * const ebs = nomad.getPlugin({ + * pluginId: "aws-ebs0", + * waitForHealthy: true, + * }); + * const mysqlVolume = new nomad.CsiVolumeRegistration("mysql_volume", { + * pluginId: "aws-ebs0", + * volumeId: "mysql_volume", + * name: "mysql_volume", + * externalId: hashistack.ebsTestVolumeId, + * capabilities: [{ + * accessMode: "single-node-writer", + * attachmentMode: "file-system", + * }], + * mountOptions: { + * fsType: "ext4", + * }, + * topologyRequest: { + * required: { + * topologies: [ + * { + * segments: { + * rack: "R1", + * zone: "us-east-1a", + * }, + * }, + * { + * segments: { + * rack: "R2", + * }, + * }, + * ], + * }, + * }, + * }, { + * dependsOn: [ebs], + * }); + * ``` + * + * ## Importing CSI Volume Registrations + * + * CSI volume registrations are imported using the pattern + * `@`. + */ export class CsiVolumeRegistration extends pulumi.CustomResource { /** * Get an existing CsiVolumeRegistration resource's state with the given name, ID, and optional extra diff --git a/sdk/nodejs/getAclRole.ts b/sdk/nodejs/getAclRole.ts index 0e6bdf4..40aa0b6 100644 --- a/sdk/nodejs/getAclRole.ts +++ b/sdk/nodejs/getAclRole.ts @@ -7,6 +7,15 @@ import * as outputs from "./types/output"; import * as utilities from "./utilities"; /** + * layout: "nomad" + * page_title: "Nomad: nomad.AclRole" + * sidebar_current: "docs-nomad-datasource-acl-role" + * description: |- + * Get information on an ACL Role. + * + * + * # nomad.AclRole + * * Get information on an ACL Role. * * ## Example Usage @@ -60,6 +69,15 @@ export interface GetAclRoleResult { readonly policies: outputs.GetAclRolePolicy[]; } /** + * layout: "nomad" + * page_title: "Nomad: nomad.AclRole" + * sidebar_current: "docs-nomad-datasource-acl-role" + * description: |- + * Get information on an ACL Role. + * + * + * # nomad.AclRole + * * Get information on an ACL Role. * * ## Example Usage diff --git a/sdk/nodejs/getAclRoles.ts b/sdk/nodejs/getAclRoles.ts index 18e5662..1c56fba 100644 --- a/sdk/nodejs/getAclRoles.ts +++ b/sdk/nodejs/getAclRoles.ts @@ -7,6 +7,15 @@ import * as outputs from "./types/output"; import * as utilities from "./utilities"; /** + * layout: "nomad" + * page_title: "Nomad: nomad.getAclRoles" + * sidebar_current: "docs-nomad-datasource-acl_roles" + * description: |- + * Retrieve a list of ACL Roles. + * + * + * # nomad.getAclRoles + * * Retrieve a list of ACL Roles. * * ## Example Usage @@ -52,6 +61,15 @@ export interface GetAclRolesResult { readonly prefix?: string; } /** + * layout: "nomad" + * page_title: "Nomad: nomad.getAclRoles" + * sidebar_current: "docs-nomad-datasource-acl_roles" + * description: |- + * Retrieve a list of ACL Roles. + * + * + * # nomad.getAclRoles + * * Retrieve a list of ACL Roles. * * ## Example Usage diff --git a/sdk/nodejs/getAclToken.ts b/sdk/nodejs/getAclToken.ts index f473a3d..750a27f 100644 --- a/sdk/nodejs/getAclToken.ts +++ b/sdk/nodejs/getAclToken.ts @@ -58,7 +58,7 @@ export interface GetAclTokenResult { */ readonly expirationTtl: string; /** - * `(bool)` Whether the token is replicated to all regions, or if it + * `(bool)` Whether the token is replicated to all regions, or if it * will only be used in the region it was created. */ readonly global: boolean; diff --git a/sdk/nodejs/getAllocations.ts b/sdk/nodejs/getAllocations.ts index 362cbf8..f142376 100644 --- a/sdk/nodejs/getAllocations.ts +++ b/sdk/nodejs/getAllocations.ts @@ -35,10 +35,6 @@ export function getAllocations(args?: GetAllocationsArgs, opts?: pulumi.InvokeOp * A collection of arguments for invoking getAllocations. */ export interface GetAllocationsArgs { - /** - * `(string: )` - Specifies the - * [expression][nomadApiFilter] used to filter the results. - */ filter?: string; /** * `(string: )` - Specifies the namespace to search for @@ -94,10 +90,6 @@ export function getAllocationsOutput(args?: GetAllocationsOutputArgs, opts?: pul * A collection of arguments for invoking getAllocations. */ export interface GetAllocationsOutputArgs { - /** - * `(string: )` - Specifies the - * [expression][nomadApiFilter] used to filter the results. - */ filter?: pulumi.Input; /** * `(string: )` - Specifies the namespace to search for diff --git a/sdk/nodejs/getNodePools.ts b/sdk/nodejs/getNodePools.ts index 2010395..74d07d7 100644 --- a/sdk/nodejs/getNodePools.ts +++ b/sdk/nodejs/getNodePools.ts @@ -34,10 +34,6 @@ export function getNodePools(args?: GetNodePoolsArgs, opts?: pulumi.InvokeOption * A collection of arguments for invoking getNodePools. */ export interface GetNodePoolsArgs { - /** - * `(string)` - Specifies the [expression][nomadApiFilter] used to - * filter the results. - */ filter?: string; /** * `(string)` - Specifies a string to filter node pools based on a name @@ -84,10 +80,6 @@ export function getNodePoolsOutput(args?: GetNodePoolsOutputArgs, opts?: pulumi. * A collection of arguments for invoking getNodePools. */ export interface GetNodePoolsOutputArgs { - /** - * `(string)` - Specifies the [expression][nomadApiFilter] used to - * filter the results. - */ filter?: pulumi.Input; /** * `(string)` - Specifies a string to filter node pools based on a name diff --git a/sdk/nodejs/sentinelPolicy.ts b/sdk/nodejs/sentinelPolicy.ts index b2345b0..21ca195 100644 --- a/sdk/nodejs/sentinelPolicy.ts +++ b/sdk/nodejs/sentinelPolicy.ts @@ -8,7 +8,7 @@ import * as utilities from "./utilities"; * Manages a Sentinel policy registered in Nomad. * * > **Enterprise Only!** This API endpoint and functionality only exists in - * Nomad Enterprise. This is not present in the open source version of Nomad. + * Nomad Enterprise. This is not present in the open source version of Nomad. * * ## Example Usage * @@ -65,13 +65,10 @@ export class SentinelPolicy extends pulumi.CustomResource { /** * `(string: "")` - A description of the policy. - * - * [scope]: https://www.nomadproject.io/guides/sentinel-policy.html#policy-scope - * [enforcement-level]: https://www.nomadproject.io/guides/sentinel-policy.html#enforcement-level */ public readonly description!: pulumi.Output; /** - * `(strings: )` - The [enforcement level][enforcement-level] + * `(strings: )` - The [enforcement level](https://www.nomadproject.io/guides/sentinel-policy.html#enforcement-level) * for this policy. */ public readonly enforcementLevel!: pulumi.Output; @@ -84,7 +81,7 @@ export class SentinelPolicy extends pulumi.CustomResource { */ public readonly policy!: pulumi.Output; /** - * `(strings: )` - The [scope][scope] for this policy. + * `(strings: )` - The [scope](https://www.nomadproject.io/guides/sentinel-policy.html#policy-scope) for this policy. */ public readonly scope!: pulumi.Output; @@ -134,13 +131,10 @@ export class SentinelPolicy extends pulumi.CustomResource { export interface SentinelPolicyState { /** * `(string: "")` - A description of the policy. - * - * [scope]: https://www.nomadproject.io/guides/sentinel-policy.html#policy-scope - * [enforcement-level]: https://www.nomadproject.io/guides/sentinel-policy.html#enforcement-level */ description?: pulumi.Input; /** - * `(strings: )` - The [enforcement level][enforcement-level] + * `(strings: )` - The [enforcement level](https://www.nomadproject.io/guides/sentinel-policy.html#enforcement-level) * for this policy. */ enforcementLevel?: pulumi.Input; @@ -153,7 +147,7 @@ export interface SentinelPolicyState { */ policy?: pulumi.Input; /** - * `(strings: )` - The [scope][scope] for this policy. + * `(strings: )` - The [scope](https://www.nomadproject.io/guides/sentinel-policy.html#policy-scope) for this policy. */ scope?: pulumi.Input; } @@ -164,13 +158,10 @@ export interface SentinelPolicyState { export interface SentinelPolicyArgs { /** * `(string: "")` - A description of the policy. - * - * [scope]: https://www.nomadproject.io/guides/sentinel-policy.html#policy-scope - * [enforcement-level]: https://www.nomadproject.io/guides/sentinel-policy.html#enforcement-level */ description?: pulumi.Input; /** - * `(strings: )` - The [enforcement level][enforcement-level] + * `(strings: )` - The [enforcement level](https://www.nomadproject.io/guides/sentinel-policy.html#enforcement-level) * for this policy. */ enforcementLevel: pulumi.Input; @@ -183,7 +174,7 @@ export interface SentinelPolicyArgs { */ policy: pulumi.Input; /** - * `(strings: )` - The [scope][scope] for this policy. + * `(strings: )` - The [scope](https://www.nomadproject.io/guides/sentinel-policy.html#policy-scope) for this policy. */ scope: pulumi.Input; } diff --git a/sdk/nodejs/types/input.ts b/sdk/nodejs/types/input.ts index bdc1d30..91e8087 100644 --- a/sdk/nodejs/types/input.ts +++ b/sdk/nodejs/types/input.ts @@ -22,12 +22,12 @@ export interface AclAuthMethodConfig { */ boundIssuers?: pulumi.Input[]>; /** - * Mappings of claims (key) that will be copied to a metadata field (value). + * `(map[string]string: )` - Mappings of claims (key) + * that will be copied to a metadata field (value). */ claimMappings?: pulumi.Input<{[key: string]: pulumi.Input}>; /** - * `(string: )` - Duration of leeway when validating - * all claims in the form of a time duration such as "5m" or "1h". + * Duration of leeway when validating all claims in the form of a time duration such as "5m" or "1h". */ clockSkewLeeway?: pulumi.Input; /** @@ -41,7 +41,7 @@ export interface AclAuthMethodConfig { */ expirationLeeway?: pulumi.Input; /** - * `(string: )` - PEM encoded CA cert for use by the + * `(string: )` - PEM encoded CA cert for use by the * TLS client used to talk with the JWKS server. */ jwksCaCert?: pulumi.Input; @@ -51,17 +51,17 @@ export interface AclAuthMethodConfig { */ jwksUrl?: pulumi.Input; /** - * `([]string: )` - List of PEM-encoded + * `([]string: )` - List of PEM-encoded * public keys to use to authenticate signatures locally. */ jwtValidationPubKeys?: pulumi.Input[]>; /** - * Mappings of list claims (key) that will be copied to a metadata field (value). + * `(map[string]string: )` - Mappings of list + * claims (key) that will be copied to a metadata field (value). */ listClaimMappings?: pulumi.Input<{[key: string]: pulumi.Input}>; /** - * `(string: )` - Duration of leeway when validating - * not before values of a token in the form of a time duration such as "5m" or "1h". + * Duration of leeway when validating not before values of a token in the form of a time duration such as "5m" or "1h". */ notBeforeLeeway?: pulumi.Input; /** diff --git a/sdk/nodejs/types/output.ts b/sdk/nodejs/types/output.ts index b4fd7ce..eebf739 100644 --- a/sdk/nodejs/types/output.ts +++ b/sdk/nodejs/types/output.ts @@ -22,12 +22,12 @@ export interface AclAuthMethodConfig { */ boundIssuers?: string[]; /** - * Mappings of claims (key) that will be copied to a metadata field (value). + * `(map[string]string: )` - Mappings of claims (key) + * that will be copied to a metadata field (value). */ claimMappings?: {[key: string]: string}; /** - * `(string: )` - Duration of leeway when validating - * all claims in the form of a time duration such as "5m" or "1h". + * Duration of leeway when validating all claims in the form of a time duration such as "5m" or "1h". */ clockSkewLeeway?: string; /** @@ -41,7 +41,7 @@ export interface AclAuthMethodConfig { */ expirationLeeway?: string; /** - * `(string: )` - PEM encoded CA cert for use by the + * `(string: )` - PEM encoded CA cert for use by the * TLS client used to talk with the JWKS server. */ jwksCaCert?: string; @@ -51,17 +51,17 @@ export interface AclAuthMethodConfig { */ jwksUrl?: string; /** - * `([]string: )` - List of PEM-encoded + * `([]string: )` - List of PEM-encoded * public keys to use to authenticate signatures locally. */ jwtValidationPubKeys?: string[]; /** - * Mappings of list claims (key) that will be copied to a metadata field (value). + * `(map[string]string: )` - Mappings of list + * claims (key) that will be copied to a metadata field (value). */ listClaimMappings?: {[key: string]: string}; /** - * `(string: )` - Duration of leeway when validating - * not before values of a token in the form of a time duration such as "5m" or "1h". + * Duration of leeway when validating not before values of a token in the form of a time duration such as "5m" or "1h". */ notBeforeLeeway?: string; /** diff --git a/sdk/python/pulumi_nomad/_inputs.py b/sdk/python/pulumi_nomad/_inputs.py index e0f4408..28be1c2 100644 --- a/sdk/python/pulumi_nomad/_inputs.py +++ b/sdk/python/pulumi_nomad/_inputs.py @@ -83,22 +83,22 @@ def __init__(__self__, *, valid for login. :param pulumi.Input[Sequence[pulumi.Input[str]]] bound_issuers: `([]string: )` - The value against which to match the iss claim in a JWT. - :param pulumi.Input[Mapping[str, pulumi.Input[str]]] claim_mappings: Mappings of claims (key) that will be copied to a metadata field (value). - :param pulumi.Input[str] clock_skew_leeway: `(string: )` - Duration of leeway when validating - all claims in the form of a time duration such as "5m" or "1h". + :param pulumi.Input[Mapping[str, pulumi.Input[str]]] claim_mappings: `(map[string]string: )` - Mappings of claims (key) + that will be copied to a metadata field (value). + :param pulumi.Input[str] clock_skew_leeway: Duration of leeway when validating all claims in the form of a time duration such as "5m" or "1h". :param pulumi.Input[Sequence[pulumi.Input[str]]] discovery_ca_pems: `([]string: )` - PEM encoded CA certs for use by the TLS client used to talk with the OIDC Discovery URL. :param pulumi.Input[str] expiration_leeway: `(string: )` - Duration of leeway when validating expiration of a JWT in the form of a time duration such as "5m" or "1h". - :param pulumi.Input[str] jwks_ca_cert: `(string: )` - PEM encoded CA cert for use by the + :param pulumi.Input[str] jwks_ca_cert: `(string: )` - PEM encoded CA cert for use by the TLS client used to talk with the JWKS server. :param pulumi.Input[str] jwks_url: `(string: )` - JSON Web Key Sets url for authenticating signatures. - :param pulumi.Input[Sequence[pulumi.Input[str]]] jwt_validation_pub_keys: `([]string: )` - List of PEM-encoded + :param pulumi.Input[Sequence[pulumi.Input[str]]] jwt_validation_pub_keys: `([]string: )` - List of PEM-encoded public keys to use to authenticate signatures locally. - :param pulumi.Input[Mapping[str, pulumi.Input[str]]] list_claim_mappings: Mappings of list claims (key) that will be copied to a metadata field (value). - :param pulumi.Input[str] not_before_leeway: `(string: )` - Duration of leeway when validating - not before values of a token in the form of a time duration such as "5m" or "1h". + :param pulumi.Input[Mapping[str, pulumi.Input[str]]] list_claim_mappings: `(map[string]string: )` - Mappings of list + claims (key) that will be copied to a metadata field (value). + :param pulumi.Input[str] not_before_leeway: Duration of leeway when validating not before values of a token in the form of a time duration such as "5m" or "1h". :param pulumi.Input[str] oidc_client_id: `(string: )` - The OAuth Client ID configured with the OIDC provider. :param pulumi.Input[str] oidc_client_secret: `(string: )` - The OAuth Client Secret @@ -193,7 +193,8 @@ def bound_issuers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]] @pulumi.getter(name="claimMappings") def claim_mappings(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]: """ - Mappings of claims (key) that will be copied to a metadata field (value). + `(map[string]string: )` - Mappings of claims (key) + that will be copied to a metadata field (value). """ return pulumi.get(self, "claim_mappings") @@ -205,8 +206,7 @@ def claim_mappings(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[ @pulumi.getter(name="clockSkewLeeway") def clock_skew_leeway(self) -> Optional[pulumi.Input[str]]: """ - `(string: )` - Duration of leeway when validating - all claims in the form of a time duration such as "5m" or "1h". + Duration of leeway when validating all claims in the form of a time duration such as "5m" or "1h". """ return pulumi.get(self, "clock_skew_leeway") @@ -244,7 +244,7 @@ def expiration_leeway(self, value: Optional[pulumi.Input[str]]): @pulumi.getter(name="jwksCaCert") def jwks_ca_cert(self) -> Optional[pulumi.Input[str]]: """ - `(string: )` - PEM encoded CA cert for use by the + `(string: )` - PEM encoded CA cert for use by the TLS client used to talk with the JWKS server. """ return pulumi.get(self, "jwks_ca_cert") @@ -270,7 +270,7 @@ def jwks_url(self, value: Optional[pulumi.Input[str]]): @pulumi.getter(name="jwtValidationPubKeys") def jwt_validation_pub_keys(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: """ - `([]string: )` - List of PEM-encoded + `([]string: )` - List of PEM-encoded public keys to use to authenticate signatures locally. """ return pulumi.get(self, "jwt_validation_pub_keys") @@ -283,7 +283,8 @@ def jwt_validation_pub_keys(self, value: Optional[pulumi.Input[Sequence[pulumi.I @pulumi.getter(name="listClaimMappings") def list_claim_mappings(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]: """ - Mappings of list claims (key) that will be copied to a metadata field (value). + `(map[string]string: )` - Mappings of list + claims (key) that will be copied to a metadata field (value). """ return pulumi.get(self, "list_claim_mappings") @@ -295,8 +296,7 @@ def list_claim_mappings(self, value: Optional[pulumi.Input[Mapping[str, pulumi.I @pulumi.getter(name="notBeforeLeeway") def not_before_leeway(self) -> Optional[pulumi.Input[str]]: """ - `(string: )` - Duration of leeway when validating - not before values of a token in the form of a time duration such as "5m" or "1h". + Duration of leeway when validating not before values of a token in the form of a time duration such as "5m" or "1h". """ return pulumi.get(self, "not_before_leeway") diff --git a/sdk/python/pulumi_nomad/acl_auth_method.py b/sdk/python/pulumi_nomad/acl_auth_method.py index f0c1dc5..610d293 100644 --- a/sdk/python/pulumi_nomad/acl_auth_method.py +++ b/sdk/python/pulumi_nomad/acl_auth_method.py @@ -295,6 +295,15 @@ def __init__(__self__, type: Optional[pulumi.Input[str]] = None, __props__=None): """ + layout: "nomad" + page_title: "Nomad: AclAuthMethod" + sidebar_current: "docs-nomad-resource-acl-auth-method" + description: |- + Manages an ACL Auth Method in Nomad. + + + # AclAuthMethod + Manages an ACL Auth Method in Nomad. ## Example Usage @@ -352,6 +361,15 @@ def __init__(__self__, args: AclAuthMethodArgs, opts: Optional[pulumi.ResourceOptions] = None): """ + layout: "nomad" + page_title: "Nomad: AclAuthMethod" + sidebar_current: "docs-nomad-resource-acl-auth-method" + description: |- + Manages an ACL Auth Method in Nomad. + + + # AclAuthMethod + Manages an ACL Auth Method in Nomad. ## Example Usage diff --git a/sdk/python/pulumi_nomad/csi_volume.py b/sdk/python/pulumi_nomad/csi_volume.py index b74da96..63eb901 100644 --- a/sdk/python/pulumi_nomad/csi_volume.py +++ b/sdk/python/pulumi_nomad/csi_volume.py @@ -622,7 +622,54 @@ def __init__(__self__, volume_id: Optional[pulumi.Input[str]] = None, __props__=None): """ - Create a CsiVolume resource with the given unique name, props, and options. + ## Example Usage + + Creating a volume: + + ```python + import pulumi + import pulumi_nomad as nomad + + # It can sometimes be helpful to wait for a particular plugin to be available + ebs = nomad.get_plugin(plugin_id="aws-ebs0", + wait_for_healthy=True) + mysql_volume = nomad.CsiVolume("mysql_volume", + plugin_id="aws-ebs0", + volume_id="mysql_volume", + name="mysql_volume", + capacity_min="10GiB", + capacity_max="20GiB", + capabilities=[{ + "access_mode": "single-node-writer", + "attachment_mode": "file-system", + }], + mount_options={ + "fs_type": "ext4", + }, + topology_request={ + "required": { + "topologies": [ + { + "segments": { + "rack": "R1", + "zone": "us-east-1a", + }, + }, + { + "segments": { + "rack": "R2", + }, + }, + ], + }, + }, + opts = pulumi.ResourceOptions(depends_on=[ebs])) + ``` + + ## Importing CSI Volumes + + CSI volumes are imported using the pattern `@` . + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[Sequence[pulumi.Input[Union['CsiVolumeCapabilityArgs', 'CsiVolumeCapabilityArgsDict']]]] capabilities: `(``Capability``: )` - Options for validating the capability of a volume. @@ -646,7 +693,54 @@ def __init__(__self__, args: CsiVolumeArgs, opts: Optional[pulumi.ResourceOptions] = None): """ - Create a CsiVolume resource with the given unique name, props, and options. + ## Example Usage + + Creating a volume: + + ```python + import pulumi + import pulumi_nomad as nomad + + # It can sometimes be helpful to wait for a particular plugin to be available + ebs = nomad.get_plugin(plugin_id="aws-ebs0", + wait_for_healthy=True) + mysql_volume = nomad.CsiVolume("mysql_volume", + plugin_id="aws-ebs0", + volume_id="mysql_volume", + name="mysql_volume", + capacity_min="10GiB", + capacity_max="20GiB", + capabilities=[{ + "access_mode": "single-node-writer", + "attachment_mode": "file-system", + }], + mount_options={ + "fs_type": "ext4", + }, + topology_request={ + "required": { + "topologies": [ + { + "segments": { + "rack": "R1", + "zone": "us-east-1a", + }, + }, + { + "segments": { + "rack": "R2", + }, + }, + ], + }, + }, + opts = pulumi.ResourceOptions(depends_on=[ebs])) + ``` + + ## Importing CSI Volumes + + CSI volumes are imported using the pattern `@` . + :param str resource_name: The name of the resource. :param CsiVolumeArgs args: The arguments to use to populate this resource's properties. :param pulumi.ResourceOptions opts: Options for the resource. diff --git a/sdk/python/pulumi_nomad/csi_volume_registration.py b/sdk/python/pulumi_nomad/csi_volume_registration.py index 6ab03b7..7fad6bd 100644 --- a/sdk/python/pulumi_nomad/csi_volume_registration.py +++ b/sdk/python/pulumi_nomad/csi_volume_registration.py @@ -639,7 +639,54 @@ def __init__(__self__, volume_id: Optional[pulumi.Input[str]] = None, __props__=None): """ - Create a CsiVolumeRegistration resource with the given unique name, props, and options. + ## Example Usage + + Registering a volume: + + ```python + import pulumi + import pulumi_nomad as nomad + + # It can sometimes be helpful to wait for a particular plugin to be available + ebs = nomad.get_plugin(plugin_id="aws-ebs0", + wait_for_healthy=True) + mysql_volume = nomad.CsiVolumeRegistration("mysql_volume", + plugin_id="aws-ebs0", + volume_id="mysql_volume", + name="mysql_volume", + external_id=hashistack["ebsTestVolumeId"], + capabilities=[{ + "access_mode": "single-node-writer", + "attachment_mode": "file-system", + }], + mount_options={ + "fs_type": "ext4", + }, + topology_request={ + "required": { + "topologies": [ + { + "segments": { + "rack": "R1", + "zone": "us-east-1a", + }, + }, + { + "segments": { + "rack": "R2", + }, + }, + ], + }, + }, + opts = pulumi.ResourceOptions(depends_on=[ebs])) + ``` + + ## Importing CSI Volume Registrations + + CSI volume registrations are imported using the pattern + `@`. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[Sequence[pulumi.Input[Union['CsiVolumeRegistrationCapabilityArgs', 'CsiVolumeRegistrationCapabilityArgsDict']]]] capabilities: `(``Capability``: )` - Options for validating the capability of a volume. @@ -664,7 +711,54 @@ def __init__(__self__, args: CsiVolumeRegistrationArgs, opts: Optional[pulumi.ResourceOptions] = None): """ - Create a CsiVolumeRegistration resource with the given unique name, props, and options. + ## Example Usage + + Registering a volume: + + ```python + import pulumi + import pulumi_nomad as nomad + + # It can sometimes be helpful to wait for a particular plugin to be available + ebs = nomad.get_plugin(plugin_id="aws-ebs0", + wait_for_healthy=True) + mysql_volume = nomad.CsiVolumeRegistration("mysql_volume", + plugin_id="aws-ebs0", + volume_id="mysql_volume", + name="mysql_volume", + external_id=hashistack["ebsTestVolumeId"], + capabilities=[{ + "access_mode": "single-node-writer", + "attachment_mode": "file-system", + }], + mount_options={ + "fs_type": "ext4", + }, + topology_request={ + "required": { + "topologies": [ + { + "segments": { + "rack": "R1", + "zone": "us-east-1a", + }, + }, + { + "segments": { + "rack": "R2", + }, + }, + ], + }, + }, + opts = pulumi.ResourceOptions(depends_on=[ebs])) + ``` + + ## Importing CSI Volume Registrations + + CSI volume registrations are imported using the pattern + `@`. + :param str resource_name: The name of the resource. :param CsiVolumeRegistrationArgs args: The arguments to use to populate this resource's properties. :param pulumi.ResourceOptions opts: Options for the resource. diff --git a/sdk/python/pulumi_nomad/get_acl_role.py b/sdk/python/pulumi_nomad/get_acl_role.py index fbf4ba4..e545fc0 100644 --- a/sdk/python/pulumi_nomad/get_acl_role.py +++ b/sdk/python/pulumi_nomad/get_acl_role.py @@ -84,6 +84,15 @@ def __await__(self): def get_acl_role(id: Optional[str] = None, opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetAclRoleResult: """ + layout: "nomad" + page_title: "Nomad: AclRole" + sidebar_current: "docs-nomad-datasource-acl-role" + description: |- + Get information on an ACL Role. + + + # AclRole + Get information on an ACL Role. ## Example Usage @@ -114,6 +123,15 @@ def get_acl_role(id: Optional[str] = None, def get_acl_role_output(id: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetAclRoleResult]: """ + layout: "nomad" + page_title: "Nomad: AclRole" + sidebar_current: "docs-nomad-datasource-acl-role" + description: |- + Get information on an ACL Role. + + + # AclRole + Get information on an ACL Role. ## Example Usage diff --git a/sdk/python/pulumi_nomad/get_acl_roles.py b/sdk/python/pulumi_nomad/get_acl_roles.py index c7c8420..8e10369 100644 --- a/sdk/python/pulumi_nomad/get_acl_roles.py +++ b/sdk/python/pulumi_nomad/get_acl_roles.py @@ -66,6 +66,15 @@ def __await__(self): def get_acl_roles(prefix: Optional[str] = None, opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetAclRolesResult: """ + layout: "nomad" + page_title: "Nomad: get_acl_roles" + sidebar_current: "docs-nomad-datasource-acl_roles" + description: |- + Retrieve a list of ACL Roles. + + + # get_acl_roles + Retrieve a list of ACL Roles. ## Example Usage @@ -96,6 +105,15 @@ def get_acl_roles(prefix: Optional[str] = None, def get_acl_roles_output(prefix: Optional[pulumi.Input[Optional[str]]] = None, opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetAclRolesResult]: """ + layout: "nomad" + page_title: "Nomad: get_acl_roles" + sidebar_current: "docs-nomad-datasource-acl_roles" + description: |- + Retrieve a list of ACL Roles. + + + # get_acl_roles + Retrieve a list of ACL Roles. ## Example Usage diff --git a/sdk/python/pulumi_nomad/get_acl_token.py b/sdk/python/pulumi_nomad/get_acl_token.py index 3be2592..9ab3057 100644 --- a/sdk/python/pulumi_nomad/get_acl_token.py +++ b/sdk/python/pulumi_nomad/get_acl_token.py @@ -94,7 +94,7 @@ def expiration_ttl(self) -> str: @pulumi.getter(name="global") def global_(self) -> bool: """ - `(bool)` Whether the token is replicated to all regions, or if it + `(bool)` Whether the token is replicated to all regions, or if it will only be used in the region it was created. """ return pulumi.get(self, "global_") diff --git a/sdk/python/pulumi_nomad/get_allocations.py b/sdk/python/pulumi_nomad/get_allocations.py index 05e0d69..b793833 100644 --- a/sdk/python/pulumi_nomad/get_allocations.py +++ b/sdk/python/pulumi_nomad/get_allocations.py @@ -105,8 +105,6 @@ def get_allocations(filter: Optional[str] = None, ``` - :param str filter: `(string: )` - Specifies the - [expression][nomad_api_filter] used to filter the results. :param str namespace: `(string: )` - Specifies the namespace to search for allocations in. :param str prefix: `(string: )` - Specifies a string to filter allocations @@ -145,8 +143,6 @@ def get_allocations_output(filter: Optional[pulumi.Input[Optional[str]]] = None, ``` - :param str filter: `(string: )` - Specifies the - [expression][nomad_api_filter] used to filter the results. :param str namespace: `(string: )` - Specifies the namespace to search for allocations in. :param str prefix: `(string: )` - Specifies a string to filter allocations diff --git a/sdk/python/pulumi_nomad/get_node_pools.py b/sdk/python/pulumi_nomad/get_node_pools.py index b31abf7..0f9673b 100644 --- a/sdk/python/pulumi_nomad/get_node_pools.py +++ b/sdk/python/pulumi_nomad/get_node_pools.py @@ -92,8 +92,6 @@ def get_node_pools(filter: Optional[str] = None, ``` - :param str filter: `(string)` - Specifies the [expression][nomad_api_filter] used to - filter the results. :param str prefix: `(string)` - Specifies a string to filter node pools based on a name prefix. """ @@ -127,8 +125,6 @@ def get_node_pools_output(filter: Optional[pulumi.Input[Optional[str]]] = None, ``` - :param str filter: `(string)` - Specifies the [expression][nomad_api_filter] used to - filter the results. :param str prefix: `(string)` - Specifies a string to filter node pools based on a name prefix. """ diff --git a/sdk/python/pulumi_nomad/outputs.py b/sdk/python/pulumi_nomad/outputs.py index a1ee2b4..7cda36c 100644 --- a/sdk/python/pulumi_nomad/outputs.py +++ b/sdk/python/pulumi_nomad/outputs.py @@ -156,22 +156,22 @@ def __init__(__self__, *, valid for login. :param Sequence[str] bound_issuers: `([]string: )` - The value against which to match the iss claim in a JWT. - :param Mapping[str, str] claim_mappings: Mappings of claims (key) that will be copied to a metadata field (value). - :param str clock_skew_leeway: `(string: )` - Duration of leeway when validating - all claims in the form of a time duration such as "5m" or "1h". + :param Mapping[str, str] claim_mappings: `(map[string]string: )` - Mappings of claims (key) + that will be copied to a metadata field (value). + :param str clock_skew_leeway: Duration of leeway when validating all claims in the form of a time duration such as "5m" or "1h". :param Sequence[str] discovery_ca_pems: `([]string: )` - PEM encoded CA certs for use by the TLS client used to talk with the OIDC Discovery URL. :param str expiration_leeway: `(string: )` - Duration of leeway when validating expiration of a JWT in the form of a time duration such as "5m" or "1h". - :param str jwks_ca_cert: `(string: )` - PEM encoded CA cert for use by the + :param str jwks_ca_cert: `(string: )` - PEM encoded CA cert for use by the TLS client used to talk with the JWKS server. :param str jwks_url: `(string: )` - JSON Web Key Sets url for authenticating signatures. - :param Sequence[str] jwt_validation_pub_keys: `([]string: )` - List of PEM-encoded + :param Sequence[str] jwt_validation_pub_keys: `([]string: )` - List of PEM-encoded public keys to use to authenticate signatures locally. - :param Mapping[str, str] list_claim_mappings: Mappings of list claims (key) that will be copied to a metadata field (value). - :param str not_before_leeway: `(string: )` - Duration of leeway when validating - not before values of a token in the form of a time duration such as "5m" or "1h". + :param Mapping[str, str] list_claim_mappings: `(map[string]string: )` - Mappings of list + claims (key) that will be copied to a metadata field (value). + :param str not_before_leeway: Duration of leeway when validating not before values of a token in the form of a time duration such as "5m" or "1h". :param str oidc_client_id: `(string: )` - The OAuth Client ID configured with the OIDC provider. :param str oidc_client_secret: `(string: )` - The OAuth Client Secret @@ -254,7 +254,8 @@ def bound_issuers(self) -> Optional[Sequence[str]]: @pulumi.getter(name="claimMappings") def claim_mappings(self) -> Optional[Mapping[str, str]]: """ - Mappings of claims (key) that will be copied to a metadata field (value). + `(map[string]string: )` - Mappings of claims (key) + that will be copied to a metadata field (value). """ return pulumi.get(self, "claim_mappings") @@ -262,8 +263,7 @@ def claim_mappings(self) -> Optional[Mapping[str, str]]: @pulumi.getter(name="clockSkewLeeway") def clock_skew_leeway(self) -> Optional[str]: """ - `(string: )` - Duration of leeway when validating - all claims in the form of a time duration such as "5m" or "1h". + Duration of leeway when validating all claims in the form of a time duration such as "5m" or "1h". """ return pulumi.get(self, "clock_skew_leeway") @@ -289,7 +289,7 @@ def expiration_leeway(self) -> Optional[str]: @pulumi.getter(name="jwksCaCert") def jwks_ca_cert(self) -> Optional[str]: """ - `(string: )` - PEM encoded CA cert for use by the + `(string: )` - PEM encoded CA cert for use by the TLS client used to talk with the JWKS server. """ return pulumi.get(self, "jwks_ca_cert") @@ -307,7 +307,7 @@ def jwks_url(self) -> Optional[str]: @pulumi.getter(name="jwtValidationPubKeys") def jwt_validation_pub_keys(self) -> Optional[Sequence[str]]: """ - `([]string: )` - List of PEM-encoded + `([]string: )` - List of PEM-encoded public keys to use to authenticate signatures locally. """ return pulumi.get(self, "jwt_validation_pub_keys") @@ -316,7 +316,8 @@ def jwt_validation_pub_keys(self) -> Optional[Sequence[str]]: @pulumi.getter(name="listClaimMappings") def list_claim_mappings(self) -> Optional[Mapping[str, str]]: """ - Mappings of list claims (key) that will be copied to a metadata field (value). + `(map[string]string: )` - Mappings of list + claims (key) that will be copied to a metadata field (value). """ return pulumi.get(self, "list_claim_mappings") @@ -324,8 +325,7 @@ def list_claim_mappings(self) -> Optional[Mapping[str, str]]: @pulumi.getter(name="notBeforeLeeway") def not_before_leeway(self) -> Optional[str]: """ - `(string: )` - Duration of leeway when validating - not before values of a token in the form of a time duration such as "5m" or "1h". + Duration of leeway when validating not before values of a token in the form of a time duration such as "5m" or "1h". """ return pulumi.get(self, "not_before_leeway") diff --git a/sdk/python/pulumi_nomad/sentinel_policy.py b/sdk/python/pulumi_nomad/sentinel_policy.py index 4eb0110..309baae 100644 --- a/sdk/python/pulumi_nomad/sentinel_policy.py +++ b/sdk/python/pulumi_nomad/sentinel_policy.py @@ -21,14 +21,11 @@ def __init__(__self__, *, name: Optional[pulumi.Input[str]] = None): """ The set of arguments for constructing a SentinelPolicy resource. - :param pulumi.Input[str] enforcement_level: `(strings: )` - The [enforcement level][enforcement-level] + :param pulumi.Input[str] enforcement_level: `(strings: )` - The [enforcement level](https://www.nomadproject.io/guides/sentinel-policy.html#enforcement-level) for this policy. :param pulumi.Input[str] policy: `(string: )` - The contents of the policy to register. - :param pulumi.Input[str] scope: `(strings: )` - The [scope][scope] for this policy. + :param pulumi.Input[str] scope: `(strings: )` - The [scope](https://www.nomadproject.io/guides/sentinel-policy.html#policy-scope) for this policy. :param pulumi.Input[str] description: `(string: "")` - A description of the policy. - - [scope]: https://www.nomadproject.io/guides/sentinel-policy.html#policy-scope - [enforcement-level]: https://www.nomadproject.io/guides/sentinel-policy.html#enforcement-level :param pulumi.Input[str] name: `(string: )` - A unique name for the policy. """ pulumi.set(__self__, "enforcement_level", enforcement_level) @@ -43,7 +40,7 @@ def __init__(__self__, *, @pulumi.getter(name="enforcementLevel") def enforcement_level(self) -> pulumi.Input[str]: """ - `(strings: )` - The [enforcement level][enforcement-level] + `(strings: )` - The [enforcement level](https://www.nomadproject.io/guides/sentinel-policy.html#enforcement-level) for this policy. """ return pulumi.get(self, "enforcement_level") @@ -68,7 +65,7 @@ def policy(self, value: pulumi.Input[str]): @pulumi.getter def scope(self) -> pulumi.Input[str]: """ - `(strings: )` - The [scope][scope] for this policy. + `(strings: )` - The [scope](https://www.nomadproject.io/guides/sentinel-policy.html#policy-scope) for this policy. """ return pulumi.get(self, "scope") @@ -81,9 +78,6 @@ def scope(self, value: pulumi.Input[str]): def description(self) -> Optional[pulumi.Input[str]]: """ `(string: "")` - A description of the policy. - - [scope]: https://www.nomadproject.io/guides/sentinel-policy.html#policy-scope - [enforcement-level]: https://www.nomadproject.io/guides/sentinel-policy.html#enforcement-level """ return pulumi.get(self, "description") @@ -115,14 +109,11 @@ def __init__(__self__, *, """ Input properties used for looking up and filtering SentinelPolicy resources. :param pulumi.Input[str] description: `(string: "")` - A description of the policy. - - [scope]: https://www.nomadproject.io/guides/sentinel-policy.html#policy-scope - [enforcement-level]: https://www.nomadproject.io/guides/sentinel-policy.html#enforcement-level - :param pulumi.Input[str] enforcement_level: `(strings: )` - The [enforcement level][enforcement-level] + :param pulumi.Input[str] enforcement_level: `(strings: )` - The [enforcement level](https://www.nomadproject.io/guides/sentinel-policy.html#enforcement-level) for this policy. :param pulumi.Input[str] name: `(string: )` - A unique name for the policy. :param pulumi.Input[str] policy: `(string: )` - The contents of the policy to register. - :param pulumi.Input[str] scope: `(strings: )` - The [scope][scope] for this policy. + :param pulumi.Input[str] scope: `(strings: )` - The [scope](https://www.nomadproject.io/guides/sentinel-policy.html#policy-scope) for this policy. """ if description is not None: pulumi.set(__self__, "description", description) @@ -140,9 +131,6 @@ def __init__(__self__, *, def description(self) -> Optional[pulumi.Input[str]]: """ `(string: "")` - A description of the policy. - - [scope]: https://www.nomadproject.io/guides/sentinel-policy.html#policy-scope - [enforcement-level]: https://www.nomadproject.io/guides/sentinel-policy.html#enforcement-level """ return pulumi.get(self, "description") @@ -154,7 +142,7 @@ def description(self, value: Optional[pulumi.Input[str]]): @pulumi.getter(name="enforcementLevel") def enforcement_level(self) -> Optional[pulumi.Input[str]]: """ - `(strings: )` - The [enforcement level][enforcement-level] + `(strings: )` - The [enforcement level](https://www.nomadproject.io/guides/sentinel-policy.html#enforcement-level) for this policy. """ return pulumi.get(self, "enforcement_level") @@ -191,7 +179,7 @@ def policy(self, value: Optional[pulumi.Input[str]]): @pulumi.getter def scope(self) -> Optional[pulumi.Input[str]]: """ - `(strings: )` - The [scope][scope] for this policy. + `(strings: )` - The [scope](https://www.nomadproject.io/guides/sentinel-policy.html#policy-scope) for this policy. """ return pulumi.get(self, "scope") @@ -215,7 +203,7 @@ def __init__(__self__, Manages a Sentinel policy registered in Nomad. > **Enterprise Only!** This API endpoint and functionality only exists in - Nomad Enterprise. This is not present in the open source version of Nomad. + Nomad Enterprise. This is not present in the open source version of Nomad. ## Example Usage @@ -244,14 +232,11 @@ def __init__(__self__, :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] description: `(string: "")` - A description of the policy. - - [scope]: https://www.nomadproject.io/guides/sentinel-policy.html#policy-scope - [enforcement-level]: https://www.nomadproject.io/guides/sentinel-policy.html#enforcement-level - :param pulumi.Input[str] enforcement_level: `(strings: )` - The [enforcement level][enforcement-level] + :param pulumi.Input[str] enforcement_level: `(strings: )` - The [enforcement level](https://www.nomadproject.io/guides/sentinel-policy.html#enforcement-level) for this policy. :param pulumi.Input[str] name: `(string: )` - A unique name for the policy. :param pulumi.Input[str] policy: `(string: )` - The contents of the policy to register. - :param pulumi.Input[str] scope: `(strings: )` - The [scope][scope] for this policy. + :param pulumi.Input[str] scope: `(strings: )` - The [scope](https://www.nomadproject.io/guides/sentinel-policy.html#policy-scope) for this policy. """ ... @overload @@ -263,7 +248,7 @@ def __init__(__self__, Manages a Sentinel policy registered in Nomad. > **Enterprise Only!** This API endpoint and functionality only exists in - Nomad Enterprise. This is not present in the open source version of Nomad. + Nomad Enterprise. This is not present in the open source version of Nomad. ## Example Usage @@ -352,14 +337,11 @@ def get(resource_name: str, :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] description: `(string: "")` - A description of the policy. - - [scope]: https://www.nomadproject.io/guides/sentinel-policy.html#policy-scope - [enforcement-level]: https://www.nomadproject.io/guides/sentinel-policy.html#enforcement-level - :param pulumi.Input[str] enforcement_level: `(strings: )` - The [enforcement level][enforcement-level] + :param pulumi.Input[str] enforcement_level: `(strings: )` - The [enforcement level](https://www.nomadproject.io/guides/sentinel-policy.html#enforcement-level) for this policy. :param pulumi.Input[str] name: `(string: )` - A unique name for the policy. :param pulumi.Input[str] policy: `(string: )` - The contents of the policy to register. - :param pulumi.Input[str] scope: `(strings: )` - The [scope][scope] for this policy. + :param pulumi.Input[str] scope: `(strings: )` - The [scope](https://www.nomadproject.io/guides/sentinel-policy.html#policy-scope) for this policy. """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) @@ -377,9 +359,6 @@ def get(resource_name: str, def description(self) -> pulumi.Output[Optional[str]]: """ `(string: "")` - A description of the policy. - - [scope]: https://www.nomadproject.io/guides/sentinel-policy.html#policy-scope - [enforcement-level]: https://www.nomadproject.io/guides/sentinel-policy.html#enforcement-level """ return pulumi.get(self, "description") @@ -387,7 +366,7 @@ def description(self) -> pulumi.Output[Optional[str]]: @pulumi.getter(name="enforcementLevel") def enforcement_level(self) -> pulumi.Output[str]: """ - `(strings: )` - The [enforcement level][enforcement-level] + `(strings: )` - The [enforcement level](https://www.nomadproject.io/guides/sentinel-policy.html#enforcement-level) for this policy. """ return pulumi.get(self, "enforcement_level") @@ -412,7 +391,7 @@ def policy(self) -> pulumi.Output[str]: @pulumi.getter def scope(self) -> pulumi.Output[str]: """ - `(strings: )` - The [scope][scope] for this policy. + `(strings: )` - The [scope](https://www.nomadproject.io/guides/sentinel-policy.html#policy-scope) for this policy. """ return pulumi.get(self, "scope")